Compare commits

..

28 Commits

Author SHA1 Message Date
sdk-team
fdda25160a Generated 2020-01-01 for ddoscoo. 2021-11-15 11:53:23 +00:00
sdk-team
96f811507e Add Ext parameter to image translation API. 2021-11-15 06:45:14 +00:00
sdk-team
cf62272b5b Update DetectVehicleICongestion DetectVehicleIllegalParking. 2021-11-15 03:12:50 +00:00
sdk-team
75a15fd95e Update by sdk platform. 2021-11-12 07:13:42 +00:00
sdk-team
4dea18972d Optimize the API for querying storage package information. 2021-11-12 02:05:07 +00:00
sdk-team
a6a706f7bd Supported apm restful api. 2021-11-08 08:26:12 +00:00
sdk-team
ba89b8f5b6 Add SetDcdnDomainSMCertificate. 2021-11-05 09:18:11 +00:00
sdk-team
602862cc5e Add SetCdnDomainSMCertificate. 2021-11-05 09:16:56 +00:00
sdk-team
914402ac4e Update OTA API, including CreateOTAVerifyJob. 2021-11-05 01:36:34 +00:00
sdk-team
3a7cca96e3 Adjust some param. 2021-11-04 08:44:54 +00:00
sdk-team
3d527e15e0 Add GetVideoPlayAuth API parameter. 2021-11-02 12:10:30 +00:00
sdk-team
54a8427771 Add GetVideoPlayAuth API parameter. 2021-11-02 11:15:20 +00:00
sdk-team
5f1578fdbe Support multi language. 2021-11-02 07:14:08 +00:00
sdk-team
e4fc46970b Add API UploadStreamByURL. 2021-11-02 04:10:06 +00:00
sdk-team
a6fdb87ef4 Fixed SDK update delay. 2021-11-02 03:20:53 +00:00
sdk-team
754add8798 Release DetectKitchenAnimals DetectWorkwear. 2021-11-01 06:46:12 +00:00
sdk-team
1044402e1d Add no data alarm processing. 2021-10-28 11:08:30 +00:00
sdk-team
8cc78b3a3e Updated tag api. 2021-10-28 08:27:14 +00:00
sdk-team
0cf5861ece Fix ModifyInstanceName. 2021-10-27 05:59:10 +00:00
sdk-team
524b68ac01 Add QueryEmbedTokenInfo,DeleteEmbedToken,CreateEmbedToken,DelayEmbedToken,BuildSignatureUrl, and update QueryDatasetInfo,AuthorizeMenu,AddUserTagMeta,AddUser. 2021-10-26 12:24:04 +00:00
sdk-team
e6902accf9 Update Dyvmsapi SDK. 2021-10-26 02:42:18 +00:00
sdk-team
eda4d09d82 DescribeDtsJobs api, delay filed change from int to long. 2021-10-25 12:10:42 +00:00
sdk-team
537988875e Generated 2016-04-08 for Emr. 2021-10-25 03:40:00 +00:00
sdk-team
d6278ad8a3 Generated 2016-11-01 for live. 2021-10-25 03:26:38 +00:00
sdk-team
c0e3f6e782 Update Open API. 2021-10-21 13:39:55 +00:00
sdk-team
8778009aff Generated 2020-05-18 for dataworks-public. 2021-10-21 09:41:39 +00:00
sdk-team
7b81c413a1 Release AddQualityScore. 2021-10-21 07:31:07 +00:00
sdk-team
27a39a83b5 Generated 2020-05-18 for dataworks-public. 2021-10-21 02:37:49 +00:00
1164 changed files with 57798 additions and 13961 deletions

View File

@@ -1,3 +1,88 @@
2021-11-15 Version: 1.36.930
- Generated 2020-01-01 for `ddoscoo`.
2021-11-15 Version: 1.36.929
- Add Ext parameter to image translation API.
2021-11-15 Version: 1.36.928
- Update DetectVehicleICongestion DetectVehicleIllegalParking.
2021-11-12 Version: 1.36.927
- Update by sdk platform.
2021-11-12 Version: 1.36.926
- Optimize the API for querying storage package information.
2021-11-08 Version: 1.36.925
- Supported apm restful api.
2021-11-05 Version: 1.36.924
- Add SetDcdnDomainSMCertificate.
2021-11-05 Version: 1.36.923
- Add SetCdnDomainSMCertificate.
2021-11-05 Version: 1.36.922
- Update OTA API, including CreateOTAVerifyJob.
2021-11-04 Version: 1.36.921
- Adjust some param.
2021-11-02 Version: 1.36.920
- Add GetVideoPlayAuth API parameter.
2021-11-02 Version: 1.36.919
- Add GetVideoPlayAuth API parameter.
2021-11-02 Version: 1.36.918
- Support multi language.
2021-11-02 Version: 1.36.917
- Add API UploadStreamByURL.
2021-11-02 Version: 1.36.916
- Fixed SDK update delay.
2021-11-01 Version: 1.36.915
- Release DetectKitchenAnimals DetectWorkwear.
2021-10-28 Version: 1.36.914
- Add no data alarm processing.
2021-10-28 Version: 1.36.913
- Updated tag api.
- Updated DescribeTask api to get relatedResourceId info.
2021-10-27 Version: 1.36.912
- Fix ModifyInstanceName.
2021-10-26 Version: 1.36.911
- Add QueryEmbedTokenInfo,DeleteEmbedToken,CreateEmbedToken,DelayEmbedToken,BuildSignatureUrl, and update QueryDatasetInfo,AuthorizeMenu,AddUserTagMeta,AddUser.
2021-10-26 Version: 1.36.910
- Update Dyvmsapi SDK.
2021-10-25 Version: 1.36.909
- DescribeDtsJobs api, delay filed change from int to long.
2021-10-25 Version: 1.36.908
- Generated 2016-04-08 for `Emr`.
2021-10-25 Version: 1.36.907
- Generated 2016-11-01 for `live`.
2021-10-21 Version: 1.36.906
- Update Open API.
2021-10-21 Version: 1.36.905
- Generated 2020-05-18 for `dataworks-public`.
2021-10-21 Version: 1.36.904
- Release AddQualityScore.
2021-10-21 Version: 1.36.903
- Generated 2020-05-18 for `dataworks-public`.
2021-10-20 Version: 1.36.902
- Add DeviceCenter API, including CreateDeviceDynamicGroup, DeleteDeviceDynamicGroup, QueryDynamicGroupDevices.
- Update DeviceCenter API, including SetDeviceGroupTags, QueryDeviceGroupByFuzzyName, QueryDeviceGroupByDevice, QueryDeviceGroupTagList, UpdateDeviceGroup, QueryDeviceGroupList, QueryDeviceGroupInfo.

View File

@@ -1 +1 @@
1.36.902
1.36.930

View File

@@ -43,6 +43,10 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
include/alibabacloud/alimt/model/GetTranslateReportRequest.h
include/alibabacloud/alimt/model/GetTranslateReportResult.h
include/alibabacloud/alimt/model/GetUserRequest.h
include/alibabacloud/alimt/model/GetUserResult.h
include/alibabacloud/alimt/model/OpenAlimtServiceRequest.h
include/alibabacloud/alimt/model/OpenAlimtServiceResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
@@ -52,7 +56,9 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
include/alibabacloud/alimt/model/TranslateECommerceResult.h
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
include/alibabacloud/alimt/model/TranslateGeneralResult.h )
include/alibabacloud/alimt/model/TranslateGeneralResult.h
include/alibabacloud/alimt/model/TranslateImageRequest.h
include/alibabacloud/alimt/model/TranslateImageResult.h )
set(alimt_src
src/AlimtClient.cc
@@ -78,6 +84,10 @@ set(alimt_src
src/model/GetTitleGenerateResult.cc
src/model/GetTitleIntelligenceRequest.cc
src/model/GetTitleIntelligenceResult.cc
src/model/GetTranslateReportRequest.cc
src/model/GetTranslateReportResult.cc
src/model/GetUserRequest.cc
src/model/GetUserResult.cc
src/model/OpenAlimtServiceRequest.cc
src/model/OpenAlimtServiceResult.cc
src/model/TranslateRequest.cc
@@ -87,7 +97,9 @@ set(alimt_src
src/model/TranslateECommerceRequest.cc
src/model/TranslateECommerceResult.cc
src/model/TranslateGeneralRequest.cc
src/model/TranslateGeneralResult.cc )
src/model/TranslateGeneralResult.cc
src/model/TranslateImageRequest.cc
src/model/TranslateImageResult.cc )
add_library(alimt ${LIB_TYPE}
${alimt_public_header}

View File

@@ -44,6 +44,10 @@
#include "model/GetTitleGenerateResult.h"
#include "model/GetTitleIntelligenceRequest.h"
#include "model/GetTitleIntelligenceResult.h"
#include "model/GetTranslateReportRequest.h"
#include "model/GetTranslateReportResult.h"
#include "model/GetUserRequest.h"
#include "model/GetUserResult.h"
#include "model/OpenAlimtServiceRequest.h"
#include "model/OpenAlimtServiceResult.h"
#include "model/TranslateRequest.h"
@@ -54,6 +58,8 @@
#include "model/TranslateECommerceResult.h"
#include "model/TranslateGeneralRequest.h"
#include "model/TranslateGeneralResult.h"
#include "model/TranslateImageRequest.h"
#include "model/TranslateImageResult.h"
namespace AlibabaCloud
@@ -96,6 +102,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
typedef Outcome<Error, Model::GetTranslateReportResult> GetTranslateReportOutcome;
typedef std::future<GetTranslateReportOutcome> GetTranslateReportOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTranslateReportRequest&, const GetTranslateReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTranslateReportAsyncHandler;
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
typedef Outcome<Error, Model::OpenAlimtServiceResult> OpenAlimtServiceOutcome;
typedef std::future<OpenAlimtServiceOutcome> OpenAlimtServiceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::OpenAlimtServiceRequest&, const OpenAlimtServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenAlimtServiceAsyncHandler;
@@ -111,6 +123,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TranslateGeneralResult> TranslateGeneralOutcome;
typedef std::future<TranslateGeneralOutcome> TranslateGeneralOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateGeneralRequest&, const TranslateGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateGeneralAsyncHandler;
typedef Outcome<Error, Model::TranslateImageResult> TranslateImageOutcome;
typedef std::future<TranslateImageOutcome> TranslateImageOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateImageRequest&, const TranslateImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateImageAsyncHandler;
AlimtClient(const Credentials &credentials, const ClientConfiguration &configuration);
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -149,6 +164,12 @@ namespace AlibabaCloud
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
GetTranslateReportOutcome getTranslateReport(const Model::GetTranslateReportRequest &request)const;
void getTranslateReportAsync(const Model::GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTranslateReportOutcomeCallable getTranslateReportCallable(const Model::GetTranslateReportRequest& request) const;
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
OpenAlimtServiceOutcome openAlimtService(const Model::OpenAlimtServiceRequest &request)const;
void openAlimtServiceAsync(const Model::OpenAlimtServiceRequest& request, const OpenAlimtServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OpenAlimtServiceOutcomeCallable openAlimtServiceCallable(const Model::OpenAlimtServiceRequest& request) const;
@@ -164,6 +185,9 @@ namespace AlibabaCloud
TranslateGeneralOutcome translateGeneral(const Model::TranslateGeneralRequest &request)const;
void translateGeneralAsync(const Model::TranslateGeneralRequest& request, const TranslateGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateGeneralOutcomeCallable translateGeneralCallable(const Model::TranslateGeneralRequest& request) const;
TranslateImageOutcome translateImage(const Model::TranslateImageRequest &request)const;
void translateImageAsync(const Model::TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateImageOutcomeCallable translateImageCallable(const Model::TranslateImageRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -1,63 +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_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getFileUrl()const;
void setFileUrl(const std::string& fileUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
std::string getCallbackUrl()const;
void setCallbackUrl(const std::string& callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest {
public:
CreateDocTranslateTaskRequest();
~CreateDocTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getFileUrl() const;
void setFileUrl(const std::string &fileUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getCallbackUrl() const;
void setCallbackUrl(const std::string &callbackUrl);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string scene_;
std::string fileUrl_;
std::string targetLanguage_;
std::string callbackUrl_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getUrlList()const;
void setUrlList(const std::string& urlList);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT CreateImageTranslateTaskRequest : public RpcServiceRequest {
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUrlList() const;
void setUrlList(const std::string &urlList);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,63 +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_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest
{
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getApiType()const;
void setApiType(const std::string& apiType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateRequest : public RpcServiceRequest {
public:
GetBatchTranslateRequest();
~GetBatchTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getApiType() const;
void setApiType(const std::string &apiType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string apiType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest
{
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
private:
std::string sourceText_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDetectLanguageRequest : public RpcServiceRequest {
public:
GetDetectLanguageRequest();
~GetDetectLanguageRequest();
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
private:
std::string sourceText_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDETECTLANGUAGEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest
{
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest {
public:
GetDocTranslateTaskRequest();
~GetDocTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_

View File

@@ -1,51 +1,45 @@
/*
* 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_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest
{
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
std::string url_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest {
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
std::string url_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_

View File

@@ -1,57 +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_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest
{
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest {
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* 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_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest
{
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateTaskRequest : public RpcServiceRequest {
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId() const;
void setTaskId(const std::string &taskId);
private:
std::string taskId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest
{
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest {
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_

View File

@@ -41,9 +41,9 @@ namespace AlibabaCloud
std::string overLengthLimit;
std::string totalScore;
std::string duplicateWords;
std::string wordSpelledCorrectError;
std::string allUppercaseWords;
std::string languageQualityScore;
std::string allUppercaseWords;
std::string wordSpelledCorrectError;
};

View File

@@ -1,66 +1,60 @@
/*
* 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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest
{
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getAttributes()const;
void setAttributes(const std::string& attributes);
std::string getHotWords()const;
void setHotWords(const std::string& hotWords);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest {
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage() const;
void setLanguage(const std::string &language);
std::string getTitle() const;
void setTitle(const std::string &title);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
std::string getAttributes() const;
void setAttributes(const std::string &attributes);
std::string getHotWords() const;
void setHotWords(const std::string &hotWords);
std::string getCategoryId() const;
void setCategoryId(const std::string &categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
{
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId()const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId()const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords()const;
void setKeywords(const std::string& keywords);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest {
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId() const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId() const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords() const;
void setKeywords(const std::string &keywords);
std::string getPlatform() const;
void setPlatform(const std::string &platform);
std::string getExtra() const;
void setExtra(const std::string &extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_

View File

@@ -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_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportRequest : public RpcServiceRequest {
public:
GetTranslateReportRequest();
~GetTranslateReportRequest();
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getBeginTime() const;
void setBeginTime(const std::string &beginTime);
std::string getApiName() const;
void setApiName(const std::string &apiName);
std::string getGroup() const;
void setGroup(const std::string &group);
private:
std::string endTime_;
std::string beginTime_;
std::string apiName_;
std::string group_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTREQUEST_H_

View File

@@ -14,38 +14,42 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_COMMITFLOWENTITYSNAPSHOTRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_COMMITFLOWENTITYSNAPSHOTRESULT_H_
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Emr
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT CommitFlowEntitySnapshotResult : public ServiceResult
class ALIBABACLOUD_ALIMT_EXPORT GetTranslateReportResult : public ServiceResult
{
public:
CommitFlowEntitySnapshotResult();
explicit CommitFlowEntitySnapshotResult(const std::string &payload);
~CommitFlowEntitySnapshotResult();
GetTranslateReportResult();
explicit GetTranslateReportResult(const std::string &payload);
~GetTranslateReportResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_COMMITFLOWENTITYSNAPSHOTRESULT_H_
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTRANSLATEREPORTRESULT_H_

View File

@@ -0,0 +1,39 @@
/*
* 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_ALIMT_MODEL_GETUSERREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT GetUserRequest : public RpcServiceRequest {
public:
GetUserRequest();
~GetUserRequest();
private:
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERREQUEST_H_

View File

@@ -14,38 +14,42 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_QUERYTABLEDATARESULT_H_
#define ALIBABACLOUD_EMR_MODEL_QUERYTABLEDATARESULT_H_
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Emr
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT QueryTableDataResult : public ServiceResult
class ALIBABACLOUD_ALIMT_EXPORT GetUserResult : public ServiceResult
{
public:
QueryTableDataResult();
explicit QueryTableDataResult(const std::string &payload);
~QueryTableDataResult();
GetUserResult();
explicit GetUserResult(const std::string &payload);
~GetUserResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_QUERYTABLEDATARESULT_H_
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETUSERRESULT_H_

View File

@@ -1,51 +1,45 @@
/*
* 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_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest
{
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getType()const;
void setType(const std::string& type);
private:
long ownerId_;
std::string type_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT OpenAlimtServiceRequest : public RpcServiceRequest {
public:
OpenAlimtServiceRequest();
~OpenAlimtServiceRequest();
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getType() const;
void setType(const std::string &type);
private:
long ownerId_;
std::string type_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_OPENALIMTSERVICEREQUEST_H_

View File

@@ -1,60 +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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest
{
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getCertificateType()const;
void setCertificateType(const std::string& certificateType);
std::string getResultType()const;
void setResultType(const std::string& resultType);
std::string getImageUrl()const;
void setImageUrl(const std::string& imageUrl);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest {
public:
TranslateCertificateRequest();
~TranslateCertificateRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getCertificateType() const;
void setCertificateType(const std::string &certificateType);
std::string getResultType() const;
void setResultType(const std::string &resultType);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string ext_;
std::string sourceLanguage_;
std::string certificateType_;
std::string resultType_;
std::string imageUrl_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest
{
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateECommerceRequest : public RpcServiceRequest {
public:
TranslateECommerceRequest();
~TranslateECommerceRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEECOMMERCEREQUEST_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest
{
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateGeneralRequest : public RpcServiceRequest {
public:
TranslateGeneralRequest();
~TranslateGeneralRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEGENERALREQUEST_H_

View File

@@ -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_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageRequest : public RpcServiceRequest {
public:
TranslateImageRequest();
~TranslateImageRequest();
std::string getExt() const;
void setExt(const std::string &ext);
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getField() const;
void setField(const std::string &field);
std::string getImageUrl() const;
void setImageUrl(const std::string &imageUrl);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
std::string getImageBase64() const;
void setImageBase64(const std::string &imageBase64);
private:
std::string ext_;
std::string sourceLanguage_;
std::string field_;
std::string imageUrl_;
std::string targetLanguage_;
std::string imageBase64_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateImageResult : public ServiceResult
{
public:
struct Data
{
std::string inPaintingUrl;
std::string templateJson;
std::string finalImageUrl;
};
TranslateImageResult();
explicit TranslateImageResult(const std::string &payload);
~TranslateImageResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEIMAGERESULT_H_

View File

@@ -1,60 +1,54 @@
/*
* 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_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest
{
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getSourceText()const;
void setSourceText(const std::string& sourceText);
std::string getFormatType()const;
void setFormatType(const std::string& formatType);
std::string getScene()const;
void setScene(const std::string& scene);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
#include <alibabacloud/alimt/AlimtExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alimt {
namespace Model {
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest {
public:
TranslateRequest();
~TranslateRequest();
std::string getSourceLanguage() const;
void setSourceLanguage(const std::string &sourceLanguage);
std::string getSourceText() const;
void setSourceText(const std::string &sourceText);
std::string getFormatType() const;
void setFormatType(const std::string &formatType);
std::string getScene() const;
void setScene(const std::string &scene);
std::string getTargetLanguage() const;
void setTargetLanguage(const std::string &targetLanguage);
private:
std::string sourceLanguage_;
std::string sourceText_;
std::string formatType_;
std::string scene_;
std::string targetLanguage_;
};
} // namespace Model
} // namespace Alimt
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_

View File

@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
AlimtClient::~AlimtClient()
@@ -447,6 +447,78 @@ AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligen
return task->get_future();
}
AlimtClient::GetTranslateReportOutcome AlimtClient::getTranslateReport(const GetTranslateReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTranslateReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTranslateReportOutcome(GetTranslateReportResult(outcome.result()));
else
return GetTranslateReportOutcome(outcome.error());
}
void AlimtClient::getTranslateReportAsync(const GetTranslateReportRequest& request, const GetTranslateReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTranslateReport(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTranslateReportOutcomeCallable AlimtClient::getTranslateReportCallable(const GetTranslateReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTranslateReportOutcome()>>(
[this, request]()
{
return this->getTranslateReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetUserOutcome AlimtClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserOutcome(GetUserResult(outcome.result()));
else
return GetUserOutcome(outcome.error());
}
void AlimtClient::getUserAsync(const GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUser(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetUserOutcomeCallable AlimtClient::getUserCallable(const GetUserRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserOutcome()>>(
[this, request]()
{
return this->getUser(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::OpenAlimtServiceOutcome AlimtClient::openAlimtService(const OpenAlimtServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,3 +699,39 @@ AlimtClient::TranslateGeneralOutcomeCallable AlimtClient::translateGeneralCallab
return task->get_future();
}
AlimtClient::TranslateImageOutcome AlimtClient::translateImage(const TranslateImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TranslateImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TranslateImageOutcome(TranslateImageResult(outcome.result()));
else
return TranslateImageOutcome(outcome.error());
}
void AlimtClient::translateImageAsync(const TranslateImageRequest& request, const TranslateImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, translateImage(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::TranslateImageOutcomeCallable AlimtClient::translateImageCallable(const TranslateImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TranslateImageOutcome()>>(
[this, request]()
{
return this->translateImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,95 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
{}
std::string CreateDocTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest() {}
std::string CreateDocTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateDocTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateDocTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateDocTranslateTaskRequest::getScene()const
{
return scene_;
void CreateDocTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string CreateDocTranslateTaskRequest::getScene() const {
return scene_;
}
std::string CreateDocTranslateTaskRequest::getFileUrl()const
{
return fileUrl_;
void CreateDocTranslateTaskRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
{
fileUrl_ = fileUrl;
setBodyParameter("FileUrl", fileUrl);
std::string CreateDocTranslateTaskRequest::getFileUrl() const {
return fileUrl_;
}
std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateDocTranslateTaskRequest::setFileUrl(const std::string &fileUrl) {
fileUrl_ = fileUrl;
setBodyParameter(std::string("FileUrl"), fileUrl);
}
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateDocTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
{
return callbackUrl_;
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
{
callbackUrl_ = callbackUrl;
setBodyParameter("CallbackUrl", callbackUrl);
std::string CreateDocTranslateTaskRequest::getCallbackUrl() const {
return callbackUrl_;
}
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string &callbackUrl) {
callbackUrl_ = callbackUrl;
setBodyParameter(std::string("CallbackUrl"), callbackUrl);
}

View File

@@ -39,10 +39,10 @@ void CreateDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest()
{}
std::string CreateImageTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest() {}
std::string CreateImageTranslateTaskRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string CreateImageTranslateTaskRequest::getClientToken()const
{
return clientToken_;
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string CreateImageTranslateTaskRequest::getClientToken() const {
return clientToken_;
}
std::string CreateImageTranslateTaskRequest::getUrlList()const
{
return urlList_;
void CreateImageTranslateTaskRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
{
urlList_ = urlList;
setBodyParameter("UrlList", urlList);
std::string CreateImageTranslateTaskRequest::getUrlList() const {
return urlList_;
}
std::string CreateImageTranslateTaskRequest::getExtra()const
{
return extra_;
void CreateImageTranslateTaskRequest::setUrlList(const std::string &urlList) {
urlList_ = urlList;
setBodyParameter(std::string("UrlList"), urlList);
}
void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string CreateImageTranslateTaskRequest::getExtra() const {
return extra_;
}
std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
void CreateImageTranslateTaskRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string CreateImageTranslateTaskRequest::getTargetLanguage() const {
return targetLanguage_;
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,95 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetBatchTranslateRequest::~GetBatchTranslateRequest()
{}
std::string GetBatchTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetBatchTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
GetBatchTranslateRequest::GetBatchTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetBatchTranslateRequest::~GetBatchTranslateRequest() {}
std::string GetBatchTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetBatchTranslateRequest::getSourceText()const
{
return sourceText_;
void GetBatchTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string GetBatchTranslateRequest::getSourceText() const {
return sourceText_;
}
std::string GetBatchTranslateRequest::getFormatType()const
{
return formatType_;
void GetBatchTranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string GetBatchTranslateRequest::getFormatType() const {
return formatType_;
}
std::string GetBatchTranslateRequest::getApiType()const
{
return apiType_;
void GetBatchTranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
{
apiType_ = apiType;
setBodyParameter("ApiType", apiType);
std::string GetBatchTranslateRequest::getApiType() const {
return apiType_;
}
std::string GetBatchTranslateRequest::getScene()const
{
return scene_;
void GetBatchTranslateRequest::setApiType(const std::string &apiType) {
apiType_ = apiType;
setBodyParameter(std::string("ApiType"), apiType);
}
void GetBatchTranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string GetBatchTranslateRequest::getScene() const {
return scene_;
}
std::string GetBatchTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetBatchTranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetBatchTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetBatchTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage")
{
setMethod(HttpRequest::Method::Post);
}
GetDetectLanguageRequest::~GetDetectLanguageRequest()
{}
std::string GetDetectLanguageRequest::getSourceText()const
{
return sourceText_;
*/
#include <alibabacloud/alimt/model/GetDetectLanguageRequest.h>
using AlibabaCloud::Alimt::Model::GetDetectLanguageRequest;
GetDetectLanguageRequest::GetDetectLanguageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDetectLanguage") {
setMethod(HttpRequest::Method::Post);
}
void GetDetectLanguageRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
GetDetectLanguageRequest::~GetDetectLanguageRequest() {}
std::string GetDetectLanguageRequest::getSourceText() const {
return sourceText_;
}
void GetDetectLanguageRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}

View File

@@ -1,40 +1,36 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
{
setMethod(HttpRequest::Method::Get);
}
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
{}
std::string GetDocTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetDocTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask") {
setMethod(HttpRequest::Method::Get);
}
void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest() {}
std::string GetDocTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetDocTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("TaskId"), taskId);
}

View File

@@ -39,18 +39,18 @@ void GetDocTranslateTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TranslateFileUrl"].isNull())
translateFileUrl_ = value["TranslateFileUrl"].asString();
if(!value["TranslateErrorCode"].isNull())
translateErrorCode_ = value["TranslateErrorCode"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
if(!value["PageCount"].isNull())
pageCount_ = std::stoi(value["PageCount"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["TranslateErrorMessage"].isNull())
translateErrorMessage_ = value["TranslateErrorMessage"].asString();
}

View File

@@ -1,51 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
{}
std::string GetImageDiagnoseRequest::getUrl()const
{
return url_;
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetImageDiagnoseRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
GetImageDiagnoseRequest::~GetImageDiagnoseRequest() {}
std::string GetImageDiagnoseRequest::getUrl() const {
return url_;
}
std::string GetImageDiagnoseRequest::getExtra()const
{
return extra_;
void GetImageDiagnoseRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageDiagnoseRequest::getExtra() const {
return extra_;
}
void GetImageDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

View File

@@ -1,73 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateRequest::~GetImageTranslateRequest()
{}
std::string GetImageTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
GetImageTranslateRequest::~GetImageTranslateRequest() {}
std::string GetImageTranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string GetImageTranslateRequest::getUrl()const
{
return url_;
void GetImageTranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void GetImageTranslateRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
std::string GetImageTranslateRequest::getUrl() const {
return url_;
}
std::string GetImageTranslateRequest::getExtra()const
{
return extra_;
void GetImageTranslateRequest::setUrl(const std::string &url) {
url_ = url;
setBodyParameter(std::string("Url"), url);
}
void GetImageTranslateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetImageTranslateRequest::getExtra() const {
return extra_;
}
std::string GetImageTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void GetImageTranslateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string GetImageTranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void GetImageTranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,40 +1,36 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest()
{}
std::string GetImageTranslateTaskRequest::getTaskId()const
{
return taskId_;
*/
#include <alibabacloud/alimt/model/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask") {
setMethod(HttpRequest::Method::Post);
}
void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest() {}
std::string GetImageTranslateTaskRequest::getTaskId() const {
return taskId_;
}
void GetImageTranslateTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setBodyParameter(std::string("TaskId"), taskId);
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
{}
std::string GetTitleDiagnoseRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest() {}
std::string GetTitleDiagnoseRequest::getLanguage() const {
return language_;
}
std::string GetTitleDiagnoseRequest::getTitle()const
{
return title_;
void GetTitleDiagnoseRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleDiagnoseRequest::getTitle() const {
return title_;
}
std::string GetTitleDiagnoseRequest::getPlatform()const
{
return platform_;
void GetTitleDiagnoseRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleDiagnoseRequest::getPlatform() const {
return platform_;
}
std::string GetTitleDiagnoseRequest::getExtra()const
{
return extra_;
void GetTitleDiagnoseRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleDiagnoseRequest::getExtra() const {
return extra_;
}
std::string GetTitleDiagnoseRequest::getCategoryId()const
{
return categoryId_;
void GetTitleDiagnoseRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleDiagnoseRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -40,26 +40,26 @@ void GetTitleDiagnoseResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["DuplicateWords"].isNull())
data_.duplicateWords = dataNode["DuplicateWords"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["LanguageQualityScore"].isNull())
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -1,106 +1,90 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleGenerateRequest::~GetTitleGenerateRequest()
{}
std::string GetTitleGenerateRequest::getLanguage()const
{
return language_;
*/
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleGenerateRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
GetTitleGenerateRequest::~GetTitleGenerateRequest() {}
std::string GetTitleGenerateRequest::getLanguage() const {
return language_;
}
std::string GetTitleGenerateRequest::getTitle()const
{
return title_;
void GetTitleGenerateRequest::setLanguage(const std::string &language) {
language_ = language;
setBodyParameter(std::string("Language"), language);
}
void GetTitleGenerateRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
std::string GetTitleGenerateRequest::getTitle() const {
return title_;
}
std::string GetTitleGenerateRequest::getPlatform()const
{
return platform_;
void GetTitleGenerateRequest::setTitle(const std::string &title) {
title_ = title;
setBodyParameter(std::string("Title"), title);
}
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleGenerateRequest::getPlatform() const {
return platform_;
}
std::string GetTitleGenerateRequest::getExtra()const
{
return extra_;
void GetTitleGenerateRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleGenerateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleGenerateRequest::getExtra() const {
return extra_;
}
std::string GetTitleGenerateRequest::getAttributes()const
{
return attributes_;
void GetTitleGenerateRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
{
attributes_ = attributes;
setBodyParameter("Attributes", attributes);
std::string GetTitleGenerateRequest::getAttributes() const {
return attributes_;
}
std::string GetTitleGenerateRequest::getHotWords()const
{
return hotWords_;
void GetTitleGenerateRequest::setAttributes(const std::string &attributes) {
attributes_ = attributes;
setBodyParameter(std::string("Attributes"), attributes);
}
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
{
hotWords_ = hotWords;
setBodyParameter("HotWords", hotWords);
std::string GetTitleGenerateRequest::getHotWords() const {
return hotWords_;
}
std::string GetTitleGenerateRequest::getCategoryId()const
{
return categoryId_;
void GetTitleGenerateRequest::setHotWords(const std::string &hotWords) {
hotWords_ = hotWords;
setBodyParameter(std::string("HotWords"), hotWords);
}
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
std::string GetTitleGenerateRequest::getCategoryId() const {
return categoryId_;
}
void GetTitleGenerateRequest::setCategoryId(const std::string &categoryId) {
categoryId_ = categoryId;
setBodyParameter(std::string("CategoryId"), categoryId);
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
{}
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
{
return catLevelThreeId_;
*/
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence") {
setMethod(HttpRequest::Method::Post);
}
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
{
catLevelThreeId_ = catLevelThreeId;
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest() {}
long GetTitleIntelligenceRequest::getCatLevelThreeId() const {
return catLevelThreeId_;
}
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
{
return catLevelTwoId_;
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId) {
catLevelThreeId_ = catLevelThreeId;
setBodyParameter(std::string("CatLevelThreeId"), std::to_string(catLevelThreeId));
}
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
{
catLevelTwoId_ = catLevelTwoId;
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
long GetTitleIntelligenceRequest::getCatLevelTwoId() const {
return catLevelTwoId_;
}
std::string GetTitleIntelligenceRequest::getKeywords()const
{
return keywords_;
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId) {
catLevelTwoId_ = catLevelTwoId;
setBodyParameter(std::string("CatLevelTwoId"), std::to_string(catLevelTwoId));
}
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
{
keywords_ = keywords;
setBodyParameter("Keywords", keywords);
std::string GetTitleIntelligenceRequest::getKeywords() const {
return keywords_;
}
std::string GetTitleIntelligenceRequest::getPlatform()const
{
return platform_;
void GetTitleIntelligenceRequest::setKeywords(const std::string &keywords) {
keywords_ = keywords;
setBodyParameter(std::string("Keywords"), keywords);
}
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
std::string GetTitleIntelligenceRequest::getPlatform() const {
return platform_;
}
std::string GetTitleIntelligenceRequest::getExtra()const
{
return extra_;
void GetTitleIntelligenceRequest::setPlatform(const std::string &platform) {
platform_ = platform;
setBodyParameter(std::string("Platform"), platform);
}
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
std::string GetTitleIntelligenceRequest::getExtra() const {
return extra_;
}
void GetTitleIntelligenceRequest::setExtra(const std::string &extra) {
extra_ = extra;
setBodyParameter(std::string("Extra"), extra);
}

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTranslateReportRequest.h>
using AlibabaCloud::Alimt::Model::GetTranslateReportRequest;
GetTranslateReportRequest::GetTranslateReportRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetTranslateReport") {
setMethod(HttpRequest::Method::Post);
}
GetTranslateReportRequest::~GetTranslateReportRequest() {}
std::string GetTranslateReportRequest::getEndTime() const {
return endTime_;
}
void GetTranslateReportRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string GetTranslateReportRequest::getBeginTime() const {
return beginTime_;
}
void GetTranslateReportRequest::setBeginTime(const std::string &beginTime) {
beginTime_ = beginTime;
setParameter(std::string("BeginTime"), beginTime);
}
std::string GetTranslateReportRequest::getApiName() const {
return apiName_;
}
void GetTranslateReportRequest::setApiName(const std::string &apiName) {
apiName_ = apiName;
setParameter(std::string("ApiName"), apiName);
}
std::string GetTranslateReportRequest::getGroup() const {
return group_;
}
void GetTranslateReportRequest::setGroup(const std::string &group) {
group_ = group;
setParameter(std::string("Group"), group);
}

View File

@@ -0,0 +1,65 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTranslateReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetTranslateReportResult::GetTranslateReportResult() :
ServiceResult()
{}
GetTranslateReportResult::GetTranslateReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTranslateReportResult::~GetTranslateReportResult()
{}
void GetTranslateReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetTranslateReportResult::getMessage()const
{
return message_;
}
std::string GetTranslateReportResult::getData()const
{
return data_;
}
int GetTranslateReportResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetUserRequest.h>
using AlibabaCloud::Alimt::Model::GetUserRequest;
GetUserRequest::GetUserRequest()
: RpcServiceRequest("alimt", "2018-10-12", "GetUser") {
setMethod(HttpRequest::Method::Post);
}
GetUserRequest::~GetUserRequest() {}

View File

@@ -14,38 +14,52 @@
* limitations under the License.
*/
#include <alibabacloud/emr/model/DiffFlowEntitySnapshotResult.h>
#include <alibabacloud/alimt/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emr;
using namespace AlibabaCloud::Emr::Model;
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
DiffFlowEntitySnapshotResult::DiffFlowEntitySnapshotResult() :
GetUserResult::GetUserResult() :
ServiceResult()
{}
DiffFlowEntitySnapshotResult::DiffFlowEntitySnapshotResult(const std::string &payload) :
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DiffFlowEntitySnapshotResult::~DiffFlowEntitySnapshotResult()
GetUserResult::~GetUserResult()
{}
void DiffFlowEntitySnapshotResult::parse(const std::string &payload)
void GetUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string DiffFlowEntitySnapshotResult::getData()const
std::string GetUserResult::getMessage()const
{
return message_;
}
std::string GetUserResult::getData()const
{
return data_;
}
int GetUserResult::getCode()const
{
return code_;
}

View File

@@ -1,51 +1,45 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService")
{
setMethod(HttpRequest::Method::Post);
}
OpenAlimtServiceRequest::~OpenAlimtServiceRequest()
{}
long OpenAlimtServiceRequest::getOwnerId()const
{
return ownerId_;
*/
#include <alibabacloud/alimt/model/OpenAlimtServiceRequest.h>
using AlibabaCloud::Alimt::Model::OpenAlimtServiceRequest;
OpenAlimtServiceRequest::OpenAlimtServiceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "OpenAlimtService") {
setMethod(HttpRequest::Method::Post);
}
void OpenAlimtServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
OpenAlimtServiceRequest::~OpenAlimtServiceRequest() {}
long OpenAlimtServiceRequest::getOwnerId() const {
return ownerId_;
}
std::string OpenAlimtServiceRequest::getType()const
{
return type_;
void OpenAlimtServiceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void OpenAlimtServiceRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
std::string OpenAlimtServiceRequest::getType() const {
return type_;
}
void OpenAlimtServiceRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}

View File

@@ -1,84 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateCertificateRequest::~TranslateCertificateRequest()
{}
std::string TranslateCertificateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
TranslateCertificateRequest::TranslateCertificateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateCertificateRequest::~TranslateCertificateRequest() {}
std::string TranslateCertificateRequest::getExt() const {
return ext_;
}
std::string TranslateCertificateRequest::getCertificateType()const
{
return certificateType_;
void TranslateCertificateRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
{
certificateType_ = certificateType;
setBodyParameter("CertificateType", certificateType);
std::string TranslateCertificateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateCertificateRequest::getResultType()const
{
return resultType_;
void TranslateCertificateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateCertificateRequest::setResultType(const std::string& resultType)
{
resultType_ = resultType;
setBodyParameter("ResultType", resultType);
std::string TranslateCertificateRequest::getCertificateType() const {
return certificateType_;
}
std::string TranslateCertificateRequest::getImageUrl()const
{
return imageUrl_;
void TranslateCertificateRequest::setCertificateType(const std::string &certificateType) {
certificateType_ = certificateType;
setBodyParameter(std::string("CertificateType"), certificateType);
}
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
{
imageUrl_ = imageUrl;
setBodyParameter("ImageUrl", imageUrl);
std::string TranslateCertificateRequest::getResultType() const {
return resultType_;
}
std::string TranslateCertificateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateCertificateRequest::setResultType(const std::string &resultType) {
resultType_ = resultType;
setBodyParameter(std::string("ResultType"), resultType);
}
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateCertificateRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateCertificateRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateCertificateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateCertificateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -44,14 +44,14 @@ void TranslateCertificateResult::parse(const std::string &payload)
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
{
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
{
setMethod(HttpRequest::Method::Post);
}
TranslateECommerceRequest::~TranslateECommerceRequest()
{}
std::string TranslateECommerceRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateECommerceRequest.h>
using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
TranslateECommerceRequest::TranslateECommerceRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce") {
setMethod(HttpRequest::Method::Post);
}
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateECommerceRequest::~TranslateECommerceRequest() {}
std::string TranslateECommerceRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateECommerceRequest::getSourceText()const
{
return sourceText_;
void TranslateECommerceRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateECommerceRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateECommerceRequest::getFormatType()const
{
return formatType_;
void TranslateECommerceRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateECommerceRequest::getFormatType() const {
return formatType_;
}
std::string TranslateECommerceRequest::getScene()const
{
return scene_;
void TranslateECommerceRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateECommerceRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateECommerceRequest::getScene() const {
return scene_;
}
std::string TranslateECommerceRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateECommerceRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateECommerceRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateECommerceRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest() :
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
{
setMethod(HttpRequest::Method::Post);
}
TranslateGeneralRequest::~TranslateGeneralRequest()
{}
std::string TranslateGeneralRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateGeneralRequest.h>
using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
TranslateGeneralRequest::TranslateGeneralRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral") {
setMethod(HttpRequest::Method::Post);
}
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateGeneralRequest::~TranslateGeneralRequest() {}
std::string TranslateGeneralRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateGeneralRequest::getSourceText()const
{
return sourceText_;
void TranslateGeneralRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateGeneralRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateGeneralRequest::getFormatType()const
{
return formatType_;
void TranslateGeneralRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateGeneralRequest::getFormatType() const {
return formatType_;
}
std::string TranslateGeneralRequest::getScene()const
{
return scene_;
void TranslateGeneralRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateGeneralRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateGeneralRequest::getScene() const {
return scene_;
}
std::string TranslateGeneralRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateGeneralRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateGeneralRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateGeneralRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -0,0 +1,81 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/TranslateImageRequest.h>
using AlibabaCloud::Alimt::Model::TranslateImageRequest;
TranslateImageRequest::TranslateImageRequest()
: RpcServiceRequest("alimt", "2018-10-12", "TranslateImage") {
setMethod(HttpRequest::Method::Post);
}
TranslateImageRequest::~TranslateImageRequest() {}
std::string TranslateImageRequest::getExt() const {
return ext_;
}
void TranslateImageRequest::setExt(const std::string &ext) {
ext_ = ext;
setBodyParameter(std::string("Ext"), ext);
}
std::string TranslateImageRequest::getSourceLanguage() const {
return sourceLanguage_;
}
void TranslateImageRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
std::string TranslateImageRequest::getField() const {
return field_;
}
void TranslateImageRequest::setField(const std::string &field) {
field_ = field;
setBodyParameter(std::string("Field"), field);
}
std::string TranslateImageRequest::getImageUrl() const {
return imageUrl_;
}
void TranslateImageRequest::setImageUrl(const std::string &imageUrl) {
imageUrl_ = imageUrl;
setBodyParameter(std::string("ImageUrl"), imageUrl);
}
std::string TranslateImageRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateImageRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}
std::string TranslateImageRequest::getImageBase64() const {
return imageBase64_;
}
void TranslateImageRequest::setImageBase64(const std::string &imageBase64) {
imageBase64_ = imageBase64;
setBodyParameter(std::string("ImageBase64"), imageBase64);
}

View File

@@ -0,0 +1,70 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/TranslateImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
TranslateImageResult::TranslateImageResult() :
ServiceResult()
{}
TranslateImageResult::TranslateImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TranslateImageResult::~TranslateImageResult()
{}
void TranslateImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["InPaintingUrl"].isNull())
data_.inPaintingUrl = dataNode["InPaintingUrl"].asString();
if(!dataNode["TemplateJson"].isNull())
data_.templateJson = dataNode["TemplateJson"].asString();
if(!dataNode["FinalImageUrl"].isNull())
data_.finalImageUrl = dataNode["FinalImageUrl"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string TranslateImageResult::getMessage()const
{
return message_;
}
TranslateImageResult::Data TranslateImageResult::getData()const
{
return data_;
}
int TranslateImageResult::getCode()const
{
return code_;
}

View File

@@ -1,84 +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.
*/
#include <alibabacloud/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "Translate")
{
setMethod(HttpRequest::Method::Post);
}
TranslateRequest::~TranslateRequest()
{}
std::string TranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
*/
#include <alibabacloud/alimt/model/TranslateRequest.h>
using AlibabaCloud::Alimt::Model::TranslateRequest;
TranslateRequest::TranslateRequest()
: RpcServiceRequest("alimt", "2018-10-12", "Translate") {
setMethod(HttpRequest::Method::Post);
}
void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
TranslateRequest::~TranslateRequest() {}
std::string TranslateRequest::getSourceLanguage() const {
return sourceLanguage_;
}
std::string TranslateRequest::getSourceText()const
{
return sourceText_;
void TranslateRequest::setSourceLanguage(const std::string &sourceLanguage) {
sourceLanguage_ = sourceLanguage;
setBodyParameter(std::string("SourceLanguage"), sourceLanguage);
}
void TranslateRequest::setSourceText(const std::string& sourceText)
{
sourceText_ = sourceText;
setBodyParameter("SourceText", sourceText);
std::string TranslateRequest::getSourceText() const {
return sourceText_;
}
std::string TranslateRequest::getFormatType()const
{
return formatType_;
void TranslateRequest::setSourceText(const std::string &sourceText) {
sourceText_ = sourceText;
setBodyParameter(std::string("SourceText"), sourceText);
}
void TranslateRequest::setFormatType(const std::string& formatType)
{
formatType_ = formatType;
setBodyParameter("FormatType", formatType);
std::string TranslateRequest::getFormatType() const {
return formatType_;
}
std::string TranslateRequest::getScene()const
{
return scene_;
void TranslateRequest::setFormatType(const std::string &formatType) {
formatType_ = formatType;
setBodyParameter(std::string("FormatType"), formatType);
}
void TranslateRequest::setScene(const std::string& scene)
{
scene_ = scene;
setBodyParameter("Scene", scene);
std::string TranslateRequest::getScene() const {
return scene_;
}
std::string TranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
void TranslateRequest::setScene(const std::string &scene) {
scene_ = scene;
setBodyParameter(std::string("Scene"), scene);
}
void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
std::string TranslateRequest::getTargetLanguage() const {
return targetLanguage_;
}
void TranslateRequest::setTargetLanguage(const std::string &targetLanguage) {
targetLanguage_ = targetLanguage;
setBodyParameter(std::string("TargetLanguage"), targetLanguage);
}

View File

@@ -77,6 +77,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DeleteUserUsageDataExportTaskResult.h
include/alibabacloud/cdn/model/DescribeActiveVersionOfConfigGroupRequest.h
include/alibabacloud/cdn/model/DescribeActiveVersionOfConfigGroupResult.h
include/alibabacloud/cdn/model/DescribeBlockedRegionsRequest.h
include/alibabacloud/cdn/model/DescribeBlockedRegionsResult.h
include/alibabacloud/cdn/model/DescribeCdnCertificateDetailRequest.h
include/alibabacloud/cdn/model/DescribeCdnCertificateDetailResult.h
include/alibabacloud/cdn/model/DescribeCdnCertificateListRequest.h
@@ -105,6 +107,10 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeCdnReportResult.h
include/alibabacloud/cdn/model/DescribeCdnReportListRequest.h
include/alibabacloud/cdn/model/DescribeCdnReportListResult.h
include/alibabacloud/cdn/model/DescribeCdnSMCertificateDetailRequest.h
include/alibabacloud/cdn/model/DescribeCdnSMCertificateDetailResult.h
include/alibabacloud/cdn/model/DescribeCdnSMCertificateListRequest.h
include/alibabacloud/cdn/model/DescribeCdnSMCertificateListResult.h
include/alibabacloud/cdn/model/DescribeCdnServiceRequest.h
include/alibabacloud/cdn/model/DescribeCdnServiceResult.h
include/alibabacloud/cdn/model/DescribeCdnSubListRequest.h
@@ -129,6 +135,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeCdnWafDomainResult.h
include/alibabacloud/cdn/model/DescribeCertificateInfoByIDRequest.h
include/alibabacloud/cdn/model/DescribeCertificateInfoByIDResult.h
include/alibabacloud/cdn/model/DescribeConfigGroupDetailRequest.h
include/alibabacloud/cdn/model/DescribeConfigGroupDetailResult.h
include/alibabacloud/cdn/model/DescribeConfigOfVersionRequest.h
include/alibabacloud/cdn/model/DescribeConfigOfVersionResult.h
include/alibabacloud/cdn/model/DescribeCustomLogConfigRequest.h
@@ -337,6 +345,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/SetCcConfigResult.h
include/alibabacloud/cdn/model/SetCdnDomainCSRCertificateRequest.h
include/alibabacloud/cdn/model/SetCdnDomainCSRCertificateResult.h
include/alibabacloud/cdn/model/SetCdnDomainSMCertificateRequest.h
include/alibabacloud/cdn/model/SetCdnDomainSMCertificateResult.h
include/alibabacloud/cdn/model/SetCdnDomainStagingConfigRequest.h
include/alibabacloud/cdn/model/SetCdnDomainStagingConfigResult.h
include/alibabacloud/cdn/model/SetConfigOfVersionRequest.h
@@ -456,6 +466,8 @@ set(cdn_src
src/model/DeleteUserUsageDataExportTaskResult.cc
src/model/DescribeActiveVersionOfConfigGroupRequest.cc
src/model/DescribeActiveVersionOfConfigGroupResult.cc
src/model/DescribeBlockedRegionsRequest.cc
src/model/DescribeBlockedRegionsResult.cc
src/model/DescribeCdnCertificateDetailRequest.cc
src/model/DescribeCdnCertificateDetailResult.cc
src/model/DescribeCdnCertificateListRequest.cc
@@ -484,6 +496,10 @@ set(cdn_src
src/model/DescribeCdnReportResult.cc
src/model/DescribeCdnReportListRequest.cc
src/model/DescribeCdnReportListResult.cc
src/model/DescribeCdnSMCertificateDetailRequest.cc
src/model/DescribeCdnSMCertificateDetailResult.cc
src/model/DescribeCdnSMCertificateListRequest.cc
src/model/DescribeCdnSMCertificateListResult.cc
src/model/DescribeCdnServiceRequest.cc
src/model/DescribeCdnServiceResult.cc
src/model/DescribeCdnSubListRequest.cc
@@ -508,6 +524,8 @@ set(cdn_src
src/model/DescribeCdnWafDomainResult.cc
src/model/DescribeCertificateInfoByIDRequest.cc
src/model/DescribeCertificateInfoByIDResult.cc
src/model/DescribeConfigGroupDetailRequest.cc
src/model/DescribeConfigGroupDetailResult.cc
src/model/DescribeConfigOfVersionRequest.cc
src/model/DescribeConfigOfVersionResult.cc
src/model/DescribeCustomLogConfigRequest.cc
@@ -716,6 +734,8 @@ set(cdn_src
src/model/SetCcConfigResult.cc
src/model/SetCdnDomainCSRCertificateRequest.cc
src/model/SetCdnDomainCSRCertificateResult.cc
src/model/SetCdnDomainSMCertificateRequest.cc
src/model/SetCdnDomainSMCertificateResult.cc
src/model/SetCdnDomainStagingConfigRequest.cc
src/model/SetCdnDomainStagingConfigResult.cc
src/model/SetConfigOfVersionRequest.cc

View File

@@ -78,6 +78,8 @@
#include "model/DeleteUserUsageDataExportTaskResult.h"
#include "model/DescribeActiveVersionOfConfigGroupRequest.h"
#include "model/DescribeActiveVersionOfConfigGroupResult.h"
#include "model/DescribeBlockedRegionsRequest.h"
#include "model/DescribeBlockedRegionsResult.h"
#include "model/DescribeCdnCertificateDetailRequest.h"
#include "model/DescribeCdnCertificateDetailResult.h"
#include "model/DescribeCdnCertificateListRequest.h"
@@ -106,6 +108,10 @@
#include "model/DescribeCdnReportResult.h"
#include "model/DescribeCdnReportListRequest.h"
#include "model/DescribeCdnReportListResult.h"
#include "model/DescribeCdnSMCertificateDetailRequest.h"
#include "model/DescribeCdnSMCertificateDetailResult.h"
#include "model/DescribeCdnSMCertificateListRequest.h"
#include "model/DescribeCdnSMCertificateListResult.h"
#include "model/DescribeCdnServiceRequest.h"
#include "model/DescribeCdnServiceResult.h"
#include "model/DescribeCdnSubListRequest.h"
@@ -130,6 +136,8 @@
#include "model/DescribeCdnWafDomainResult.h"
#include "model/DescribeCertificateInfoByIDRequest.h"
#include "model/DescribeCertificateInfoByIDResult.h"
#include "model/DescribeConfigGroupDetailRequest.h"
#include "model/DescribeConfigGroupDetailResult.h"
#include "model/DescribeConfigOfVersionRequest.h"
#include "model/DescribeConfigOfVersionResult.h"
#include "model/DescribeCustomLogConfigRequest.h"
@@ -338,6 +346,8 @@
#include "model/SetCcConfigResult.h"
#include "model/SetCdnDomainCSRCertificateRequest.h"
#include "model/SetCdnDomainCSRCertificateResult.h"
#include "model/SetCdnDomainSMCertificateRequest.h"
#include "model/SetCdnDomainSMCertificateResult.h"
#include "model/SetCdnDomainStagingConfigRequest.h"
#include "model/SetCdnDomainStagingConfigResult.h"
#include "model/SetConfigOfVersionRequest.h"
@@ -491,6 +501,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeActiveVersionOfConfigGroupResult> DescribeActiveVersionOfConfigGroupOutcome;
typedef std::future<DescribeActiveVersionOfConfigGroupOutcome> DescribeActiveVersionOfConfigGroupOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeActiveVersionOfConfigGroupRequest&, const DescribeActiveVersionOfConfigGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActiveVersionOfConfigGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeBlockedRegionsResult> DescribeBlockedRegionsOutcome;
typedef std::future<DescribeBlockedRegionsOutcome> DescribeBlockedRegionsOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeBlockedRegionsRequest&, const DescribeBlockedRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBlockedRegionsAsyncHandler;
typedef Outcome<Error, Model::DescribeCdnCertificateDetailResult> DescribeCdnCertificateDetailOutcome;
typedef std::future<DescribeCdnCertificateDetailOutcome> DescribeCdnCertificateDetailOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCdnCertificateDetailRequest&, const DescribeCdnCertificateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnCertificateDetailAsyncHandler;
@@ -533,6 +546,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeCdnReportListResult> DescribeCdnReportListOutcome;
typedef std::future<DescribeCdnReportListOutcome> DescribeCdnReportListOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCdnReportListRequest&, const DescribeCdnReportListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnReportListAsyncHandler;
typedef Outcome<Error, Model::DescribeCdnSMCertificateDetailResult> DescribeCdnSMCertificateDetailOutcome;
typedef std::future<DescribeCdnSMCertificateDetailOutcome> DescribeCdnSMCertificateDetailOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCdnSMCertificateDetailRequest&, const DescribeCdnSMCertificateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnSMCertificateDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeCdnSMCertificateListResult> DescribeCdnSMCertificateListOutcome;
typedef std::future<DescribeCdnSMCertificateListOutcome> DescribeCdnSMCertificateListOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCdnSMCertificateListRequest&, const DescribeCdnSMCertificateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnSMCertificateListAsyncHandler;
typedef Outcome<Error, Model::DescribeCdnServiceResult> DescribeCdnServiceOutcome;
typedef std::future<DescribeCdnServiceOutcome> DescribeCdnServiceOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCdnServiceRequest&, const DescribeCdnServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCdnServiceAsyncHandler;
@@ -569,6 +588,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeCertificateInfoByIDResult> DescribeCertificateInfoByIDOutcome;
typedef std::future<DescribeCertificateInfoByIDOutcome> DescribeCertificateInfoByIDOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeCertificateInfoByIDRequest&, const DescribeCertificateInfoByIDOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCertificateInfoByIDAsyncHandler;
typedef Outcome<Error, Model::DescribeConfigGroupDetailResult> DescribeConfigGroupDetailOutcome;
typedef std::future<DescribeConfigGroupDetailOutcome> DescribeConfigGroupDetailOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeConfigGroupDetailRequest&, const DescribeConfigGroupDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigGroupDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeConfigOfVersionResult> DescribeConfigOfVersionOutcome;
typedef std::future<DescribeConfigOfVersionOutcome> DescribeConfigOfVersionOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeConfigOfVersionRequest&, const DescribeConfigOfVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigOfVersionAsyncHandler;
@@ -881,6 +903,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetCdnDomainCSRCertificateResult> SetCdnDomainCSRCertificateOutcome;
typedef std::future<SetCdnDomainCSRCertificateOutcome> SetCdnDomainCSRCertificateOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::SetCdnDomainCSRCertificateRequest&, const SetCdnDomainCSRCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCdnDomainCSRCertificateAsyncHandler;
typedef Outcome<Error, Model::SetCdnDomainSMCertificateResult> SetCdnDomainSMCertificateOutcome;
typedef std::future<SetCdnDomainSMCertificateOutcome> SetCdnDomainSMCertificateOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::SetCdnDomainSMCertificateRequest&, const SetCdnDomainSMCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCdnDomainSMCertificateAsyncHandler;
typedef Outcome<Error, Model::SetCdnDomainStagingConfigResult> SetCdnDomainStagingConfigOutcome;
typedef std::future<SetCdnDomainStagingConfigOutcome> SetCdnDomainStagingConfigOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::SetCdnDomainStagingConfigRequest&, const SetCdnDomainStagingConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCdnDomainStagingConfigAsyncHandler;
@@ -1060,6 +1085,9 @@ namespace AlibabaCloud
DescribeActiveVersionOfConfigGroupOutcome describeActiveVersionOfConfigGroup(const Model::DescribeActiveVersionOfConfigGroupRequest &request)const;
void describeActiveVersionOfConfigGroupAsync(const Model::DescribeActiveVersionOfConfigGroupRequest& request, const DescribeActiveVersionOfConfigGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeActiveVersionOfConfigGroupOutcomeCallable describeActiveVersionOfConfigGroupCallable(const Model::DescribeActiveVersionOfConfigGroupRequest& request) const;
DescribeBlockedRegionsOutcome describeBlockedRegions(const Model::DescribeBlockedRegionsRequest &request)const;
void describeBlockedRegionsAsync(const Model::DescribeBlockedRegionsRequest& request, const DescribeBlockedRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBlockedRegionsOutcomeCallable describeBlockedRegionsCallable(const Model::DescribeBlockedRegionsRequest& request) const;
DescribeCdnCertificateDetailOutcome describeCdnCertificateDetail(const Model::DescribeCdnCertificateDetailRequest &request)const;
void describeCdnCertificateDetailAsync(const Model::DescribeCdnCertificateDetailRequest& request, const DescribeCdnCertificateDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCdnCertificateDetailOutcomeCallable describeCdnCertificateDetailCallable(const Model::DescribeCdnCertificateDetailRequest& request) const;
@@ -1102,6 +1130,12 @@ namespace AlibabaCloud
DescribeCdnReportListOutcome describeCdnReportList(const Model::DescribeCdnReportListRequest &request)const;
void describeCdnReportListAsync(const Model::DescribeCdnReportListRequest& request, const DescribeCdnReportListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCdnReportListOutcomeCallable describeCdnReportListCallable(const Model::DescribeCdnReportListRequest& request) const;
DescribeCdnSMCertificateDetailOutcome describeCdnSMCertificateDetail(const Model::DescribeCdnSMCertificateDetailRequest &request)const;
void describeCdnSMCertificateDetailAsync(const Model::DescribeCdnSMCertificateDetailRequest& request, const DescribeCdnSMCertificateDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCdnSMCertificateDetailOutcomeCallable describeCdnSMCertificateDetailCallable(const Model::DescribeCdnSMCertificateDetailRequest& request) const;
DescribeCdnSMCertificateListOutcome describeCdnSMCertificateList(const Model::DescribeCdnSMCertificateListRequest &request)const;
void describeCdnSMCertificateListAsync(const Model::DescribeCdnSMCertificateListRequest& request, const DescribeCdnSMCertificateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCdnSMCertificateListOutcomeCallable describeCdnSMCertificateListCallable(const Model::DescribeCdnSMCertificateListRequest& request) const;
DescribeCdnServiceOutcome describeCdnService(const Model::DescribeCdnServiceRequest &request)const;
void describeCdnServiceAsync(const Model::DescribeCdnServiceRequest& request, const DescribeCdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCdnServiceOutcomeCallable describeCdnServiceCallable(const Model::DescribeCdnServiceRequest& request) const;
@@ -1138,6 +1172,9 @@ namespace AlibabaCloud
DescribeCertificateInfoByIDOutcome describeCertificateInfoByID(const Model::DescribeCertificateInfoByIDRequest &request)const;
void describeCertificateInfoByIDAsync(const Model::DescribeCertificateInfoByIDRequest& request, const DescribeCertificateInfoByIDAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCertificateInfoByIDOutcomeCallable describeCertificateInfoByIDCallable(const Model::DescribeCertificateInfoByIDRequest& request) const;
DescribeConfigGroupDetailOutcome describeConfigGroupDetail(const Model::DescribeConfigGroupDetailRequest &request)const;
void describeConfigGroupDetailAsync(const Model::DescribeConfigGroupDetailRequest& request, const DescribeConfigGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeConfigGroupDetailOutcomeCallable describeConfigGroupDetailCallable(const Model::DescribeConfigGroupDetailRequest& request) const;
DescribeConfigOfVersionOutcome describeConfigOfVersion(const Model::DescribeConfigOfVersionRequest &request)const;
void describeConfigOfVersionAsync(const Model::DescribeConfigOfVersionRequest& request, const DescribeConfigOfVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeConfigOfVersionOutcomeCallable describeConfigOfVersionCallable(const Model::DescribeConfigOfVersionRequest& request) const;
@@ -1450,6 +1487,9 @@ namespace AlibabaCloud
SetCdnDomainCSRCertificateOutcome setCdnDomainCSRCertificate(const Model::SetCdnDomainCSRCertificateRequest &request)const;
void setCdnDomainCSRCertificateAsync(const Model::SetCdnDomainCSRCertificateRequest& request, const SetCdnDomainCSRCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetCdnDomainCSRCertificateOutcomeCallable setCdnDomainCSRCertificateCallable(const Model::SetCdnDomainCSRCertificateRequest& request) const;
SetCdnDomainSMCertificateOutcome setCdnDomainSMCertificate(const Model::SetCdnDomainSMCertificateRequest &request)const;
void setCdnDomainSMCertificateAsync(const Model::SetCdnDomainSMCertificateRequest& request, const SetCdnDomainSMCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetCdnDomainSMCertificateOutcomeCallable setCdnDomainSMCertificateCallable(const Model::SetCdnDomainSMCertificateRequest& request) const;
SetCdnDomainStagingConfigOutcome setCdnDomainStagingConfig(const Model::SetCdnDomainStagingConfigRequest &request)const;
void setCdnDomainStagingConfigAsync(const Model::SetCdnDomainStagingConfigRequest& request, const SetCdnDomainStagingConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetCdnDomainStagingConfigOutcomeCallable setCdnDomainStagingConfigCallable(const Model::SetCdnDomainStagingConfigRequest& request) const;

View File

@@ -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_CDN_MODEL_DESCRIBEBLOCKEDREGIONSREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEBLOCKEDREGIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeBlockedRegionsRequest : public RpcServiceRequest
{
public:
DescribeBlockedRegionsRequest();
~DescribeBlockedRegionsRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string language_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEBLOCKEDREGIONSREQUEST_H_

View File

@@ -14,44 +14,44 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_LISTJOBINSTANCEWORKERSRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_LISTJOBINSTANCEWORKERSRESULT_H_
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEBLOCKEDREGIONSRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEBLOCKEDREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Emr
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT ListJobInstanceWorkersResult : public ServiceResult
class ALIBABACLOUD_CDN_EXPORT DescribeBlockedRegionsResult : public ServiceResult
{
public:
struct JobInstanceWorkerInfo
struct InfoItem
{
std::string containerInfo;
std::string applicationId;
std::string instanceInfo;
std::string continent;
std::string countriesAndRegionsName;
std::string countriesAndRegions;
};
ListJobInstanceWorkersResult();
explicit ListJobInstanceWorkersResult(const std::string &payload);
~ListJobInstanceWorkersResult();
std::vector<JobInstanceWorkerInfo> getJobInstanceWorkers()const;
DescribeBlockedRegionsResult();
explicit DescribeBlockedRegionsResult(const std::string &payload);
~DescribeBlockedRegionsResult();
std::vector<InfoItem> getInfoList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<JobInstanceWorkerInfo> jobInstanceWorkers_;
std::vector<InfoItem> infoList_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_LISTJOBINSTANCEWORKERSRESULT_H_
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEBLOCKEDREGIONSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeCdnSMCertificateDetailRequest : public RpcServiceRequest
{
public:
DescribeCdnSMCertificateDetailRequest();
~DescribeCdnSMCertificateDetailRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getCertIdentifier()const;
void setCertIdentifier(const std::string& certIdentifier);
private:
long ownerId_;
std::string securityToken_;
std::string certIdentifier_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILREQUEST_H_

View File

@@ -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_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeCdnSMCertificateDetailResult : public ServiceResult
{
public:
DescribeCdnSMCertificateDetailResult();
explicit DescribeCdnSMCertificateDetailResult(const std::string &payload);
~DescribeCdnSMCertificateDetailResult();
std::string getCertIdentifier()const;
std::string getSignCertificate()const;
std::string getCertName()const;
std::string getEncryptCertificate()const;
protected:
void parse(const std::string &payload);
private:
std::string certIdentifier_;
std::string signCertificate_;
std::string certName_;
std::string encryptCertificate_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATEDETAILRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeCdnSMCertificateListRequest : public RpcServiceRequest
{
public:
DescribeCdnSMCertificateListRequest();
~DescribeCdnSMCertificateListRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
private:
std::string domainName_;
long ownerId_;
std::string securityToken_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeCdnSMCertificateListResult : public ServiceResult
{
public:
struct CertificateListModel
{
struct Cert
{
std::string issuer;
std::string certIdentifier;
std::string certName;
std::string common;
};
std::vector<Cert> certList;
int count;
};
DescribeCdnSMCertificateListResult();
explicit DescribeCdnSMCertificateListResult(const std::string &payload);
~DescribeCdnSMCertificateListResult();
CertificateListModel getCertificateListModel()const;
protected:
void parse(const std::string &payload);
private:
CertificateListModel certificateListModel_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECDNSMCERTIFICATELISTRESULT_H_

View File

@@ -39,10 +39,13 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long ownerId_;
std::string securityToken_;
std::string status_;
};
}

View File

@@ -0,0 +1,54 @@
/*
* 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_CDN_MODEL_DESCRIBECONFIGGROUPDETAILREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECONFIGGROUPDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeConfigGroupDetailRequest : public RpcServiceRequest
{
public:
DescribeConfigGroupDetailRequest();
~DescribeConfigGroupDetailRequest();
std::string getConfigGroupName()const;
void setConfigGroupName(const std::string& configGroupName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getConfigGroupId()const;
void setConfigGroupId(const std::string& configGroupId);
private:
std::string configGroupName_;
long ownerId_;
std::string configGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECONFIGGROUPDETAILREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CDN_MODEL_DESCRIBECONFIGGROUPDETAILRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBECONFIGGROUPDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeConfigGroupDetailResult : public ServiceResult
{
public:
DescribeConfigGroupDetailResult();
explicit DescribeConfigGroupDetailResult(const std::string &payload);
~DescribeConfigGroupDetailResult();
std::string getConfigGroupId()const;
std::string getDescription()const;
std::string getCreateTime()const;
std::string getConfigGroupName()const;
std::string getUpdateTime()const;
std::string getBizName()const;
protected:
void parse(const std::string &payload);
private:
std::string configGroupId_;
std::string description_;
std::string createTime_;
std::string configGroupName_;
std::string updateTime_;
std::string bizName_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBECONFIGGROUPDETAILRESULT_H_

View File

@@ -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_CDN_MODEL_SETCDNDOMAINSMCERTIFICATEREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_SETCDNDOMAINSMCERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT SetCdnDomainSMCertificateRequest : public RpcServiceRequest
{
public:
SetCdnDomainSMCertificateRequest();
~SetCdnDomainSMCertificateRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getCertIdentifier()const;
void setCertIdentifier(const std::string& certIdentifier);
private:
std::string domainName_;
long ownerId_;
std::string securityToken_;
std::string certIdentifier_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_SETCDNDOMAINSMCERTIFICATEREQUEST_H_

View File

@@ -14,38 +14,36 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_RESTOREFLOWENTITYSNAPSHOTRESULT_H_
#define ALIBABACLOUD_EMR_MODEL_RESTOREFLOWENTITYSNAPSHOTRESULT_H_
#ifndef ALIBABACLOUD_CDN_MODEL_SETCDNDOMAINSMCERTIFICATERESULT_H_
#define ALIBABACLOUD_CDN_MODEL_SETCDNDOMAINSMCERTIFICATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Emr
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT RestoreFlowEntitySnapshotResult : public ServiceResult
class ALIBABACLOUD_CDN_EXPORT SetCdnDomainSMCertificateResult : public ServiceResult
{
public:
RestoreFlowEntitySnapshotResult();
explicit RestoreFlowEntitySnapshotResult(const std::string &payload);
~RestoreFlowEntitySnapshotResult();
bool getData()const;
SetCdnDomainSMCertificateResult();
explicit SetCdnDomainSMCertificateResult(const std::string &payload);
~SetCdnDomainSMCertificateResult();
protected:
void parse(const std::string &payload);
private:
bool data_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_RESTOREFLOWENTITYSNAPSHOTRESULT_H_
#endif // !ALIBABACLOUD_CDN_MODEL_SETCDNDOMAINSMCERTIFICATERESULT_H_

View File

@@ -1059,6 +1059,42 @@ CdnClient::DescribeActiveVersionOfConfigGroupOutcomeCallable CdnClient::describe
return task->get_future();
}
CdnClient::DescribeBlockedRegionsOutcome CdnClient::describeBlockedRegions(const DescribeBlockedRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBlockedRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBlockedRegionsOutcome(DescribeBlockedRegionsResult(outcome.result()));
else
return DescribeBlockedRegionsOutcome(outcome.error());
}
void CdnClient::describeBlockedRegionsAsync(const DescribeBlockedRegionsRequest& request, const DescribeBlockedRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBlockedRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeBlockedRegionsOutcomeCallable CdnClient::describeBlockedRegionsCallable(const DescribeBlockedRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBlockedRegionsOutcome()>>(
[this, request]()
{
return this->describeBlockedRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnCertificateDetailOutcome CdnClient::describeCdnCertificateDetail(const DescribeCdnCertificateDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1563,6 +1599,78 @@ CdnClient::DescribeCdnReportListOutcomeCallable CdnClient::describeCdnReportList
return task->get_future();
}
CdnClient::DescribeCdnSMCertificateDetailOutcome CdnClient::describeCdnSMCertificateDetail(const DescribeCdnSMCertificateDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnSMCertificateDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnSMCertificateDetailOutcome(DescribeCdnSMCertificateDetailResult(outcome.result()));
else
return DescribeCdnSMCertificateDetailOutcome(outcome.error());
}
void CdnClient::describeCdnSMCertificateDetailAsync(const DescribeCdnSMCertificateDetailRequest& request, const DescribeCdnSMCertificateDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnSMCertificateDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnSMCertificateDetailOutcomeCallable CdnClient::describeCdnSMCertificateDetailCallable(const DescribeCdnSMCertificateDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnSMCertificateDetailOutcome()>>(
[this, request]()
{
return this->describeCdnSMCertificateDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnSMCertificateListOutcome CdnClient::describeCdnSMCertificateList(const DescribeCdnSMCertificateListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnSMCertificateListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnSMCertificateListOutcome(DescribeCdnSMCertificateListResult(outcome.result()));
else
return DescribeCdnSMCertificateListOutcome(outcome.error());
}
void CdnClient::describeCdnSMCertificateListAsync(const DescribeCdnSMCertificateListRequest& request, const DescribeCdnSMCertificateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnSMCertificateList(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnSMCertificateListOutcomeCallable CdnClient::describeCdnSMCertificateListCallable(const DescribeCdnSMCertificateListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnSMCertificateListOutcome()>>(
[this, request]()
{
return this->describeCdnSMCertificateList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnServiceOutcome CdnClient::describeCdnService(const DescribeCdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1995,6 +2103,42 @@ CdnClient::DescribeCertificateInfoByIDOutcomeCallable CdnClient::describeCertifi
return task->get_future();
}
CdnClient::DescribeConfigGroupDetailOutcome CdnClient::describeConfigGroupDetail(const DescribeConfigGroupDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeConfigGroupDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeConfigGroupDetailOutcome(DescribeConfigGroupDetailResult(outcome.result()));
else
return DescribeConfigGroupDetailOutcome(outcome.error());
}
void CdnClient::describeConfigGroupDetailAsync(const DescribeConfigGroupDetailRequest& request, const DescribeConfigGroupDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeConfigGroupDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeConfigGroupDetailOutcomeCallable CdnClient::describeConfigGroupDetailCallable(const DescribeConfigGroupDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeConfigGroupDetailOutcome()>>(
[this, request]()
{
return this->describeConfigGroupDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeConfigOfVersionOutcome CdnClient::describeConfigOfVersion(const DescribeConfigOfVersionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5739,6 +5883,42 @@ CdnClient::SetCdnDomainCSRCertificateOutcomeCallable CdnClient::setCdnDomainCSRC
return task->get_future();
}
CdnClient::SetCdnDomainSMCertificateOutcome CdnClient::setCdnDomainSMCertificate(const SetCdnDomainSMCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetCdnDomainSMCertificateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetCdnDomainSMCertificateOutcome(SetCdnDomainSMCertificateResult(outcome.result()));
else
return SetCdnDomainSMCertificateOutcome(outcome.error());
}
void CdnClient::setCdnDomainSMCertificateAsync(const SetCdnDomainSMCertificateRequest& request, const SetCdnDomainSMCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setCdnDomainSMCertificate(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::SetCdnDomainSMCertificateOutcomeCallable CdnClient::setCdnDomainSMCertificateCallable(const SetCdnDomainSMCertificateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetCdnDomainSMCertificateOutcome()>>(
[this, request]()
{
return this->setCdnDomainSMCertificate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::SetCdnDomainStagingConfigOutcome CdnClient::setCdnDomainStagingConfig(const SetCdnDomainStagingConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -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.
*/
#include <alibabacloud/cdn/model/DescribeBlockedRegionsRequest.h>
using AlibabaCloud::Cdn::Model::DescribeBlockedRegionsRequest;
DescribeBlockedRegionsRequest::DescribeBlockedRegionsRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeBlockedRegions")
{
setMethod(HttpRequest::Method::Get);
}
DescribeBlockedRegionsRequest::~DescribeBlockedRegionsRequest()
{}
std::string DescribeBlockedRegionsRequest::getLanguage()const
{
return language_;
}
void DescribeBlockedRegionsRequest::setLanguage(const std::string& language)
{
language_ = language;
setParameter("Language", language);
}
long DescribeBlockedRegionsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeBlockedRegionsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,61 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/DescribeBlockedRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeBlockedRegionsResult::DescribeBlockedRegionsResult() :
ServiceResult()
{}
DescribeBlockedRegionsResult::DescribeBlockedRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBlockedRegionsResult::~DescribeBlockedRegionsResult()
{}
void DescribeBlockedRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInfoListNode = value["InfoList"]["InfoItem"];
for (auto valueInfoListInfoItem : allInfoListNode)
{
InfoItem infoListObject;
if(!valueInfoListInfoItem["CountriesAndRegions"].isNull())
infoListObject.countriesAndRegions = valueInfoListInfoItem["CountriesAndRegions"].asString();
if(!valueInfoListInfoItem["CountriesAndRegionsName"].isNull())
infoListObject.countriesAndRegionsName = valueInfoListInfoItem["CountriesAndRegionsName"].asString();
if(!valueInfoListInfoItem["Continent"].isNull())
infoListObject.continent = valueInfoListInfoItem["Continent"].asString();
infoList_.push_back(infoListObject);
}
}
std::vector<DescribeBlockedRegionsResult::InfoItem> DescribeBlockedRegionsResult::getInfoList()const
{
return infoList_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/DescribeCdnSMCertificateDetailRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnSMCertificateDetailRequest;
DescribeCdnSMCertificateDetailRequest::DescribeCdnSMCertificateDetailRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnSMCertificateDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnSMCertificateDetailRequest::~DescribeCdnSMCertificateDetailRequest()
{}
long DescribeCdnSMCertificateDetailRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnSMCertificateDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnSMCertificateDetailRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnSMCertificateDetailRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnSMCertificateDetailRequest::getCertIdentifier()const
{
return certIdentifier_;
}
void DescribeCdnSMCertificateDetailRequest::setCertIdentifier(const std::string& certIdentifier)
{
certIdentifier_ = certIdentifier;
setParameter("CertIdentifier", certIdentifier);
}

View File

@@ -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.
*/
#include <alibabacloud/cdn/model/DescribeCdnSMCertificateDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnSMCertificateDetailResult::DescribeCdnSMCertificateDetailResult() :
ServiceResult()
{}
DescribeCdnSMCertificateDetailResult::DescribeCdnSMCertificateDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnSMCertificateDetailResult::~DescribeCdnSMCertificateDetailResult()
{}
void DescribeCdnSMCertificateDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SignCertificate"].isNull())
signCertificate_ = value["SignCertificate"].asString();
if(!value["EncryptCertificate"].isNull())
encryptCertificate_ = value["EncryptCertificate"].asString();
if(!value["CertIdentifier"].isNull())
certIdentifier_ = value["CertIdentifier"].asString();
if(!value["CertName"].isNull())
certName_ = value["CertName"].asString();
}
std::string DescribeCdnSMCertificateDetailResult::getCertIdentifier()const
{
return certIdentifier_;
}
std::string DescribeCdnSMCertificateDetailResult::getSignCertificate()const
{
return signCertificate_;
}
std::string DescribeCdnSMCertificateDetailResult::getCertName()const
{
return certName_;
}
std::string DescribeCdnSMCertificateDetailResult::getEncryptCertificate()const
{
return encryptCertificate_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/DescribeCdnSMCertificateListRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnSMCertificateListRequest;
DescribeCdnSMCertificateListRequest::DescribeCdnSMCertificateListRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnSMCertificateList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnSMCertificateListRequest::~DescribeCdnSMCertificateListRequest()
{}
std::string DescribeCdnSMCertificateListRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnSMCertificateListRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeCdnSMCertificateListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnSMCertificateListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnSMCertificateListRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeCdnSMCertificateListRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -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.
*/
#include <alibabacloud/cdn/model/DescribeCdnSMCertificateListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnSMCertificateListResult::DescribeCdnSMCertificateListResult() :
ServiceResult()
{}
DescribeCdnSMCertificateListResult::DescribeCdnSMCertificateListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnSMCertificateListResult::~DescribeCdnSMCertificateListResult()
{}
void DescribeCdnSMCertificateListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto certificateListModelNode = value["CertificateListModel"];
if(!certificateListModelNode["Count"].isNull())
certificateListModel_.count = std::stoi(certificateListModelNode["Count"].asString());
auto allCertListNode = certificateListModelNode["CertList"]["Cert"];
for (auto certificateListModelNodeCertListCert : allCertListNode)
{
CertificateListModel::Cert certObject;
if(!certificateListModelNodeCertListCert["CertName"].isNull())
certObject.certName = certificateListModelNodeCertListCert["CertName"].asString();
if(!certificateListModelNodeCertListCert["CertIdentifier"].isNull())
certObject.certIdentifier = certificateListModelNodeCertListCert["CertIdentifier"].asString();
if(!certificateListModelNodeCertListCert["Common"].isNull())
certObject.common = certificateListModelNodeCertListCert["Common"].asString();
if(!certificateListModelNodeCertListCert["Issuer"].isNull())
certObject.issuer = certificateListModelNodeCertListCert["Issuer"].asString();
certificateListModel_.certList.push_back(certObject);
}
}
DescribeCdnSMCertificateListResult::CertificateListModel DescribeCdnSMCertificateListResult::getCertificateListModel()const
{
return certificateListModel_;
}

View File

@@ -49,3 +49,14 @@ void DescribeCdnUserResourcePackageRequest::setSecurityToken(const std::string&
setParameter("SecurityToken", securityToken);
}
std::string DescribeCdnUserResourcePackageRequest::getStatus()const
{
return status_;
}
void DescribeCdnUserResourcePackageRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/DescribeConfigGroupDetailRequest.h>
using AlibabaCloud::Cdn::Model::DescribeConfigGroupDetailRequest;
DescribeConfigGroupDetailRequest::DescribeConfigGroupDetailRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeConfigGroupDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeConfigGroupDetailRequest::~DescribeConfigGroupDetailRequest()
{}
std::string DescribeConfigGroupDetailRequest::getConfigGroupName()const
{
return configGroupName_;
}
void DescribeConfigGroupDetailRequest::setConfigGroupName(const std::string& configGroupName)
{
configGroupName_ = configGroupName;
setParameter("ConfigGroupName", configGroupName);
}
long DescribeConfigGroupDetailRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeConfigGroupDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeConfigGroupDetailRequest::getConfigGroupId()const
{
return configGroupId_;
}
void DescribeConfigGroupDetailRequest::setConfigGroupId(const std::string& configGroupId)
{
configGroupId_ = configGroupId;
setParameter("ConfigGroupId", configGroupId);
}

View File

@@ -0,0 +1,86 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/DescribeConfigGroupDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeConfigGroupDetailResult::DescribeConfigGroupDetailResult() :
ServiceResult()
{}
DescribeConfigGroupDetailResult::DescribeConfigGroupDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeConfigGroupDetailResult::~DescribeConfigGroupDetailResult()
{}
void DescribeConfigGroupDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ConfigGroupId"].isNull())
configGroupId_ = value["ConfigGroupId"].asString();
if(!value["ConfigGroupName"].isNull())
configGroupName_ = value["ConfigGroupName"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["BizName"].isNull())
bizName_ = value["BizName"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["UpdateTime"].isNull())
updateTime_ = value["UpdateTime"].asString();
}
std::string DescribeConfigGroupDetailResult::getConfigGroupId()const
{
return configGroupId_;
}
std::string DescribeConfigGroupDetailResult::getDescription()const
{
return description_;
}
std::string DescribeConfigGroupDetailResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeConfigGroupDetailResult::getConfigGroupName()const
{
return configGroupName_;
}
std::string DescribeConfigGroupDetailResult::getUpdateTime()const
{
return updateTime_;
}
std::string DescribeConfigGroupDetailResult::getBizName()const
{
return bizName_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/SetCdnDomainSMCertificateRequest.h>
using AlibabaCloud::Cdn::Model::SetCdnDomainSMCertificateRequest;
SetCdnDomainSMCertificateRequest::SetCdnDomainSMCertificateRequest() :
RpcServiceRequest("cdn", "2018-05-10", "SetCdnDomainSMCertificate")
{
setMethod(HttpRequest::Method::Post);
}
SetCdnDomainSMCertificateRequest::~SetCdnDomainSMCertificateRequest()
{}
std::string SetCdnDomainSMCertificateRequest::getDomainName()const
{
return domainName_;
}
void SetCdnDomainSMCertificateRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long SetCdnDomainSMCertificateRequest::getOwnerId()const
{
return ownerId_;
}
void SetCdnDomainSMCertificateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SetCdnDomainSMCertificateRequest::getSecurityToken()const
{
return securityToken_;
}
void SetCdnDomainSMCertificateRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string SetCdnDomainSMCertificateRequest::getCertIdentifier()const
{
return certIdentifier_;
}
void SetCdnDomainSMCertificateRequest::setCertIdentifier(const std::string& certIdentifier)
{
certIdentifier_ = certIdentifier;
setParameter("CertIdentifier", certIdentifier);
}

View File

@@ -0,0 +1,44 @@
/*
* 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.
*/
#include <alibabacloud/cdn/model/SetCdnDomainSMCertificateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
SetCdnDomainSMCertificateResult::SetCdnDomainSMCertificateResult() :
ServiceResult()
{}
SetCdnDomainSMCertificateResult::SetCdnDomainSMCertificateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetCdnDomainSMCertificateResult::~SetCdnDomainSMCertificateResult()
{}
void SetCdnDomainSMCertificateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
explicit CreateDynamicTagGroupResult(const std::string &payload);
~CreateDynamicTagGroupResult();
std::string getMessage()const;
std::string getId()const;
std::string getCode()const;
bool getSuccess()const;
@@ -45,6 +46,7 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::string message_;
std::string id_;
std::string code_;
bool success_;

View File

@@ -39,22 +39,24 @@ namespace AlibabaCloud
std::string escalationsInfoStatistics;
std::string effectiveInterval;
std::string escalationsInfoComparisonOperator;
std::string noDataPolicy;
std::string noEffectiveInterval;
std::string emailSubject;
int silenceTime;
std::string metricName;
int escalationsWarnTimes;
std::string period;
std::string compositeExpression;
std::string escalationsWarnThreshold;
std::string period;
std::string escalationsCriticalStatistics;
int escalationsInfoTimes;
int escalationsCriticalTimes;
std::string escalationsWarnStatistics;
std::string escalationsInfoThreshold;
std::string escalationsWarnStatistics;
std::string _namespace;
std::string interval;
std::string category;
std::string ruleId;
std::string category;
std::string escalationsCriticalComparisonOperator;
std::string escalationsCriticalThreshold;
std::string dimensions;

View File

@@ -37,8 +37,8 @@ namespace AlibabaCloud
std::string message;
std::string ruleId;
int code;
std::string ruleName;
bool success;
std::string ruleName;
};

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
explicit CreateMonitorGroupByResourceGroupIdResult(const std::string &payload);
~CreateMonitorGroupByResourceGroupIdResult();
std::string getMessage()const;
long getId()const;
std::string getCode()const;
bool getSuccess()const;
@@ -45,6 +46,7 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::string message_;
long id_;
std::string code_;
bool success_;

View File

@@ -34,6 +34,24 @@ namespace AlibabaCloud
public:
struct Alarm
{
struct SendDetail
{
struct ChannelResult
{
struct Result
{
std::string requestId;
std::vector<std::string> notifyTargetList;
std::string code;
std::string detail;
bool success;
};
std::vector<ChannelResult::Result> resultList;
std::string channel;
};
std::vector<ChannelResult> channelResultList;
std::string resultCode;
};
struct Escalation
{
std::string expression;
@@ -65,6 +83,7 @@ namespace AlibabaCloud
std::string product;
std::string metricName;
std::vector<std::string> contactSMSList;
SendDetail sendDetail;
std::string ruleName;
std::vector<std::string> contactGroups;
std::vector<std::string> dingdingWebhookList;

View File

@@ -37,7 +37,6 @@ namespace AlibabaCloud
struct ConfigJson
{
std::string project;
std::string as;
std::string endpoint;
std::string logstore;
std::string ak;

View File

@@ -55,8 +55,8 @@ namespace AlibabaCloud
std::string _operator;
std::string aggregate;
};
int notifyType;
int silenceTime;
int notifyType;
int endTime;
int startTime;
std::string webHook;

View File

@@ -38,8 +38,8 @@ namespace AlibabaCloud
std::string periods;
std::string description;
std::string dimensions;
std::string _namespace;
std::string labels;
std::string _namespace;
std::string unit;
std::string statistics;
};

View File

@@ -64,23 +64,42 @@ namespace AlibabaCloud
Info info;
Warn warn;
};
struct CompositeExpression
{
struct ExpressionListItem
{
std::string metricName;
std::string comparisonOperator;
int period;
std::string id;
std::string statistics;
std::string threshold;
};
int times;
std::string expressionRaw;
std::string level;
std::string expressionListJoin;
std::vector<ExpressionListItem> expressionList;
};
std::string groupName;
std::string noEffectiveInterval;
int silenceTime;
std::string contactGroups;
std::string noEffectiveInterval;
std::string groupBy;
std::string mailSubject;
std::string ruleId;
std::string sourceType;
std::string ruleId;
std::string period;
std::string dimensions;
std::string _namespace;
std::string effectiveInterval;
std::string noDataPolicy;
std::string alertState;
std::string groupId;
std::string metricName;
Escalations escalations;
bool enableState;
CompositeExpression compositeExpression;
std::string webhook;
std::string resources;
std::string ruleName;

View File

@@ -93,6 +93,12 @@ namespace AlibabaCloud
std::string instanceId;
std::string suitInfo;
};
struct NAAM
{
std::string instanceId;
std::string suitInfo;
std::string effectTime;
};
SiteMonitorOperatorProbe siteMonitorOperatorProbe;
std::string instanceId;
LogMonitor logMonitor;
@@ -103,6 +109,7 @@ namespace AlibabaCloud
SiteMonitorTask siteMonitorTask;
SMS sMS;
Api api;
NAAM nAAM;
SiteMonitorEcsProbe siteMonitorEcsProbe;
std::string expireTime;
CustomMonitor customMonitor;

View File

@@ -36,42 +36,45 @@ namespace AlibabaCloud
{
struct OptionJson
{
std::string cookie;
int ping_num;
std::string ipv6_task;
bool proxy_protocol;
int ping_num;
bool unfollow_redirect;
long traceroute;
float failure_rate;
int port;
std::string expect_value;
std::string http_method;
std::string response_content;
long attempts;
std::string dns_type;
std::string protocol;
std::string password;
std::string cookie;
bool enable_operator_dns;
bool proxy_protocol;
float failure_rate;
int match_rule;
std::string acceptable_response_code;
std::string response_format;
std::string expect_value;
std::string http_method;
long time_out;
bool cert_verify;
std::string header;
std::string response_content;
std::string username;
int authentication;
std::string request_content;
std::string dns_server;
std::string dns_type;
std::string request_format;
std::string password;
};
struct IspCity
{
std::string ispName;
std::string isp;
std::string cityName;
std::string city;
std::string cityName;
};
OptionJson optionJson;
std::string taskId;
std::string address;
std::string endTime;
std::string address;
std::string taskName;
std::string taskType;
std::vector<IspCity> ispCities;
@@ -82,8 +85,8 @@ namespace AlibabaCloud
{
std::string comparisonOperator;
std::string ruleId;
std::string period;
std::string evaluationCount;
std::string period;
std::string dimensions;
std::string _namespace;
std::string statistics;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct IspCity
{
std::string iPV4ProbeCount;
std::string areazh_CN;
std::string isp;
std::string regionzh_CN;
std::string regionen;
@@ -45,6 +46,7 @@ namespace AlibabaCloud
std::string ispNameen;
std::string cityNamezh_CN;
std::string aPIProbeCount;
std::string areaen;
std::string cityNameen;
std::string countryzh_CN;
std::string region;

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
std::string cookie;
int ping_num;
bool enable_operator_dns;
long traceroute;
float failure_rate;
int port;
@@ -50,16 +51,18 @@ namespace AlibabaCloud
std::string header;
std::string response_content;
std::string username;
long attempts;
int authentication;
std::string request_content;
std::string dns_server;
std::string dns_type;
std::string request_format;
std::string protocol;
std::string password;
};
std::string taskId;
std::string address;
std::string endTime;
std::string address;
OptionsJson optionsJson;
std::string taskName;
std::string taskType;

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setEffectiveInterval(const std::string& effectiveInterval);
std::string getEscalationsInfoComparisonOperator()const;
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
std::string getNoDataPolicy()const;
void setNoDataPolicy(const std::string& noDataPolicy);
std::string getNoEffectiveInterval()const;
void setNoEffectiveInterval(const std::string& noEffectiveInterval);
std::string getEmailSubject()const;
@@ -57,6 +59,8 @@ namespace AlibabaCloud
void setMetricName(const std::string& metricName);
int getEscalationsWarnTimes()const;
void setEscalationsWarnTimes(int escalationsWarnTimes);
Struct getCompositeExpression()const;
void setCompositeExpression(const Struct& compositeExpression);
std::string getPeriod()const;
void setPeriod(const std::string& period);
std::string getEscalationsWarnThreshold()const;
@@ -99,11 +103,13 @@ namespace AlibabaCloud
std::string escalationsInfoStatistics_;
std::string effectiveInterval_;
std::string escalationsInfoComparisonOperator_;
std::string noDataPolicy_;
std::string noEffectiveInterval_;
std::string emailSubject_;
int silenceTime_;
std::string metricName_;
int escalationsWarnTimes_;
Struct compositeExpression_;
std::string period_;
std::string escalationsWarnThreshold_;
std::string contactGroups_;

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setEffectiveInterval(const std::string& effectiveInterval);
std::string getEscalationsInfoComparisonOperator()const;
void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator);
std::string getNoDataPolicy()const;
void setNoDataPolicy(const std::string& noDataPolicy);
std::string getNoEffectiveInterval()const;
void setNoEffectiveInterval(const std::string& noEffectiveInterval);
std::string getEmailSubject()const;
@@ -57,6 +59,8 @@ namespace AlibabaCloud
void setMetricName(const std::string& metricName);
int getEscalationsWarnTimes()const;
void setEscalationsWarnTimes(int escalationsWarnTimes);
Struct getCompositeExpression()const;
void setCompositeExpression(const Struct& compositeExpression);
std::string getPeriod()const;
void setPeriod(const std::string& period);
std::string getEscalationsWarnThreshold()const;
@@ -65,12 +69,16 @@ namespace AlibabaCloud
void setContactGroups(const std::string& contactGroups);
std::string getEscalationsCriticalStatistics()const;
void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getResources()const;
void setResources(const std::string& resources);
int getEscalationsInfoTimes()const;
void setEscalationsInfoTimes(int escalationsInfoTimes);
std::string getGroupBy()const;
void setGroupBy(const std::string& groupBy);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
int getEscalationsCriticalTimes()const;
void setEscalationsCriticalTimes(int escalationsCriticalTimes);
std::string getEscalationsWarnStatistics()const;
@@ -95,18 +103,22 @@ namespace AlibabaCloud
std::string escalationsInfoStatistics_;
std::string effectiveInterval_;
std::string escalationsInfoComparisonOperator_;
std::string noDataPolicy_;
std::string noEffectiveInterval_;
std::string emailSubject_;
int silenceTime_;
std::string metricName_;
int escalationsWarnTimes_;
Struct compositeExpression_;
std::string period_;
std::string escalationsWarnThreshold_;
std::string contactGroups_;
std::string escalationsCriticalStatistics_;
std::string groupId_;
std::string resources_;
int escalationsInfoTimes_;
std::string groupBy_;
std::string groupName_;
int escalationsCriticalTimes_;
std::string escalationsWarnStatistics_;
std::string escalationsInfoThreshold_;

View File

@@ -39,20 +39,23 @@ namespace AlibabaCloud
std::string escalationsInfoStatistics;
std::string effectiveInterval;
std::string escalationsInfoComparisonOperator;
std::string noDataPolicy;
std::string noEffectiveInterval;
std::string emailSubject;
int silenceTime;
std::string metricName;
int escalationsWarnTimes;
std::string period;
std::string compositeExpression;
std::string escalationsWarnThreshold;
std::string period;
std::string contactGroups;
std::string escalationsCriticalStatistics;
std::string resources;
std::string groupId;
int escalationsInfoTimes;
std::string resources;
int escalationsCriticalTimes;
std::string escalationsWarnStatistics;
std::string escalationsInfoThreshold;
std::string escalationsWarnStatistics;
std::string _namespace;
std::string interval;
std::string ruleId;

View File

@@ -45,6 +45,8 @@ void CreateDynamicTagGroupResult::parse(const std::string &payload)
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Id"].isNull())
id_ = value["Id"].asString();
}
@@ -53,6 +55,11 @@ std::string CreateDynamicTagGroupResult::getMessage()const
return message_;
}
std::string CreateDynamicTagGroupResult::getId()const
{
return id_;
}
std::string CreateDynamicTagGroupResult::getCode()const
{
return code_;

View File

@@ -55,22 +55,24 @@ void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector<GroupM
setParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics);
setParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval);
setParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator);
setParameter(groupMetricRulesObjStr + ".NoDataPolicy", groupMetricRulesObj.noDataPolicy);
setParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval);
setParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject);
setParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime));
setParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName);
setParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes));
setParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period);
setParameter(groupMetricRulesObjStr + ".CompositeExpression", groupMetricRulesObj.compositeExpression);
setParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold);
setParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period);
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics);
setParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes));
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes));
setParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics);
setParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold);
setParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics);
setParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace);
setParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval);
setParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category);
setParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId);
setParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category);
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator);
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold);
setParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions);

View File

@@ -43,24 +43,24 @@ void CreateGroupMetricRulesResult::parse(const std::string &payload)
for (auto valueResourcesAlertResult : allResourcesNode)
{
AlertResult resourcesObject;
if(!valueResourcesAlertResult["RuleId"].isNull())
resourcesObject.ruleId = valueResourcesAlertResult["RuleId"].asString();
if(!valueResourcesAlertResult["RuleName"].isNull())
resourcesObject.ruleName = valueResourcesAlertResult["RuleName"].asString();
if(!valueResourcesAlertResult["Message"].isNull())
resourcesObject.message = valueResourcesAlertResult["Message"].asString();
if(!valueResourcesAlertResult["Code"].isNull())
resourcesObject.code = std::stoi(valueResourcesAlertResult["Code"].asString());
if(!valueResourcesAlertResult["Message"].isNull())
resourcesObject.message = valueResourcesAlertResult["Message"].asString();
if(!valueResourcesAlertResult["Success"].isNull())
resourcesObject.success = valueResourcesAlertResult["Success"].asString() == "true";
if(!valueResourcesAlertResult["RuleName"].isNull())
resourcesObject.ruleName = valueResourcesAlertResult["RuleName"].asString();
if(!valueResourcesAlertResult["RuleId"].isNull())
resourcesObject.ruleId = valueResourcesAlertResult["RuleId"].asString();
resources_.push_back(resourcesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -45,6 +45,8 @@ void CreateMonitorGroupByResourceGroupIdResult::parse(const std::string &payload
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
}
@@ -53,6 +55,11 @@ std::string CreateMonitorGroupByResourceGroupIdResult::getMessage()const
return message_;
}
long CreateMonitorGroupByResourceGroupIdResult::getId()const
{
return id_;
}
std::string CreateMonitorGroupByResourceGroupIdResult::getCode()const
{
return code_;

View File

@@ -111,6 +111,34 @@ void DescribeAlertLogListResult::parse(const std::string &payload)
webhookListObject.message = valueAlertLogListAlarmWebhookListWebhookListItem["message"].asString();
alertLogListObject.webhookList.push_back(webhookListObject);
}
auto sendDetailNode = value["SendDetail"];
if(!sendDetailNode["ResultCode"].isNull())
alertLogListObject.sendDetail.resultCode = sendDetailNode["ResultCode"].asString();
auto allChannelResultListNode = sendDetailNode["ChannelResultList"]["ChannelResult"];
for (auto sendDetailNodeChannelResultListChannelResult : allChannelResultListNode)
{
Alarm::SendDetail::ChannelResult channelResultObject;
if(!sendDetailNodeChannelResultListChannelResult["Channel"].isNull())
channelResultObject.channel = sendDetailNodeChannelResultListChannelResult["Channel"].asString();
auto allResultListNode = sendDetailNodeChannelResultListChannelResult["ResultList"]["Result"];
for (auto sendDetailNodeChannelResultListChannelResultResultListResult : allResultListNode)
{
Alarm::SendDetail::ChannelResult::Result resultListObject;
if(!sendDetailNodeChannelResultListChannelResultResultListResult["Code"].isNull())
resultListObject.code = sendDetailNodeChannelResultListChannelResultResultListResult["Code"].asString();
if(!sendDetailNodeChannelResultListChannelResultResultListResult["Detail"].isNull())
resultListObject.detail = sendDetailNodeChannelResultListChannelResultResultListResult["Detail"].asString();
if(!sendDetailNodeChannelResultListChannelResultResultListResult["Success"].isNull())
resultListObject.success = sendDetailNodeChannelResultListChannelResultResultListResult["Success"].asString() == "true";
if(!sendDetailNodeChannelResultListChannelResultResultListResult["RequestId"].isNull())
resultListObject.requestId = sendDetailNodeChannelResultListChannelResultResultListResult["RequestId"].asString();
auto allNotifyTargetList = value["notifyTargetList"]["NotifyTarget"];
for (auto value : allNotifyTargetList)
resultListObject.notifyTargetList.push_back(value.asString());
channelResultObject.resultList.push_back(resultListObject);
}
alertLogListObject.sendDetail.channelResultList.push_back(channelResultObject);
}
auto escalationNode = value["Escalation"];
if(!escalationNode["Times"].isNull())
alertLogListObject.escalation.times = std::stoi(escalationNode["Times"].asString());

Some files were not shown because too many files have changed in this diff Show More