From f9eb4e30b8faa5e9886687d1f3a6c303841e786b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 14 Apr 2021 08:55:31 +0000 Subject: [PATCH] Delete MultiMedia Post Scan API. --- CHANGELOG | 3 + VERSION | 2 +- green/CMakeLists.txt | 16 +- .../include/alibabacloud/green/GreenClient.h | 32 ++-- .../green/model/CreateAuditCallbackRequest.h | 63 ++++++++ .../green/model/CreateAuditCallbackResult.h | 67 ++++++++ ...t.h => DescribeAuditCallbackListRequest.h} | 20 +-- ...lt.h => DescribeAuditCallbackListResult.h} | 30 +++- .../green/model/PostAsyncScanResultsRequest.h | 48 ------ .../green/model/PostAsyncScanResultsResult.h | 49 ------ green/src/GreenClient.cc | 144 +++++++++--------- green/src/model/CreateAuditCallbackRequest.cc | 95 ++++++++++++ green/src/model/CreateAuditCallbackResult.cc | 109 +++++++++++++ ...cc => DescribeAuditCallbackListRequest.cc} | 21 ++- .../model/DescribeAuditCallbackListResult.cc | 82 ++++++++++ green/src/model/PostAsyncScanRequest.cc | 41 ----- green/src/model/PostAsyncScanResult.cc | 44 ------ green/src/model/PostAsyncScanResultsResult.cc | 44 ------ 18 files changed, 559 insertions(+), 351 deletions(-) create mode 100644 green/include/alibabacloud/green/model/CreateAuditCallbackRequest.h create mode 100644 green/include/alibabacloud/green/model/CreateAuditCallbackResult.h rename green/include/alibabacloud/green/model/{PostAsyncScanRequest.h => DescribeAuditCallbackListRequest.h} (60%) rename green/include/alibabacloud/green/model/{PostAsyncScanResult.h => DescribeAuditCallbackListResult.h} (51%) delete mode 100644 green/include/alibabacloud/green/model/PostAsyncScanResultsRequest.h delete mode 100644 green/include/alibabacloud/green/model/PostAsyncScanResultsResult.h create mode 100644 green/src/model/CreateAuditCallbackRequest.cc create mode 100644 green/src/model/CreateAuditCallbackResult.cc rename green/src/model/{PostAsyncScanResultsRequest.cc => DescribeAuditCallbackListRequest.cc} (53%) create mode 100644 green/src/model/DescribeAuditCallbackListResult.cc delete mode 100644 green/src/model/PostAsyncScanRequest.cc delete mode 100644 green/src/model/PostAsyncScanResult.cc delete mode 100644 green/src/model/PostAsyncScanResultsResult.cc diff --git a/CHANGELOG b/CHANGELOG index 06d1b3fa5..8847371e4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-04-14 Version: 1.36.680 +- Delete MultiMedia Post Scan API. + 2021-04-14 Version: 1.36.679 - Download url add fixed domain. diff --git a/VERSION b/VERSION index 500e4a7fe..66aad1440 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.679 \ No newline at end of file +1.36.680 \ No newline at end of file diff --git a/green/CMakeLists.txt b/green/CMakeLists.txt index 86db3c06d..f444bc159 100755 --- a/green/CMakeLists.txt +++ b/green/CMakeLists.txt @@ -37,6 +37,8 @@ set(green_public_header_model include/alibabacloud/green/model/AddVideoDnaGroupResult.h include/alibabacloud/green/model/CreatCustomOcrTemplateRequest.h include/alibabacloud/green/model/CreatCustomOcrTemplateResult.h + include/alibabacloud/green/model/CreateAuditCallbackRequest.h + include/alibabacloud/green/model/CreateAuditCallbackResult.h include/alibabacloud/green/model/CreateBizTypeRequest.h include/alibabacloud/green/model/CreateBizTypeResult.h include/alibabacloud/green/model/CreateCdiBagRequest.h @@ -85,6 +87,8 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeAppInfoResult.h include/alibabacloud/green/model/DescribeAuditCallbackRequest.h include/alibabacloud/green/model/DescribeAuditCallbackResult.h + include/alibabacloud/green/model/DescribeAuditCallbackListRequest.h + include/alibabacloud/green/model/DescribeAuditCallbackListResult.h include/alibabacloud/green/model/DescribeAuditContentRequest.h include/alibabacloud/green/model/DescribeAuditContentResult.h include/alibabacloud/green/model/DescribeAuditContentItemRequest.h @@ -227,10 +231,6 @@ set(green_public_header_model include/alibabacloud/green/model/MarkOssResultResult.h include/alibabacloud/green/model/MarkWebsiteScanResultRequest.h include/alibabacloud/green/model/MarkWebsiteScanResultResult.h - include/alibabacloud/green/model/PostAsyncScanRequest.h - include/alibabacloud/green/model/PostAsyncScanResult.h - include/alibabacloud/green/model/PostAsyncScanResultsRequest.h - include/alibabacloud/green/model/PostAsyncScanResultsResult.h include/alibabacloud/green/model/RefundCdiBagRequest.h include/alibabacloud/green/model/RefundCdiBagResult.h include/alibabacloud/green/model/RefundCdiBaseBagRequest.h @@ -376,6 +376,8 @@ set(green_src src/model/AddVideoDnaGroupResult.cc src/model/CreatCustomOcrTemplateRequest.cc src/model/CreatCustomOcrTemplateResult.cc + src/model/CreateAuditCallbackRequest.cc + src/model/CreateAuditCallbackResult.cc src/model/CreateBizTypeRequest.cc src/model/CreateBizTypeResult.cc src/model/CreateCdiBagRequest.cc @@ -424,6 +426,8 @@ set(green_src src/model/DescribeAppInfoResult.cc src/model/DescribeAuditCallbackRequest.cc src/model/DescribeAuditCallbackResult.cc + src/model/DescribeAuditCallbackListRequest.cc + src/model/DescribeAuditCallbackListResult.cc src/model/DescribeAuditContentRequest.cc src/model/DescribeAuditContentResult.cc src/model/DescribeAuditContentItemRequest.cc @@ -566,10 +570,6 @@ set(green_src src/model/MarkOssResultResult.cc src/model/MarkWebsiteScanResultRequest.cc src/model/MarkWebsiteScanResultResult.cc - src/model/PostAsyncScanRequest.cc - src/model/PostAsyncScanResult.cc - src/model/PostAsyncScanResultsRequest.cc - src/model/PostAsyncScanResultsResult.cc src/model/RefundCdiBagRequest.cc src/model/RefundCdiBagResult.cc src/model/RefundCdiBaseBagRequest.cc diff --git a/green/include/alibabacloud/green/GreenClient.h b/green/include/alibabacloud/green/GreenClient.h index 2ecf93262..44214599a 100755 --- a/green/include/alibabacloud/green/GreenClient.h +++ b/green/include/alibabacloud/green/GreenClient.h @@ -38,6 +38,8 @@ #include "model/AddVideoDnaGroupResult.h" #include "model/CreatCustomOcrTemplateRequest.h" #include "model/CreatCustomOcrTemplateResult.h" +#include "model/CreateAuditCallbackRequest.h" +#include "model/CreateAuditCallbackResult.h" #include "model/CreateBizTypeRequest.h" #include "model/CreateBizTypeResult.h" #include "model/CreateCdiBagRequest.h" @@ -86,6 +88,8 @@ #include "model/DescribeAppInfoResult.h" #include "model/DescribeAuditCallbackRequest.h" #include "model/DescribeAuditCallbackResult.h" +#include "model/DescribeAuditCallbackListRequest.h" +#include "model/DescribeAuditCallbackListResult.h" #include "model/DescribeAuditContentRequest.h" #include "model/DescribeAuditContentResult.h" #include "model/DescribeAuditContentItemRequest.h" @@ -228,10 +232,6 @@ #include "model/MarkOssResultResult.h" #include "model/MarkWebsiteScanResultRequest.h" #include "model/MarkWebsiteScanResultResult.h" -#include "model/PostAsyncScanRequest.h" -#include "model/PostAsyncScanResult.h" -#include "model/PostAsyncScanResultsRequest.h" -#include "model/PostAsyncScanResultsResult.h" #include "model/RefundCdiBagRequest.h" #include "model/RefundCdiBagResult.h" #include "model/RefundCdiBaseBagRequest.h" @@ -391,6 +391,9 @@ namespace AlibabaCloud typedef Outcome CreatCustomOcrTemplateOutcome; typedef std::future CreatCustomOcrTemplateOutcomeCallable; typedef std::function&)> CreatCustomOcrTemplateAsyncHandler; + typedef Outcome CreateAuditCallbackOutcome; + typedef std::future CreateAuditCallbackOutcomeCallable; + typedef std::function&)> CreateAuditCallbackAsyncHandler; typedef Outcome CreateBizTypeOutcome; typedef std::future CreateBizTypeOutcomeCallable; typedef std::function&)> CreateBizTypeAsyncHandler; @@ -463,6 +466,9 @@ namespace AlibabaCloud typedef Outcome DescribeAuditCallbackOutcome; typedef std::future DescribeAuditCallbackOutcomeCallable; typedef std::function&)> DescribeAuditCallbackAsyncHandler; + typedef Outcome DescribeAuditCallbackListOutcome; + typedef std::future DescribeAuditCallbackListOutcomeCallable; + typedef std::function&)> DescribeAuditCallbackListAsyncHandler; typedef Outcome DescribeAuditContentOutcome; typedef std::future DescribeAuditContentOutcomeCallable; typedef std::function&)> DescribeAuditContentAsyncHandler; @@ -676,12 +682,6 @@ namespace AlibabaCloud typedef Outcome MarkWebsiteScanResultOutcome; typedef std::future MarkWebsiteScanResultOutcomeCallable; typedef std::function&)> MarkWebsiteScanResultAsyncHandler; - typedef Outcome PostAsyncScanOutcome; - typedef std::future PostAsyncScanOutcomeCallable; - typedef std::function&)> PostAsyncScanAsyncHandler; - typedef Outcome PostAsyncScanResultsOutcome; - typedef std::future PostAsyncScanResultsOutcomeCallable; - typedef std::function&)> PostAsyncScanResultsAsyncHandler; typedef Outcome RefundCdiBagOutcome; typedef std::future RefundCdiBagOutcomeCallable; typedef std::function&)> RefundCdiBagAsyncHandler; @@ -900,6 +900,9 @@ namespace AlibabaCloud CreatCustomOcrTemplateOutcome creatCustomOcrTemplate(const Model::CreatCustomOcrTemplateRequest &request)const; void creatCustomOcrTemplateAsync(const Model::CreatCustomOcrTemplateRequest& request, const CreatCustomOcrTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatCustomOcrTemplateOutcomeCallable creatCustomOcrTemplateCallable(const Model::CreatCustomOcrTemplateRequest& request) const; + CreateAuditCallbackOutcome createAuditCallback(const Model::CreateAuditCallbackRequest &request)const; + void createAuditCallbackAsync(const Model::CreateAuditCallbackRequest& request, const CreateAuditCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAuditCallbackOutcomeCallable createAuditCallbackCallable(const Model::CreateAuditCallbackRequest& request) const; CreateBizTypeOutcome createBizType(const Model::CreateBizTypeRequest &request)const; void createBizTypeAsync(const Model::CreateBizTypeRequest& request, const CreateBizTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBizTypeOutcomeCallable createBizTypeCallable(const Model::CreateBizTypeRequest& request) const; @@ -972,6 +975,9 @@ namespace AlibabaCloud DescribeAuditCallbackOutcome describeAuditCallback(const Model::DescribeAuditCallbackRequest &request)const; void describeAuditCallbackAsync(const Model::DescribeAuditCallbackRequest& request, const DescribeAuditCallbackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditCallbackOutcomeCallable describeAuditCallbackCallable(const Model::DescribeAuditCallbackRequest& request) const; + DescribeAuditCallbackListOutcome describeAuditCallbackList(const Model::DescribeAuditCallbackListRequest &request)const; + void describeAuditCallbackListAsync(const Model::DescribeAuditCallbackListRequest& request, const DescribeAuditCallbackListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditCallbackListOutcomeCallable describeAuditCallbackListCallable(const Model::DescribeAuditCallbackListRequest& request) const; DescribeAuditContentOutcome describeAuditContent(const Model::DescribeAuditContentRequest &request)const; void describeAuditContentAsync(const Model::DescribeAuditContentRequest& request, const DescribeAuditContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditContentOutcomeCallable describeAuditContentCallable(const Model::DescribeAuditContentRequest& request) const; @@ -1185,12 +1191,6 @@ namespace AlibabaCloud MarkWebsiteScanResultOutcome markWebsiteScanResult(const Model::MarkWebsiteScanResultRequest &request)const; void markWebsiteScanResultAsync(const Model::MarkWebsiteScanResultRequest& request, const MarkWebsiteScanResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MarkWebsiteScanResultOutcomeCallable markWebsiteScanResultCallable(const Model::MarkWebsiteScanResultRequest& request) const; - PostAsyncScanOutcome postAsyncScan(const Model::PostAsyncScanRequest &request)const; - void postAsyncScanAsync(const Model::PostAsyncScanRequest& request, const PostAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PostAsyncScanOutcomeCallable postAsyncScanCallable(const Model::PostAsyncScanRequest& request) const; - PostAsyncScanResultsOutcome postAsyncScanResults(const Model::PostAsyncScanResultsRequest &request)const; - void postAsyncScanResultsAsync(const Model::PostAsyncScanResultsRequest& request, const PostAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PostAsyncScanResultsOutcomeCallable postAsyncScanResultsCallable(const Model::PostAsyncScanResultsRequest& request) const; RefundCdiBagOutcome refundCdiBag(const Model::RefundCdiBagRequest &request)const; void refundCdiBagAsync(const Model::RefundCdiBagRequest& request, const RefundCdiBagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefundCdiBagOutcomeCallable refundCdiBagCallable(const Model::RefundCdiBagRequest& request) const; diff --git a/green/include/alibabacloud/green/model/CreateAuditCallbackRequest.h b/green/include/alibabacloud/green/model/CreateAuditCallbackRequest.h new file mode 100644 index 000000000..72e26757e --- /dev/null +++ b/green/include/alibabacloud/green/model/CreateAuditCallbackRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT CreateAuditCallbackRequest : public RpcServiceRequest + { + + public: + CreateAuditCallbackRequest(); + ~CreateAuditCallbackRequest(); + + std::string getCallbackTypes()const; + void setCallbackTypes(const std::string& callbackTypes); + std::string getCallbackSuggestions()const; + void setCallbackSuggestions(const std::string& callbackSuggestions); + std::string getUrl()const; + void setUrl(const std::string& url); + std::string getCryptType()const; + void setCryptType(const std::string& cryptType); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + + private: + std::string callbackTypes_; + std::string callbackSuggestions_; + std::string url_; + std::string cryptType_; + std::string sourceIp_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/CreateAuditCallbackResult.h b/green/include/alibabacloud/green/model/CreateAuditCallbackResult.h new file mode 100644 index 000000000..04ec353ec --- /dev/null +++ b/green/include/alibabacloud/green/model/CreateAuditCallbackResult.h @@ -0,0 +1,67 @@ +/* + * 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_CREATEAUDITCALLBACKRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT CreateAuditCallbackResult : public ServiceResult + { + public: + + + CreateAuditCallbackResult(); + explicit CreateAuditCallbackResult(const std::string &payload); + ~CreateAuditCallbackResult(); + std::string getCryptType()const; + std::string getModifiedTime()const; + std::string getSeed()const; + std::string getCreateTime()const; + std::vector getCallbackTypes()const; + long getId()const; + std::vector getCallbackSuggestions()const; + std::string getUrl()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string cryptType_; + std::string modifiedTime_; + std::string seed_; + std::string createTime_; + std::vector callbackTypes_; + long id_; + std::vector callbackSuggestions_; + std::string url_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/PostAsyncScanRequest.h b/green/include/alibabacloud/green/model/DescribeAuditCallbackListRequest.h similarity index 60% rename from green/include/alibabacloud/green/model/PostAsyncScanRequest.h rename to green/include/alibabacloud/green/model/DescribeAuditCallbackListRequest.h index 7070b12c1..c5eefefe6 100644 --- a/green/include/alibabacloud/green/model/PostAsyncScanRequest.h +++ b/green/include/alibabacloud/green/model/DescribeAuditCallbackListRequest.h @@ -14,12 +14,12 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_ -#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_ +#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_ #include #include -#include +#include #include namespace AlibabaCloud @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanRequest : public RoaServiceRequest + class ALIBABACLOUD_GREEN_EXPORT DescribeAuditCallbackListRequest : public RpcServiceRequest { public: - PostAsyncScanRequest(); - ~PostAsyncScanRequest(); + DescribeAuditCallbackListRequest(); + ~DescribeAuditCallbackListRequest(); - std::string getClientInfo()const; - void setClientInfo(const std::string& clientInfo); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); private: - std::string clientInfo_; + std::string sourceIp_; }; } } } -#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/PostAsyncScanResult.h b/green/include/alibabacloud/green/model/DescribeAuditCallbackListResult.h similarity index 51% rename from green/include/alibabacloud/green/model/PostAsyncScanResult.h rename to green/include/alibabacloud/green/model/DescribeAuditCallbackListResult.h index 9be529f0a..1c51670fb 100644 --- a/green/include/alibabacloud/green/model/PostAsyncScanResult.h +++ b/green/include/alibabacloud/green/model/DescribeAuditCallbackListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_ -#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_ +#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_ #include #include @@ -29,21 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanResult : public ServiceResult + class ALIBABACLOUD_GREEN_EXPORT DescribeAuditCallbackListResult : public ServiceResult { public: + struct Callback + { + std::string cryptType; + std::string modifiedTime; + std::string seed; + std::string createTime; + std::vector callbackTypes; + long id; + std::string url; + std::vector callbackSuggestions; + std::string name; + }; - PostAsyncScanResult(); - explicit PostAsyncScanResult(const std::string &payload); - ~PostAsyncScanResult(); + DescribeAuditCallbackListResult(); + explicit DescribeAuditCallbackListResult(const std::string &payload); + ~DescribeAuditCallbackListResult(); + int getTotalCount()const; + std::vector getCallbackList()const; protected: void parse(const std::string &payload); private: + int totalCount_; + std::vector callbackList_; }; } } } -#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/PostAsyncScanResultsRequest.h b/green/include/alibabacloud/green/model/PostAsyncScanResultsRequest.h deleted file mode 100644 index c19b5d9d9..000000000 --- a/green/include/alibabacloud/green/model/PostAsyncScanResultsRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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_POSTASYNCSCANRESULTSREQUEST_H_ -#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Green - { - namespace Model - { - class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanResultsRequest : public RoaServiceRequest - { - - public: - PostAsyncScanResultsRequest(); - ~PostAsyncScanResultsRequest(); - - std::string getClientInfo()const; - void setClientInfo(const std::string& clientInfo); - - private: - std::string clientInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/PostAsyncScanResultsResult.h b/green/include/alibabacloud/green/model/PostAsyncScanResultsResult.h deleted file mode 100644 index 5076239a3..000000000 --- a/green/include/alibabacloud/green/model/PostAsyncScanResultsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_POSTASYNCSCANRESULTSRESULT_H_ -#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Green - { - namespace Model - { - class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanResultsResult : public ServiceResult - { - public: - - - PostAsyncScanResultsResult(); - explicit PostAsyncScanResultsResult(const std::string &payload); - ~PostAsyncScanResultsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSRESULT_H_ \ No newline at end of file diff --git a/green/src/GreenClient.cc b/green/src/GreenClient.cc index b396cab50..e000e0666 100755 --- a/green/src/GreenClient.cc +++ b/green/src/GreenClient.cc @@ -339,6 +339,42 @@ GreenClient::CreatCustomOcrTemplateOutcomeCallable GreenClient::creatCustomOcrTe return task->get_future(); } +GreenClient::CreateAuditCallbackOutcome GreenClient::createAuditCallback(const CreateAuditCallbackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAuditCallbackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAuditCallbackOutcome(CreateAuditCallbackResult(outcome.result())); + else + return CreateAuditCallbackOutcome(outcome.error()); +} + +void GreenClient::createAuditCallbackAsync(const CreateAuditCallbackRequest& request, const CreateAuditCallbackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAuditCallback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::CreateAuditCallbackOutcomeCallable GreenClient::createAuditCallbackCallable(const CreateAuditCallbackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAuditCallback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::CreateBizTypeOutcome GreenClient::createBizType(const CreateBizTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1239,42 @@ GreenClient::DescribeAuditCallbackOutcomeCallable GreenClient::describeAuditCall return task->get_future(); } +GreenClient::DescribeAuditCallbackListOutcome GreenClient::describeAuditCallbackList(const DescribeAuditCallbackListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditCallbackListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditCallbackListOutcome(DescribeAuditCallbackListResult(outcome.result())); + else + return DescribeAuditCallbackListOutcome(outcome.error()); +} + +void GreenClient::describeAuditCallbackListAsync(const DescribeAuditCallbackListRequest& request, const DescribeAuditCallbackListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditCallbackList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeAuditCallbackListOutcomeCallable GreenClient::describeAuditCallbackListCallable(const DescribeAuditCallbackListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditCallbackList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeAuditContentOutcome GreenClient::describeAuditContent(const DescribeAuditContentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,78 +3831,6 @@ GreenClient::MarkWebsiteScanResultOutcomeCallable GreenClient::markWebsiteScanRe return task->get_future(); } -GreenClient::PostAsyncScanOutcome GreenClient::postAsyncScan(const PostAsyncScanRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PostAsyncScanOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PostAsyncScanOutcome(PostAsyncScanResult(outcome.result())); - else - return PostAsyncScanOutcome(outcome.error()); -} - -void GreenClient::postAsyncScanAsync(const PostAsyncScanRequest& request, const PostAsyncScanAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, postAsyncScan(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::PostAsyncScanOutcomeCallable GreenClient::postAsyncScanCallable(const PostAsyncScanRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->postAsyncScan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GreenClient::PostAsyncScanResultsOutcome GreenClient::postAsyncScanResults(const PostAsyncScanResultsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PostAsyncScanResultsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PostAsyncScanResultsOutcome(PostAsyncScanResultsResult(outcome.result())); - else - return PostAsyncScanResultsOutcome(outcome.error()); -} - -void GreenClient::postAsyncScanResultsAsync(const PostAsyncScanResultsRequest& request, const PostAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, postAsyncScanResults(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GreenClient::PostAsyncScanResultsOutcomeCallable GreenClient::postAsyncScanResultsCallable(const PostAsyncScanResultsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->postAsyncScanResults(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GreenClient::RefundCdiBagOutcome GreenClient::refundCdiBag(const RefundCdiBagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/green/src/model/CreateAuditCallbackRequest.cc b/green/src/model/CreateAuditCallbackRequest.cc new file mode 100644 index 000000000..65dd0cf1f --- /dev/null +++ b/green/src/model/CreateAuditCallbackRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Green::Model::CreateAuditCallbackRequest; + +CreateAuditCallbackRequest::CreateAuditCallbackRequest() : + RpcServiceRequest("green", "2017-08-23", "CreateAuditCallback") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateAuditCallbackRequest::~CreateAuditCallbackRequest() +{} + +std::string CreateAuditCallbackRequest::getCallbackTypes()const +{ + return callbackTypes_; +} + +void CreateAuditCallbackRequest::setCallbackTypes(const std::string& callbackTypes) +{ + callbackTypes_ = callbackTypes; + setParameter("CallbackTypes", callbackTypes); +} + +std::string CreateAuditCallbackRequest::getCallbackSuggestions()const +{ + return callbackSuggestions_; +} + +void CreateAuditCallbackRequest::setCallbackSuggestions(const std::string& callbackSuggestions) +{ + callbackSuggestions_ = callbackSuggestions; + setParameter("CallbackSuggestions", callbackSuggestions); +} + +std::string CreateAuditCallbackRequest::getUrl()const +{ + return url_; +} + +void CreateAuditCallbackRequest::setUrl(const std::string& url) +{ + url_ = url; + setParameter("Url", url); +} + +std::string CreateAuditCallbackRequest::getCryptType()const +{ + return cryptType_; +} + +void CreateAuditCallbackRequest::setCryptType(const std::string& cryptType) +{ + cryptType_ = cryptType; + setParameter("CryptType", cryptType); +} + +std::string CreateAuditCallbackRequest::getSourceIp()const +{ + return sourceIp_; +} + +void CreateAuditCallbackRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string CreateAuditCallbackRequest::getName()const +{ + return name_; +} + +void CreateAuditCallbackRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/green/src/model/CreateAuditCallbackResult.cc b/green/src/model/CreateAuditCallbackResult.cc new file mode 100644 index 000000000..286e33545 --- /dev/null +++ b/green/src/model/CreateAuditCallbackResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +CreateAuditCallbackResult::CreateAuditCallbackResult() : + ServiceResult() +{} + +CreateAuditCallbackResult::CreateAuditCallbackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAuditCallbackResult::~CreateAuditCallbackResult() +{} + +void CreateAuditCallbackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCallbackTypes = value["CallbackTypes"]["CallbackType"]; + for (const auto &item : allCallbackTypes) + callbackTypes_.push_back(item.asString()); + auto allCallbackSuggestions = value["CallbackSuggestions"]["CallbackSuggestion"]; + for (const auto &item : allCallbackSuggestions) + callbackSuggestions_.push_back(item.asString()); + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); + if(!value["Seed"].isNull()) + seed_ = value["Seed"].asString(); + if(!value["CryptType"].isNull()) + cryptType_ = value["CryptType"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifiedTime"].isNull()) + modifiedTime_ = value["ModifiedTime"].asString(); + +} + +std::string CreateAuditCallbackResult::getCryptType()const +{ + return cryptType_; +} + +std::string CreateAuditCallbackResult::getModifiedTime()const +{ + return modifiedTime_; +} + +std::string CreateAuditCallbackResult::getSeed()const +{ + return seed_; +} + +std::string CreateAuditCallbackResult::getCreateTime()const +{ + return createTime_; +} + +std::vector CreateAuditCallbackResult::getCallbackTypes()const +{ + return callbackTypes_; +} + +long CreateAuditCallbackResult::getId()const +{ + return id_; +} + +std::vector CreateAuditCallbackResult::getCallbackSuggestions()const +{ + return callbackSuggestions_; +} + +std::string CreateAuditCallbackResult::getUrl()const +{ + return url_; +} + +std::string CreateAuditCallbackResult::getName()const +{ + return name_; +} + diff --git a/green/src/model/PostAsyncScanResultsRequest.cc b/green/src/model/DescribeAuditCallbackListRequest.cc similarity index 53% rename from green/src/model/PostAsyncScanResultsRequest.cc rename to green/src/model/DescribeAuditCallbackListRequest.cc index 047cc43d0..cf7b35772 100644 --- a/green/src/model/PostAsyncScanResultsRequest.cc +++ b/green/src/model/DescribeAuditCallbackListRequest.cc @@ -14,28 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Green::Model::PostAsyncScanResultsRequest; +using AlibabaCloud::Green::Model::DescribeAuditCallbackListRequest; -PostAsyncScanResultsRequest::PostAsyncScanResultsRequest() : - RoaServiceRequest("green", "2018-05-09") +DescribeAuditCallbackListRequest::DescribeAuditCallbackListRequest() : + RpcServiceRequest("green", "2017-08-23", "DescribeAuditCallbackList") { - setResourcePath("/green/post/results"); setMethod(HttpRequest::Method::Post); } -PostAsyncScanResultsRequest::~PostAsyncScanResultsRequest() +DescribeAuditCallbackListRequest::~DescribeAuditCallbackListRequest() {} -std::string PostAsyncScanResultsRequest::getClientInfo()const +std::string DescribeAuditCallbackListRequest::getSourceIp()const { - return clientInfo_; + return sourceIp_; } -void PostAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) +void DescribeAuditCallbackListRequest::setSourceIp(const std::string& sourceIp) { - clientInfo_ = clientInfo; - setParameter("ClientInfo", clientInfo); + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); } diff --git a/green/src/model/DescribeAuditCallbackListResult.cc b/green/src/model/DescribeAuditCallbackListResult.cc new file mode 100644 index 000000000..8543c320a --- /dev/null +++ b/green/src/model/DescribeAuditCallbackListResult.cc @@ -0,0 +1,82 @@ +/* + * 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; + +DescribeAuditCallbackListResult::DescribeAuditCallbackListResult() : + ServiceResult() +{} + +DescribeAuditCallbackListResult::DescribeAuditCallbackListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditCallbackListResult::~DescribeAuditCallbackListResult() +{} + +void DescribeAuditCallbackListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCallbackListNode = value["CallbackList"]["Callback"]; + for (auto valueCallbackListCallback : allCallbackListNode) + { + Callback callbackListObject; + if(!valueCallbackListCallback["Id"].isNull()) + callbackListObject.id = std::stol(valueCallbackListCallback["Id"].asString()); + if(!valueCallbackListCallback["Name"].isNull()) + callbackListObject.name = valueCallbackListCallback["Name"].asString(); + if(!valueCallbackListCallback["Url"].isNull()) + callbackListObject.url = valueCallbackListCallback["Url"].asString(); + if(!valueCallbackListCallback["Seed"].isNull()) + callbackListObject.seed = valueCallbackListCallback["Seed"].asString(); + if(!valueCallbackListCallback["CryptType"].isNull()) + callbackListObject.cryptType = valueCallbackListCallback["CryptType"].asString(); + if(!valueCallbackListCallback["CreateTime"].isNull()) + callbackListObject.createTime = valueCallbackListCallback["CreateTime"].asString(); + if(!valueCallbackListCallback["ModifiedTime"].isNull()) + callbackListObject.modifiedTime = valueCallbackListCallback["ModifiedTime"].asString(); + auto allCallbackTypes = value["CallbackTypes"]["CallbackType"]; + for (auto value : allCallbackTypes) + callbackListObject.callbackTypes.push_back(value.asString()); + auto allCallbackSuggestions = value["CallbackSuggestions"]["CallbackSuggestion"]; + for (auto value : allCallbackSuggestions) + callbackListObject.callbackSuggestions.push_back(value.asString()); + callbackList_.push_back(callbackListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAuditCallbackListResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeAuditCallbackListResult::getCallbackList()const +{ + return callbackList_; +} + diff --git a/green/src/model/PostAsyncScanRequest.cc b/green/src/model/PostAsyncScanRequest.cc deleted file mode 100644 index 99dacd73f..000000000 --- a/green/src/model/PostAsyncScanRequest.cc +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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::PostAsyncScanRequest; - -PostAsyncScanRequest::PostAsyncScanRequest() : - RoaServiceRequest("green", "2018-05-09") -{ - setResourcePath("/green/post/asyncscan"); - setMethod(HttpRequest::Method::Post); -} - -PostAsyncScanRequest::~PostAsyncScanRequest() -{} - -std::string PostAsyncScanRequest::getClientInfo()const -{ - return clientInfo_; -} - -void PostAsyncScanRequest::setClientInfo(const std::string& clientInfo) -{ - clientInfo_ = clientInfo; - setParameter("ClientInfo", clientInfo); -} - diff --git a/green/src/model/PostAsyncScanResult.cc b/green/src/model/PostAsyncScanResult.cc deleted file mode 100644 index 6cd2b8dee..000000000 --- a/green/src/model/PostAsyncScanResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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; - -PostAsyncScanResult::PostAsyncScanResult() : - ServiceResult() -{} - -PostAsyncScanResult::PostAsyncScanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PostAsyncScanResult::~PostAsyncScanResult() -{} - -void PostAsyncScanResult::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/PostAsyncScanResultsResult.cc b/green/src/model/PostAsyncScanResultsResult.cc deleted file mode 100644 index 9fd3aed79..000000000 --- a/green/src/model/PostAsyncScanResultsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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; - -PostAsyncScanResultsResult::PostAsyncScanResultsResult() : - ServiceResult() -{} - -PostAsyncScanResultsResult::PostAsyncScanResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PostAsyncScanResultsResult::~PostAsyncScanResultsResult() -{} - -void PostAsyncScanResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} -