diff --git a/CHANGELOG b/CHANGELOG index b62b39780..daf315773 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-11-18 Version: patch +- Supported webpage scan. + 2020-11-17 Version: patch - Support event type in timeline of resource properties. - Support resourceOwnerId in evaluation result. diff --git a/green/CMakeLists.txt b/green/CMakeLists.txt index bf9b0dfa1..b0e9da54e 100755 --- a/green/CMakeLists.txt +++ b/green/CMakeLists.txt @@ -111,6 +111,8 @@ set(green_public_header_model include/alibabacloud/green/model/DescribeKeywordLibResult.h include/alibabacloud/green/model/DescribeNotificationSettingRequest.h include/alibabacloud/green/model/DescribeNotificationSettingResult.h + include/alibabacloud/green/model/DescribeOpenApiRcpStatsRequest.h + include/alibabacloud/green/model/DescribeOpenApiRcpStatsResult.h include/alibabacloud/green/model/DescribeOpenApiUsageRequest.h include/alibabacloud/green/model/DescribeOpenApiUsageResult.h include/alibabacloud/green/model/DescribeOssCallbackSettingRequest.h @@ -159,6 +161,8 @@ set(green_public_header_model include/alibabacloud/green/model/DetectFaceResult.h include/alibabacloud/green/model/ExportKeywordsRequest.h include/alibabacloud/green/model/ExportKeywordsResult.h + include/alibabacloud/green/model/ExportOpenApiRcpStatsRequest.h + include/alibabacloud/green/model/ExportOpenApiRcpStatsResult.h include/alibabacloud/green/model/ExportOssResultRequest.h include/alibabacloud/green/model/ExportOssResultResult.h include/alibabacloud/green/model/FileAsyncScanRequest.h @@ -199,6 +203,12 @@ set(green_public_header_model include/alibabacloud/green/model/ListSimilarityImagesResult.h include/alibabacloud/green/model/ListSimilarityLibrariesRequest.h include/alibabacloud/green/model/ListSimilarityLibrariesResult.h + include/alibabacloud/green/model/LiveStreamAsyncScanRequest.h + include/alibabacloud/green/model/LiveStreamAsyncScanResult.h + include/alibabacloud/green/model/LiveStreamAsyncScanResultsRequest.h + include/alibabacloud/green/model/LiveStreamAsyncScanResultsResult.h + include/alibabacloud/green/model/LiveStreamCancelScanRequest.h + include/alibabacloud/green/model/LiveStreamCancelScanResult.h include/alibabacloud/green/model/MarkAuditContentRequest.h include/alibabacloud/green/model/MarkAuditContentResult.h include/alibabacloud/green/model/MarkAuditContentItemRequest.h @@ -291,6 +301,10 @@ set(green_public_header_model include/alibabacloud/green/model/VideoFeedbackResult.h include/alibabacloud/green/model/VideoSyncScanRequest.h include/alibabacloud/green/model/VideoSyncScanResult.h + include/alibabacloud/green/model/VodAsyncScanRequest.h + include/alibabacloud/green/model/VodAsyncScanResult.h + include/alibabacloud/green/model/VodAsyncScanResultsRequest.h + include/alibabacloud/green/model/VodAsyncScanResultsResult.h include/alibabacloud/green/model/VoiceAsyncScanRequest.h include/alibabacloud/green/model/VoiceAsyncScanResult.h include/alibabacloud/green/model/VoiceAsyncScanResultsRequest.h @@ -308,7 +322,13 @@ set(green_public_header_model include/alibabacloud/green/model/VoiceIdentityUnregisterRequest.h include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h include/alibabacloud/green/model/VoiceSyncScanRequest.h - include/alibabacloud/green/model/VoiceSyncScanResult.h ) + include/alibabacloud/green/model/VoiceSyncScanResult.h + include/alibabacloud/green/model/WebpageAsyncScanRequest.h + include/alibabacloud/green/model/WebpageAsyncScanResult.h + include/alibabacloud/green/model/WebpageAsyncScanResultsRequest.h + include/alibabacloud/green/model/WebpageAsyncScanResultsResult.h + include/alibabacloud/green/model/WebpageSyncScanRequest.h + include/alibabacloud/green/model/WebpageSyncScanResult.h ) set(green_src src/GreenClient.cc @@ -402,6 +422,8 @@ set(green_src src/model/DescribeKeywordLibResult.cc src/model/DescribeNotificationSettingRequest.cc src/model/DescribeNotificationSettingResult.cc + src/model/DescribeOpenApiRcpStatsRequest.cc + src/model/DescribeOpenApiRcpStatsResult.cc src/model/DescribeOpenApiUsageRequest.cc src/model/DescribeOpenApiUsageResult.cc src/model/DescribeOssCallbackSettingRequest.cc @@ -450,6 +472,8 @@ set(green_src src/model/DetectFaceResult.cc src/model/ExportKeywordsRequest.cc src/model/ExportKeywordsResult.cc + src/model/ExportOpenApiRcpStatsRequest.cc + src/model/ExportOpenApiRcpStatsResult.cc src/model/ExportOssResultRequest.cc src/model/ExportOssResultResult.cc src/model/FileAsyncScanRequest.cc @@ -490,6 +514,12 @@ set(green_src src/model/ListSimilarityImagesResult.cc src/model/ListSimilarityLibrariesRequest.cc src/model/ListSimilarityLibrariesResult.cc + src/model/LiveStreamAsyncScanRequest.cc + src/model/LiveStreamAsyncScanResult.cc + src/model/LiveStreamAsyncScanResultsRequest.cc + src/model/LiveStreamAsyncScanResultsResult.cc + src/model/LiveStreamCancelScanRequest.cc + src/model/LiveStreamCancelScanResult.cc src/model/MarkAuditContentRequest.cc src/model/MarkAuditContentResult.cc src/model/MarkAuditContentItemRequest.cc @@ -582,6 +612,10 @@ set(green_src src/model/VideoFeedbackResult.cc src/model/VideoSyncScanRequest.cc src/model/VideoSyncScanResult.cc + src/model/VodAsyncScanRequest.cc + src/model/VodAsyncScanResult.cc + src/model/VodAsyncScanResultsRequest.cc + src/model/VodAsyncScanResultsResult.cc src/model/VoiceAsyncScanRequest.cc src/model/VoiceAsyncScanResult.cc src/model/VoiceAsyncScanResultsRequest.cc @@ -599,7 +633,13 @@ set(green_src src/model/VoiceIdentityUnregisterRequest.cc src/model/VoiceIdentityUnregisterResult.cc src/model/VoiceSyncScanRequest.cc - src/model/VoiceSyncScanResult.cc ) + src/model/VoiceSyncScanResult.cc + src/model/WebpageAsyncScanRequest.cc + src/model/WebpageAsyncScanResult.cc + src/model/WebpageAsyncScanResultsRequest.cc + src/model/WebpageAsyncScanResultsResult.cc + src/model/WebpageSyncScanRequest.cc + src/model/WebpageSyncScanResult.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 701533952..d28cffea3 100755 --- a/green/include/alibabacloud/green/GreenClient.h +++ b/green/include/alibabacloud/green/GreenClient.h @@ -112,6 +112,8 @@ #include "model/DescribeKeywordLibResult.h" #include "model/DescribeNotificationSettingRequest.h" #include "model/DescribeNotificationSettingResult.h" +#include "model/DescribeOpenApiRcpStatsRequest.h" +#include "model/DescribeOpenApiRcpStatsResult.h" #include "model/DescribeOpenApiUsageRequest.h" #include "model/DescribeOpenApiUsageResult.h" #include "model/DescribeOssCallbackSettingRequest.h" @@ -160,6 +162,8 @@ #include "model/DetectFaceResult.h" #include "model/ExportKeywordsRequest.h" #include "model/ExportKeywordsResult.h" +#include "model/ExportOpenApiRcpStatsRequest.h" +#include "model/ExportOpenApiRcpStatsResult.h" #include "model/ExportOssResultRequest.h" #include "model/ExportOssResultResult.h" #include "model/FileAsyncScanRequest.h" @@ -200,6 +204,12 @@ #include "model/ListSimilarityImagesResult.h" #include "model/ListSimilarityLibrariesRequest.h" #include "model/ListSimilarityLibrariesResult.h" +#include "model/LiveStreamAsyncScanRequest.h" +#include "model/LiveStreamAsyncScanResult.h" +#include "model/LiveStreamAsyncScanResultsRequest.h" +#include "model/LiveStreamAsyncScanResultsResult.h" +#include "model/LiveStreamCancelScanRequest.h" +#include "model/LiveStreamCancelScanResult.h" #include "model/MarkAuditContentRequest.h" #include "model/MarkAuditContentResult.h" #include "model/MarkAuditContentItemRequest.h" @@ -292,6 +302,10 @@ #include "model/VideoFeedbackResult.h" #include "model/VideoSyncScanRequest.h" #include "model/VideoSyncScanResult.h" +#include "model/VodAsyncScanRequest.h" +#include "model/VodAsyncScanResult.h" +#include "model/VodAsyncScanResultsRequest.h" +#include "model/VodAsyncScanResultsResult.h" #include "model/VoiceAsyncScanRequest.h" #include "model/VoiceAsyncScanResult.h" #include "model/VoiceAsyncScanResultsRequest.h" @@ -310,6 +324,12 @@ #include "model/VoiceIdentityUnregisterResult.h" #include "model/VoiceSyncScanRequest.h" #include "model/VoiceSyncScanResult.h" +#include "model/WebpageAsyncScanRequest.h" +#include "model/WebpageAsyncScanResult.h" +#include "model/WebpageAsyncScanResultsRequest.h" +#include "model/WebpageAsyncScanResultsResult.h" +#include "model/WebpageSyncScanRequest.h" +#include "model/WebpageSyncScanResult.h" namespace AlibabaCloud @@ -454,6 +474,9 @@ namespace AlibabaCloud typedef Outcome DescribeNotificationSettingOutcome; typedef std::future DescribeNotificationSettingOutcomeCallable; typedef std::function&)> DescribeNotificationSettingAsyncHandler; + typedef Outcome DescribeOpenApiRcpStatsOutcome; + typedef std::future DescribeOpenApiRcpStatsOutcomeCallable; + typedef std::function&)> DescribeOpenApiRcpStatsAsyncHandler; typedef Outcome DescribeOpenApiUsageOutcome; typedef std::future DescribeOpenApiUsageOutcomeCallable; typedef std::function&)> DescribeOpenApiUsageAsyncHandler; @@ -526,6 +549,9 @@ namespace AlibabaCloud typedef Outcome ExportKeywordsOutcome; typedef std::future ExportKeywordsOutcomeCallable; typedef std::function&)> ExportKeywordsAsyncHandler; + typedef Outcome ExportOpenApiRcpStatsOutcome; + typedef std::future ExportOpenApiRcpStatsOutcomeCallable; + typedef std::function&)> ExportOpenApiRcpStatsAsyncHandler; typedef Outcome ExportOssResultOutcome; typedef std::future ExportOssResultOutcomeCallable; typedef std::function&)> ExportOssResultAsyncHandler; @@ -586,6 +612,15 @@ namespace AlibabaCloud typedef Outcome ListSimilarityLibrariesOutcome; typedef std::future ListSimilarityLibrariesOutcomeCallable; typedef std::function&)> ListSimilarityLibrariesAsyncHandler; + typedef Outcome LiveStreamAsyncScanOutcome; + typedef std::future LiveStreamAsyncScanOutcomeCallable; + typedef std::function&)> LiveStreamAsyncScanAsyncHandler; + typedef Outcome LiveStreamAsyncScanResultsOutcome; + typedef std::future LiveStreamAsyncScanResultsOutcomeCallable; + typedef std::function&)> LiveStreamAsyncScanResultsAsyncHandler; + typedef Outcome LiveStreamCancelScanOutcome; + typedef std::future LiveStreamCancelScanOutcomeCallable; + typedef std::function&)> LiveStreamCancelScanAsyncHandler; typedef Outcome MarkAuditContentOutcome; typedef std::future MarkAuditContentOutcomeCallable; typedef std::function&)> MarkAuditContentAsyncHandler; @@ -724,6 +759,12 @@ namespace AlibabaCloud typedef Outcome VideoSyncScanOutcome; typedef std::future VideoSyncScanOutcomeCallable; typedef std::function&)> VideoSyncScanAsyncHandler; + typedef Outcome VodAsyncScanOutcome; + typedef std::future VodAsyncScanOutcomeCallable; + typedef std::function&)> VodAsyncScanAsyncHandler; + typedef Outcome VodAsyncScanResultsOutcome; + typedef std::future VodAsyncScanResultsOutcomeCallable; + typedef std::function&)> VodAsyncScanResultsAsyncHandler; typedef Outcome VoiceAsyncScanOutcome; typedef std::future VoiceAsyncScanOutcomeCallable; typedef std::function&)> VoiceAsyncScanAsyncHandler; @@ -751,6 +792,15 @@ namespace AlibabaCloud typedef Outcome VoiceSyncScanOutcome; typedef std::future VoiceSyncScanOutcomeCallable; typedef std::function&)> VoiceSyncScanAsyncHandler; + typedef Outcome WebpageAsyncScanOutcome; + typedef std::future WebpageAsyncScanOutcomeCallable; + typedef std::function&)> WebpageAsyncScanAsyncHandler; + typedef Outcome WebpageAsyncScanResultsOutcome; + typedef std::future WebpageAsyncScanResultsOutcomeCallable; + typedef std::function&)> WebpageAsyncScanResultsAsyncHandler; + typedef Outcome WebpageSyncScanOutcome; + typedef std::future WebpageSyncScanOutcomeCallable; + typedef std::function&)> WebpageSyncScanAsyncHandler; GreenClient(const Credentials &credentials, const ClientConfiguration &configuration); GreenClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -891,6 +941,9 @@ namespace AlibabaCloud DescribeNotificationSettingOutcome describeNotificationSetting(const Model::DescribeNotificationSettingRequest &request)const; void describeNotificationSettingAsync(const Model::DescribeNotificationSettingRequest& request, const DescribeNotificationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNotificationSettingOutcomeCallable describeNotificationSettingCallable(const Model::DescribeNotificationSettingRequest& request) const; + DescribeOpenApiRcpStatsOutcome describeOpenApiRcpStats(const Model::DescribeOpenApiRcpStatsRequest &request)const; + void describeOpenApiRcpStatsAsync(const Model::DescribeOpenApiRcpStatsRequest& request, const DescribeOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeOpenApiRcpStatsOutcomeCallable describeOpenApiRcpStatsCallable(const Model::DescribeOpenApiRcpStatsRequest& request) const; DescribeOpenApiUsageOutcome describeOpenApiUsage(const Model::DescribeOpenApiUsageRequest &request)const; void describeOpenApiUsageAsync(const Model::DescribeOpenApiUsageRequest& request, const DescribeOpenApiUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOpenApiUsageOutcomeCallable describeOpenApiUsageCallable(const Model::DescribeOpenApiUsageRequest& request) const; @@ -963,6 +1016,9 @@ namespace AlibabaCloud ExportKeywordsOutcome exportKeywords(const Model::ExportKeywordsRequest &request)const; void exportKeywordsAsync(const Model::ExportKeywordsRequest& request, const ExportKeywordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportKeywordsOutcomeCallable exportKeywordsCallable(const Model::ExportKeywordsRequest& request) const; + ExportOpenApiRcpStatsOutcome exportOpenApiRcpStats(const Model::ExportOpenApiRcpStatsRequest &request)const; + void exportOpenApiRcpStatsAsync(const Model::ExportOpenApiRcpStatsRequest& request, const ExportOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportOpenApiRcpStatsOutcomeCallable exportOpenApiRcpStatsCallable(const Model::ExportOpenApiRcpStatsRequest& request) const; ExportOssResultOutcome exportOssResult(const Model::ExportOssResultRequest &request)const; void exportOssResultAsync(const Model::ExportOssResultRequest& request, const ExportOssResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportOssResultOutcomeCallable exportOssResultCallable(const Model::ExportOssResultRequest& request) const; @@ -1023,6 +1079,15 @@ namespace AlibabaCloud ListSimilarityLibrariesOutcome listSimilarityLibraries(const Model::ListSimilarityLibrariesRequest &request)const; void listSimilarityLibrariesAsync(const Model::ListSimilarityLibrariesRequest& request, const ListSimilarityLibrariesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSimilarityLibrariesOutcomeCallable listSimilarityLibrariesCallable(const Model::ListSimilarityLibrariesRequest& request) const; + LiveStreamAsyncScanOutcome liveStreamAsyncScan(const Model::LiveStreamAsyncScanRequest &request)const; + void liveStreamAsyncScanAsync(const Model::LiveStreamAsyncScanRequest& request, const LiveStreamAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LiveStreamAsyncScanOutcomeCallable liveStreamAsyncScanCallable(const Model::LiveStreamAsyncScanRequest& request) const; + LiveStreamAsyncScanResultsOutcome liveStreamAsyncScanResults(const Model::LiveStreamAsyncScanResultsRequest &request)const; + void liveStreamAsyncScanResultsAsync(const Model::LiveStreamAsyncScanResultsRequest& request, const LiveStreamAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LiveStreamAsyncScanResultsOutcomeCallable liveStreamAsyncScanResultsCallable(const Model::LiveStreamAsyncScanResultsRequest& request) const; + LiveStreamCancelScanOutcome liveStreamCancelScan(const Model::LiveStreamCancelScanRequest &request)const; + void liveStreamCancelScanAsync(const Model::LiveStreamCancelScanRequest& request, const LiveStreamCancelScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LiveStreamCancelScanOutcomeCallable liveStreamCancelScanCallable(const Model::LiveStreamCancelScanRequest& request) const; MarkAuditContentOutcome markAuditContent(const Model::MarkAuditContentRequest &request)const; void markAuditContentAsync(const Model::MarkAuditContentRequest& request, const MarkAuditContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MarkAuditContentOutcomeCallable markAuditContentCallable(const Model::MarkAuditContentRequest& request) const; @@ -1161,6 +1226,12 @@ namespace AlibabaCloud VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const; void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const; + VodAsyncScanOutcome vodAsyncScan(const Model::VodAsyncScanRequest &request)const; + void vodAsyncScanAsync(const Model::VodAsyncScanRequest& request, const VodAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VodAsyncScanOutcomeCallable vodAsyncScanCallable(const Model::VodAsyncScanRequest& request) const; + VodAsyncScanResultsOutcome vodAsyncScanResults(const Model::VodAsyncScanResultsRequest &request)const; + void vodAsyncScanResultsAsync(const Model::VodAsyncScanResultsRequest& request, const VodAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VodAsyncScanResultsOutcomeCallable vodAsyncScanResultsCallable(const Model::VodAsyncScanResultsRequest& request) const; VoiceAsyncScanOutcome voiceAsyncScan(const Model::VoiceAsyncScanRequest &request)const; void voiceAsyncScanAsync(const Model::VoiceAsyncScanRequest& request, const VoiceAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VoiceAsyncScanOutcomeCallable voiceAsyncScanCallable(const Model::VoiceAsyncScanRequest& request) const; @@ -1188,6 +1259,15 @@ namespace AlibabaCloud 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; + WebpageAsyncScanOutcome webpageAsyncScan(const Model::WebpageAsyncScanRequest &request)const; + void webpageAsyncScanAsync(const Model::WebpageAsyncScanRequest& request, const WebpageAsyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WebpageAsyncScanOutcomeCallable webpageAsyncScanCallable(const Model::WebpageAsyncScanRequest& request) const; + WebpageAsyncScanResultsOutcome webpageAsyncScanResults(const Model::WebpageAsyncScanResultsRequest &request)const; + void webpageAsyncScanResultsAsync(const Model::WebpageAsyncScanResultsRequest& request, const WebpageAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WebpageAsyncScanResultsOutcomeCallable webpageAsyncScanResultsCallable(const Model::WebpageAsyncScanResultsRequest& request) const; + WebpageSyncScanOutcome webpageSyncScan(const Model::WebpageSyncScanRequest &request)const; + void webpageSyncScanAsync(const Model::WebpageSyncScanRequest& request, const WebpageSyncScanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WebpageSyncScanOutcomeCallable webpageSyncScanCallable(const Model::WebpageSyncScanRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsRequest.h b/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsRequest.h new file mode 100644 index 000000000..38e4e578f --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeOpenApiRcpStatsRequest : public RpcServiceRequest + { + + public: + DescribeOpenApiRcpStatsRequest(); + ~DescribeOpenApiRcpStatsRequest(); + + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getBizType()const; + void setBizType(const std::string& bizType); + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string startDate_; + std::string resourceType_; + std::string bizType_; + std::string endDate_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsResult.h b/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsResult.h new file mode 100644 index 000000000..83de6221a --- /dev/null +++ b/green/include/alibabacloud/green/model/DescribeOpenApiRcpStatsResult.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_DESCRIBEOPENAPIRCPSTATSRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT DescribeOpenApiRcpStatsResult : public ServiceResult + { + public: + struct Stat + { + int totalCount; + int blockCount; + std::string resourceType; + int passCount; + int reviewCount; + std::string date; + int totalDuration; + }; + + + DescribeOpenApiRcpStatsResult(); + explicit DescribeOpenApiRcpStatsResult(const std::string &payload); + ~DescribeOpenApiRcpStatsResult(); + int getTotalCount()const; + std::vector getStatList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector statList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEOPENAPIRCPSTATSRESULT_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 a1a177da4..fe7c254dc 100644 --- a/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h +++ b/green/include/alibabacloud/green/model/DescribeOssIncrementCheckSettingResult.h @@ -52,14 +52,16 @@ namespace AlibabaCloud explicit DescribeOssIncrementCheckSettingResult(const std::string &payload); ~DescribeOssIncrementCheckSettingResult(); std::vector getVideoAutoFreezeSceneList()const; - std::vector getVideoSceneList()const; - bool getImageEnableLimit()const; - std::vector getImageSceneList()const; + std::string getCallbackId()const; long getImageScanLimit()const; ImageAutoFreeze getImageAutoFreeze()const; std::vector getBucketConfigList()const; - std::string getAutoFreezeType()const; int getVideoFrameInterval()const; + std::vector getVideoSceneList()const; + bool getImageEnableLimit()const; + std::vector getImageSceneList()const; + std::string getCallbackName()const; + std::string getAutoFreezeType()const; int getVideoMaxFrames()const; int getVideoMaxSize()const; @@ -67,14 +69,16 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector videoAutoFreezeSceneList_; - std::vector videoSceneList_; - bool imageEnableLimit_; - std::vector imageSceneList_; + std::string callbackId_; long imageScanLimit_; ImageAutoFreeze imageAutoFreeze_; std::vector bucketConfigList_; - std::string autoFreezeType_; int videoFrameInterval_; + std::vector videoSceneList_; + bool imageEnableLimit_; + std::vector imageSceneList_; + std::string callbackName_; + std::string autoFreezeType_; int videoMaxFrames_; int videoMaxSize_; diff --git a/green/include/alibabacloud/green/model/DescribeOssIncrementOverviewResult.h b/green/include/alibabacloud/green/model/DescribeOssIncrementOverviewResult.h index c3b1318f6..5377b4d05 100644 --- a/green/include/alibabacloud/green/model/DescribeOssIncrementOverviewResult.h +++ b/green/include/alibabacloud/green/model/DescribeOssIncrementOverviewResult.h @@ -39,18 +39,24 @@ namespace AlibabaCloud ~DescribeOssIncrementOverviewResult(); int getImageCount()const; int getVideoCount()const; + int getVoiceAntispamUnhandleCount()const; int getPornUnhandleCount()const; + int getLiveUnhandleCount()const; int getVideoFrameCount()const; int getTerrorismUnhandleCount()const; + int getAdUnhandleCount()const; protected: void parse(const std::string &payload); private: int imageCount_; int videoCount_; + int voiceAntispamUnhandleCount_; int pornUnhandleCount_; + int liveUnhandleCount_; int videoFrameCount_; int terrorismUnhandleCount_; + int adUnhandleCount_; }; } diff --git a/green/include/alibabacloud/green/model/DescribeOssResultItemsRequest.h b/green/include/alibabacloud/green/model/DescribeOssResultItemsRequest.h index b665c0bd0..966fdcb93 100644 --- a/green/include/alibabacloud/green/model/DescribeOssResultItemsRequest.h +++ b/green/include/alibabacloud/green/model/DescribeOssResultItemsRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setMinScore(float minScore); float getMaxScore()const; void setMaxScore(float maxScore); + long getStockTaskId()const; + void setStockTaskId(long stockTaskId); std::string getStartDate()const; void setStartDate(const std::string& startDate); std::string getScene()const; @@ -71,6 +73,7 @@ namespace AlibabaCloud private: float minScore_; float maxScore_; + long stockTaskId_; std::string startDate_; std::string scene_; std::string sourceIp_; diff --git a/green/include/alibabacloud/green/model/DescribeOssResultItemsResult.h b/green/include/alibabacloud/green/model/DescribeOssResultItemsResult.h index 00c6f8acc..5751dfe7e 100644 --- a/green/include/alibabacloud/green/model/DescribeOssResultItemsResult.h +++ b/green/include/alibabacloud/green/model/DescribeOssResultItemsResult.h @@ -40,9 +40,17 @@ namespace AlibabaCloud std::string url; int offset; }; + struct VoiceSegmentAntispamResult + { + int endTime; + int startTime; + std::string label; + std::string text; + }; std::string taskId; std::string createTime; std::string requestTime; + std::vector voiceSegmentAntispamResults; std::string thumbnail; std::string newUrl; std::string scanFinishedTime; @@ -52,6 +60,7 @@ namespace AlibabaCloud std::vector frameResults; std::string bucket; int handleStatus; + std::string content; int resourceStatus; std::string object; long id; diff --git a/green/include/alibabacloud/green/model/DescribeViewContentRequest.h b/green/include/alibabacloud/green/model/DescribeViewContentRequest.h index b088ad7ce..398f027c2 100644 --- a/green/include/alibabacloud/green/model/DescribeViewContentRequest.h +++ b/green/include/alibabacloud/green/model/DescribeViewContentRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setAuditResult(const std::string& auditResult); int getPageSize()const; void setPageSize(int pageSize); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); std::string getTaskId()const; void setTaskId(const std::string& taskId); int getTotalCount()const; @@ -78,6 +80,7 @@ namespace AlibabaCloud std::string libType_; std::string auditResult_; int pageSize_; + std::string keyword_; std::string taskId_; int totalCount_; std::string keywordId_; diff --git a/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsRequest.h b/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsRequest.h new file mode 100644 index 000000000..bb79f91c7 --- /dev/null +++ b/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT ExportOpenApiRcpStatsRequest : public RpcServiceRequest + { + + public: + ExportOpenApiRcpStatsRequest(); + ~ExportOpenApiRcpStatsRequest(); + + std::string getStartDate()const; + void setStartDate(const std::string& startDate); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getBizType()const; + void setBizType(const std::string& bizType); + std::string getEndDate()const; + void setEndDate(const std::string& endDate); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string startDate_; + std::string resourceType_; + std::string bizType_; + std::string endDate_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsResult.h b/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsResult.h new file mode 100644 index 000000000..2ea82cfde --- /dev/null +++ b/green/include/alibabacloud/green/model/ExportOpenApiRcpStatsResult.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_EXPORTOPENAPIRCPSTATSRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT ExportOpenApiRcpStatsResult : public ServiceResult + { + public: + + + ExportOpenApiRcpStatsResult(); + explicit ExportOpenApiRcpStatsResult(const std::string &payload); + ~ExportOpenApiRcpStatsResult(); + std::string getDownloadUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string downloadUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_EXPORTOPENAPIRCPSTATSRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/ExportOssResultRequest.h b/green/include/alibabacloud/green/model/ExportOssResultRequest.h index 3c00bacab..1c37111cd 100644 --- a/green/include/alibabacloud/green/model/ExportOssResultRequest.h +++ b/green/include/alibabacloud/green/model/ExportOssResultRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setMinScore(float minScore); float getMaxScore()const; void setMaxScore(float maxScore); + long getStockTaskId()const; + void setStockTaskId(long stockTaskId); std::string getStartDate()const; void setStartDate(const std::string& startDate); std::string getScene()const; @@ -67,6 +69,7 @@ namespace AlibabaCloud private: float minScore_; float maxScore_; + long stockTaskId_; std::string startDate_; std::string scene_; std::string sourceIp_; diff --git a/green/include/alibabacloud/green/model/LiveStreamAsyncScanRequest.h b/green/include/alibabacloud/green/model/LiveStreamAsyncScanRequest.h new file mode 100644 index 000000000..d04a84fdf --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamAsyncScanRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanRequest : public RoaServiceRequest + { + + public: + LiveStreamAsyncScanRequest(); + ~LiveStreamAsyncScanRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/LiveStreamAsyncScanResult.h b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResult.h new file mode 100644 index 000000000..0e0c15151 --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResult.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_LIVESTREAMASYNCSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResult : public ServiceResult + { + public: + + + LiveStreamAsyncScanResult(); + explicit LiveStreamAsyncScanResult(const std::string &payload); + ~LiveStreamAsyncScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsRequest.h b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsRequest.h new file mode 100644 index 000000000..e2d7fbae9 --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResultsRequest : public RoaServiceRequest + { + + public: + LiveStreamAsyncScanResultsRequest(); + ~LiveStreamAsyncScanResultsRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsResult.h b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsResult.h new file mode 100644 index 000000000..be249242a --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamAsyncScanResultsResult.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_LIVESTREAMASYNCSCANRESULTSRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamAsyncScanResultsResult : public ServiceResult + { + public: + + + LiveStreamAsyncScanResultsResult(); + explicit LiveStreamAsyncScanResultsResult(const std::string &payload); + ~LiveStreamAsyncScanResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMASYNCSCANRESULTSRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/LiveStreamCancelScanRequest.h b/green/include/alibabacloud/green/model/LiveStreamCancelScanRequest.h new file mode 100644 index 000000000..e150aae87 --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamCancelScanRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamCancelScanRequest : public RoaServiceRequest + { + + public: + LiveStreamCancelScanRequest(); + ~LiveStreamCancelScanRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/LiveStreamCancelScanResult.h b/green/include/alibabacloud/green/model/LiveStreamCancelScanResult.h new file mode 100644 index 000000000..f45de048c --- /dev/null +++ b/green/include/alibabacloud/green/model/LiveStreamCancelScanResult.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_LIVESTREAMCANCELSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT LiveStreamCancelScanResult : public ServiceResult + { + public: + + + LiveStreamCancelScanResult(); + explicit LiveStreamCancelScanResult(const std::string &payload); + ~LiveStreamCancelScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_LIVESTREAMCANCELSCANRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/UpdateOssIncrementCheckSettingRequest.h b/green/include/alibabacloud/green/model/UpdateOssIncrementCheckSettingRequest.h index f6caa12c7..0e31a0d61 100644 --- a/green/include/alibabacloud/green/model/UpdateOssIncrementCheckSettingRequest.h +++ b/green/include/alibabacloud/green/model/UpdateOssIncrementCheckSettingRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setVideoFrameInterval(int videoFrameInterval); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); + std::string getCallbackId()const; + void setCallbackId(const std::string& callbackId); std::string getImageScanLimit()const; void setImageScanLimit(const std::string& imageScanLimit); std::string getVideoAutoFreezeSceneList()const; @@ -65,6 +67,7 @@ namespace AlibabaCloud std::string imageSceneList_; int videoFrameInterval_; std::string sourceIp_; + std::string callbackId_; std::string imageScanLimit_; std::string videoAutoFreezeSceneList_; std::string lang_; diff --git a/green/include/alibabacloud/green/model/VodAsyncScanRequest.h b/green/include/alibabacloud/green/model/VodAsyncScanRequest.h new file mode 100644 index 000000000..673bf8427 --- /dev/null +++ b/green/include/alibabacloud/green/model/VodAsyncScanRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanRequest : public RoaServiceRequest + { + + public: + VodAsyncScanRequest(); + ~VodAsyncScanRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/VodAsyncScanResult.h b/green/include/alibabacloud/green/model/VodAsyncScanResult.h new file mode 100644 index 000000000..e994b1e3b --- /dev/null +++ b/green/include/alibabacloud/green/model/VodAsyncScanResult.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_VODASYNCSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResult : public ServiceResult + { + public: + + + VodAsyncScanResult(); + explicit VodAsyncScanResult(const std::string &payload); + ~VodAsyncScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/VodAsyncScanResultsRequest.h b/green/include/alibabacloud/green/model/VodAsyncScanResultsRequest.h new file mode 100644 index 000000000..6ef6964c8 --- /dev/null +++ b/green/include/alibabacloud/green/model/VodAsyncScanResultsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResultsRequest : public RoaServiceRequest + { + + public: + VodAsyncScanResultsRequest(); + ~VodAsyncScanResultsRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/VodAsyncScanResultsResult.h b/green/include/alibabacloud/green/model/VodAsyncScanResultsResult.h new file mode 100644 index 000000000..9becbef08 --- /dev/null +++ b/green/include/alibabacloud/green/model/VodAsyncScanResultsResult.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_VODASYNCSCANRESULTSRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT VodAsyncScanResultsResult : public ServiceResult + { + public: + + + VodAsyncScanResultsResult(); + explicit VodAsyncScanResultsResult(const std::string &payload); + ~VodAsyncScanResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_VODASYNCSCANRESULTSRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageAsyncScanRequest.h b/green/include/alibabacloud/green/model/WebpageAsyncScanRequest.h new file mode 100644 index 000000000..9a12c1811 --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageAsyncScanRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanRequest : public RoaServiceRequest + { + + public: + WebpageAsyncScanRequest(); + ~WebpageAsyncScanRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageAsyncScanResult.h b/green/include/alibabacloud/green/model/WebpageAsyncScanResult.h new file mode 100644 index 000000000..2dd98dabc --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageAsyncScanResult.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_WEBPAGEASYNCSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResult : public ServiceResult + { + public: + + + WebpageAsyncScanResult(); + explicit WebpageAsyncScanResult(const std::string &payload); + ~WebpageAsyncScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageAsyncScanResultsRequest.h b/green/include/alibabacloud/green/model/WebpageAsyncScanResultsRequest.h new file mode 100644 index 000000000..b665ca2af --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageAsyncScanResultsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResultsRequest : public RoaServiceRequest + { + + public: + WebpageAsyncScanResultsRequest(); + ~WebpageAsyncScanResultsRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageAsyncScanResultsResult.h b/green/include/alibabacloud/green/model/WebpageAsyncScanResultsResult.h new file mode 100644 index 000000000..362fbe204 --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageAsyncScanResultsResult.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_WEBPAGEASYNCSCANRESULTSRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageAsyncScanResultsResult : public ServiceResult + { + public: + + + WebpageAsyncScanResultsResult(); + explicit WebpageAsyncScanResultsResult(const std::string &payload); + ~WebpageAsyncScanResultsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGEASYNCSCANRESULTSRESULT_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageSyncScanRequest.h b/green/include/alibabacloud/green/model/WebpageSyncScanRequest.h new file mode 100644 index 000000000..d060a42b3 --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageSyncScanRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageSyncScanRequest : public RoaServiceRequest + { + + public: + WebpageSyncScanRequest(); + ~WebpageSyncScanRequest(); + + std::string getClientInfo()const; + void setClientInfo(const std::string& clientInfo); + + private: + std::string clientInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANREQUEST_H_ \ No newline at end of file diff --git a/green/include/alibabacloud/green/model/WebpageSyncScanResult.h b/green/include/alibabacloud/green/model/WebpageSyncScanResult.h new file mode 100644 index 000000000..5a2f856ad --- /dev/null +++ b/green/include/alibabacloud/green/model/WebpageSyncScanResult.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_WEBPAGESYNCSCANRESULT_H_ +#define ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Green + { + namespace Model + { + class ALIBABACLOUD_GREEN_EXPORT WebpageSyncScanResult : public ServiceResult + { + public: + + + WebpageSyncScanResult(); + explicit WebpageSyncScanResult(const std::string &payload); + ~WebpageSyncScanResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GREEN_MODEL_WEBPAGESYNCSCANRESULT_H_ \ No newline at end of file diff --git a/green/src/GreenClient.cc b/green/src/GreenClient.cc index 90e51b811..558fd6fe9 100755 --- a/green/src/GreenClient.cc +++ b/green/src/GreenClient.cc @@ -1671,6 +1671,42 @@ GreenClient::DescribeNotificationSettingOutcomeCallable GreenClient::describeNot return task->get_future(); } +GreenClient::DescribeOpenApiRcpStatsOutcome GreenClient::describeOpenApiRcpStats(const DescribeOpenApiRcpStatsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeOpenApiRcpStatsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeOpenApiRcpStatsOutcome(DescribeOpenApiRcpStatsResult(outcome.result())); + else + return DescribeOpenApiRcpStatsOutcome(outcome.error()); +} + +void GreenClient::describeOpenApiRcpStatsAsync(const DescribeOpenApiRcpStatsRequest& request, const DescribeOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeOpenApiRcpStats(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::DescribeOpenApiRcpStatsOutcomeCallable GreenClient::describeOpenApiRcpStatsCallable(const DescribeOpenApiRcpStatsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeOpenApiRcpStats(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::DescribeOpenApiUsageOutcome GreenClient::describeOpenApiUsage(const DescribeOpenApiUsageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,6 +2571,42 @@ GreenClient::ExportKeywordsOutcomeCallable GreenClient::exportKeywordsCallable(c return task->get_future(); } +GreenClient::ExportOpenApiRcpStatsOutcome GreenClient::exportOpenApiRcpStats(const ExportOpenApiRcpStatsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportOpenApiRcpStatsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportOpenApiRcpStatsOutcome(ExportOpenApiRcpStatsResult(outcome.result())); + else + return ExportOpenApiRcpStatsOutcome(outcome.error()); +} + +void GreenClient::exportOpenApiRcpStatsAsync(const ExportOpenApiRcpStatsRequest& request, const ExportOpenApiRcpStatsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportOpenApiRcpStats(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::ExportOpenApiRcpStatsOutcomeCallable GreenClient::exportOpenApiRcpStatsCallable(const ExportOpenApiRcpStatsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportOpenApiRcpStats(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::ExportOssResultOutcome GreenClient::exportOssResult(const ExportOssResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,6 +3327,114 @@ GreenClient::ListSimilarityLibrariesOutcomeCallable GreenClient::listSimilarityL return task->get_future(); } +GreenClient::LiveStreamAsyncScanOutcome GreenClient::liveStreamAsyncScan(const LiveStreamAsyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LiveStreamAsyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LiveStreamAsyncScanOutcome(LiveStreamAsyncScanResult(outcome.result())); + else + return LiveStreamAsyncScanOutcome(outcome.error()); +} + +void GreenClient::liveStreamAsyncScanAsync(const LiveStreamAsyncScanRequest& request, const LiveStreamAsyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, liveStreamAsyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::LiveStreamAsyncScanOutcomeCallable GreenClient::liveStreamAsyncScanCallable(const LiveStreamAsyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->liveStreamAsyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GreenClient::LiveStreamAsyncScanResultsOutcome GreenClient::liveStreamAsyncScanResults(const LiveStreamAsyncScanResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LiveStreamAsyncScanResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LiveStreamAsyncScanResultsOutcome(LiveStreamAsyncScanResultsResult(outcome.result())); + else + return LiveStreamAsyncScanResultsOutcome(outcome.error()); +} + +void GreenClient::liveStreamAsyncScanResultsAsync(const LiveStreamAsyncScanResultsRequest& request, const LiveStreamAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, liveStreamAsyncScanResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::LiveStreamAsyncScanResultsOutcomeCallable GreenClient::liveStreamAsyncScanResultsCallable(const LiveStreamAsyncScanResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->liveStreamAsyncScanResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GreenClient::LiveStreamCancelScanOutcome GreenClient::liveStreamCancelScan(const LiveStreamCancelScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LiveStreamCancelScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LiveStreamCancelScanOutcome(LiveStreamCancelScanResult(outcome.result())); + else + return LiveStreamCancelScanOutcome(outcome.error()); +} + +void GreenClient::liveStreamCancelScanAsync(const LiveStreamCancelScanRequest& request, const LiveStreamCancelScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, liveStreamCancelScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::LiveStreamCancelScanOutcomeCallable GreenClient::liveStreamCancelScanCallable(const LiveStreamCancelScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->liveStreamCancelScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::MarkAuditContentOutcome GreenClient::markAuditContent(const MarkAuditContentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4911,6 +5091,78 @@ GreenClient::VideoSyncScanOutcomeCallable GreenClient::videoSyncScanCallable(con return task->get_future(); } +GreenClient::VodAsyncScanOutcome GreenClient::vodAsyncScan(const VodAsyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VodAsyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VodAsyncScanOutcome(VodAsyncScanResult(outcome.result())); + else + return VodAsyncScanOutcome(outcome.error()); +} + +void GreenClient::vodAsyncScanAsync(const VodAsyncScanRequest& request, const VodAsyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, vodAsyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::VodAsyncScanOutcomeCallable GreenClient::vodAsyncScanCallable(const VodAsyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->vodAsyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GreenClient::VodAsyncScanResultsOutcome GreenClient::vodAsyncScanResults(const VodAsyncScanResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VodAsyncScanResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VodAsyncScanResultsOutcome(VodAsyncScanResultsResult(outcome.result())); + else + return VodAsyncScanResultsOutcome(outcome.error()); +} + +void GreenClient::vodAsyncScanResultsAsync(const VodAsyncScanResultsRequest& request, const VodAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, vodAsyncScanResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::VodAsyncScanResultsOutcomeCallable GreenClient::vodAsyncScanResultsCallable(const VodAsyncScanResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->vodAsyncScanResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GreenClient::VoiceAsyncScanOutcome GreenClient::voiceAsyncScan(const VoiceAsyncScanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,3 +5487,111 @@ GreenClient::VoiceSyncScanOutcomeCallable GreenClient::voiceSyncScanCallable(con return task->get_future(); } +GreenClient::WebpageAsyncScanOutcome GreenClient::webpageAsyncScan(const WebpageAsyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WebpageAsyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WebpageAsyncScanOutcome(WebpageAsyncScanResult(outcome.result())); + else + return WebpageAsyncScanOutcome(outcome.error()); +} + +void GreenClient::webpageAsyncScanAsync(const WebpageAsyncScanRequest& request, const WebpageAsyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, webpageAsyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::WebpageAsyncScanOutcomeCallable GreenClient::webpageAsyncScanCallable(const WebpageAsyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->webpageAsyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GreenClient::WebpageAsyncScanResultsOutcome GreenClient::webpageAsyncScanResults(const WebpageAsyncScanResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WebpageAsyncScanResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WebpageAsyncScanResultsOutcome(WebpageAsyncScanResultsResult(outcome.result())); + else + return WebpageAsyncScanResultsOutcome(outcome.error()); +} + +void GreenClient::webpageAsyncScanResultsAsync(const WebpageAsyncScanResultsRequest& request, const WebpageAsyncScanResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, webpageAsyncScanResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::WebpageAsyncScanResultsOutcomeCallable GreenClient::webpageAsyncScanResultsCallable(const WebpageAsyncScanResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->webpageAsyncScanResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GreenClient::WebpageSyncScanOutcome GreenClient::webpageSyncScan(const WebpageSyncScanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WebpageSyncScanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WebpageSyncScanOutcome(WebpageSyncScanResult(outcome.result())); + else + return WebpageSyncScanOutcome(outcome.error()); +} + +void GreenClient::webpageSyncScanAsync(const WebpageSyncScanRequest& request, const WebpageSyncScanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, webpageSyncScan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GreenClient::WebpageSyncScanOutcomeCallable GreenClient::webpageSyncScanCallable(const WebpageSyncScanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->webpageSyncScan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/green/src/model/DescribeAuditContentResult.cc b/green/src/model/DescribeAuditContentResult.cc index 7b1bb1900..707be1916 100644 --- a/green/src/model/DescribeAuditContentResult.cc +++ b/green/src/model/DescribeAuditContentResult.cc @@ -69,28 +69,28 @@ void DescribeAuditContentResult::parse(const std::string &payload) auditContentListObject.suggestion = valueAuditContentListAuditContent["Suggestion"].asString(); if(!valueAuditContentListAuditContent["Id"].isNull()) auditContentListObject.id = std::stol(valueAuditContentListAuditContent["Id"].asString()); - auto allResultsNode = allAuditContentListNode["Results"]["Result"]; - for (auto allAuditContentListNodeResultsResult : allResultsNode) + auto allResultsNode = valueAuditContentListAuditContent["Results"]["Result"]; + for (auto valueAuditContentListAuditContentResultsResult : allResultsNode) { AuditContent::Result resultsObject; - if(!allAuditContentListNodeResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = allAuditContentListNodeResultsResult["Suggestion"].asString(); - if(!allAuditContentListNodeResultsResult["Label"].isNull()) - resultsObject.label = allAuditContentListNodeResultsResult["Label"].asString(); - if(!allAuditContentListNodeResultsResult["Scene"].isNull()) - resultsObject.scene = allAuditContentListNodeResultsResult["Scene"].asString(); + if(!valueAuditContentListAuditContentResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = valueAuditContentListAuditContentResultsResult["Suggestion"].asString(); + if(!valueAuditContentListAuditContentResultsResult["Label"].isNull()) + resultsObject.label = valueAuditContentListAuditContentResultsResult["Label"].asString(); + if(!valueAuditContentListAuditContentResultsResult["Scene"].isNull()) + resultsObject.scene = valueAuditContentListAuditContentResultsResult["Scene"].asString(); auditContentListObject.results.push_back(resultsObject); } - auto allFrameResultsNode = allAuditContentListNode["FrameResults"]["frameResult"]; - for (auto allAuditContentListNodeFrameResultsframeResult : allFrameResultsNode) + auto allFrameResultsNode = valueAuditContentListAuditContent["FrameResults"]["frameResult"]; + for (auto valueAuditContentListAuditContentFrameResultsframeResult : allFrameResultsNode) { AuditContent::FrameResult frameResultsObject; - if(!allAuditContentListNodeFrameResultsframeResult["Url"].isNull()) - frameResultsObject.url = allAuditContentListNodeFrameResultsframeResult["Url"].asString(); - if(!allAuditContentListNodeFrameResultsframeResult["Offset"].isNull()) - frameResultsObject.offset = std::stoi(allAuditContentListNodeFrameResultsframeResult["Offset"].asString()); - if(!allAuditContentListNodeFrameResultsframeResult["Label"].isNull()) - frameResultsObject.label = allAuditContentListNodeFrameResultsframeResult["Label"].asString(); + if(!valueAuditContentListAuditContentFrameResultsframeResult["Url"].isNull()) + frameResultsObject.url = valueAuditContentListAuditContentFrameResultsframeResult["Url"].asString(); + if(!valueAuditContentListAuditContentFrameResultsframeResult["Offset"].isNull()) + frameResultsObject.offset = std::stoi(valueAuditContentListAuditContentFrameResultsframeResult["Offset"].asString()); + if(!valueAuditContentListAuditContentFrameResultsframeResult["Label"].isNull()) + frameResultsObject.label = valueAuditContentListAuditContentFrameResultsframeResult["Label"].asString(); auditContentListObject.frameResults.push_back(frameResultsObject); } auto allAuditIllegalReasons = value["AuditIllegalReasons"]["StringItem"]; diff --git a/green/src/model/DescribeCustomOcrTemplateResult.cc b/green/src/model/DescribeCustomOcrTemplateResult.cc index 9eaa84663..8206e2b7e 100644 --- a/green/src/model/DescribeCustomOcrTemplateResult.cc +++ b/green/src/model/DescribeCustomOcrTemplateResult.cc @@ -51,36 +51,36 @@ void DescribeCustomOcrTemplateResult::parse(const std::string &payload) ocrTemplateListObject.imgUrl = valueOcrTemplateListOcrTemplate["ImgUrl"].asString(); if(!valueOcrTemplateListOcrTemplate["Status"].isNull()) ocrTemplateListObject.status = std::stoi(valueOcrTemplateListOcrTemplate["Status"].asString()); - auto allReferAreaNode = allOcrTemplateListNode["ReferArea"]["item"]; - for (auto allOcrTemplateListNodeReferAreaitem : allReferAreaNode) + auto allReferAreaNode = valueOcrTemplateListOcrTemplate["ReferArea"]["item"]; + for (auto valueOcrTemplateListOcrTemplateReferAreaitem : allReferAreaNode) { OcrTemplate::Item referAreaObject; - if(!allOcrTemplateListNodeReferAreaitem["Name"].isNull()) - referAreaObject.name = allOcrTemplateListNodeReferAreaitem["Name"].asString(); - if(!allOcrTemplateListNodeReferAreaitem["X"].isNull()) - referAreaObject.x = std::stoi(allOcrTemplateListNodeReferAreaitem["X"].asString()); - if(!allOcrTemplateListNodeReferAreaitem["Y"].isNull()) - referAreaObject.y = std::stoi(allOcrTemplateListNodeReferAreaitem["Y"].asString()); - if(!allOcrTemplateListNodeReferAreaitem["Width"].isNull()) - referAreaObject.width = std::stoi(allOcrTemplateListNodeReferAreaitem["Width"].asString()); - if(!allOcrTemplateListNodeReferAreaitem["Height"].isNull()) - referAreaObject.height = std::stoi(allOcrTemplateListNodeReferAreaitem["Height"].asString()); + if(!valueOcrTemplateListOcrTemplateReferAreaitem["Name"].isNull()) + referAreaObject.name = valueOcrTemplateListOcrTemplateReferAreaitem["Name"].asString(); + if(!valueOcrTemplateListOcrTemplateReferAreaitem["X"].isNull()) + referAreaObject.x = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["X"].asString()); + if(!valueOcrTemplateListOcrTemplateReferAreaitem["Y"].isNull()) + referAreaObject.y = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Y"].asString()); + if(!valueOcrTemplateListOcrTemplateReferAreaitem["Width"].isNull()) + referAreaObject.width = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Width"].asString()); + if(!valueOcrTemplateListOcrTemplateReferAreaitem["Height"].isNull()) + referAreaObject.height = std::stoi(valueOcrTemplateListOcrTemplateReferAreaitem["Height"].asString()); ocrTemplateListObject.referArea.push_back(referAreaObject); } - auto allRecognizeAreaNode = allOcrTemplateListNode["RecognizeArea"]["item"]; - for (auto allOcrTemplateListNodeRecognizeAreaitem : allRecognizeAreaNode) + auto allRecognizeAreaNode = valueOcrTemplateListOcrTemplate["RecognizeArea"]["item"]; + for (auto valueOcrTemplateListOcrTemplateRecognizeAreaitem : allRecognizeAreaNode) { OcrTemplate::Item recognizeAreaObject; - if(!allOcrTemplateListNodeRecognizeAreaitem["Name"].isNull()) - recognizeAreaObject.name = allOcrTemplateListNodeRecognizeAreaitem["Name"].asString(); - if(!allOcrTemplateListNodeRecognizeAreaitem["X"].isNull()) - recognizeAreaObject.x = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["X"].asString()); - if(!allOcrTemplateListNodeRecognizeAreaitem["Y"].isNull()) - recognizeAreaObject.y = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Y"].asString()); - if(!allOcrTemplateListNodeRecognizeAreaitem["Width"].isNull()) - recognizeAreaObject.width = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Width"].asString()); - if(!allOcrTemplateListNodeRecognizeAreaitem["Height"].isNull()) - recognizeAreaObject.height = std::stoi(allOcrTemplateListNodeRecognizeAreaitem["Height"].asString()); + if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Name"].isNull()) + recognizeAreaObject.name = valueOcrTemplateListOcrTemplateRecognizeAreaitem["Name"].asString(); + if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["X"].isNull()) + recognizeAreaObject.x = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["X"].asString()); + if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Y"].isNull()) + recognizeAreaObject.y = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Y"].asString()); + if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Width"].isNull()) + recognizeAreaObject.width = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Width"].asString()); + if(!valueOcrTemplateListOcrTemplateRecognizeAreaitem["Height"].isNull()) + recognizeAreaObject.height = std::stoi(valueOcrTemplateListOcrTemplateRecognizeAreaitem["Height"].asString()); ocrTemplateListObject.recognizeArea.push_back(recognizeAreaObject); } ocrTemplateList_.push_back(ocrTemplateListObject); diff --git a/green/src/model/DescribeOpenApiRcpStatsRequest.cc b/green/src/model/DescribeOpenApiRcpStatsRequest.cc new file mode 100644 index 000000000..f1a51711c --- /dev/null +++ b/green/src/model/DescribeOpenApiRcpStatsRequest.cc @@ -0,0 +1,84 @@ +/* + * 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::DescribeOpenApiRcpStatsRequest; + +DescribeOpenApiRcpStatsRequest::DescribeOpenApiRcpStatsRequest() : + RpcServiceRequest("green", "2017-08-23", "DescribeOpenApiRcpStats") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeOpenApiRcpStatsRequest::~DescribeOpenApiRcpStatsRequest() +{} + +std::string DescribeOpenApiRcpStatsRequest::getStartDate()const +{ + return startDate_; +} + +void DescribeOpenApiRcpStatsRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setParameter("StartDate", startDate); +} + +std::string DescribeOpenApiRcpStatsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeOpenApiRcpStatsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribeOpenApiRcpStatsRequest::getBizType()const +{ + return bizType_; +} + +void DescribeOpenApiRcpStatsRequest::setBizType(const std::string& bizType) +{ + bizType_ = bizType; + setParameter("BizType", bizType); +} + +std::string DescribeOpenApiRcpStatsRequest::getEndDate()const +{ + return endDate_; +} + +void DescribeOpenApiRcpStatsRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setParameter("EndDate", endDate); +} + +std::string DescribeOpenApiRcpStatsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeOpenApiRcpStatsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/green/src/model/DescribeOpenApiRcpStatsResult.cc b/green/src/model/DescribeOpenApiRcpStatsResult.cc new file mode 100644 index 000000000..94fb319fb --- /dev/null +++ b/green/src/model/DescribeOpenApiRcpStatsResult.cc @@ -0,0 +1,76 @@ +/* + * 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; + +DescribeOpenApiRcpStatsResult::DescribeOpenApiRcpStatsResult() : + ServiceResult() +{} + +DescribeOpenApiRcpStatsResult::DescribeOpenApiRcpStatsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeOpenApiRcpStatsResult::~DescribeOpenApiRcpStatsResult() +{} + +void DescribeOpenApiRcpStatsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStatListNode = value["StatList"]["stat"]; + for (auto valueStatListstat : allStatListNode) + { + Stat statListObject; + if(!valueStatListstat["Date"].isNull()) + statListObject.date = valueStatListstat["Date"].asString(); + if(!valueStatListstat["ResourceType"].isNull()) + statListObject.resourceType = valueStatListstat["ResourceType"].asString(); + if(!valueStatListstat["TotalCount"].isNull()) + statListObject.totalCount = std::stoi(valueStatListstat["TotalCount"].asString()); + if(!valueStatListstat["PassCount"].isNull()) + statListObject.passCount = std::stoi(valueStatListstat["PassCount"].asString()); + if(!valueStatListstat["ReviewCount"].isNull()) + statListObject.reviewCount = std::stoi(valueStatListstat["ReviewCount"].asString()); + if(!valueStatListstat["BlockCount"].isNull()) + statListObject.blockCount = std::stoi(valueStatListstat["BlockCount"].asString()); + if(!valueStatListstat["TotalDuration"].isNull()) + statListObject.totalDuration = std::stoi(valueStatListstat["TotalDuration"].asString()); + statList_.push_back(statListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeOpenApiRcpStatsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeOpenApiRcpStatsResult::getStatList()const +{ + return statList_; +} + diff --git a/green/src/model/DescribeOssIncrementCheckSettingResult.cc b/green/src/model/DescribeOssIncrementCheckSettingResult.cc index 4d6caed31..3d665a043 100644 --- a/green/src/model/DescribeOssIncrementCheckSettingResult.cc +++ b/green/src/model/DescribeOssIncrementCheckSettingResult.cc @@ -84,6 +84,10 @@ void DescribeOssIncrementCheckSettingResult::parse(const std::string &payload) videoMaxSize_ = std::stoi(value["VideoMaxSize"].asString()); if(!value["AutoFreezeType"].isNull()) autoFreezeType_ = value["AutoFreezeType"].asString(); + if(!value["CallbackId"].isNull()) + callbackId_ = value["CallbackId"].asString(); + if(!value["CallbackName"].isNull()) + callbackName_ = value["CallbackName"].asString(); } @@ -92,19 +96,9 @@ std::vector DescribeOssIncrementCheckSettingResult::getVideoAutoFre return videoAutoFreezeSceneList_; } -std::vector DescribeOssIncrementCheckSettingResult::getVideoSceneList()const +std::string DescribeOssIncrementCheckSettingResult::getCallbackId()const { - return videoSceneList_; -} - -bool DescribeOssIncrementCheckSettingResult::getImageEnableLimit()const -{ - return imageEnableLimit_; -} - -std::vector DescribeOssIncrementCheckSettingResult::getImageSceneList()const -{ - return imageSceneList_; + return callbackId_; } long DescribeOssIncrementCheckSettingResult::getImageScanLimit()const @@ -122,16 +116,36 @@ DescribeOssIncrementCheckSettingResult::ImageAutoFreeze DescribeOssIncrementChec return imageAutoFreeze_; } -std::string DescribeOssIncrementCheckSettingResult::getAutoFreezeType()const -{ - return autoFreezeType_; -} - int DescribeOssIncrementCheckSettingResult::getVideoFrameInterval()const { return videoFrameInterval_; } +std::vector DescribeOssIncrementCheckSettingResult::getVideoSceneList()const +{ + return videoSceneList_; +} + +bool DescribeOssIncrementCheckSettingResult::getImageEnableLimit()const +{ + return imageEnableLimit_; +} + +std::vector DescribeOssIncrementCheckSettingResult::getImageSceneList()const +{ + return imageSceneList_; +} + +std::string DescribeOssIncrementCheckSettingResult::getCallbackName()const +{ + return callbackName_; +} + +std::string DescribeOssIncrementCheckSettingResult::getAutoFreezeType()const +{ + return autoFreezeType_; +} + int DescribeOssIncrementCheckSettingResult::getVideoMaxFrames()const { return videoMaxFrames_; diff --git a/green/src/model/DescribeOssIncrementOverviewResult.cc b/green/src/model/DescribeOssIncrementOverviewResult.cc index 3f3a5c51a..146c3ec77 100644 --- a/green/src/model/DescribeOssIncrementOverviewResult.cc +++ b/green/src/model/DescribeOssIncrementOverviewResult.cc @@ -49,6 +49,12 @@ void DescribeOssIncrementOverviewResult::parse(const std::string &payload) pornUnhandleCount_ = std::stoi(value["PornUnhandleCount"].asString()); if(!value["TerrorismUnhandleCount"].isNull()) terrorismUnhandleCount_ = std::stoi(value["TerrorismUnhandleCount"].asString()); + if(!value["AdUnhandleCount"].isNull()) + adUnhandleCount_ = std::stoi(value["AdUnhandleCount"].asString()); + if(!value["LiveUnhandleCount"].isNull()) + liveUnhandleCount_ = std::stoi(value["LiveUnhandleCount"].asString()); + if(!value["VoiceAntispamUnhandleCount"].isNull()) + voiceAntispamUnhandleCount_ = std::stoi(value["VoiceAntispamUnhandleCount"].asString()); } @@ -62,11 +68,21 @@ int DescribeOssIncrementOverviewResult::getVideoCount()const return videoCount_; } +int DescribeOssIncrementOverviewResult::getVoiceAntispamUnhandleCount()const +{ + return voiceAntispamUnhandleCount_; +} + int DescribeOssIncrementOverviewResult::getPornUnhandleCount()const { return pornUnhandleCount_; } +int DescribeOssIncrementOverviewResult::getLiveUnhandleCount()const +{ + return liveUnhandleCount_; +} + int DescribeOssIncrementOverviewResult::getVideoFrameCount()const { return videoFrameCount_; @@ -77,3 +93,8 @@ int DescribeOssIncrementOverviewResult::getTerrorismUnhandleCount()const return terrorismUnhandleCount_; } +int DescribeOssIncrementOverviewResult::getAdUnhandleCount()const +{ + return adUnhandleCount_; +} + diff --git a/green/src/model/DescribeOssResultItemsRequest.cc b/green/src/model/DescribeOssResultItemsRequest.cc index ba9484c53..1b6368995 100644 --- a/green/src/model/DescribeOssResultItemsRequest.cc +++ b/green/src/model/DescribeOssResultItemsRequest.cc @@ -49,6 +49,17 @@ void DescribeOssResultItemsRequest::setMaxScore(float maxScore) setParameter("MaxScore", std::to_string(maxScore)); } +long DescribeOssResultItemsRequest::getStockTaskId()const +{ + return stockTaskId_; +} + +void DescribeOssResultItemsRequest::setStockTaskId(long stockTaskId) +{ + stockTaskId_ = stockTaskId; + setParameter("StockTaskId", std::to_string(stockTaskId)); +} + std::string DescribeOssResultItemsRequest::getStartDate()const { return startDate_; diff --git a/green/src/model/DescribeOssResultItemsResult.cc b/green/src/model/DescribeOssResultItemsResult.cc index 4725ed06d..658d5a6c6 100644 --- a/green/src/model/DescribeOssResultItemsResult.cc +++ b/green/src/model/DescribeOssResultItemsResult.cc @@ -71,18 +71,34 @@ void DescribeOssResultItemsResult::parse(const std::string &payload) scanResultListObject.handleStatus = std::stoi(valueScanResultListScanResult["HandleStatus"].asString()); if(!valueScanResultListScanResult["ResourceStatus"].isNull()) scanResultListObject.resourceStatus = std::stoi(valueScanResultListScanResult["ResourceStatus"].asString()); - auto allFrameResultsNode = allScanResultListNode["FrameResults"]["FrameResult"]; - for (auto allScanResultListNodeFrameResultsFrameResult : allFrameResultsNode) + if(!valueScanResultListScanResult["Content"].isNull()) + scanResultListObject.content = valueScanResultListScanResult["Content"].asString(); + auto allFrameResultsNode = valueScanResultListScanResult["FrameResults"]["FrameResult"]; + for (auto valueScanResultListScanResultFrameResultsFrameResult : allFrameResultsNode) { ScanResult::FrameResult frameResultsObject; - if(!allScanResultListNodeFrameResultsFrameResult["Thumbnail"].isNull()) - frameResultsObject.thumbnail = allScanResultListNodeFrameResultsFrameResult["Thumbnail"].asString(); - if(!allScanResultListNodeFrameResultsFrameResult["Offset"].isNull()) - frameResultsObject.offset = std::stoi(allScanResultListNodeFrameResultsFrameResult["Offset"].asString()); - if(!allScanResultListNodeFrameResultsFrameResult["Url"].isNull()) - frameResultsObject.url = allScanResultListNodeFrameResultsFrameResult["Url"].asString(); + if(!valueScanResultListScanResultFrameResultsFrameResult["Thumbnail"].isNull()) + frameResultsObject.thumbnail = valueScanResultListScanResultFrameResultsFrameResult["Thumbnail"].asString(); + if(!valueScanResultListScanResultFrameResultsFrameResult["Offset"].isNull()) + frameResultsObject.offset = std::stoi(valueScanResultListScanResultFrameResultsFrameResult["Offset"].asString()); + if(!valueScanResultListScanResultFrameResultsFrameResult["Url"].isNull()) + frameResultsObject.url = valueScanResultListScanResultFrameResultsFrameResult["Url"].asString(); scanResultListObject.frameResults.push_back(frameResultsObject); } + auto allVoiceSegmentAntispamResultsNode = valueScanResultListScanResult["VoiceSegmentAntispamResults"]["VoiceSegmentAntispamResult"]; + for (auto valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult : allVoiceSegmentAntispamResultsNode) + { + ScanResult::VoiceSegmentAntispamResult voiceSegmentAntispamResultsObject; + if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Text"].isNull()) + voiceSegmentAntispamResultsObject.text = valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Text"].asString(); + if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["EndTime"].isNull()) + voiceSegmentAntispamResultsObject.endTime = std::stoi(valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["EndTime"].asString()); + if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["StartTime"].isNull()) + voiceSegmentAntispamResultsObject.startTime = std::stoi(valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["StartTime"].asString()); + if(!valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Label"].isNull()) + voiceSegmentAntispamResultsObject.label = valueScanResultListScanResultVoiceSegmentAntispamResultsVoiceSegmentAntispamResult["Label"].asString(); + scanResultListObject.voiceSegmentAntispamResults.push_back(voiceSegmentAntispamResultsObject); + } scanResultList_.push_back(scanResultListObject); } if(!value["PageSize"].isNull()) diff --git a/green/src/model/DescribeViewContentRequest.cc b/green/src/model/DescribeViewContentRequest.cc index 91c558cd0..dd5eda7d5 100644 --- a/green/src/model/DescribeViewContentRequest.cc +++ b/green/src/model/DescribeViewContentRequest.cc @@ -104,6 +104,17 @@ void DescribeViewContentRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +std::string DescribeViewContentRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeViewContentRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setParameter("Keyword", keyword); +} + std::string DescribeViewContentRequest::getTaskId()const { return taskId_; diff --git a/green/src/model/DescribeViewContentResult.cc b/green/src/model/DescribeViewContentResult.cc index e0722f1dd..425c0af21 100644 --- a/green/src/model/DescribeViewContentResult.cc +++ b/green/src/model/DescribeViewContentResult.cc @@ -67,26 +67,26 @@ void DescribeViewContentResult::parse(const std::string &payload) viewContentListObject.id = std::stol(valueViewContentListViewContent["Id"].asString()); if(!valueViewContentListViewContent["ScanResult"].isNull()) viewContentListObject.scanResult = valueViewContentListViewContent["ScanResult"].asString(); - auto allResultsNode = allViewContentListNode["Results"]["Result"]; - for (auto allViewContentListNodeResultsResult : allResultsNode) + auto allResultsNode = valueViewContentListViewContent["Results"]["Result"]; + for (auto valueViewContentListViewContentResultsResult : allResultsNode) { ViewContent::Result resultsObject; - if(!allViewContentListNodeResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = allViewContentListNodeResultsResult["Suggestion"].asString(); - if(!allViewContentListNodeResultsResult["Label"].isNull()) - resultsObject.label = allViewContentListNodeResultsResult["Label"].asString(); - if(!allViewContentListNodeResultsResult["Scene"].isNull()) - resultsObject.scene = allViewContentListNodeResultsResult["Scene"].asString(); + if(!valueViewContentListViewContentResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = valueViewContentListViewContentResultsResult["Suggestion"].asString(); + if(!valueViewContentListViewContentResultsResult["Label"].isNull()) + resultsObject.label = valueViewContentListViewContentResultsResult["Label"].asString(); + if(!valueViewContentListViewContentResultsResult["Scene"].isNull()) + resultsObject.scene = valueViewContentListViewContentResultsResult["Scene"].asString(); viewContentListObject.results.push_back(resultsObject); } - auto allFrameResultsNode = allViewContentListNode["FrameResults"]["frameResult"]; - for (auto allViewContentListNodeFrameResultsframeResult : allFrameResultsNode) + auto allFrameResultsNode = valueViewContentListViewContent["FrameResults"]["frameResult"]; + for (auto valueViewContentListViewContentFrameResultsframeResult : allFrameResultsNode) { ViewContent::FrameResult frameResultsObject; - if(!allViewContentListNodeFrameResultsframeResult["Url"].isNull()) - frameResultsObject.url = allViewContentListNodeFrameResultsframeResult["Url"].asString(); - if(!allViewContentListNodeFrameResultsframeResult["Offset"].isNull()) - frameResultsObject.offset = std::stoi(allViewContentListNodeFrameResultsframeResult["Offset"].asString()); + if(!valueViewContentListViewContentFrameResultsframeResult["Url"].isNull()) + frameResultsObject.url = valueViewContentListViewContentFrameResultsframeResult["Url"].asString(); + if(!valueViewContentListViewContentFrameResultsframeResult["Offset"].isNull()) + frameResultsObject.offset = std::stoi(valueViewContentListViewContentFrameResultsframeResult["Offset"].asString()); viewContentListObject.frameResults.push_back(frameResultsObject); } viewContentList_.push_back(viewContentListObject); diff --git a/green/src/model/ExportOpenApiRcpStatsRequest.cc b/green/src/model/ExportOpenApiRcpStatsRequest.cc new file mode 100644 index 000000000..8902bd0f6 --- /dev/null +++ b/green/src/model/ExportOpenApiRcpStatsRequest.cc @@ -0,0 +1,84 @@ +/* + * 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::ExportOpenApiRcpStatsRequest; + +ExportOpenApiRcpStatsRequest::ExportOpenApiRcpStatsRequest() : + RpcServiceRequest("green", "2017-08-23", "ExportOpenApiRcpStats") +{ + setMethod(HttpRequest::Method::Post); +} + +ExportOpenApiRcpStatsRequest::~ExportOpenApiRcpStatsRequest() +{} + +std::string ExportOpenApiRcpStatsRequest::getStartDate()const +{ + return startDate_; +} + +void ExportOpenApiRcpStatsRequest::setStartDate(const std::string& startDate) +{ + startDate_ = startDate; + setParameter("StartDate", startDate); +} + +std::string ExportOpenApiRcpStatsRequest::getResourceType()const +{ + return resourceType_; +} + +void ExportOpenApiRcpStatsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ExportOpenApiRcpStatsRequest::getBizType()const +{ + return bizType_; +} + +void ExportOpenApiRcpStatsRequest::setBizType(const std::string& bizType) +{ + bizType_ = bizType; + setParameter("BizType", bizType); +} + +std::string ExportOpenApiRcpStatsRequest::getEndDate()const +{ + return endDate_; +} + +void ExportOpenApiRcpStatsRequest::setEndDate(const std::string& endDate) +{ + endDate_ = endDate; + setParameter("EndDate", endDate); +} + +std::string ExportOpenApiRcpStatsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ExportOpenApiRcpStatsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/green/src/model/ExportOpenApiRcpStatsResult.cc b/green/src/model/ExportOpenApiRcpStatsResult.cc new file mode 100644 index 000000000..f3448ab09 --- /dev/null +++ b/green/src/model/ExportOpenApiRcpStatsResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Green; +using namespace AlibabaCloud::Green::Model; + +ExportOpenApiRcpStatsResult::ExportOpenApiRcpStatsResult() : + ServiceResult() +{} + +ExportOpenApiRcpStatsResult::ExportOpenApiRcpStatsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportOpenApiRcpStatsResult::~ExportOpenApiRcpStatsResult() +{} + +void ExportOpenApiRcpStatsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DownloadUrl"].isNull()) + downloadUrl_ = value["DownloadUrl"].asString(); + +} + +std::string ExportOpenApiRcpStatsResult::getDownloadUrl()const +{ + return downloadUrl_; +} + diff --git a/green/src/model/ExportOssResultRequest.cc b/green/src/model/ExportOssResultRequest.cc index fe2151db5..b3b61c7e9 100644 --- a/green/src/model/ExportOssResultRequest.cc +++ b/green/src/model/ExportOssResultRequest.cc @@ -49,6 +49,17 @@ void ExportOssResultRequest::setMaxScore(float maxScore) setParameter("MaxScore", std::to_string(maxScore)); } +long ExportOssResultRequest::getStockTaskId()const +{ + return stockTaskId_; +} + +void ExportOssResultRequest::setStockTaskId(long stockTaskId) +{ + stockTaskId_ = stockTaskId; + setParameter("StockTaskId", std::to_string(stockTaskId)); +} + std::string ExportOssResultRequest::getStartDate()const { return startDate_; diff --git a/green/src/model/LiveStreamAsyncScanRequest.cc b/green/src/model/LiveStreamAsyncScanRequest.cc new file mode 100644 index 000000000..93edb5f4e --- /dev/null +++ b/green/src/model/LiveStreamAsyncScanRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::LiveStreamAsyncScanRequest; + +LiveStreamAsyncScanRequest::LiveStreamAsyncScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/livestream/asyncscan"); + setMethod(HttpRequest::Method::Post); +} + +LiveStreamAsyncScanRequest::~LiveStreamAsyncScanRequest() +{} + +std::string LiveStreamAsyncScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void LiveStreamAsyncScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/LiveStreamAsyncScanResult.cc b/green/src/model/LiveStreamAsyncScanResult.cc new file mode 100644 index 000000000..2c41e36e7 --- /dev/null +++ b/green/src/model/LiveStreamAsyncScanResult.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; + +LiveStreamAsyncScanResult::LiveStreamAsyncScanResult() : + ServiceResult() +{} + +LiveStreamAsyncScanResult::LiveStreamAsyncScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LiveStreamAsyncScanResult::~LiveStreamAsyncScanResult() +{} + +void LiveStreamAsyncScanResult::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/LiveStreamAsyncScanResultsRequest.cc b/green/src/model/LiveStreamAsyncScanResultsRequest.cc new file mode 100644 index 000000000..1dafc7033 --- /dev/null +++ b/green/src/model/LiveStreamAsyncScanResultsRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::LiveStreamAsyncScanResultsRequest; + +LiveStreamAsyncScanResultsRequest::LiveStreamAsyncScanResultsRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/livestream/results"); + setMethod(HttpRequest::Method::Post); +} + +LiveStreamAsyncScanResultsRequest::~LiveStreamAsyncScanResultsRequest() +{} + +std::string LiveStreamAsyncScanResultsRequest::getClientInfo()const +{ + return clientInfo_; +} + +void LiveStreamAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/LiveStreamAsyncScanResultsResult.cc b/green/src/model/LiveStreamAsyncScanResultsResult.cc new file mode 100644 index 000000000..0d79bdce0 --- /dev/null +++ b/green/src/model/LiveStreamAsyncScanResultsResult.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; + +LiveStreamAsyncScanResultsResult::LiveStreamAsyncScanResultsResult() : + ServiceResult() +{} + +LiveStreamAsyncScanResultsResult::LiveStreamAsyncScanResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LiveStreamAsyncScanResultsResult::~LiveStreamAsyncScanResultsResult() +{} + +void LiveStreamAsyncScanResultsResult::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/LiveStreamCancelScanRequest.cc b/green/src/model/LiveStreamCancelScanRequest.cc new file mode 100644 index 000000000..331ff7695 --- /dev/null +++ b/green/src/model/LiveStreamCancelScanRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::LiveStreamCancelScanRequest; + +LiveStreamCancelScanRequest::LiveStreamCancelScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/livestream/cancelscan"); + setMethod(HttpRequest::Method::Post); +} + +LiveStreamCancelScanRequest::~LiveStreamCancelScanRequest() +{} + +std::string LiveStreamCancelScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void LiveStreamCancelScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/LiveStreamCancelScanResult.cc b/green/src/model/LiveStreamCancelScanResult.cc new file mode 100644 index 000000000..1ca443eec --- /dev/null +++ b/green/src/model/LiveStreamCancelScanResult.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; + +LiveStreamCancelScanResult::LiveStreamCancelScanResult() : + ServiceResult() +{} + +LiveStreamCancelScanResult::LiveStreamCancelScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LiveStreamCancelScanResult::~LiveStreamCancelScanResult() +{} + +void LiveStreamCancelScanResult::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/UpdateOssIncrementCheckSettingRequest.cc b/green/src/model/UpdateOssIncrementCheckSettingRequest.cc index 01eb66286..8de005390 100644 --- a/green/src/model/UpdateOssIncrementCheckSettingRequest.cc +++ b/green/src/model/UpdateOssIncrementCheckSettingRequest.cc @@ -71,6 +71,17 @@ void UpdateOssIncrementCheckSettingRequest::setSourceIp(const std::string& sourc setParameter("SourceIp", sourceIp); } +std::string UpdateOssIncrementCheckSettingRequest::getCallbackId()const +{ + return callbackId_; +} + +void UpdateOssIncrementCheckSettingRequest::setCallbackId(const std::string& callbackId) +{ + callbackId_ = callbackId; + setParameter("CallbackId", callbackId); +} + std::string UpdateOssIncrementCheckSettingRequest::getImageScanLimit()const { return imageScanLimit_; diff --git a/green/src/model/VodAsyncScanRequest.cc b/green/src/model/VodAsyncScanRequest.cc new file mode 100644 index 000000000..240dc2d9a --- /dev/null +++ b/green/src/model/VodAsyncScanRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::VodAsyncScanRequest; + +VodAsyncScanRequest::VodAsyncScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/vod/asyncscan"); + setMethod(HttpRequest::Method::Post); +} + +VodAsyncScanRequest::~VodAsyncScanRequest() +{} + +std::string VodAsyncScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void VodAsyncScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/VodAsyncScanResult.cc b/green/src/model/VodAsyncScanResult.cc new file mode 100644 index 000000000..3ea458a1b --- /dev/null +++ b/green/src/model/VodAsyncScanResult.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; + +VodAsyncScanResult::VodAsyncScanResult() : + ServiceResult() +{} + +VodAsyncScanResult::VodAsyncScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VodAsyncScanResult::~VodAsyncScanResult() +{} + +void VodAsyncScanResult::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/VodAsyncScanResultsRequest.cc b/green/src/model/VodAsyncScanResultsRequest.cc new file mode 100644 index 000000000..318185cc5 --- /dev/null +++ b/green/src/model/VodAsyncScanResultsRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::VodAsyncScanResultsRequest; + +VodAsyncScanResultsRequest::VodAsyncScanResultsRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/vod/results"); + setMethod(HttpRequest::Method::Post); +} + +VodAsyncScanResultsRequest::~VodAsyncScanResultsRequest() +{} + +std::string VodAsyncScanResultsRequest::getClientInfo()const +{ + return clientInfo_; +} + +void VodAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/VodAsyncScanResultsResult.cc b/green/src/model/VodAsyncScanResultsResult.cc new file mode 100644 index 000000000..5deaf26d3 --- /dev/null +++ b/green/src/model/VodAsyncScanResultsResult.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; + +VodAsyncScanResultsResult::VodAsyncScanResultsResult() : + ServiceResult() +{} + +VodAsyncScanResultsResult::VodAsyncScanResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VodAsyncScanResultsResult::~VodAsyncScanResultsResult() +{} + +void VodAsyncScanResultsResult::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/WebpageAsyncScanRequest.cc b/green/src/model/WebpageAsyncScanRequest.cc new file mode 100644 index 000000000..e1fa53f02 --- /dev/null +++ b/green/src/model/WebpageAsyncScanRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::WebpageAsyncScanRequest; + +WebpageAsyncScanRequest::WebpageAsyncScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/webpage/asyncscan"); + setMethod(HttpRequest::Method::Post); +} + +WebpageAsyncScanRequest::~WebpageAsyncScanRequest() +{} + +std::string WebpageAsyncScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void WebpageAsyncScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/WebpageAsyncScanResult.cc b/green/src/model/WebpageAsyncScanResult.cc new file mode 100644 index 000000000..c76e21055 --- /dev/null +++ b/green/src/model/WebpageAsyncScanResult.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; + +WebpageAsyncScanResult::WebpageAsyncScanResult() : + ServiceResult() +{} + +WebpageAsyncScanResult::WebpageAsyncScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WebpageAsyncScanResult::~WebpageAsyncScanResult() +{} + +void WebpageAsyncScanResult::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/WebpageAsyncScanResultsRequest.cc b/green/src/model/WebpageAsyncScanResultsRequest.cc new file mode 100644 index 000000000..c95f2ffa1 --- /dev/null +++ b/green/src/model/WebpageAsyncScanResultsRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::WebpageAsyncScanResultsRequest; + +WebpageAsyncScanResultsRequest::WebpageAsyncScanResultsRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/webpage/results"); + setMethod(HttpRequest::Method::Post); +} + +WebpageAsyncScanResultsRequest::~WebpageAsyncScanResultsRequest() +{} + +std::string WebpageAsyncScanResultsRequest::getClientInfo()const +{ + return clientInfo_; +} + +void WebpageAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/WebpageAsyncScanResultsResult.cc b/green/src/model/WebpageAsyncScanResultsResult.cc new file mode 100644 index 000000000..e14b74638 --- /dev/null +++ b/green/src/model/WebpageAsyncScanResultsResult.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; + +WebpageAsyncScanResultsResult::WebpageAsyncScanResultsResult() : + ServiceResult() +{} + +WebpageAsyncScanResultsResult::WebpageAsyncScanResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WebpageAsyncScanResultsResult::~WebpageAsyncScanResultsResult() +{} + +void WebpageAsyncScanResultsResult::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/WebpageSyncScanRequest.cc b/green/src/model/WebpageSyncScanRequest.cc new file mode 100644 index 000000000..fc3200d8d --- /dev/null +++ b/green/src/model/WebpageSyncScanRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::WebpageSyncScanRequest; + +WebpageSyncScanRequest::WebpageSyncScanRequest() : + RoaServiceRequest("green", "2018-05-09") +{ + setResourcePath("/green/webpage/scan"); + setMethod(HttpRequest::Method::Post); +} + +WebpageSyncScanRequest::~WebpageSyncScanRequest() +{} + +std::string WebpageSyncScanRequest::getClientInfo()const +{ + return clientInfo_; +} + +void WebpageSyncScanRequest::setClientInfo(const std::string& clientInfo) +{ + clientInfo_ = clientInfo; + setParameter("ClientInfo", clientInfo); +} + diff --git a/green/src/model/WebpageSyncScanResult.cc b/green/src/model/WebpageSyncScanResult.cc new file mode 100644 index 000000000..3f4880e32 --- /dev/null +++ b/green/src/model/WebpageSyncScanResult.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; + +WebpageSyncScanResult::WebpageSyncScanResult() : + ServiceResult() +{} + +WebpageSyncScanResult::WebpageSyncScanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WebpageSyncScanResult::~WebpageSyncScanResult() +{} + +void WebpageSyncScanResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +