diff --git a/CHANGELOG b/CHANGELOG index 9206151f6..78e218fa7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-08-03 Version: 1.36.550 +- Add Voice Synchronous Scan API. + 2020-08-03 Version: 1.36.549 - Add ExtractPedestrianFeatureAttribute. diff --git a/VERSION b/VERSION index 00b812e02..fc303a741 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.549 \ No newline at end of file +1.36.550 \ No newline at end of file diff --git a/green/CMakeLists.txt b/green/CMakeLists.txt index 90c27ac34..228351480 100755 --- a/green/CMakeLists.txt +++ b/green/CMakeLists.txt @@ -93,8 +93,12 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeAuditRangeResult.h include/alibabacloud/green/model/DescribeAuditSettingRequest.h include/alibabacloud/green/model/DescribeAuditSettingResult.h + include/alibabacloud/green/model/DescribeBizTypeImageLibRequest.h + include/alibabacloud/green/model/DescribeBizTypeImageLibResult.h include/alibabacloud/green/model/DescribeBizTypeSettingRequest.h include/alibabacloud/green/model/DescribeBizTypeSettingResult.h + include/alibabacloud/green/model/DescribeBizTypeTextLibRequest.h + include/alibabacloud/green/model/DescribeBizTypeTextLibResult.h include/alibabacloud/green/model/DescribeBizTypesRequest.h include/alibabacloud/green/model/DescribeBizTypesResult.h include/alibabacloud/green/model/DescribeCustomOcrTemplateRequest.h @@ -241,8 +245,12 @@ set(green_public_header_model include/alibabacloud/green/model/UpdateAuditRangeResult.h include/alibabacloud/green/model/UpdateAuditSettingRequest.h include/alibabacloud/green/model/UpdateAuditSettingResult.h + include/alibabacloud/green/model/UpdateBizTypeImageLibRequest.h + include/alibabacloud/green/model/UpdateBizTypeImageLibResult.h include/alibabacloud/green/model/UpdateBizTypeSettingRequest.h include/alibabacloud/green/model/UpdateBizTypeSettingResult.h + include/alibabacloud/green/model/UpdateBizTypeTextLibRequest.h + include/alibabacloud/green/model/UpdateBizTypeTextLibResult.h include/alibabacloud/green/model/UpdateCustomOcrTemplateRequest.h include/alibabacloud/green/model/UpdateCustomOcrTemplateResult.h include/alibabacloud/green/model/UpdateImageLibRequest.h @@ -302,7 +310,9 @@ set(green_public_header_model include/alibabacloud/green/model/VoiceIdentityStartRegisterRequest.h include/alibabacloud/green/model/VoiceIdentityStartRegisterResult.h include/alibabacloud/green/model/VoiceIdentityUnregisterRequest.h - include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h ) + include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h + include/alibabacloud/green/model/VoiceSyncScanRequest.h + include/alibabacloud/green/model/VoiceSyncScanResult.h ) set(green_src src/GreenClient.cc @@ -378,8 +388,12 @@ set(green_src src/model/DescribeAuditRangeResult.cc src/model/DescribeAuditSettingRequest.cc src/model/DescribeAuditSettingResult.cc + src/model/DescribeBizTypeImageLibRequest.cc + src/model/DescribeBizTypeImageLibResult.cc src/model/DescribeBizTypeSettingRequest.cc src/model/DescribeBizTypeSettingResult.cc + src/model/DescribeBizTypeTextLibRequest.cc + src/model/DescribeBizTypeTextLibResult.cc src/model/DescribeBizTypesRequest.cc src/model/DescribeBizTypesResult.cc src/model/DescribeCustomOcrTemplateRequest.cc @@ -526,8 +540,12 @@ set(green_src src/model/UpdateAuditRangeResult.cc src/model/UpdateAuditSettingRequest.cc src/model/UpdateAuditSettingResult.cc + src/model/UpdateBizTypeImageLibRequest.cc + src/model/UpdateBizTypeImageLibResult.cc src/model/UpdateBizTypeSettingRequest.cc src/model/UpdateBizTypeSettingResult.cc + src/model/UpdateBizTypeTextLibRequest.cc + src/model/UpdateBizTypeTextLibResult.cc src/model/UpdateCustomOcrTemplateRequest.cc src/model/UpdateCustomOcrTemplateResult.cc src/model/UpdateImageLibRequest.cc @@ -587,7 +605,9 @@ set(green_src src/model/VoiceIdentityStartRegisterRequest.cc src/model/VoiceIdentityStartRegisterResult.cc src/model/VoiceIdentityUnregisterRequest.cc - src/model/VoiceIdentityUnregisterResult.cc ) + src/model/VoiceIdentityUnregisterResult.cc + src/model/VoiceSyncScanRequest.cc + src/model/VoiceSyncScanResult.cc ) add_library(green ${LIB_TYPE} ${green_public_header} diff --git a/green/include/alibabacloud/green/GreenClient.h b/green/include/alibabacloud/green/GreenClient.h index 19d13339e..f3fc80104 100755 --- a/green/include/alibabacloud/green/GreenClient.h +++ b/green/include/alibabacloud/green/GreenClient.h @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include "GreenExport.h" #include "model/AddFacesRequest.h" #include "model/AddFacesResult.h" @@ -94,8 +94,12 @@ #include "model/DescribeAuditRangeResult.h" #include "model/DescribeAuditSettingRequest.h" #include "model/DescribeAuditSettingResult.h" +#include "model/DescribeBizTypeImageLibRequest.h" +#include "model/DescribeBizTypeImageLibResult.h" #include "model/DescribeBizTypeSettingRequest.h" #include "model/DescribeBizTypeSettingResult.h" +#include "model/DescribeBizTypeTextLibRequest.h" +#include "model/DescribeBizTypeTextLibResult.h" #include "model/DescribeBizTypesRequest.h" #include "model/DescribeBizTypesResult.h" #include "model/DescribeCustomOcrTemplateRequest.h" @@ -242,8 +246,12 @@ #include "model/UpdateAuditRangeResult.h" #include "model/UpdateAuditSettingRequest.h" #include "model/UpdateAuditSettingResult.h" +#include "model/UpdateBizTypeImageLibRequest.h" +#include "model/UpdateBizTypeImageLibResult.h" #include "model/UpdateBizTypeSettingRequest.h" #include "model/UpdateBizTypeSettingResult.h" +#include "model/UpdateBizTypeTextLibRequest.h" +#include "model/UpdateBizTypeTextLibResult.h" #include "model/UpdateCustomOcrTemplateRequest.h" #include "model/UpdateCustomOcrTemplateResult.h" #include "model/UpdateImageLibRequest.h" @@ -304,13 +312,15 @@ #include "model/VoiceIdentityStartRegisterResult.h" #include "model/VoiceIdentityUnregisterRequest.h" #include "model/VoiceIdentityUnregisterResult.h" +#include "model/VoiceSyncScanRequest.h" +#include "model/VoiceSyncScanResult.h" namespace AlibabaCloud { namespace Green { - class ALIBABACLOUD_GREEN_EXPORT GreenClient : public RpcServiceClient + class ALIBABACLOUD_GREEN_EXPORT GreenClient : public RoaServiceClient { public: typedef Outcome AddFacesOutcome; @@ -421,9 +431,15 @@ namespace AlibabaCloud typedef Outcome DescribeAuditSettingOutcome; typedef std::future DescribeAuditSettingOutcomeCallable; typedef std::function&)> DescribeAuditSettingAsyncHandler; + typedef Outcome DescribeBizTypeImageLibOutcome; + typedef std::future DescribeBizTypeImageLibOutcomeCallable; + typedef std::function&)> DescribeBizTypeImageLibAsyncHandler; typedef Outcome DescribeBizTypeSettingOutcome; typedef std::future DescribeBizTypeSettingOutcomeCallable; typedef std::function&)> DescribeBizTypeSettingAsyncHandler; + typedef Outcome DescribeBizTypeTextLibOutcome; + typedef std::future DescribeBizTypeTextLibOutcomeCallable; + typedef std::function&)> DescribeBizTypeTextLibAsyncHandler; typedef Outcome DescribeBizTypesOutcome; typedef std::future DescribeBizTypesOutcomeCallable; typedef std::function&)> DescribeBizTypesAsyncHandler; @@ -643,9 +659,15 @@ namespace AlibabaCloud typedef Outcome UpdateAuditSettingOutcome; typedef std::future UpdateAuditSettingOutcomeCallable; typedef std::function&)> UpdateAuditSettingAsyncHandler; + typedef Outcome UpdateBizTypeImageLibOutcome; + typedef std::future UpdateBizTypeImageLibOutcomeCallable; + typedef std::function&)> UpdateBizTypeImageLibAsyncHandler; typedef Outcome UpdateBizTypeSettingOutcome; typedef std::future UpdateBizTypeSettingOutcomeCallable; typedef std::function&)> UpdateBizTypeSettingAsyncHandler; + typedef Outcome UpdateBizTypeTextLibOutcome; + typedef std::future UpdateBizTypeTextLibOutcomeCallable; + typedef std::function&)> UpdateBizTypeTextLibAsyncHandler; typedef Outcome UpdateCustomOcrTemplateOutcome; typedef std::future UpdateCustomOcrTemplateOutcomeCallable; typedef std::function&)> UpdateCustomOcrTemplateAsyncHandler; @@ -736,6 +758,9 @@ namespace AlibabaCloud typedef Outcome VoiceIdentityUnregisterOutcome; typedef std::future VoiceIdentityUnregisterOutcomeCallable; typedef std::function&)> VoiceIdentityUnregisterAsyncHandler; + typedef Outcome VoiceSyncScanOutcome; + typedef std::future VoiceSyncScanOutcomeCallable; + typedef std::function&)> VoiceSyncScanAsyncHandler; GreenClient(const Credentials &credentials, const ClientConfiguration &configuration); GreenClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -849,9 +874,15 @@ namespace AlibabaCloud DescribeAuditSettingOutcome describeAuditSetting(const Model::DescribeAuditSettingRequest &request)const; void describeAuditSettingAsync(const Model::DescribeAuditSettingRequest& request, const DescribeAuditSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditSettingOutcomeCallable describeAuditSettingCallable(const Model::DescribeAuditSettingRequest& request) const; + DescribeBizTypeImageLibOutcome describeBizTypeImageLib(const Model::DescribeBizTypeImageLibRequest &request)const; + void describeBizTypeImageLibAsync(const Model::DescribeBizTypeImageLibRequest& request, const DescribeBizTypeImageLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBizTypeImageLibOutcomeCallable describeBizTypeImageLibCallable(const Model::DescribeBizTypeImageLibRequest& request) const; DescribeBizTypeSettingOutcome describeBizTypeSetting(const Model::DescribeBizTypeSettingRequest &request)const; void describeBizTypeSettingAsync(const Model::DescribeBizTypeSettingRequest& request, const DescribeBizTypeSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBizTypeSettingOutcomeCallable describeBizTypeSettingCallable(const Model::DescribeBizTypeSettingRequest& request) const; + DescribeBizTypeTextLibOutcome describeBizTypeTextLib(const Model::DescribeBizTypeTextLibRequest &request)const; + void describeBizTypeTextLibAsync(const Model::DescribeBizTypeTextLibRequest& request, const DescribeBizTypeTextLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBizTypeTextLibOutcomeCallable describeBizTypeTextLibCallable(const Model::DescribeBizTypeTextLibRequest& request) const; DescribeBizTypesOutcome describeBizTypes(const Model::DescribeBizTypesRequest &request)const; void describeBizTypesAsync(const Model::DescribeBizTypesRequest& request, const DescribeBizTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBizTypesOutcomeCallable describeBizTypesCallable(const Model::DescribeBizTypesRequest& request) const; @@ -1071,9 +1102,15 @@ namespace AlibabaCloud UpdateAuditSettingOutcome updateAuditSetting(const Model::UpdateAuditSettingRequest &request)const; void updateAuditSettingAsync(const Model::UpdateAuditSettingRequest& request, const UpdateAuditSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAuditSettingOutcomeCallable updateAuditSettingCallable(const Model::UpdateAuditSettingRequest& request) const; + UpdateBizTypeImageLibOutcome updateBizTypeImageLib(const Model::UpdateBizTypeImageLibRequest &request)const; + void updateBizTypeImageLibAsync(const Model::UpdateBizTypeImageLibRequest& request, const UpdateBizTypeImageLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBizTypeImageLibOutcomeCallable updateBizTypeImageLibCallable(const Model::UpdateBizTypeImageLibRequest& request) const; UpdateBizTypeSettingOutcome updateBizTypeSetting(const Model::UpdateBizTypeSettingRequest &request)const; void updateBizTypeSettingAsync(const Model::UpdateBizTypeSettingRequest& request, const UpdateBizTypeSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBizTypeSettingOutcomeCallable updateBizTypeSettingCallable(const Model::UpdateBizTypeSettingRequest& request) const; + UpdateBizTypeTextLibOutcome updateBizTypeTextLib(const Model::UpdateBizTypeTextLibRequest &request)const; + void updateBizTypeTextLibAsync(const Model::UpdateBizTypeTextLibRequest& request, const UpdateBizTypeTextLibAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBizTypeTextLibOutcomeCallable updateBizTypeTextLibCallable(const Model::UpdateBizTypeTextLibRequest& request) const; UpdateCustomOcrTemplateOutcome updateCustomOcrTemplate(const Model::UpdateCustomOcrTemplateRequest &request)const; void updateCustomOcrTemplateAsync(const Model::UpdateCustomOcrTemplateRequest& request, const UpdateCustomOcrTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCustomOcrTemplateOutcomeCallable updateCustomOcrTemplateCallable(const Model::UpdateCustomOcrTemplateRequest& request) const; @@ -1164,6 +1201,9 @@ namespace AlibabaCloud VoiceIdentityUnregisterOutcome voiceIdentityUnregister(const Model::VoiceIdentityUnregisterRequest &request)const; void voiceIdentityUnregisterAsync(const Model::VoiceIdentityUnregisterRequest& request, const VoiceIdentityUnregisterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VoiceIdentityUnregisterOutcomeCallable voiceIdentityUnregisterCallable(const Model::VoiceIdentityUnregisterRequest& request) const; + VoiceSyncScanOutcome voiceSyncScan(const Model::VoiceSyncScanRequest &request)const; + void voiceSyncScanAsync(const Model::VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VoiceSyncScanOutcomeCallable voiceSyncScanCallable(const Model::VoiceSyncScanRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/green/include/alibabacloud/green/model/CreateBizTypeRequest.h b/green/include/alibabacloud/green/model/CreateBizTypeRequest.h index 13b8bc369..6493c1cff 100644 --- a/green/include/alibabacloud/green/model/CreateBizTypeRequest.h +++ b/green/include/alibabacloud/green/model/CreateBizTypeRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getBizTypeImport()const; void setBizTypeImport(const std::string& bizTypeImport); + bool getCiteTemplate()const; + void setCiteTemplate(bool citeTemplate); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getIndustryInfo()const; @@ -46,6 +48,7 @@ namespace AlibabaCloud private: std::string bizTypeImport_; + bool citeTemplate_; std::string sourceIp_; std::string industryInfo_; std::string bizTypeName_; diff --git a/green/include/alibabacloud/green/model/DescribeBizTypeImageLibRequest.h b/green/include/alibabacloud/green/model/DescribeBizTypeImageLibRequest.h new file mode 100644 index 000000000..8cb140706 --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeBizTypeImageLibRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeBizTypeImageLibRequest : public RpcServiceRequest + { + + public: + DescribeBizTypeImageLibRequest(); + ~DescribeBizTypeImageLibRequest(); + + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getScene()const; + void setScene(const std::string& scene); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getBizTypeName()const; + void setBizTypeName(const std::string& bizTypeName); + + private: + std::string resourceType_; + std::string scene_; + std::string sourceIp_; + std::string bizTypeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeBizTypeImageLibResult.h b/green/include/alibabacloud/green/model/DescribeBizTypeImageLibResult.h new file mode 100644 index 000000000..988a35c9d --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeBizTypeImageLibResult.h @@ -0,0 +1,95 @@ +/* + * 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_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeBizTypeImageLibResult : public ServiceResult + { + public: + struct Black + { + struct Item + { + std::string code; + std::string name; + }; + std::vector all; + std::vector selected; + }; + struct Review + { + struct Item3 + { + std::string code; + std::string name; + }; + struct Item + { + std::string code; + std::string name; + }; + std::vector selected1; + std::vector all2; + }; + struct White + { + struct Item6 + { + std::string code; + std::string name; + }; + struct Item + { + std::string code; + std::string name; + }; + std::vector selected4; + std::vector all5; + }; + + + DescribeBizTypeImageLibResult(); + explicit DescribeBizTypeImageLibResult(const std::string &payload); + ~DescribeBizTypeImageLibResult(); + White getWhite()const; + Black getBlack()const; + Review getReview()const; + + protected: + void parse(const std::string &payload); + private: + White white_; + Black black_; + Review review_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeBizTypeTextLibRequest.h b/green/include/alibabacloud/green/model/DescribeBizTypeTextLibRequest.h new file mode 100644 index 000000000..3db9d2374 --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeBizTypeTextLibRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeBizTypeTextLibRequest : public RpcServiceRequest + { + + public: + DescribeBizTypeTextLibRequest(); + ~DescribeBizTypeTextLibRequest(); + + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getScene()const; + void setScene(const std::string& scene); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getBizTypeName()const; + void setBizTypeName(const std::string& bizTypeName); + + private: + std::string resourceType_; + std::string scene_; + std::string sourceIp_; + std::string bizTypeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeBizTypeTextLibResult.h b/green/include/alibabacloud/green/model/DescribeBizTypeTextLibResult.h new file mode 100644 index 000000000..c2112e3d9 --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeBizTypeTextLibResult.h @@ -0,0 +1,112 @@ +/* + * 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_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeBizTypeTextLibResult : public ServiceResult + { + public: + struct Black + { + struct Item + { + std::string code; + std::string name; + }; + std::vector all; + std::vector selected; + }; + struct Review + { + struct Item3 + { + std::string code; + std::string name; + }; + struct Item + { + std::string code; + std::string name; + }; + std::vector selected1; + std::vector all2; + }; + struct Ignore + { + struct Item6 + { + std::string code; + std::string name; + }; + struct Item + { + std::string code; + std::string name; + }; + std::vector selected4; + std::vector all5; + }; + struct White + { + struct Item9 + { + std::string code; + std::string name; + }; + struct Item + { + std::string code; + std::string name; + }; + std::vector selected7; + std::vector all8; + }; + + + DescribeBizTypeTextLibResult(); + explicit DescribeBizTypeTextLibResult(const std::string &payload); + ~DescribeBizTypeTextLibResult(); + Ignore getIgnore()const; + White getWhite()const; + Black getBlack()const; + Review getReview()const; + + protected: + void parse(const std::string &payload); + private: + Ignore ignore_; + White white_; + Black black_; + Review review_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h b/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h index dab66ad4e..a1a177da4 100644 --- a/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h +++ b/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h @@ -34,7 +34,9 @@ namespace AlibabaCloud public: struct ImageAutoFreeze { + std::string ad; std::string terrorism; + std::string live; bool enabled; std::string porn; }; diff --git a/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h b/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h index 6b0d104de..5884c3929 100644 --- a/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h +++ b/green/include/alibabacloud/green/model/DescribeUserBizTypesResult.h @@ -36,8 +36,10 @@ namespace AlibabaCloud { std::string sourceBizType; bool gray; + bool citeTemplate; std::string bizType; std::string source; + std::string industryInfo; }; diff --git a/green/include/alibabacloud/green/model/UpdateBizTypeImageLibRequest.h b/green/include/alibabacloud/green/model/UpdateBizTypeImageLibRequest.h new file mode 100644 index 000000000..f10fd10b6 --- /dev/null +++ b/green/include/alibabacloud/green/model/UpdateBizTypeImageLibRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeImageLibRequest : public RpcServiceRequest + { + + public: + UpdateBizTypeImageLibRequest(); + ~UpdateBizTypeImageLibRequest(); + + std::string getScene()const; + void setScene(const std::string& scene); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getWhite()const; + void setWhite(const std::string& white); + std::string getReview()const; + void setReview(const std::string& review); + std::string getBizTypeName()const; + void setBizTypeName(const std::string& bizTypeName); + std::string getBlack()const; + void setBlack(const std::string& black); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string scene_; + std::string sourceIp_; + std::string white_; + std::string review_; + std::string bizTypeName_; + std::string black_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/UpdateBizTypeImageLibResult.h b/green/include/alibabacloud/green/model/UpdateBizTypeImageLibResult.h new file mode 100644 index 000000000..9f6f8d381 --- /dev/null +++ b/green/include/alibabacloud/green/model/UpdateBizTypeImageLibResult.h @@ -0,0 +1,49 @@ +/* + * 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_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeImageLibResult : public ServiceResult + { + public: + + + UpdateBizTypeImageLibResult(); + explicit UpdateBizTypeImageLibResult(const std::string &payload); + ~UpdateBizTypeImageLibResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/UpdateBizTypeTextLibRequest.h b/green/include/alibabacloud/green/model/UpdateBizTypeTextLibRequest.h new file mode 100644 index 000000000..0126cd572 --- /dev/null +++ b/green/include/alibabacloud/green/model/UpdateBizTypeTextLibRequest.h @@ -0,0 +1,69 @@ +/* + * 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_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeTextLibRequest : public RpcServiceRequest + { + + public: + UpdateBizTypeTextLibRequest(); + ~UpdateBizTypeTextLibRequest(); + + std::string getScene()const; + void setScene(const std::string& scene); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getWhite()const; + void setWhite(const std::string& white); + std::string getReview()const; + void setReview(const std::string& review); + std::string getIgnore()const; + void setIgnore(const std::string& ignore); + std::string getBizTypeName()const; + void setBizTypeName(const std::string& bizTypeName); + std::string getBlack()const; + void setBlack(const std::string& black); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string scene_; + std::string sourceIp_; + std::string white_; + std::string review_; + std::string ignore_; + std::string bizTypeName_; + std::string black_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/UpdateBizTypeTextLibResult.h b/green/include/alibabacloud/green/model/UpdateBizTypeTextLibResult.h new file mode 100644 index 000000000..55045c137 --- /dev/null +++ b/green/include/alibabacloud/green/model/UpdateBizTypeTextLibResult.h @@ -0,0 +1,49 @@ +/* + * 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_GREEN_MODEL_UPDATEBIZTYPETEXTLIBRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeTextLibResult : public ServiceResult + { + public: + + + UpdateBizTypeTextLibResult(); + explicit UpdateBizTypeTextLibResult(const std::string &payload); + ~UpdateBizTypeTextLibResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/VoiceSyncScanRequest.h b/green/include/alibabacloud/green/model/VoiceSyncScanRequest.h new file mode 100644 index 000000000..0bb2b2aa7 --- /dev/null +++ b/green/include/alibabacloud/green/model/VoiceSyncScanRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VoiceSyncScanRequest : public RoaServiceRequest + { + + public: + VoiceSyncScanRequest(); + ~VoiceSyncScanRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string regionId_; + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/VoiceSyncScanResult.h b/green/include/alibabacloud/green/model/VoiceSyncScanResult.h new file mode 100644 index 000000000..3011c3e7e --- /dev/null +++ b/green/include/alibabacloud/green/model/VoiceSyncScanResult.h @@ -0,0 +1,49 @@ +/* + * 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_GREEN_MODEL_VOICESYNCSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VoiceSyncScanResult : public ServiceResult + { + public: + + + VoiceSyncScanResult(); + explicit VoiceSyncScanResult(const std::string &payload); + ~VoiceSyncScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANRESULT_H_ \ No newline at end of file diff --git a/green/src/GreenClient.cc b/green/src/GreenClient.cc index 35e2ccbd1..41f2ae14c 100755 --- a/green/src/GreenClient.cc +++ b/green/src/GreenClient.cc @@ -28,21 +28,21 @@ namespace } GreenClient::GreenClient(const Credentials &credentials, const ClientConfiguration &configuration) : - RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "green"); } GreenClient::GreenClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : - RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "green"); } GreenClient::GreenClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : - RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "green"); @@ -1347,6 +1347,42 @@ GreenClient::DescribeAuditSettingOutcomeCallable GreenClient::describeAuditSetti return task->get_future(); } +GreenClient::DescribeBizTypeImageLibOutcome GreenClient::describeBizTypeImageLib(const DescribeBizTypeImageLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBizTypeImageLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBizTypeImageLibOutcome(DescribeBizTypeImageLibResult(outcome.result())); + else + return DescribeBizTypeImageLibOutcome(outcome.error()); +} + +void GreenClient::describeBizTypeImageLibAsync(const DescribeBizTypeImageLibRequest& request, const DescribeBizTypeImageLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBizTypeImageLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeBizTypeImageLibOutcomeCallable GreenClient::describeBizTypeImageLibCallable(const DescribeBizTypeImageLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBizTypeImageLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeBizTypeSettingOutcome GreenClient::describeBizTypeSetting(const DescribeBizTypeSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +1419,42 @@ GreenClient::DescribeBizTypeSettingOutcomeCallable GreenClient::describeBizTypeS return task->get_future(); } +GreenClient::DescribeBizTypeTextLibOutcome GreenClient::describeBizTypeTextLib(const DescribeBizTypeTextLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBizTypeTextLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBizTypeTextLibOutcome(DescribeBizTypeTextLibResult(outcome.result())); + else + return DescribeBizTypeTextLibOutcome(outcome.error()); +} + +void GreenClient::describeBizTypeTextLibAsync(const DescribeBizTypeTextLibRequest& request, const DescribeBizTypeTextLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBizTypeTextLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeBizTypeTextLibOutcomeCallable GreenClient::describeBizTypeTextLibCallable(const DescribeBizTypeTextLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBizTypeTextLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeBizTypesOutcome GreenClient::describeBizTypes(const DescribeBizTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +4083,42 @@ GreenClient::UpdateAuditSettingOutcomeCallable GreenClient::updateAuditSettingCa return task->get_future(); } +GreenClient::UpdateBizTypeImageLibOutcome GreenClient::updateBizTypeImageLib(const UpdateBizTypeImageLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBizTypeImageLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBizTypeImageLibOutcome(UpdateBizTypeImageLibResult(outcome.result())); + else + return UpdateBizTypeImageLibOutcome(outcome.error()); +} + +void GreenClient::updateBizTypeImageLibAsync(const UpdateBizTypeImageLibRequest& request, const UpdateBizTypeImageLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBizTypeImageLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::UpdateBizTypeImageLibOutcomeCallable GreenClient::updateBizTypeImageLibCallable(const UpdateBizTypeImageLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBizTypeImageLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::UpdateBizTypeSettingOutcome GreenClient::updateBizTypeSetting(const UpdateBizTypeSettingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4047,6 +4155,42 @@ GreenClient::UpdateBizTypeSettingOutcomeCallable GreenClient::updateBizTypeSetti return task->get_future(); } +GreenClient::UpdateBizTypeTextLibOutcome GreenClient::updateBizTypeTextLib(const UpdateBizTypeTextLibRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBizTypeTextLibOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBizTypeTextLibOutcome(UpdateBizTypeTextLibResult(outcome.result())); + else + return UpdateBizTypeTextLibOutcome(outcome.error()); +} + +void GreenClient::updateBizTypeTextLibAsync(const UpdateBizTypeTextLibRequest& request, const UpdateBizTypeTextLibAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBizTypeTextLib(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::UpdateBizTypeTextLibOutcomeCallable GreenClient::updateBizTypeTextLibCallable(const UpdateBizTypeTextLibRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBizTypeTextLib(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::UpdateCustomOcrTemplateOutcome GreenClient::updateCustomOcrTemplate(const UpdateCustomOcrTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5127,3 +5271,39 @@ GreenClient::VoiceIdentityUnregisterOutcomeCallable GreenClient::voiceIdentityUn return task->get_future(); } +GreenClient::VoiceSyncScanOutcome GreenClient::voiceSyncScan(const VoiceSyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VoiceSyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VoiceSyncScanOutcome(VoiceSyncScanResult(outcome.result())); + else + return VoiceSyncScanOutcome(outcome.error()); +} + +void GreenClient::voiceSyncScanAsync(const VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, voiceSyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::VoiceSyncScanOutcomeCallable GreenClient::voiceSyncScanCallable(const VoiceSyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->voiceSyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/green/src/model/AddFacesRequest.cc b/green/src/model/AddFacesRequest.cc index 9b3c3a17f..e218ba5e8 100644 --- a/green/src/model/AddFacesRequest.cc +++ b/green/src/model/AddFacesRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddFacesRequest; AddFacesRequest::AddFacesRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/face/add"); + setMethod(HttpRequest::Method::Post); +} AddFacesRequest::~AddFacesRequest() {} @@ -33,7 +36,7 @@ std::string AddFacesRequest::getRegionId()const void AddFacesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string AddFacesRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string AddFacesRequest::getClientInfo()const void AddFacesRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddGroupsRequest.cc b/green/src/model/AddGroupsRequest.cc index 12f137266..28e4e4526 100644 --- a/green/src/model/AddGroupsRequest.cc +++ b/green/src/model/AddGroupsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddGroupsRequest; AddGroupsRequest::AddGroupsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person/groups/add"); + setMethod(HttpRequest::Method::Post); +} AddGroupsRequest::~AddGroupsRequest() {} @@ -33,7 +36,7 @@ std::string AddGroupsRequest::getRegionId()const void AddGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string AddGroupsRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string AddGroupsRequest::getClientInfo()const void AddGroupsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddPersonRequest.cc b/green/src/model/AddPersonRequest.cc index ec6223203..1807b629e 100644 --- a/green/src/model/AddPersonRequest.cc +++ b/green/src/model/AddPersonRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddPersonRequest; AddPersonRequest::AddPersonRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person/add"); + setMethod(HttpRequest::Method::Post); +} AddPersonRequest::~AddPersonRequest() {} @@ -33,7 +36,7 @@ std::string AddPersonRequest::getRegionId()const void AddPersonRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string AddPersonRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string AddPersonRequest::getClientInfo()const void AddPersonRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddSimilarityImageRequest.cc b/green/src/model/AddSimilarityImageRequest.cc index ccf7ce206..6ced3a977 100644 --- a/green/src/model/AddSimilarityImageRequest.cc +++ b/green/src/model/AddSimilarityImageRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddSimilarityImageRequest; AddSimilarityImageRequest::AddSimilarityImageRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/image/add"); + setMethod(HttpRequest::Method::Post); +} AddSimilarityImageRequest::~AddSimilarityImageRequest() {} @@ -33,6 +36,6 @@ std::string AddSimilarityImageRequest::getClientInfo()const void AddSimilarityImageRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddSimilarityLibraryRequest.cc b/green/src/model/AddSimilarityLibraryRequest.cc index dafcdab24..393528ed2 100644 --- a/green/src/model/AddSimilarityLibraryRequest.cc +++ b/green/src/model/AddSimilarityLibraryRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddSimilarityLibraryRequest; AddSimilarityLibraryRequest::AddSimilarityLibraryRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/library/add"); + setMethod(HttpRequest::Method::Post); +} AddSimilarityLibraryRequest::~AddSimilarityLibraryRequest() {} @@ -33,6 +36,6 @@ std::string AddSimilarityLibraryRequest::getClientInfo()const void AddSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddVideoDnaGroupRequest.cc b/green/src/model/AddVideoDnaGroupRequest.cc index 4a8e92674..7186b8922 100644 --- a/green/src/model/AddVideoDnaGroupRequest.cc +++ b/green/src/model/AddVideoDnaGroupRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddVideoDnaGroupRequest; AddVideoDnaGroupRequest::AddVideoDnaGroupRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/dna/group/add"); + setMethod(HttpRequest::Method::Post); +} AddVideoDnaGroupRequest::~AddVideoDnaGroupRequest() {} @@ -33,6 +36,6 @@ std::string AddVideoDnaGroupRequest::getClientInfo()const void AddVideoDnaGroupRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/AddVideoDnaRequest.cc b/green/src/model/AddVideoDnaRequest.cc index 5b1509c77..ab4a609a0 100644 --- a/green/src/model/AddVideoDnaRequest.cc +++ b/green/src/model/AddVideoDnaRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddVideoDnaRequest; AddVideoDnaRequest::AddVideoDnaRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/dna/add"); + setMethod(HttpRequest::Method::Post); +} AddVideoDnaRequest::~AddVideoDnaRequest() {} @@ -33,6 +36,6 @@ std::string AddVideoDnaRequest::getClientInfo()const void AddVideoDnaRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/CreateBizTypeRequest.cc b/green/src/model/CreateBizTypeRequest.cc index 68016215c..7f634c643 100644 --- a/green/src/model/CreateBizTypeRequest.cc +++ b/green/src/model/CreateBizTypeRequest.cc @@ -38,6 +38,17 @@ void CreateBizTypeRequest::setBizTypeImport(const std::string& bizTypeImport) setParameter("BizTypeImport", bizTypeImport); } +bool CreateBizTypeRequest::getCiteTemplate()const +{ + return citeTemplate_; +} + +void CreateBizTypeRequest::setCiteTemplate(bool citeTemplate) +{ + citeTemplate_ = citeTemplate; + setParameter("CiteTemplate", citeTemplate ? "true" : "false"); +} + std::string CreateBizTypeRequest::getSourceIp()const { return sourceIp_; diff --git a/green/src/model/DeleteFacesRequest.cc b/green/src/model/DeleteFacesRequest.cc index d617131e5..6f7096dc8 100644 --- a/green/src/model/DeleteFacesRequest.cc +++ b/green/src/model/DeleteFacesRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteFacesRequest; DeleteFacesRequest::DeleteFacesRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/face/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteFacesRequest::~DeleteFacesRequest() {} @@ -33,7 +36,7 @@ std::string DeleteFacesRequest::getRegionId()const void DeleteFacesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string DeleteFacesRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string DeleteFacesRequest::getClientInfo()const void DeleteFacesRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeleteGroupsRequest.cc b/green/src/model/DeleteGroupsRequest.cc index 3abde25ff..4a8256a34 100644 --- a/green/src/model/DeleteGroupsRequest.cc +++ b/green/src/model/DeleteGroupsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteGroupsRequest; DeleteGroupsRequest::DeleteGroupsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person/groups/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteGroupsRequest::~DeleteGroupsRequest() {} @@ -33,7 +36,7 @@ std::string DeleteGroupsRequest::getRegionId()const void DeleteGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string DeleteGroupsRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string DeleteGroupsRequest::getClientInfo()const void DeleteGroupsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeletePersonRequest.cc b/green/src/model/DeletePersonRequest.cc index 2746f7961..25cfd0949 100644 --- a/green/src/model/DeletePersonRequest.cc +++ b/green/src/model/DeletePersonRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeletePersonRequest; DeletePersonRequest::DeletePersonRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person/delete"); + setMethod(HttpRequest::Method::Post); +} DeletePersonRequest::~DeletePersonRequest() {} @@ -33,7 +36,7 @@ std::string DeletePersonRequest::getRegionId()const void DeletePersonRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string DeletePersonRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string DeletePersonRequest::getClientInfo()const void DeletePersonRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeleteSimilarityImageRequest.cc b/green/src/model/DeleteSimilarityImageRequest.cc index 3eee4beb9..6fb7bbf9f 100644 --- a/green/src/model/DeleteSimilarityImageRequest.cc +++ b/green/src/model/DeleteSimilarityImageRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteSimilarityImageRequest; DeleteSimilarityImageRequest::DeleteSimilarityImageRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/image/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteSimilarityImageRequest::~DeleteSimilarityImageRequest() {} @@ -33,6 +36,6 @@ std::string DeleteSimilarityImageRequest::getClientInfo()const void DeleteSimilarityImageRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeleteSimilarityLibraryRequest.cc b/green/src/model/DeleteSimilarityLibraryRequest.cc index 7abaa4f85..02f59c739 100644 --- a/green/src/model/DeleteSimilarityLibraryRequest.cc +++ b/green/src/model/DeleteSimilarityLibraryRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteSimilarityLibraryRequest; DeleteSimilarityLibraryRequest::DeleteSimilarityLibraryRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/library/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteSimilarityLibraryRequest::~DeleteSimilarityLibraryRequest() {} @@ -33,6 +36,6 @@ std::string DeleteSimilarityLibraryRequest::getClientInfo()const void DeleteSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeleteVideoDnaGroupRequest.cc b/green/src/model/DeleteVideoDnaGroupRequest.cc index 821f4d79b..b4d5204b8 100644 --- a/green/src/model/DeleteVideoDnaGroupRequest.cc +++ b/green/src/model/DeleteVideoDnaGroupRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteVideoDnaGroupRequest; DeleteVideoDnaGroupRequest::DeleteVideoDnaGroupRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/dna/group/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteVideoDnaGroupRequest::~DeleteVideoDnaGroupRequest() {} @@ -33,6 +36,6 @@ std::string DeleteVideoDnaGroupRequest::getClientInfo()const void DeleteVideoDnaGroupRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DeleteVideoDnaRequest.cc b/green/src/model/DeleteVideoDnaRequest.cc index 227bf3d2a..dcbc074ab 100644 --- a/green/src/model/DeleteVideoDnaRequest.cc +++ b/green/src/model/DeleteVideoDnaRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteVideoDnaRequest; DeleteVideoDnaRequest::DeleteVideoDnaRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/dna/delete"); + setMethod(HttpRequest::Method::Post); +} DeleteVideoDnaRequest::~DeleteVideoDnaRequest() {} @@ -33,6 +36,6 @@ std::string DeleteVideoDnaRequest::getClientInfo()const void DeleteVideoDnaRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/DescribeBizTypeImageLibRequest.cc b/green/src/model/DescribeBizTypeImageLibRequest.cc new file mode 100644 index 000000000..5a124a834 --- /dev/null +++ b/green/src/model/DescribeBizTypeImageLibRequest.cc @@ -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 + +using AlibabaCloud::Green::Model::DescribeBizTypeImageLibRequest; + +DescribeBizTypeImageLibRequest::DescribeBizTypeImageLibRequest() : + RpcServiceRequest("green", "2017-08-23", "DescribeBizTypeImageLib") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeBizTypeImageLibRequest::~DescribeBizTypeImageLibRequest() +{} + +std::string DescribeBizTypeImageLibRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeBizTypeImageLibRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribeBizTypeImageLibRequest::getScene()const +{ + return scene_; +} + +void DescribeBizTypeImageLibRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + +std::string DescribeBizTypeImageLibRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeBizTypeImageLibRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeBizTypeImageLibRequest::getBizTypeName()const +{ + return bizTypeName_; +} + +void DescribeBizTypeImageLibRequest::setBizTypeName(const std::string& bizTypeName) +{ + bizTypeName_ = bizTypeName; + setParameter("BizTypeName", bizTypeName); +} + diff --git a/green/src/model/DescribeBizTypeImageLibResult.cc b/green/src/model/DescribeBizTypeImageLibResult.cc new file mode 100644 index 000000000..fff92b446 --- /dev/null +++ b/green/src/model/DescribeBizTypeImageLibResult.cc @@ -0,0 +1,122 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +DescribeBizTypeImageLibResult::DescribeBizTypeImageLibResult() : + ServiceResult() +{} + +DescribeBizTypeImageLibResult::DescribeBizTypeImageLibResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBizTypeImageLibResult::~DescribeBizTypeImageLibResult() +{} + +void DescribeBizTypeImageLibResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto blackNode = value["Black"]; + auto allSelectedNode = blackNode["Selected"]["item"]; + for (auto blackNodeSelecteditem : allSelectedNode) + { + Black::Item itemObject; + if(!blackNodeSelecteditem["Name"].isNull()) + itemObject.name = blackNodeSelecteditem["Name"].asString(); + if(!blackNodeSelecteditem["Code"].isNull()) + itemObject.code = blackNodeSelecteditem["Code"].asString(); + black_.selected.push_back(itemObject); + } + auto allAllNode = blackNode["All"]["item"]; + for (auto blackNodeAllitem : allAllNode) + { + Black::Item itemObject; + if(!blackNodeAllitem["Name"].isNull()) + itemObject.name = blackNodeAllitem["Name"].asString(); + if(!blackNodeAllitem["Code"].isNull()) + itemObject.code = blackNodeAllitem["Code"].asString(); + black_.all.push_back(itemObject); + } + auto reviewNode = value["Review"]; + auto allSelected1Node = reviewNode["Selected"]["item"]; + for (auto reviewNodeSelecteditem : allSelected1Node) + { + Review::Item3 item3Object; + if(!reviewNodeSelecteditem["Name"].isNull()) + item3Object.name = reviewNodeSelecteditem["Name"].asString(); + if(!reviewNodeSelecteditem["Code"].isNull()) + item3Object.code = reviewNodeSelecteditem["Code"].asString(); + review_.selected1.push_back(item3Object); + } + auto allAll2Node = reviewNode["All"]["item"]; + for (auto reviewNodeAllitem : allAll2Node) + { + Review::Item itemObject; + if(!reviewNodeAllitem["Name"].isNull()) + itemObject.name = reviewNodeAllitem["Name"].asString(); + if(!reviewNodeAllitem["Code"].isNull()) + itemObject.code = reviewNodeAllitem["Code"].asString(); + review_.all2.push_back(itemObject); + } + auto whiteNode = value["White"]; + auto allSelected4Node = whiteNode["Selected"]["item"]; + for (auto whiteNodeSelecteditem : allSelected4Node) + { + White::Item6 item6Object; + if(!whiteNodeSelecteditem["Name"].isNull()) + item6Object.name = whiteNodeSelecteditem["Name"].asString(); + if(!whiteNodeSelecteditem["Code"].isNull()) + item6Object.code = whiteNodeSelecteditem["Code"].asString(); + white_.selected4.push_back(item6Object); + } + auto allAll5Node = whiteNode["All"]["item"]; + for (auto whiteNodeAllitem : allAll5Node) + { + White::Item itemObject; + if(!whiteNodeAllitem["Name"].isNull()) + itemObject.name = whiteNodeAllitem["Name"].asString(); + if(!whiteNodeAllitem["Code"].isNull()) + itemObject.code = whiteNodeAllitem["Code"].asString(); + white_.all5.push_back(itemObject); + } + +} + +DescribeBizTypeImageLibResult::White DescribeBizTypeImageLibResult::getWhite()const +{ + return white_; +} + +DescribeBizTypeImageLibResult::Black DescribeBizTypeImageLibResult::getBlack()const +{ + return black_; +} + +DescribeBizTypeImageLibResult::Review DescribeBizTypeImageLibResult::getReview()const +{ + return review_; +} + diff --git a/green/src/model/DescribeBizTypeTextLibRequest.cc b/green/src/model/DescribeBizTypeTextLibRequest.cc new file mode 100644 index 000000000..d7bef444f --- /dev/null +++ b/green/src/model/DescribeBizTypeTextLibRequest.cc @@ -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 + +using AlibabaCloud::Green::Model::DescribeBizTypeTextLibRequest; + +DescribeBizTypeTextLibRequest::DescribeBizTypeTextLibRequest() : + RpcServiceRequest("green", "2017-08-23", "DescribeBizTypeTextLib") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeBizTypeTextLibRequest::~DescribeBizTypeTextLibRequest() +{} + +std::string DescribeBizTypeTextLibRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeBizTypeTextLibRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribeBizTypeTextLibRequest::getScene()const +{ + return scene_; +} + +void DescribeBizTypeTextLibRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + +std::string DescribeBizTypeTextLibRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeBizTypeTextLibRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeBizTypeTextLibRequest::getBizTypeName()const +{ + return bizTypeName_; +} + +void DescribeBizTypeTextLibRequest::setBizTypeName(const std::string& bizTypeName) +{ + bizTypeName_ = bizTypeName; + setParameter("BizTypeName", bizTypeName); +} + diff --git a/green/src/model/DescribeBizTypeTextLibResult.cc b/green/src/model/DescribeBizTypeTextLibResult.cc new file mode 100644 index 000000000..c6e19fe59 --- /dev/null +++ b/green/src/model/DescribeBizTypeTextLibResult.cc @@ -0,0 +1,148 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +DescribeBizTypeTextLibResult::DescribeBizTypeTextLibResult() : + ServiceResult() +{} + +DescribeBizTypeTextLibResult::DescribeBizTypeTextLibResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBizTypeTextLibResult::~DescribeBizTypeTextLibResult() +{} + +void DescribeBizTypeTextLibResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto blackNode = value["Black"]; + auto allSelectedNode = blackNode["Selected"]["item"]; + for (auto blackNodeSelecteditem : allSelectedNode) + { + Black::Item itemObject; + if(!blackNodeSelecteditem["Name"].isNull()) + itemObject.name = blackNodeSelecteditem["Name"].asString(); + if(!blackNodeSelecteditem["Code"].isNull()) + itemObject.code = blackNodeSelecteditem["Code"].asString(); + black_.selected.push_back(itemObject); + } + auto allAllNode = blackNode["All"]["item"]; + for (auto blackNodeAllitem : allAllNode) + { + Black::Item itemObject; + if(!blackNodeAllitem["Name"].isNull()) + itemObject.name = blackNodeAllitem["Name"].asString(); + if(!blackNodeAllitem["Code"].isNull()) + itemObject.code = blackNodeAllitem["Code"].asString(); + black_.all.push_back(itemObject); + } + auto reviewNode = value["Review"]; + auto allSelected1Node = reviewNode["Selected"]["item"]; + for (auto reviewNodeSelecteditem : allSelected1Node) + { + Review::Item3 item3Object; + if(!reviewNodeSelecteditem["Name"].isNull()) + item3Object.name = reviewNodeSelecteditem["Name"].asString(); + if(!reviewNodeSelecteditem["Code"].isNull()) + item3Object.code = reviewNodeSelecteditem["Code"].asString(); + review_.selected1.push_back(item3Object); + } + auto allAll2Node = reviewNode["All"]["item"]; + for (auto reviewNodeAllitem : allAll2Node) + { + Review::Item itemObject; + if(!reviewNodeAllitem["Name"].isNull()) + itemObject.name = reviewNodeAllitem["Name"].asString(); + if(!reviewNodeAllitem["Code"].isNull()) + itemObject.code = reviewNodeAllitem["Code"].asString(); + review_.all2.push_back(itemObject); + } + auto ignoreNode = value["Ignore"]; + auto allSelected4Node = ignoreNode["Selected"]["item"]; + for (auto ignoreNodeSelecteditem : allSelected4Node) + { + Ignore::Item6 item6Object; + if(!ignoreNodeSelecteditem["Name"].isNull()) + item6Object.name = ignoreNodeSelecteditem["Name"].asString(); + if(!ignoreNodeSelecteditem["Code"].isNull()) + item6Object.code = ignoreNodeSelecteditem["Code"].asString(); + ignore_.selected4.push_back(item6Object); + } + auto allAll5Node = ignoreNode["All"]["item"]; + for (auto ignoreNodeAllitem : allAll5Node) + { + Ignore::Item itemObject; + if(!ignoreNodeAllitem["Name"].isNull()) + itemObject.name = ignoreNodeAllitem["Name"].asString(); + if(!ignoreNodeAllitem["Code"].isNull()) + itemObject.code = ignoreNodeAllitem["Code"].asString(); + ignore_.all5.push_back(itemObject); + } + auto whiteNode = value["White"]; + auto allSelected7Node = whiteNode["Selected"]["item"]; + for (auto whiteNodeSelecteditem : allSelected7Node) + { + White::Item9 item9Object; + if(!whiteNodeSelecteditem["Name"].isNull()) + item9Object.name = whiteNodeSelecteditem["Name"].asString(); + if(!whiteNodeSelecteditem["Code"].isNull()) + item9Object.code = whiteNodeSelecteditem["Code"].asString(); + white_.selected7.push_back(item9Object); + } + auto allAll8Node = whiteNode["All"]["item"]; + for (auto whiteNodeAllitem : allAll8Node) + { + White::Item itemObject; + if(!whiteNodeAllitem["Name"].isNull()) + itemObject.name = whiteNodeAllitem["Name"].asString(); + if(!whiteNodeAllitem["Code"].isNull()) + itemObject.code = whiteNodeAllitem["Code"].asString(); + white_.all8.push_back(itemObject); + } + +} + +DescribeBizTypeTextLibResult::Ignore DescribeBizTypeTextLibResult::getIgnore()const +{ + return ignore_; +} + +DescribeBizTypeTextLibResult::White DescribeBizTypeTextLibResult::getWhite()const +{ + return white_; +} + +DescribeBizTypeTextLibResult::Black DescribeBizTypeTextLibResult::getBlack()const +{ + return black_; +} + +DescribeBizTypeTextLibResult::Review DescribeBizTypeTextLibResult::getReview()const +{ + return review_; +} + diff --git a/green/src/model/DescribeOssIncrementCheckSettingResult.cc b/green/src/model/DescribeOssIncrementCheckSettingResult.cc index 3e72b13a9..4d6caed31 100644 --- a/green/src/model/DescribeOssIncrementCheckSettingResult.cc +++ b/green/src/model/DescribeOssIncrementCheckSettingResult.cc @@ -59,6 +59,10 @@ void DescribeOssIncrementCheckSettingResult::parse(const std::string &payload) imageAutoFreeze_.porn = imageAutoFreezeNode["Porn"].asString(); if(!imageAutoFreezeNode["Terrorism"].isNull()) imageAutoFreeze_.terrorism = imageAutoFreezeNode["Terrorism"].asString(); + if(!imageAutoFreezeNode["Ad"].isNull()) + imageAutoFreeze_.ad = imageAutoFreezeNode["Ad"].asString(); + if(!imageAutoFreezeNode["Live"].isNull()) + imageAutoFreeze_.live = imageAutoFreezeNode["Live"].asString(); auto allImageSceneList = value["ImageSceneList"]["ImageScene"]; for (const auto &item : allImageSceneList) imageSceneList_.push_back(item.asString()); diff --git a/green/src/model/DescribeUserBizTypesResult.cc b/green/src/model/DescribeUserBizTypesResult.cc index 574e8b83d..2e65fb2b2 100644 --- a/green/src/model/DescribeUserBizTypesResult.cc +++ b/green/src/model/DescribeUserBizTypesResult.cc @@ -51,6 +51,10 @@ void DescribeUserBizTypesResult::parse(const std::string &payload) bizTypeListObject.gray = valueBizTypeListitem["Gray"].asString() == "true"; if(!valueBizTypeListitem["Source"].isNull()) bizTypeListObject.source = valueBizTypeListitem["Source"].asString(); + if(!valueBizTypeListitem["CiteTemplate"].isNull()) + bizTypeListObject.citeTemplate = valueBizTypeListitem["CiteTemplate"].asString() == "true"; + if(!valueBizTypeListitem["IndustryInfo"].isNull()) + bizTypeListObject.industryInfo = valueBizTypeListitem["IndustryInfo"].asString(); bizTypeList_.push_back(bizTypeListObject); } auto allBizTypeListImportNode = value["BizTypeListImport"]["item"]; @@ -65,6 +69,10 @@ void DescribeUserBizTypesResult::parse(const std::string &payload) bizTypeListImportObject.gray = valueBizTypeListImportitem["Gray"].asString() == "true"; if(!valueBizTypeListImportitem["Source"].isNull()) bizTypeListImportObject.source = valueBizTypeListImportitem["Source"].asString(); + if(!valueBizTypeListImportitem["CiteTemplate"].isNull()) + bizTypeListImportObject.citeTemplate = valueBizTypeListImportitem["CiteTemplate"].asString() == "true"; + if(!valueBizTypeListImportitem["IndustryInfo"].isNull()) + bizTypeListImportObject.industryInfo = valueBizTypeListImportitem["IndustryInfo"].asString(); bizTypeListImport_.push_back(bizTypeListImportObject); } diff --git a/green/src/model/DetectFaceRequest.cc b/green/src/model/DetectFaceRequest.cc index 6087cc805..ca2fe1b0e 100644 --- a/green/src/model/DetectFaceRequest.cc +++ b/green/src/model/DetectFaceRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DetectFaceRequest; DetectFaceRequest::DetectFaceRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/face/detect"); + setMethod(HttpRequest::Method::Post); +} DetectFaceRequest::~DetectFaceRequest() {} @@ -33,6 +36,6 @@ std::string DetectFaceRequest::getClientInfo()const void DetectFaceRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/FileAsyncScanRequest.cc b/green/src/model/FileAsyncScanRequest.cc index c9cdb8608..daf53be64 100644 --- a/green/src/model/FileAsyncScanRequest.cc +++ b/green/src/model/FileAsyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::FileAsyncScanRequest; FileAsyncScanRequest::FileAsyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/file/asyncscan"); + setMethod(HttpRequest::Method::Post); +} FileAsyncScanRequest::~FileAsyncScanRequest() {} @@ -33,6 +36,6 @@ std::string FileAsyncScanRequest::getClientInfo()const void FileAsyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/FileAsyncScanResultsRequest.cc b/green/src/model/FileAsyncScanResultsRequest.cc index 635156eeb..472b7aa71 100644 --- a/green/src/model/FileAsyncScanResultsRequest.cc +++ b/green/src/model/FileAsyncScanResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::FileAsyncScanResultsRequest; FileAsyncScanResultsRequest::FileAsyncScanResultsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/file/results"); + setMethod(HttpRequest::Method::Post); +} FileAsyncScanResultsRequest::~FileAsyncScanResultsRequest() {} @@ -33,6 +36,6 @@ std::string FileAsyncScanResultsRequest::getClientInfo()const void FileAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetAddVideoDnaResultsRequest.cc b/green/src/model/GetAddVideoDnaResultsRequest.cc index d9d4942f2..2caaff95e 100644 --- a/green/src/model/GetAddVideoDnaResultsRequest.cc +++ b/green/src/model/GetAddVideoDnaResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetAddVideoDnaResultsRequest; GetAddVideoDnaResultsRequest::GetAddVideoDnaResultsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/dna/add/results"); + setMethod(HttpRequest::Method::Post); +} GetAddVideoDnaResultsRequest::~GetAddVideoDnaResultsRequest() {} @@ -33,6 +36,6 @@ std::string GetAddVideoDnaResultsRequest::getClientInfo()const void GetAddVideoDnaResultsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetFacesRequest.cc b/green/src/model/GetFacesRequest.cc index 55c731d00..8e842041a 100644 --- a/green/src/model/GetFacesRequest.cc +++ b/green/src/model/GetFacesRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetFacesRequest; GetFacesRequest::GetFacesRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/faces"); + setMethod(HttpRequest::Method::Post); +} GetFacesRequest::~GetFacesRequest() {} @@ -33,7 +36,7 @@ std::string GetFacesRequest::getRegionId()const void GetFacesRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string GetFacesRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string GetFacesRequest::getClientInfo()const void GetFacesRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetGroupsRequest.cc b/green/src/model/GetGroupsRequest.cc index f19b2942e..306f0adf7 100644 --- a/green/src/model/GetGroupsRequest.cc +++ b/green/src/model/GetGroupsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetGroupsRequest; GetGroupsRequest::GetGroupsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/groups"); + setMethod(HttpRequest::Method::Post); +} GetGroupsRequest::~GetGroupsRequest() {} @@ -33,7 +36,7 @@ std::string GetGroupsRequest::getRegionId()const void GetGroupsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string GetGroupsRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string GetGroupsRequest::getClientInfo()const void GetGroupsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetPersonRequest.cc b/green/src/model/GetPersonRequest.cc index 999c2491f..a63214ecd 100644 --- a/green/src/model/GetPersonRequest.cc +++ b/green/src/model/GetPersonRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetPersonRequest; GetPersonRequest::GetPersonRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person"); + setMethod(HttpRequest::Method::Post); +} GetPersonRequest::~GetPersonRequest() {} @@ -33,7 +36,7 @@ std::string GetPersonRequest::getRegionId()const void GetPersonRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string GetPersonRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string GetPersonRequest::getClientInfo()const void GetPersonRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetPersonsRequest.cc b/green/src/model/GetPersonsRequest.cc index 4d36f3df3..9964847cb 100644 --- a/green/src/model/GetPersonsRequest.cc +++ b/green/src/model/GetPersonsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetPersonsRequest; GetPersonsRequest::GetPersonsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/group/persons"); + setMethod(HttpRequest::Method::Post); +} GetPersonsRequest::~GetPersonsRequest() {} @@ -33,7 +36,7 @@ std::string GetPersonsRequest::getRegionId()const void GetPersonsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string GetPersonsRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string GetPersonsRequest::getClientInfo()const void GetPersonsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetSimilarityImageRequest.cc b/green/src/model/GetSimilarityImageRequest.cc index d6061c6e7..40159614e 100644 --- a/green/src/model/GetSimilarityImageRequest.cc +++ b/green/src/model/GetSimilarityImageRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetSimilarityImageRequest; GetSimilarityImageRequest::GetSimilarityImageRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/image/get"); + setMethod(HttpRequest::Method::Post); +} GetSimilarityImageRequest::~GetSimilarityImageRequest() {} @@ -33,6 +36,6 @@ std::string GetSimilarityImageRequest::getClientInfo()const void GetSimilarityImageRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/GetSimilarityLibraryRequest.cc b/green/src/model/GetSimilarityLibraryRequest.cc index 7bbec470f..5410837d2 100644 --- a/green/src/model/GetSimilarityLibraryRequest.cc +++ b/green/src/model/GetSimilarityLibraryRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetSimilarityLibraryRequest; GetSimilarityLibraryRequest::GetSimilarityLibraryRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/library/get"); + setMethod(HttpRequest::Method::Post); +} GetSimilarityLibraryRequest::~GetSimilarityLibraryRequest() {} @@ -33,6 +36,6 @@ std::string GetSimilarityLibraryRequest::getClientInfo()const void GetSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ImageAsyncScanRequest.cc b/green/src/model/ImageAsyncScanRequest.cc index da8ed50c0..d90d7d64b 100644 --- a/green/src/model/ImageAsyncScanRequest.cc +++ b/green/src/model/ImageAsyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageAsyncScanRequest; ImageAsyncScanRequest::ImageAsyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/image/asyncscan"); + setMethod(HttpRequest::Method::Post); +} ImageAsyncScanRequest::~ImageAsyncScanRequest() {} @@ -33,6 +36,6 @@ std::string ImageAsyncScanRequest::getClientInfo()const void ImageAsyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ImageAsyncScanResultsRequest.cc b/green/src/model/ImageAsyncScanResultsRequest.cc index c922db165..1397860ef 100644 --- a/green/src/model/ImageAsyncScanResultsRequest.cc +++ b/green/src/model/ImageAsyncScanResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageAsyncScanResultsRequest; ImageAsyncScanResultsRequest::ImageAsyncScanResultsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/image/results"); + setMethod(HttpRequest::Method::Post); +} ImageAsyncScanResultsRequest::~ImageAsyncScanResultsRequest() {} @@ -33,6 +36,6 @@ std::string ImageAsyncScanResultsRequest::getClientInfo()const void ImageAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ImageDetectionRequest.cc b/green/src/model/ImageDetectionRequest.cc index f33924020..418dfc29b 100644 --- a/green/src/model/ImageDetectionRequest.cc +++ b/green/src/model/ImageDetectionRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageDetectionRequest; ImageDetectionRequest::ImageDetectionRequest() : RoaServiceRequest("green", "2016-12-22") -{} +{ + setResourcePath("/image/detection"); + setMethod(HttpRequest::Method::Post); +} ImageDetectionRequest::~ImageDetectionRequest() {} diff --git a/green/src/model/ImageResultRequest.cc b/green/src/model/ImageResultRequest.cc index c476c249f..2fadb91c4 100644 --- a/green/src/model/ImageResultRequest.cc +++ b/green/src/model/ImageResultRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageResultRequest; ImageResultRequest::ImageResultRequest() : RoaServiceRequest("green", "2016-12-22") -{} +{ + setResourcePath("/image/result/[taskid]"); + setMethod(HttpRequest::Method::Get); +} ImageResultRequest::~ImageResultRequest() {} @@ -33,6 +36,6 @@ std::string ImageResultRequest::getTaskid()const void ImageResultRequest::setTaskid(const std::string& taskid) { taskid_ = taskid; - setCoreParameter("Taskid", taskid); + setParameter("Taskid", taskid); } diff --git a/green/src/model/ImageResultsRequest.cc b/green/src/model/ImageResultsRequest.cc index daacbefef..8b9106148 100644 --- a/green/src/model/ImageResultsRequest.cc +++ b/green/src/model/ImageResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageResultsRequest; ImageResultsRequest::ImageResultsRequest() : RoaServiceRequest("green", "2016-12-22") -{} +{ + setResourcePath("/image/results"); + setMethod(HttpRequest::Method::Post); +} ImageResultsRequest::~ImageResultsRequest() {} diff --git a/green/src/model/ImageScanFeedbackRequest.cc b/green/src/model/ImageScanFeedbackRequest.cc index d7863320f..7e69146f9 100644 --- a/green/src/model/ImageScanFeedbackRequest.cc +++ b/green/src/model/ImageScanFeedbackRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageScanFeedbackRequest; ImageScanFeedbackRequest::ImageScanFeedbackRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/image/feedback"); + setMethod(HttpRequest::Method::Post); +} ImageScanFeedbackRequest::~ImageScanFeedbackRequest() {} @@ -33,6 +36,6 @@ std::string ImageScanFeedbackRequest::getClientInfo()const void ImageScanFeedbackRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ImageSyncScanRequest.cc b/green/src/model/ImageSyncScanRequest.cc index c5528f3eb..c1ef3a7e5 100644 --- a/green/src/model/ImageSyncScanRequest.cc +++ b/green/src/model/ImageSyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageSyncScanRequest; ImageSyncScanRequest::ImageSyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/image/scan"); + setMethod(HttpRequest::Method::Post); +} ImageSyncScanRequest::~ImageSyncScanRequest() {} @@ -33,6 +36,6 @@ std::string ImageSyncScanRequest::getClientInfo()const void ImageSyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ListSimilarityImagesRequest.cc b/green/src/model/ListSimilarityImagesRequest.cc index 4ab24a988..4ffe3377d 100644 --- a/green/src/model/ListSimilarityImagesRequest.cc +++ b/green/src/model/ListSimilarityImagesRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ListSimilarityImagesRequest; ListSimilarityImagesRequest::ListSimilarityImagesRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/image/list"); + setMethod(HttpRequest::Method::Post); +} ListSimilarityImagesRequest::~ListSimilarityImagesRequest() {} @@ -33,6 +36,6 @@ std::string ListSimilarityImagesRequest::getClientInfo()const void ListSimilarityImagesRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/ListSimilarityLibrariesRequest.cc b/green/src/model/ListSimilarityLibrariesRequest.cc index e34a5a6fd..edd7ff891 100644 --- a/green/src/model/ListSimilarityLibrariesRequest.cc +++ b/green/src/model/ListSimilarityLibrariesRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ListSimilarityLibrariesRequest; ListSimilarityLibrariesRequest::ListSimilarityLibrariesRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/similarity/library/list"); + setMethod(HttpRequest::Method::Post); +} ListSimilarityLibrariesRequest::~ListSimilarityLibrariesRequest() {} @@ -33,6 +36,6 @@ std::string ListSimilarityLibrariesRequest::getClientInfo()const void ListSimilarityLibrariesRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/SampleFeedbackRequest.cc b/green/src/model/SampleFeedbackRequest.cc index 398a02f84..112c5d1c4 100644 --- a/green/src/model/SampleFeedbackRequest.cc +++ b/green/src/model/SampleFeedbackRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SampleFeedbackRequest; SampleFeedbackRequest::SampleFeedbackRequest() : RoaServiceRequest("green", "2016-12-22") -{} +{ + setResourcePath("/sample/feedback"); + setMethod(HttpRequest::Method::Post); +} SampleFeedbackRequest::~SampleFeedbackRequest() {} diff --git a/green/src/model/SearchPersonRequest.cc b/green/src/model/SearchPersonRequest.cc index 465056415..5a768db76 100644 --- a/green/src/model/SearchPersonRequest.cc +++ b/green/src/model/SearchPersonRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SearchPersonRequest; SearchPersonRequest::SearchPersonRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/search"); + setMethod(HttpRequest::Method::Post); +} SearchPersonRequest::~SearchPersonRequest() {} @@ -33,7 +36,7 @@ std::string SearchPersonRequest::getRegionId()const void SearchPersonRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string SearchPersonRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string SearchPersonRequest::getClientInfo()const void SearchPersonRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/SetPersonRequest.cc b/green/src/model/SetPersonRequest.cc index 580a7dba6..0de18e974 100644 --- a/green/src/model/SetPersonRequest.cc +++ b/green/src/model/SetPersonRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SetPersonRequest; SetPersonRequest::SetPersonRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/sface/person/update"); + setMethod(HttpRequest::Method::Post); +} SetPersonRequest::~SetPersonRequest() {} @@ -33,7 +36,7 @@ std::string SetPersonRequest::getRegionId()const void SetPersonRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string SetPersonRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string SetPersonRequest::getClientInfo()const void SetPersonRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/TextFeedbackRequest.cc b/green/src/model/TextFeedbackRequest.cc index 240caf075..a962773ab 100644 --- a/green/src/model/TextFeedbackRequest.cc +++ b/green/src/model/TextFeedbackRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextFeedbackRequest; TextFeedbackRequest::TextFeedbackRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/text/feedback"); + setMethod(HttpRequest::Method::Post); +} TextFeedbackRequest::~TextFeedbackRequest() {} @@ -33,6 +36,6 @@ std::string TextFeedbackRequest::getClientInfo()const void TextFeedbackRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/TextKeywordFilterRequest.cc b/green/src/model/TextKeywordFilterRequest.cc index e0e69921b..5b7c5aa85 100644 --- a/green/src/model/TextKeywordFilterRequest.cc +++ b/green/src/model/TextKeywordFilterRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextKeywordFilterRequest; TextKeywordFilterRequest::TextKeywordFilterRequest() : RoaServiceRequest("green", "2016-12-22") -{} +{ + setResourcePath("/text/keyword_filter"); + setMethod(HttpRequest::Method::Post); +} TextKeywordFilterRequest::~TextKeywordFilterRequest() {} diff --git a/green/src/model/TextScanRequest.cc b/green/src/model/TextScanRequest.cc index 83ad8a77e..6e6273fe1 100644 --- a/green/src/model/TextScanRequest.cc +++ b/green/src/model/TextScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextScanRequest; TextScanRequest::TextScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/text/scan"); + setMethod(HttpRequest::Method::Post); +} TextScanRequest::~TextScanRequest() {} @@ -33,6 +36,6 @@ std::string TextScanRequest::getClientInfo()const void TextScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/UpdateBizTypeImageLibRequest.cc b/green/src/model/UpdateBizTypeImageLibRequest.cc new file mode 100644 index 000000000..166493417 --- /dev/null +++ b/green/src/model/UpdateBizTypeImageLibRequest.cc @@ -0,0 +1,106 @@ +/* + * 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 + +using AlibabaCloud::Green::Model::UpdateBizTypeImageLibRequest; + +UpdateBizTypeImageLibRequest::UpdateBizTypeImageLibRequest() : + RpcServiceRequest("green", "2017-08-23", "UpdateBizTypeImageLib") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateBizTypeImageLibRequest::~UpdateBizTypeImageLibRequest() +{} + +std::string UpdateBizTypeImageLibRequest::getScene()const +{ + return scene_; +} + +void UpdateBizTypeImageLibRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + +std::string UpdateBizTypeImageLibRequest::getSourceIp()const +{ + return sourceIp_; +} + +void UpdateBizTypeImageLibRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string UpdateBizTypeImageLibRequest::getWhite()const +{ + return white_; +} + +void UpdateBizTypeImageLibRequest::setWhite(const std::string& white) +{ + white_ = white; + setParameter("White", white); +} + +std::string UpdateBizTypeImageLibRequest::getReview()const +{ + return review_; +} + +void UpdateBizTypeImageLibRequest::setReview(const std::string& review) +{ + review_ = review; + setParameter("Review", review); +} + +std::string UpdateBizTypeImageLibRequest::getBizTypeName()const +{ + return bizTypeName_; +} + +void UpdateBizTypeImageLibRequest::setBizTypeName(const std::string& bizTypeName) +{ + bizTypeName_ = bizTypeName; + setParameter("BizTypeName", bizTypeName); +} + +std::string UpdateBizTypeImageLibRequest::getBlack()const +{ + return black_; +} + +void UpdateBizTypeImageLibRequest::setBlack(const std::string& black) +{ + black_ = black; + setParameter("Black", black); +} + +std::string UpdateBizTypeImageLibRequest::getResourceType()const +{ + return resourceType_; +} + +void UpdateBizTypeImageLibRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/green/src/model/UpdateBizTypeImageLibResult.cc b/green/src/model/UpdateBizTypeImageLibResult.cc new file mode 100644 index 000000000..5a574ba60 --- /dev/null +++ b/green/src/model/UpdateBizTypeImageLibResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +UpdateBizTypeImageLibResult::UpdateBizTypeImageLibResult() : + ServiceResult() +{} + +UpdateBizTypeImageLibResult::UpdateBizTypeImageLibResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBizTypeImageLibResult::~UpdateBizTypeImageLibResult() +{} + +void UpdateBizTypeImageLibResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/green/src/model/UpdateBizTypeTextLibRequest.cc b/green/src/model/UpdateBizTypeTextLibRequest.cc new file mode 100644 index 000000000..e71cd16e2 --- /dev/null +++ b/green/src/model/UpdateBizTypeTextLibRequest.cc @@ -0,0 +1,117 @@ +/* + * 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 + +using AlibabaCloud::Green::Model::UpdateBizTypeTextLibRequest; + +UpdateBizTypeTextLibRequest::UpdateBizTypeTextLibRequest() : + RpcServiceRequest("green", "2017-08-23", "UpdateBizTypeTextLib") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateBizTypeTextLibRequest::~UpdateBizTypeTextLibRequest() +{} + +std::string UpdateBizTypeTextLibRequest::getScene()const +{ + return scene_; +} + +void UpdateBizTypeTextLibRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + +std::string UpdateBizTypeTextLibRequest::getSourceIp()const +{ + return sourceIp_; +} + +void UpdateBizTypeTextLibRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string UpdateBizTypeTextLibRequest::getWhite()const +{ + return white_; +} + +void UpdateBizTypeTextLibRequest::setWhite(const std::string& white) +{ + white_ = white; + setParameter("White", white); +} + +std::string UpdateBizTypeTextLibRequest::getReview()const +{ + return review_; +} + +void UpdateBizTypeTextLibRequest::setReview(const std::string& review) +{ + review_ = review; + setParameter("Review", review); +} + +std::string UpdateBizTypeTextLibRequest::getIgnore()const +{ + return ignore_; +} + +void UpdateBizTypeTextLibRequest::setIgnore(const std::string& ignore) +{ + ignore_ = ignore; + setParameter("Ignore", ignore); +} + +std::string UpdateBizTypeTextLibRequest::getBizTypeName()const +{ + return bizTypeName_; +} + +void UpdateBizTypeTextLibRequest::setBizTypeName(const std::string& bizTypeName) +{ + bizTypeName_ = bizTypeName; + setParameter("BizTypeName", bizTypeName); +} + +std::string UpdateBizTypeTextLibRequest::getBlack()const +{ + return black_; +} + +void UpdateBizTypeTextLibRequest::setBlack(const std::string& black) +{ + black_ = black; + setParameter("Black", black); +} + +std::string UpdateBizTypeTextLibRequest::getResourceType()const +{ + return resourceType_; +} + +void UpdateBizTypeTextLibRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/green/src/model/UpdateBizTypeTextLibResult.cc b/green/src/model/UpdateBizTypeTextLibResult.cc new file mode 100644 index 000000000..e28b54922 --- /dev/null +++ b/green/src/model/UpdateBizTypeTextLibResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +UpdateBizTypeTextLibResult::UpdateBizTypeTextLibResult() : + ServiceResult() +{} + +UpdateBizTypeTextLibResult::UpdateBizTypeTextLibResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBizTypeTextLibResult::~UpdateBizTypeTextLibResult() +{} + +void UpdateBizTypeTextLibResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/green/src/model/UploadCredentialsRequest.cc b/green/src/model/UploadCredentialsRequest.cc index 173d40e3e..d76b56421 100644 --- a/green/src/model/UploadCredentialsRequest.cc +++ b/green/src/model/UploadCredentialsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::UploadCredentialsRequest; UploadCredentialsRequest::UploadCredentialsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/credentials/uploadcredentials"); + setMethod(HttpRequest::Method::Post); +} UploadCredentialsRequest::~UploadCredentialsRequest() {} @@ -33,7 +36,7 @@ std::string UploadCredentialsRequest::getRegionId()const void UploadCredentialsRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string UploadCredentialsRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string UploadCredentialsRequest::getClientInfo()const void UploadCredentialsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VideoAsyncScanRequest.cc b/green/src/model/VideoAsyncScanRequest.cc index 6eff6ff15..9fd6a3cd5 100644 --- a/green/src/model/VideoAsyncScanRequest.cc +++ b/green/src/model/VideoAsyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoAsyncScanRequest; VideoAsyncScanRequest::VideoAsyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/asyncscan"); + setMethod(HttpRequest::Method::Post); +} VideoAsyncScanRequest::~VideoAsyncScanRequest() {} @@ -33,6 +36,6 @@ std::string VideoAsyncScanRequest::getClientInfo()const void VideoAsyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VideoAsyncScanResultsRequest.cc b/green/src/model/VideoAsyncScanResultsRequest.cc index 7b8a4a338..78e766c1f 100644 --- a/green/src/model/VideoAsyncScanResultsRequest.cc +++ b/green/src/model/VideoAsyncScanResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoAsyncScanResultsRequest; VideoAsyncScanResultsRequest::VideoAsyncScanResultsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/results"); + setMethod(HttpRequest::Method::Post); +} VideoAsyncScanResultsRequest::~VideoAsyncScanResultsRequest() {} @@ -33,6 +36,6 @@ std::string VideoAsyncScanResultsRequest::getClientInfo()const void VideoAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VideoCancelScanRequest.cc b/green/src/model/VideoCancelScanRequest.cc index ab3cca043..3a5c39e41 100644 --- a/green/src/model/VideoCancelScanRequest.cc +++ b/green/src/model/VideoCancelScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoCancelScanRequest; VideoCancelScanRequest::VideoCancelScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/cancelscan"); + setMethod(HttpRequest::Method::Post); +} VideoCancelScanRequest::~VideoCancelScanRequest() {} @@ -33,6 +36,6 @@ std::string VideoCancelScanRequest::getClientInfo()const void VideoCancelScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VideoFeedbackRequest.cc b/green/src/model/VideoFeedbackRequest.cc index 35d93bcd6..40b0e8b5d 100644 --- a/green/src/model/VideoFeedbackRequest.cc +++ b/green/src/model/VideoFeedbackRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoFeedbackRequest; VideoFeedbackRequest::VideoFeedbackRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/feedback"); + setMethod(HttpRequest::Method::Post); +} VideoFeedbackRequest::~VideoFeedbackRequest() {} @@ -33,6 +36,6 @@ std::string VideoFeedbackRequest::getClientInfo()const void VideoFeedbackRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VideoSyncScanRequest.cc b/green/src/model/VideoSyncScanRequest.cc index aed97184d..52ac953fc 100644 --- a/green/src/model/VideoSyncScanRequest.cc +++ b/green/src/model/VideoSyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoSyncScanRequest; VideoSyncScanRequest::VideoSyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/video/syncscan"); + setMethod(HttpRequest::Method::Post); +} VideoSyncScanRequest::~VideoSyncScanRequest() {} @@ -33,6 +36,6 @@ std::string VideoSyncScanRequest::getClientInfo()const void VideoSyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceAsyncScanRequest.cc b/green/src/model/VoiceAsyncScanRequest.cc index d527ab1b9..0e3df5368 100644 --- a/green/src/model/VoiceAsyncScanRequest.cc +++ b/green/src/model/VoiceAsyncScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceAsyncScanRequest; VoiceAsyncScanRequest::VoiceAsyncScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/asyncscan"); + setMethod(HttpRequest::Method::Post); +} VoiceAsyncScanRequest::~VoiceAsyncScanRequest() {} @@ -33,6 +36,6 @@ std::string VoiceAsyncScanRequest::getClientInfo()const void VoiceAsyncScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceAsyncScanResultsRequest.cc b/green/src/model/VoiceAsyncScanResultsRequest.cc index d12e0855a..31bac1256 100644 --- a/green/src/model/VoiceAsyncScanResultsRequest.cc +++ b/green/src/model/VoiceAsyncScanResultsRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceAsyncScanResultsRequest; VoiceAsyncScanResultsRequest::VoiceAsyncScanResultsRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/results"); + setMethod(HttpRequest::Method::Post); +} VoiceAsyncScanResultsRequest::~VoiceAsyncScanResultsRequest() {} @@ -33,6 +36,6 @@ std::string VoiceAsyncScanResultsRequest::getClientInfo()const void VoiceAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceCancelScanRequest.cc b/green/src/model/VoiceCancelScanRequest.cc index 70e3227d3..98252e43e 100644 --- a/green/src/model/VoiceCancelScanRequest.cc +++ b/green/src/model/VoiceCancelScanRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceCancelScanRequest; VoiceCancelScanRequest::VoiceCancelScanRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/cancelscan"); + setMethod(HttpRequest::Method::Post); +} VoiceCancelScanRequest::~VoiceCancelScanRequest() {} @@ -33,6 +36,6 @@ std::string VoiceCancelScanRequest::getClientInfo()const void VoiceCancelScanRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceIdentityCheckRequest.cc b/green/src/model/VoiceIdentityCheckRequest.cc index 3ab5e1e5c..cef036a43 100644 --- a/green/src/model/VoiceIdentityCheckRequest.cc +++ b/green/src/model/VoiceIdentityCheckRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityCheckRequest; VoiceIdentityCheckRequest::VoiceIdentityCheckRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/auth/check"); + setMethod(HttpRequest::Method::Post); +} VoiceIdentityCheckRequest::~VoiceIdentityCheckRequest() {} @@ -33,7 +36,7 @@ std::string VoiceIdentityCheckRequest::getRegionId()const void VoiceIdentityCheckRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string VoiceIdentityCheckRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string VoiceIdentityCheckRequest::getClientInfo()const void VoiceIdentityCheckRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceIdentityRegisterRequest.cc b/green/src/model/VoiceIdentityRegisterRequest.cc index 64684885a..daa0e7fb6 100644 --- a/green/src/model/VoiceIdentityRegisterRequest.cc +++ b/green/src/model/VoiceIdentityRegisterRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityRegisterRequest; VoiceIdentityRegisterRequest::VoiceIdentityRegisterRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/auth/register"); + setMethod(HttpRequest::Method::Post); +} VoiceIdentityRegisterRequest::~VoiceIdentityRegisterRequest() {} @@ -33,7 +36,7 @@ std::string VoiceIdentityRegisterRequest::getRegionId()const void VoiceIdentityRegisterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string VoiceIdentityRegisterRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string VoiceIdentityRegisterRequest::getClientInfo()const void VoiceIdentityRegisterRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceIdentityStartCheckRequest.cc b/green/src/model/VoiceIdentityStartCheckRequest.cc index 870ed85a3..c55fe1fa5 100644 --- a/green/src/model/VoiceIdentityStartCheckRequest.cc +++ b/green/src/model/VoiceIdentityStartCheckRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityStartCheckRequest; VoiceIdentityStartCheckRequest::VoiceIdentityStartCheckRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/auth/start/check"); + setMethod(HttpRequest::Method::Post); +} VoiceIdentityStartCheckRequest::~VoiceIdentityStartCheckRequest() {} @@ -33,7 +36,7 @@ std::string VoiceIdentityStartCheckRequest::getRegionId()const void VoiceIdentityStartCheckRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string VoiceIdentityStartCheckRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string VoiceIdentityStartCheckRequest::getClientInfo()const void VoiceIdentityStartCheckRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceIdentityStartRegisterRequest.cc b/green/src/model/VoiceIdentityStartRegisterRequest.cc index 193c84b9e..74d126e84 100644 --- a/green/src/model/VoiceIdentityStartRegisterRequest.cc +++ b/green/src/model/VoiceIdentityStartRegisterRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityStartRegisterRequest; VoiceIdentityStartRegisterRequest::VoiceIdentityStartRegisterRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/auth/start/register"); + setMethod(HttpRequest::Method::Post); +} VoiceIdentityStartRegisterRequest::~VoiceIdentityStartRegisterRequest() {} @@ -33,7 +36,7 @@ std::string VoiceIdentityStartRegisterRequest::getRegionId()const void VoiceIdentityStartRegisterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string VoiceIdentityStartRegisterRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string VoiceIdentityStartRegisterRequest::getClientInfo()const void VoiceIdentityStartRegisterRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceIdentityUnregisterRequest.cc b/green/src/model/VoiceIdentityUnregisterRequest.cc index 65d4061c1..173f0e8f5 100644 --- a/green/src/model/VoiceIdentityUnregisterRequest.cc +++ b/green/src/model/VoiceIdentityUnregisterRequest.cc @@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityUnregisterRequest; VoiceIdentityUnregisterRequest::VoiceIdentityUnregisterRequest() : RoaServiceRequest("green", "2018-05-09") -{} +{ + setResourcePath("/green/voice/auth/unregister"); + setMethod(HttpRequest::Method::Post); +} VoiceIdentityUnregisterRequest::~VoiceIdentityUnregisterRequest() {} @@ -33,7 +36,7 @@ std::string VoiceIdentityUnregisterRequest::getRegionId()const void VoiceIdentityUnregisterRequest::setRegionId(const std::string& regionId) { regionId_ = regionId; - setCoreParameter("RegionId", regionId); + setParameter("RegionId", regionId); } std::string VoiceIdentityUnregisterRequest::getClientInfo()const @@ -44,6 +47,6 @@ std::string VoiceIdentityUnregisterRequest::getClientInfo()const void VoiceIdentityUnregisterRequest::setClientInfo(const std::string& clientInfo) { clientInfo_ = clientInfo; - setCoreParameter("ClientInfo", clientInfo); + setParameter("ClientInfo", clientInfo); } diff --git a/green/src/model/VoiceSyncScanRequest.cc b/green/src/model/VoiceSyncScanRequest.cc new file mode 100644 index 000000000..7d29ad25d --- /dev/null +++ b/green/src/model/VoiceSyncScanRequest.cc @@ -0,0 +1,52 @@ +/* + * 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 + +using AlibabaCloud::Green::Model::VoiceSyncScanRequest; + +VoiceSyncScanRequest::VoiceSyncScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/voice/syncscan"); + setMethod(HttpRequest::Method::Post); +} + +VoiceSyncScanRequest::~VoiceSyncScanRequest() +{} + +std::string VoiceSyncScanRequest::getRegionId()const +{ + return regionId_; +} + +void VoiceSyncScanRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string VoiceSyncScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void VoiceSyncScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/VoiceSyncScanResult.cc b/green/src/model/VoiceSyncScanResult.cc new file mode 100644 index 000000000..4f9c8ad70 --- /dev/null +++ b/green/src/model/VoiceSyncScanResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +VoiceSyncScanResult::VoiceSyncScanResult() : + ServiceResult() +{} + +VoiceSyncScanResult::VoiceSyncScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VoiceSyncScanResult::~VoiceSyncScanResult() +{} + +void VoiceSyncScanResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +