diff --git a/CHANGELOG b/CHANGELOG index 01a387160..d640ce3aa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-12-27 Version: 1.36.996 +- Update DeleteFCTrigger. + 2021-12-27 Version: 1.36.995 - Add CreateDcdnSubTask. diff --git a/VERSION b/VERSION index 1fa0b9523..50f675b54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.995 \ No newline at end of file +1.36.996 \ No newline at end of file diff --git a/cdn/CMakeLists.txt b/cdn/CMakeLists.txt index a57d7e818..2c6b5d38f 100644 --- a/cdn/CMakeLists.txt +++ b/cdn/CMakeLists.txt @@ -253,8 +253,6 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeL2VipsByDomainResult.h include/alibabacloud/cdn/model/DescribeLivePullStreamConfigRequest.h include/alibabacloud/cdn/model/DescribeLivePullStreamConfigResult.h - include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataRequest.h - include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataResult.h include/alibabacloud/cdn/model/DescribeLiveStreamOnlineUserNumRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamOnlineUserNumResult.h include/alibabacloud/cdn/model/DescribeLiveStreamRecordContentRequest.h @@ -265,8 +263,6 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/DescribeLiveStreamRecordIndexFilesResult.h include/alibabacloud/cdn/model/DescribeLiveStreamSnapshotInfoRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamSnapshotInfoResult.h - include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListRequest.h - include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h include/alibabacloud/cdn/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h include/alibabacloud/cdn/model/DescribeLiveStreamsOnlineListRequest.h @@ -387,8 +383,6 @@ set(cdn_public_header_model include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h include/alibabacloud/cdn/model/SetSourceHostConfigRequest.h include/alibabacloud/cdn/model/SetSourceHostConfigResult.h - include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h - include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h include/alibabacloud/cdn/model/SetWaitingRoomConfigResult.h include/alibabacloud/cdn/model/StartCdnDomainRequest.h @@ -642,8 +636,6 @@ set(cdn_src src/model/DescribeL2VipsByDomainResult.cc src/model/DescribeLivePullStreamConfigRequest.cc src/model/DescribeLivePullStreamConfigResult.cc - src/model/DescribeLiveStreamBitRateDataRequest.cc - src/model/DescribeLiveStreamBitRateDataResult.cc src/model/DescribeLiveStreamOnlineUserNumRequest.cc src/model/DescribeLiveStreamOnlineUserNumResult.cc src/model/DescribeLiveStreamRecordContentRequest.cc @@ -654,8 +646,6 @@ set(cdn_src src/model/DescribeLiveStreamRecordIndexFilesResult.cc src/model/DescribeLiveStreamSnapshotInfoRequest.cc src/model/DescribeLiveStreamSnapshotInfoResult.cc - src/model/DescribeLiveStreamsBlockListRequest.cc - src/model/DescribeLiveStreamsBlockListResult.cc src/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.cc src/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.cc src/model/DescribeLiveStreamsOnlineListRequest.cc @@ -776,8 +766,6 @@ set(cdn_src src/model/SetReqHeaderConfigResult.cc src/model/SetSourceHostConfigRequest.cc src/model/SetSourceHostConfigResult.cc - src/model/SetUserGreenManagerConfigRequest.cc - src/model/SetUserGreenManagerConfigResult.cc src/model/SetWaitingRoomConfigRequest.cc src/model/SetWaitingRoomConfigResult.cc src/model/StartCdnDomainRequest.cc diff --git a/cdn/include/alibabacloud/cdn/CdnClient.h b/cdn/include/alibabacloud/cdn/CdnClient.h index 81439285a..61081dc30 100644 --- a/cdn/include/alibabacloud/cdn/CdnClient.h +++ b/cdn/include/alibabacloud/cdn/CdnClient.h @@ -254,8 +254,6 @@ #include "model/DescribeL2VipsByDomainResult.h" #include "model/DescribeLivePullStreamConfigRequest.h" #include "model/DescribeLivePullStreamConfigResult.h" -#include "model/DescribeLiveStreamBitRateDataRequest.h" -#include "model/DescribeLiveStreamBitRateDataResult.h" #include "model/DescribeLiveStreamOnlineUserNumRequest.h" #include "model/DescribeLiveStreamOnlineUserNumResult.h" #include "model/DescribeLiveStreamRecordContentRequest.h" @@ -266,8 +264,6 @@ #include "model/DescribeLiveStreamRecordIndexFilesResult.h" #include "model/DescribeLiveStreamSnapshotInfoRequest.h" #include "model/DescribeLiveStreamSnapshotInfoResult.h" -#include "model/DescribeLiveStreamsBlockListRequest.h" -#include "model/DescribeLiveStreamsBlockListResult.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h" #include "model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h" #include "model/DescribeLiveStreamsOnlineListRequest.h" @@ -388,8 +384,6 @@ #include "model/SetReqHeaderConfigResult.h" #include "model/SetSourceHostConfigRequest.h" #include "model/SetSourceHostConfigResult.h" -#include "model/SetUserGreenManagerConfigRequest.h" -#include "model/SetUserGreenManagerConfigResult.h" #include "model/SetWaitingRoomConfigRequest.h" #include "model/SetWaitingRoomConfigResult.h" #include "model/StartCdnDomainRequest.h" @@ -765,9 +759,6 @@ namespace AlibabaCloud typedef Outcome DescribeLivePullStreamConfigOutcome; typedef std::future DescribeLivePullStreamConfigOutcomeCallable; typedef std::function&)> DescribeLivePullStreamConfigAsyncHandler; - typedef Outcome DescribeLiveStreamBitRateDataOutcome; - typedef std::future DescribeLiveStreamBitRateDataOutcomeCallable; - typedef std::function&)> DescribeLiveStreamBitRateDataAsyncHandler; typedef Outcome DescribeLiveStreamOnlineUserNumOutcome; typedef std::future DescribeLiveStreamOnlineUserNumOutcomeCallable; typedef std::function&)> DescribeLiveStreamOnlineUserNumAsyncHandler; @@ -783,9 +774,6 @@ namespace AlibabaCloud typedef Outcome DescribeLiveStreamSnapshotInfoOutcome; typedef std::future DescribeLiveStreamSnapshotInfoOutcomeCallable; typedef std::function&)> DescribeLiveStreamSnapshotInfoAsyncHandler; - typedef Outcome DescribeLiveStreamsBlockListOutcome; - typedef std::future DescribeLiveStreamsBlockListOutcomeCallable; - typedef std::function&)> DescribeLiveStreamsBlockListAsyncHandler; typedef Outcome DescribeLiveStreamsFrameRateAndBitRateDataOutcome; typedef std::future DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable; typedef std::function&)> DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler; @@ -966,9 +954,6 @@ namespace AlibabaCloud typedef Outcome SetSourceHostConfigOutcome; typedef std::future SetSourceHostConfigOutcomeCallable; typedef std::function&)> SetSourceHostConfigAsyncHandler; - typedef Outcome SetUserGreenManagerConfigOutcome; - typedef std::future SetUserGreenManagerConfigOutcomeCallable; - typedef std::function&)> SetUserGreenManagerConfigAsyncHandler; typedef Outcome SetWaitingRoomConfigOutcome; typedef std::future SetWaitingRoomConfigOutcomeCallable; typedef std::function&)> SetWaitingRoomConfigAsyncHandler; @@ -1349,9 +1334,6 @@ namespace AlibabaCloud DescribeLivePullStreamConfigOutcome describeLivePullStreamConfig(const Model::DescribeLivePullStreamConfigRequest &request)const; void describeLivePullStreamConfigAsync(const Model::DescribeLivePullStreamConfigRequest& request, const DescribeLivePullStreamConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLivePullStreamConfigOutcomeCallable describeLivePullStreamConfigCallable(const Model::DescribeLivePullStreamConfigRequest& request) const; - DescribeLiveStreamBitRateDataOutcome describeLiveStreamBitRateData(const Model::DescribeLiveStreamBitRateDataRequest &request)const; - void describeLiveStreamBitRateDataAsync(const Model::DescribeLiveStreamBitRateDataRequest& request, const DescribeLiveStreamBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamBitRateDataOutcomeCallable describeLiveStreamBitRateDataCallable(const Model::DescribeLiveStreamBitRateDataRequest& request) const; DescribeLiveStreamOnlineUserNumOutcome describeLiveStreamOnlineUserNum(const Model::DescribeLiveStreamOnlineUserNumRequest &request)const; void describeLiveStreamOnlineUserNumAsync(const Model::DescribeLiveStreamOnlineUserNumRequest& request, const DescribeLiveStreamOnlineUserNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamOnlineUserNumOutcomeCallable describeLiveStreamOnlineUserNumCallable(const Model::DescribeLiveStreamOnlineUserNumRequest& request) const; @@ -1367,9 +1349,6 @@ namespace AlibabaCloud DescribeLiveStreamSnapshotInfoOutcome describeLiveStreamSnapshotInfo(const Model::DescribeLiveStreamSnapshotInfoRequest &request)const; void describeLiveStreamSnapshotInfoAsync(const Model::DescribeLiveStreamSnapshotInfoRequest& request, const DescribeLiveStreamSnapshotInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamSnapshotInfoOutcomeCallable describeLiveStreamSnapshotInfoCallable(const Model::DescribeLiveStreamSnapshotInfoRequest& request) const; - DescribeLiveStreamsBlockListOutcome describeLiveStreamsBlockList(const Model::DescribeLiveStreamsBlockListRequest &request)const; - void describeLiveStreamsBlockListAsync(const Model::DescribeLiveStreamsBlockListRequest& request, const DescribeLiveStreamsBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLiveStreamsBlockListOutcomeCallable describeLiveStreamsBlockListCallable(const Model::DescribeLiveStreamsBlockListRequest& request) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcome describeLiveStreamsFrameRateAndBitRateData(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest &request)const; void describeLiveStreamsFrameRateAndBitRateDataAsync(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request, const DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable describeLiveStreamsFrameRateAndBitRateDataCallable(const Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest& request) const; @@ -1550,9 +1529,6 @@ namespace AlibabaCloud SetSourceHostConfigOutcome setSourceHostConfig(const Model::SetSourceHostConfigRequest &request)const; void setSourceHostConfigAsync(const Model::SetSourceHostConfigRequest& request, const SetSourceHostConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetSourceHostConfigOutcomeCallable setSourceHostConfigCallable(const Model::SetSourceHostConfigRequest& request) const; - SetUserGreenManagerConfigOutcome setUserGreenManagerConfig(const Model::SetUserGreenManagerConfigRequest &request)const; - void setUserGreenManagerConfigAsync(const Model::SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetUserGreenManagerConfigOutcomeCallable setUserGreenManagerConfigCallable(const Model::SetUserGreenManagerConfigRequest& request) const; SetWaitingRoomConfigOutcome setWaitingRoomConfig(const Model::SetWaitingRoomConfigRequest &request)const; void setWaitingRoomConfigAsync(const Model::SetWaitingRoomConfigRequest& request, const SetWaitingRoomConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetWaitingRoomConfigOutcomeCallable setWaitingRoomConfigCallable(const Model::SetWaitingRoomConfigRequest& request) const; diff --git a/cdn/include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h b/cdn/include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h index 765756080..227b61a34 100644 --- a/cdn/include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h +++ b/cdn/include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h @@ -152,12 +152,6 @@ namespace AlibabaCloud std::string configId; std::string appList; }; - struct GreenManagerConfig - { - std::string status; - std::string enabled; - std::string configId; - }; struct HttpsOptionConfig { std::string status; @@ -231,7 +225,6 @@ namespace AlibabaCloud RedirectTypeConfig redirectTypeConfig; std::vector setVarsConfigs; ReqAuthConfig reqAuthConfig; - GreenManagerConfig greenManagerConfig; RefererConfig refererConfig; SrcHostConfig srcHostConfig; ForwardSchemeConfig forwardSchemeConfig; diff --git a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataRequest.h b/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataRequest.h deleted file mode 100644 index 882e5d0bb..000000000 --- a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATAREQUEST_H_ -#define ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT DescribeLiveStreamBitRateDataRequest : public RpcServiceRequest - { - - public: - DescribeLiveStreamBitRateDataRequest(); - ~DescribeLiveStreamBitRateDataRequest(); - - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getAppName()const; - void setAppName(const std::string& appName); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getStreamName()const; - void setStreamName(const std::string& streamName); - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string startTime_; - std::string appName_; - std::string securityToken_; - std::string streamName_; - std::string domainName_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATAREQUEST_H_ \ No newline at end of file diff --git a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataResult.h b/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataResult.h deleted file mode 100644 index c9b2882a1..000000000 --- a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamBitRateDataResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATARESULT_H_ -#define ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT DescribeLiveStreamBitRateDataResult : public ServiceResult - { - public: - struct FrameRateAndBitRateInfo - { - float videoFrameRate; - std::string time; - float audioFrameRate; - float bitRate; - std::string streamUrl; - }; - - - DescribeLiveStreamBitRateDataResult(); - explicit DescribeLiveStreamBitRateDataResult(const std::string &payload); - ~DescribeLiveStreamBitRateDataResult(); - std::vector getFrameRateAndBitRateInfos()const; - - protected: - void parse(const std::string &payload); - private: - std::vector frameRateAndBitRateInfos_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMBITRATEDATARESULT_H_ \ No newline at end of file diff --git a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListRequest.h b/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListRequest.h deleted file mode 100644 index 15ddd7a97..000000000 --- a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTREQUEST_H_ -#define ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT DescribeLiveStreamsBlockListRequest : public RpcServiceRequest - { - - public: - DescribeLiveStreamsBlockListRequest(); - ~DescribeLiveStreamsBlockListRequest(); - - std::string getDomainName()const; - void setDomainName(const std::string& domainName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - - private: - std::string domainName_; - long ownerId_; - std::string securityToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTREQUEST_H_ \ No newline at end of file diff --git a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListResult.h b/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListResult.h deleted file mode 100644 index b1d680cb8..000000000 --- a/cdn/include/alibabacloud/cdn/model/DescribeLiveStreamsBlockListResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTRESULT_H_ -#define ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT DescribeLiveStreamsBlockListResult : public ServiceResult - { - public: - - - DescribeLiveStreamsBlockListResult(); - explicit DescribeLiveStreamsBlockListResult(const std::string &payload); - ~DescribeLiveStreamsBlockListResult(); - std::string getDomainName()const; - std::vector getStreamUrls()const; - - protected: - void parse(const std::string &payload); - private: - std::string domainName_; - std::vector streamUrls_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBELIVESTREAMSBLOCKLISTRESULT_H_ \ No newline at end of file diff --git a/cdn/include/alibabacloud/cdn/model/DescribeUserConfigsResult.h b/cdn/include/alibabacloud/cdn/model/DescribeUserConfigsResult.h index ec7218ecc..6b903db23 100644 --- a/cdn/include/alibabacloud/cdn/model/DescribeUserConfigsResult.h +++ b/cdn/include/alibabacloud/cdn/model/DescribeUserConfigsResult.h @@ -40,17 +40,11 @@ namespace AlibabaCloud std::string enable; std::string prefix; }; - struct GreenManagerConfig - { - std::string quota; - std::string ratio; - }; struct WafConfig { std::string enable; }; OssLogConfig ossLogConfig; - GreenManagerConfig greenManagerConfig; WafConfig wafConfig; }; diff --git a/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h b/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h deleted file mode 100644 index c95994bed..000000000 --- a/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGREQUEST_H_ -#define ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT SetUserGreenManagerConfigRequest : public RpcServiceRequest - { - - public: - SetUserGreenManagerConfigRequest(); - ~SetUserGreenManagerConfigRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getQuota()const; - void setQuota(const std::string& quota); - std::string getRatio()const; - void setRatio(const std::string& ratio); - - private: - long ownerId_; - std::string securityToken_; - std::string quota_; - std::string ratio_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h b/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h deleted file mode 100644 index 8a2ef8ab7..000000000 --- a/cdn/include/alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_ -#define ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cdn - { - namespace Model - { - class ALIBABACLOUD_CDN_EXPORT SetUserGreenManagerConfigResult : public ServiceResult - { - public: - - - SetUserGreenManagerConfigResult(); - explicit SetUserGreenManagerConfigResult(const std::string &payload); - ~SetUserGreenManagerConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CDN_MODEL_SETUSERGREENMANAGERCONFIGRESULT_H_ \ No newline at end of file diff --git a/cdn/src/CdnClient.cc b/cdn/src/CdnClient.cc index 8841e4075..824739e50 100644 --- a/cdn/src/CdnClient.cc +++ b/cdn/src/CdnClient.cc @@ -4227,42 +4227,6 @@ CdnClient::DescribeLivePullStreamConfigOutcomeCallable CdnClient::describeLivePu return task->get_future(); } -CdnClient::DescribeLiveStreamBitRateDataOutcome CdnClient::describeLiveStreamBitRateData(const DescribeLiveStreamBitRateDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamBitRateDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamBitRateDataOutcome(DescribeLiveStreamBitRateDataResult(outcome.result())); - else - return DescribeLiveStreamBitRateDataOutcome(outcome.error()); -} - -void CdnClient::describeLiveStreamBitRateDataAsync(const DescribeLiveStreamBitRateDataRequest& request, const DescribeLiveStreamBitRateDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamBitRateData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeLiveStreamBitRateDataOutcomeCallable CdnClient::describeLiveStreamBitRateDataCallable(const DescribeLiveStreamBitRateDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamBitRateData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeLiveStreamOnlineUserNumOutcome CdnClient::describeLiveStreamOnlineUserNum(const DescribeLiveStreamOnlineUserNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4443,42 +4407,6 @@ CdnClient::DescribeLiveStreamSnapshotInfoOutcomeCallable CdnClient::describeLive return task->get_future(); } -CdnClient::DescribeLiveStreamsBlockListOutcome CdnClient::describeLiveStreamsBlockList(const DescribeLiveStreamsBlockListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLiveStreamsBlockListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLiveStreamsBlockListOutcome(DescribeLiveStreamsBlockListResult(outcome.result())); - else - return DescribeLiveStreamsBlockListOutcome(outcome.error()); -} - -void CdnClient::describeLiveStreamsBlockListAsync(const DescribeLiveStreamsBlockListRequest& request, const DescribeLiveStreamsBlockListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLiveStreamsBlockList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::DescribeLiveStreamsBlockListOutcomeCallable CdnClient::describeLiveStreamsBlockListCallable(const DescribeLiveStreamsBlockListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLiveStreamsBlockList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::DescribeLiveStreamsFrameRateAndBitRateDataOutcome CdnClient::describeLiveStreamsFrameRateAndBitRateData(const DescribeLiveStreamsFrameRateAndBitRateDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6639,42 +6567,6 @@ CdnClient::SetSourceHostConfigOutcomeCallable CdnClient::setSourceHostConfigCall return task->get_future(); } -CdnClient::SetUserGreenManagerConfigOutcome CdnClient::setUserGreenManagerConfig(const SetUserGreenManagerConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetUserGreenManagerConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetUserGreenManagerConfigOutcome(SetUserGreenManagerConfigResult(outcome.result())); - else - return SetUserGreenManagerConfigOutcome(outcome.error()); -} - -void CdnClient::setUserGreenManagerConfigAsync(const SetUserGreenManagerConfigRequest& request, const SetUserGreenManagerConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setUserGreenManagerConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CdnClient::SetUserGreenManagerConfigOutcomeCallable CdnClient::setUserGreenManagerConfigCallable(const SetUserGreenManagerConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setUserGreenManagerConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cdn/src/model/DescribeDomainConfigsResult.cc b/cdn/src/model/DescribeDomainConfigsResult.cc index 4e1002c94..a05079b72 100644 --- a/cdn/src/model/DescribeDomainConfigsResult.cc +++ b/cdn/src/model/DescribeDomainConfigsResult.cc @@ -287,13 +287,6 @@ void DescribeDomainConfigsResult::parse(const std::string &payload) domainConfigs_.macServiceConfig.configId = macServiceConfigNode["ConfigId"].asString(); if(!macServiceConfigNode["Status"].isNull()) domainConfigs_.macServiceConfig.status = macServiceConfigNode["Status"].asString(); - auto greenManagerConfigNode = domainConfigsNode["GreenManagerConfig"]; - if(!greenManagerConfigNode["Enabled"].isNull()) - domainConfigs_.greenManagerConfig.enabled = greenManagerConfigNode["Enabled"].asString(); - if(!greenManagerConfigNode["ConfigId"].isNull()) - domainConfigs_.greenManagerConfig.configId = greenManagerConfigNode["ConfigId"].asString(); - if(!greenManagerConfigNode["Status"].isNull()) - domainConfigs_.greenManagerConfig.status = greenManagerConfigNode["Status"].asString(); auto httpsOptionConfigNode = domainConfigsNode["HttpsOptionConfig"]; if(!httpsOptionConfigNode["Http2"].isNull()) domainConfigs_.httpsOptionConfig.http2 = httpsOptionConfigNode["Http2"].asString(); diff --git a/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc b/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc deleted file mode 100644 index 509715816..000000000 --- a/cdn/src/model/DescribeLiveStreamBitRateDataRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cdn::Model::DescribeLiveStreamBitRateDataRequest; - -DescribeLiveStreamBitRateDataRequest::DescribeLiveStreamBitRateDataRequest() : - RpcServiceRequest("cdn", "2014-11-11", "DescribeLiveStreamBitRateData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLiveStreamBitRateDataRequest::~DescribeLiveStreamBitRateDataRequest() -{} - -std::string DescribeLiveStreamBitRateDataRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeLiveStreamBitRateDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeLiveStreamBitRateDataRequest::getAppName()const -{ - return appName_; -} - -void DescribeLiveStreamBitRateDataRequest::setAppName(const std::string& appName) -{ - appName_ = appName; - setParameter("AppName", appName); -} - -std::string DescribeLiveStreamBitRateDataRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeLiveStreamBitRateDataRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string DescribeLiveStreamBitRateDataRequest::getStreamName()const -{ - return streamName_; -} - -void DescribeLiveStreamBitRateDataRequest::setStreamName(const std::string& streamName) -{ - streamName_ = streamName; - setParameter("StreamName", streamName); -} - -std::string DescribeLiveStreamBitRateDataRequest::getDomainName()const -{ - return domainName_; -} - -void DescribeLiveStreamBitRateDataRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -std::string DescribeLiveStreamBitRateDataRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeLiveStreamBitRateDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeLiveStreamBitRateDataRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLiveStreamBitRateDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc b/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc deleted file mode 100644 index fa9251b7a..000000000 --- a/cdn/src/model/DescribeLiveStreamBitRateDataResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cdn; -using namespace AlibabaCloud::Cdn::Model; - -DescribeLiveStreamBitRateDataResult::DescribeLiveStreamBitRateDataResult() : - ServiceResult() -{} - -DescribeLiveStreamBitRateDataResult::DescribeLiveStreamBitRateDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLiveStreamBitRateDataResult::~DescribeLiveStreamBitRateDataResult() -{} - -void DescribeLiveStreamBitRateDataResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allFrameRateAndBitRateInfosNode = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"]; - for (auto valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo : allFrameRateAndBitRateInfosNode) - { - FrameRateAndBitRateInfo frameRateAndBitRateInfosObject; - if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].isNull()) - frameRateAndBitRateInfosObject.streamUrl = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].asString(); - if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].isNull()) - frameRateAndBitRateInfosObject.videoFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].asString()); - if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].isNull()) - frameRateAndBitRateInfosObject.audioFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].asString()); - if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].isNull()) - frameRateAndBitRateInfosObject.bitRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].asString()); - if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].isNull()) - frameRateAndBitRateInfosObject.time = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].asString(); - frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject); - } - -} - -std::vector DescribeLiveStreamBitRateDataResult::getFrameRateAndBitRateInfos()const -{ - return frameRateAndBitRateInfos_; -} - diff --git a/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc b/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc deleted file mode 100644 index adcbc5b91..000000000 --- a/cdn/src/model/DescribeLiveStreamsBlockListRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cdn::Model::DescribeLiveStreamsBlockListRequest; - -DescribeLiveStreamsBlockListRequest::DescribeLiveStreamsBlockListRequest() : - RpcServiceRequest("cdn", "2014-11-11", "DescribeLiveStreamsBlockList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLiveStreamsBlockListRequest::~DescribeLiveStreamsBlockListRequest() -{} - -std::string DescribeLiveStreamsBlockListRequest::getDomainName()const -{ - return domainName_; -} - -void DescribeLiveStreamsBlockListRequest::setDomainName(const std::string& domainName) -{ - domainName_ = domainName; - setParameter("DomainName", domainName); -} - -long DescribeLiveStreamsBlockListRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLiveStreamsBlockListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeLiveStreamsBlockListRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeLiveStreamsBlockListRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - diff --git a/cdn/src/model/DescribeLiveStreamsBlockListResult.cc b/cdn/src/model/DescribeLiveStreamsBlockListResult.cc deleted file mode 100644 index fe3d3e925..000000000 --- a/cdn/src/model/DescribeLiveStreamsBlockListResult.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cdn; -using namespace AlibabaCloud::Cdn::Model; - -DescribeLiveStreamsBlockListResult::DescribeLiveStreamsBlockListResult() : - ServiceResult() -{} - -DescribeLiveStreamsBlockListResult::DescribeLiveStreamsBlockListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLiveStreamsBlockListResult::~DescribeLiveStreamsBlockListResult() -{} - -void DescribeLiveStreamsBlockListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allStreamUrls = value["StreamUrls"]["StreamUrl"]; - for (const auto &item : allStreamUrls) - streamUrls_.push_back(item.asString()); - if(!value["DomainName"].isNull()) - domainName_ = value["DomainName"].asString(); - -} - -std::string DescribeLiveStreamsBlockListResult::getDomainName()const -{ - return domainName_; -} - -std::vector DescribeLiveStreamsBlockListResult::getStreamUrls()const -{ - return streamUrls_; -} - diff --git a/cdn/src/model/DescribeUserConfigsResult.cc b/cdn/src/model/DescribeUserConfigsResult.cc index c44e6f73b..af2715a75 100644 --- a/cdn/src/model/DescribeUserConfigsResult.cc +++ b/cdn/src/model/DescribeUserConfigsResult.cc @@ -47,11 +47,6 @@ void DescribeUserConfigsResult::parse(const std::string &payload) configs_.ossLogConfig.bucket = ossLogConfigNode["Bucket"].asString(); if(!ossLogConfigNode["Prefix"].isNull()) configs_.ossLogConfig.prefix = ossLogConfigNode["Prefix"].asString(); - auto greenManagerConfigNode = configsNode["GreenManagerConfig"]; - if(!greenManagerConfigNode["Quota"].isNull()) - configs_.greenManagerConfig.quota = greenManagerConfigNode["Quota"].asString(); - if(!greenManagerConfigNode["Ratio"].isNull()) - configs_.greenManagerConfig.ratio = greenManagerConfigNode["Ratio"].asString(); auto wafConfigNode = configsNode["WafConfig"]; if(!wafConfigNode["Enable"].isNull()) configs_.wafConfig.enable = wafConfigNode["Enable"].asString(); diff --git a/cdn/src/model/SetUserGreenManagerConfigRequest.cc b/cdn/src/model/SetUserGreenManagerConfigRequest.cc deleted file mode 100644 index 5e57f6d24..000000000 --- a/cdn/src/model/SetUserGreenManagerConfigRequest.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cdn::Model::SetUserGreenManagerConfigRequest; - -SetUserGreenManagerConfigRequest::SetUserGreenManagerConfigRequest() : - RpcServiceRequest("cdn", "2018-05-10", "SetUserGreenManagerConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -SetUserGreenManagerConfigRequest::~SetUserGreenManagerConfigRequest() -{} - -long SetUserGreenManagerConfigRequest::getOwnerId()const -{ - return ownerId_; -} - -void SetUserGreenManagerConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string SetUserGreenManagerConfigRequest::getSecurityToken()const -{ - return securityToken_; -} - -void SetUserGreenManagerConfigRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string SetUserGreenManagerConfigRequest::getQuota()const -{ - return quota_; -} - -void SetUserGreenManagerConfigRequest::setQuota(const std::string& quota) -{ - quota_ = quota; - setParameter("Quota", quota); -} - -std::string SetUserGreenManagerConfigRequest::getRatio()const -{ - return ratio_; -} - -void SetUserGreenManagerConfigRequest::setRatio(const std::string& ratio) -{ - ratio_ = ratio; - setParameter("Ratio", ratio); -} - diff --git a/cdn/src/model/SetUserGreenManagerConfigResult.cc b/cdn/src/model/SetUserGreenManagerConfigResult.cc deleted file mode 100644 index 884690bc1..000000000 --- a/cdn/src/model/SetUserGreenManagerConfigResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cdn; -using namespace AlibabaCloud::Cdn::Model; - -SetUserGreenManagerConfigResult::SetUserGreenManagerConfigResult() : - ServiceResult() -{} - -SetUserGreenManagerConfigResult::SetUserGreenManagerConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetUserGreenManagerConfigResult::~SetUserGreenManagerConfigResult() -{} - -void SetUserGreenManagerConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} -