diff --git a/CHANGELOG b/CHANGELOG index 82d3243ec..b288c2637 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-09-23 Version: patch +- Update domain API. + 2020-09-23 Version: patch - Update Scdn API. diff --git a/cdn/CMakeLists.txt b/cdn/CMakeLists.txt index 88fa3dd9e..5b45e4a04 100644 --- a/cdn/CMakeLists.txt +++ b/cdn/CMakeLists.txt @@ -395,8 +395,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/SetVideoSeekConfigRequest.h include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h @@ -792,8 +790,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/SetVideoSeekConfigRequest.cc src/model/SetVideoSeekConfigResult.cc src/model/SetWaitingRoomConfigRequest.cc diff --git a/cdn/include/alibabacloud/cdn/CdnClient.h b/cdn/include/alibabacloud/cdn/CdnClient.h index bba6616f5..a76884354 100644 --- a/cdn/include/alibabacloud/cdn/CdnClient.h +++ b/cdn/include/alibabacloud/cdn/CdnClient.h @@ -396,8 +396,6 @@ #include "model/SetReqHeaderConfigResult.h" #include "model/SetSourceHostConfigRequest.h" #include "model/SetSourceHostConfigResult.h" -#include "model/SetUserGreenManagerConfigRequest.h" -#include "model/SetUserGreenManagerConfigResult.h" #include "model/SetVideoSeekConfigRequest.h" #include "model/SetVideoSeekConfigResult.h" #include "model/SetWaitingRoomConfigRequest.h" @@ -986,9 +984,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 SetVideoSeekConfigOutcome; typedef std::future SetVideoSeekConfigOutcomeCallable; typedef std::function&)> SetVideoSeekConfigAsyncHandler; @@ -1582,9 +1577,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; SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const; void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const; 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 1b937ddc6..409791d98 100644 --- a/cdn/src/CdnClient.cc +++ b/cdn/src/CdnClient.cc @@ -6783,42 +6783,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::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc b/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc index 99d84aace..64930c11c 100644 --- a/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc +++ b/cdn/src/model/BatchDeleteCdnDomainConfigRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Cdn::Model::BatchDeleteCdnDomainConfigRequest; BatchDeleteCdnDomainConfigRequest::BatchDeleteCdnDomainConfigRequest() : - RpcServiceRequest("cdn", "2018-05-10", "BatchDeleteCdnDomainConfig") + RpcServiceRequest("cdn", "2014-11-11", "BatchDeleteCdnDomainConfig") { setMethod(HttpRequest::Method::Post); } 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()); - -} -