New api publish.
This commit is contained in:
102
workorder/include/alibabacloud/workorder/WorkorderClient.h
Normal file
102
workorder/include/alibabacloud/workorder/WorkorderClient.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_WORKORDERCLIENT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_WORKORDERCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "WorkorderExport.h"
|
||||
#include "model/CloseTicketRequest.h"
|
||||
#include "model/CloseTicketResult.h"
|
||||
#include "model/CreateTicketRequest.h"
|
||||
#include "model/CreateTicketResult.h"
|
||||
#include "model/ListCategoriesRequest.h"
|
||||
#include "model/ListCategoriesResult.h"
|
||||
#include "model/ListProductsRequest.h"
|
||||
#include "model/ListProductsResult.h"
|
||||
#include "model/ListTicketNotesRequest.h"
|
||||
#include "model/ListTicketNotesResult.h"
|
||||
#include "model/ListTicketsRequest.h"
|
||||
#include "model/ListTicketsResult.h"
|
||||
#include "model/ReplyTicketRequest.h"
|
||||
#include "model/ReplyTicketResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT WorkorderClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CloseTicketResult> CloseTicketOutcome;
|
||||
typedef std::future<CloseTicketOutcome> CloseTicketOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::CloseTicketRequest&, const CloseTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseTicketAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTicketResult> CreateTicketOutcome;
|
||||
typedef std::future<CreateTicketOutcome> CreateTicketOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::CreateTicketRequest&, const CreateTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTicketAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCategoriesResult> ListCategoriesOutcome;
|
||||
typedef std::future<ListCategoriesOutcome> ListCategoriesOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::ListCategoriesRequest&, const ListCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCategoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProductsResult> ListProductsOutcome;
|
||||
typedef std::future<ListProductsOutcome> ListProductsOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::ListProductsRequest&, const ListProductsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTicketNotesResult> ListTicketNotesOutcome;
|
||||
typedef std::future<ListTicketNotesOutcome> ListTicketNotesOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::ListTicketNotesRequest&, const ListTicketNotesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTicketNotesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTicketsResult> ListTicketsOutcome;
|
||||
typedef std::future<ListTicketsOutcome> ListTicketsOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::ListTicketsRequest&, const ListTicketsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTicketsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReplyTicketResult> ReplyTicketOutcome;
|
||||
typedef std::future<ReplyTicketOutcome> ReplyTicketOutcomeCallable;
|
||||
typedef std::function<void(const WorkorderClient*, const Model::ReplyTicketRequest&, const ReplyTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReplyTicketAsyncHandler;
|
||||
|
||||
WorkorderClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
WorkorderClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
WorkorderClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~WorkorderClient();
|
||||
CloseTicketOutcome closeTicket(const Model::CloseTicketRequest &request)const;
|
||||
void closeTicketAsync(const Model::CloseTicketRequest& request, const CloseTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseTicketOutcomeCallable closeTicketCallable(const Model::CloseTicketRequest& request) const;
|
||||
CreateTicketOutcome createTicket(const Model::CreateTicketRequest &request)const;
|
||||
void createTicketAsync(const Model::CreateTicketRequest& request, const CreateTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTicketOutcomeCallable createTicketCallable(const Model::CreateTicketRequest& request) const;
|
||||
ListCategoriesOutcome listCategories(const Model::ListCategoriesRequest &request)const;
|
||||
void listCategoriesAsync(const Model::ListCategoriesRequest& request, const ListCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCategoriesOutcomeCallable listCategoriesCallable(const Model::ListCategoriesRequest& request) const;
|
||||
ListProductsOutcome listProducts(const Model::ListProductsRequest &request)const;
|
||||
void listProductsAsync(const Model::ListProductsRequest& request, const ListProductsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProductsOutcomeCallable listProductsCallable(const Model::ListProductsRequest& request) const;
|
||||
ListTicketNotesOutcome listTicketNotes(const Model::ListTicketNotesRequest &request)const;
|
||||
void listTicketNotesAsync(const Model::ListTicketNotesRequest& request, const ListTicketNotesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTicketNotesOutcomeCallable listTicketNotesCallable(const Model::ListTicketNotesRequest& request) const;
|
||||
ListTicketsOutcome listTickets(const Model::ListTicketsRequest &request)const;
|
||||
void listTicketsAsync(const Model::ListTicketsRequest& request, const ListTicketsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTicketsOutcomeCallable listTicketsCallable(const Model::ListTicketsRequest& request) const;
|
||||
ReplyTicketOutcome replyTicket(const Model::ReplyTicketRequest &request)const;
|
||||
void replyTicketAsync(const Model::ReplyTicketRequest& request, const ReplyTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReplyTicketOutcomeCallable replyTicketCallable(const Model::ReplyTicketRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_WORKORDER_WORKORDERCLIENT_H_
|
||||
32
workorder/include/alibabacloud/workorder/WorkorderExport.h
Normal file
32
workorder/include/alibabacloud/workorder/WorkorderExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_WORKORDEREXPORT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_WORKORDEREXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_WORKORDER_LIBRARY)
|
||||
# define ALIBABACLOUD_WORKORDER_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_WORKORDER_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_WORKORDER_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_WORKORDER_WORKORDEREXPORT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT CloseTicketRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CloseTicketRequest();
|
||||
~CloseTicketRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT CloseTicketResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CloseTicketResult();
|
||||
explicit CloseTicketResult(const std::string &payload);
|
||||
~CloseTicketResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_CLOSETICKETRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT CreateTicketRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateTicketRequest();
|
||||
~CreateTicketRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getNotifyTimeRange()const;
|
||||
void setNotifyTimeRange(const std::string& notifyTimeRange);
|
||||
std::string getPhone()const;
|
||||
void setPhone(const std::string& phone);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
std::string getEmail()const;
|
||||
void setEmail(const std::string& email);
|
||||
std::string getSecretContent()const;
|
||||
void setSecretContent(const std::string& secretContent);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
std::string title_;
|
||||
std::string content_;
|
||||
std::string notifyTimeRange_;
|
||||
std::string phone_;
|
||||
std::string category_;
|
||||
std::string email_;
|
||||
std::string secretContent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT CreateTicketResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateTicketResult();
|
||||
explicit CreateTicketResult(const std::string &payload);
|
||||
~CreateTicketResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_CREATETICKETRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListCategoriesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListCategoriesRequest();
|
||||
~ListCategoriesRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListCategoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
int id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<ListItem> list;
|
||||
};
|
||||
|
||||
|
||||
ListCategoriesResult();
|
||||
explicit ListCategoriesResult(const std::string &payload);
|
||||
~ListCategoriesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTCATEGORIESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListProductsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProductsRequest();
|
||||
~ListProductsRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSREQUEST_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListProductsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct TechMoreItem
|
||||
{
|
||||
struct ProductListItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<TechMoreItem::ProductListItem> productList;
|
||||
std::string groupName;
|
||||
};
|
||||
struct HotConsultationItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
struct ConsultationMoreItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
struct HotTechItem
|
||||
{
|
||||
std::string description;
|
||||
std::string productCode;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<ConsultationMoreItem> consultationMore;
|
||||
std::vector<HotTechItem> hotTech;
|
||||
std::vector<HotConsultationItem> hotConsultation;
|
||||
std::vector<TechMoreItem> techMore;
|
||||
};
|
||||
|
||||
|
||||
ListProductsResult();
|
||||
explicit ListProductsResult(const std::string &payload);
|
||||
~ListProductsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTPRODUCTSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketNotesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTicketNotesRequest();
|
||||
~ListTicketNotesRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketNotesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
std::string noteId;
|
||||
bool fromOfficial;
|
||||
std::string content;
|
||||
int gmtCreated;
|
||||
};
|
||||
std::vector<ListItem> list;
|
||||
};
|
||||
|
||||
|
||||
ListTicketNotesResult();
|
||||
explicit ListTicketNotesResult(const std::string &payload);
|
||||
~ListTicketNotesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETNOTESRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTicketsRequest();
|
||||
~ListTicketsRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getSubUserId()const;
|
||||
void setSubUserId(const std::string& subUserId);
|
||||
long getCreatedBeforeTime()const;
|
||||
void setCreatedBeforeTime(long createdBeforeTime);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getIds()const;
|
||||
void setIds(const std::string& ids);
|
||||
std::string getTicketStatus()const;
|
||||
void setTicketStatus(const std::string& ticketStatus);
|
||||
int getPageStart()const;
|
||||
void setPageStart(int pageStart);
|
||||
long getCreatedAfterTime()const;
|
||||
void setCreatedAfterTime(long createdAfterTime);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string language_;
|
||||
std::string subUserId_;
|
||||
long createdBeforeTime_;
|
||||
int pageSize_;
|
||||
std::string ids_;
|
||||
std::string ticketStatus_;
|
||||
int pageStart_;
|
||||
long createdAfterTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ListTicketsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ListItem
|
||||
{
|
||||
std::string creatorId;
|
||||
std::string title;
|
||||
std::string ticketStatus;
|
||||
std::string id;
|
||||
int addTime;
|
||||
};
|
||||
int pageSize;
|
||||
int currentPage;
|
||||
int total;
|
||||
std::vector<ListItem> list;
|
||||
};
|
||||
|
||||
|
||||
ListTicketsResult();
|
||||
explicit ListTicketsResult(const std::string &payload);
|
||||
~ListTicketsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_LISTTICKETSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETREQUEST_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ReplyTicketRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ReplyTicketRequest();
|
||||
~ReplyTicketRequest();
|
||||
|
||||
std::string getLanguage()const;
|
||||
void setLanguage(const std::string& language);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getSecretContent()const;
|
||||
void setSecretContent(const std::string& secretContent);
|
||||
|
||||
private:
|
||||
std::string language_;
|
||||
std::string ticketId_;
|
||||
std::string content_;
|
||||
std::string secretContent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETRESULT_H_
|
||||
#define ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/workorder/WorkorderExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Workorder
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_WORKORDER_EXPORT ReplyTicketResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReplyTicketResult();
|
||||
explicit ReplyTicketResult(const std::string &payload);
|
||||
~ReplyTicketResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_WORKORDER_MODEL_REPLYTICKETRESULT_H_
|
||||
Reference in New Issue
Block a user