Update domain API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2020-09-23 Version: patch
|
||||||
|
- Update domain API.
|
||||||
|
|
||||||
2020-09-23 Version: patch
|
2020-09-23 Version: patch
|
||||||
- Update Scdn API.
|
- Update Scdn API.
|
||||||
|
|
||||||
|
|||||||
@@ -395,8 +395,6 @@ set(cdn_public_header_model
|
|||||||
include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h
|
include/alibabacloud/cdn/model/SetReqHeaderConfigResult.h
|
||||||
include/alibabacloud/cdn/model/SetSourceHostConfigRequest.h
|
include/alibabacloud/cdn/model/SetSourceHostConfigRequest.h
|
||||||
include/alibabacloud/cdn/model/SetSourceHostConfigResult.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/SetVideoSeekConfigRequest.h
|
||||||
include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h
|
include/alibabacloud/cdn/model/SetVideoSeekConfigResult.h
|
||||||
include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h
|
include/alibabacloud/cdn/model/SetWaitingRoomConfigRequest.h
|
||||||
@@ -792,8 +790,6 @@ set(cdn_src
|
|||||||
src/model/SetReqHeaderConfigResult.cc
|
src/model/SetReqHeaderConfigResult.cc
|
||||||
src/model/SetSourceHostConfigRequest.cc
|
src/model/SetSourceHostConfigRequest.cc
|
||||||
src/model/SetSourceHostConfigResult.cc
|
src/model/SetSourceHostConfigResult.cc
|
||||||
src/model/SetUserGreenManagerConfigRequest.cc
|
|
||||||
src/model/SetUserGreenManagerConfigResult.cc
|
|
||||||
src/model/SetVideoSeekConfigRequest.cc
|
src/model/SetVideoSeekConfigRequest.cc
|
||||||
src/model/SetVideoSeekConfigResult.cc
|
src/model/SetVideoSeekConfigResult.cc
|
||||||
src/model/SetWaitingRoomConfigRequest.cc
|
src/model/SetWaitingRoomConfigRequest.cc
|
||||||
|
|||||||
@@ -396,8 +396,6 @@
|
|||||||
#include "model/SetReqHeaderConfigResult.h"
|
#include "model/SetReqHeaderConfigResult.h"
|
||||||
#include "model/SetSourceHostConfigRequest.h"
|
#include "model/SetSourceHostConfigRequest.h"
|
||||||
#include "model/SetSourceHostConfigResult.h"
|
#include "model/SetSourceHostConfigResult.h"
|
||||||
#include "model/SetUserGreenManagerConfigRequest.h"
|
|
||||||
#include "model/SetUserGreenManagerConfigResult.h"
|
|
||||||
#include "model/SetVideoSeekConfigRequest.h"
|
#include "model/SetVideoSeekConfigRequest.h"
|
||||||
#include "model/SetVideoSeekConfigResult.h"
|
#include "model/SetVideoSeekConfigResult.h"
|
||||||
#include "model/SetWaitingRoomConfigRequest.h"
|
#include "model/SetWaitingRoomConfigRequest.h"
|
||||||
@@ -986,9 +984,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::SetSourceHostConfigResult> SetSourceHostConfigOutcome;
|
typedef Outcome<Error, Model::SetSourceHostConfigResult> SetSourceHostConfigOutcome;
|
||||||
typedef std::future<SetSourceHostConfigOutcome> SetSourceHostConfigOutcomeCallable;
|
typedef std::future<SetSourceHostConfigOutcome> SetSourceHostConfigOutcomeCallable;
|
||||||
typedef std::function<void(const CdnClient*, const Model::SetSourceHostConfigRequest&, const SetSourceHostConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetSourceHostConfigAsyncHandler;
|
typedef std::function<void(const CdnClient*, const Model::SetSourceHostConfigRequest&, const SetSourceHostConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetSourceHostConfigAsyncHandler;
|
||||||
typedef Outcome<Error, Model::SetUserGreenManagerConfigResult> SetUserGreenManagerConfigOutcome;
|
|
||||||
typedef std::future<SetUserGreenManagerConfigOutcome> SetUserGreenManagerConfigOutcomeCallable;
|
|
||||||
typedef std::function<void(const CdnClient*, const Model::SetUserGreenManagerConfigRequest&, const SetUserGreenManagerConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserGreenManagerConfigAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::SetVideoSeekConfigResult> SetVideoSeekConfigOutcome;
|
typedef Outcome<Error, Model::SetVideoSeekConfigResult> SetVideoSeekConfigOutcome;
|
||||||
typedef std::future<SetVideoSeekConfigOutcome> SetVideoSeekConfigOutcomeCallable;
|
typedef std::future<SetVideoSeekConfigOutcome> SetVideoSeekConfigOutcomeCallable;
|
||||||
typedef std::function<void(const CdnClient*, const Model::SetVideoSeekConfigRequest&, const SetVideoSeekConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetVideoSeekConfigAsyncHandler;
|
typedef std::function<void(const CdnClient*, const Model::SetVideoSeekConfigRequest&, const SetVideoSeekConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetVideoSeekConfigAsyncHandler;
|
||||||
@@ -1582,9 +1577,6 @@ namespace AlibabaCloud
|
|||||||
SetSourceHostConfigOutcome setSourceHostConfig(const Model::SetSourceHostConfigRequest &request)const;
|
SetSourceHostConfigOutcome setSourceHostConfig(const Model::SetSourceHostConfigRequest &request)const;
|
||||||
void setSourceHostConfigAsync(const Model::SetSourceHostConfigRequest& request, const SetSourceHostConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void setSourceHostConfigAsync(const Model::SetSourceHostConfigRequest& request, const SetSourceHostConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SetSourceHostConfigOutcomeCallable setSourceHostConfigCallable(const Model::SetSourceHostConfigRequest& request) 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<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
SetUserGreenManagerConfigOutcomeCallable setUserGreenManagerConfigCallable(const Model::SetUserGreenManagerConfigRequest& request) const;
|
|
||||||
SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const;
|
SetVideoSeekConfigOutcome setVideoSeekConfig(const Model::SetVideoSeekConfigRequest &request)const;
|
||||||
void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void setVideoSeekConfigAsync(const Model::SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const;
|
SetVideoSeekConfigOutcomeCallable setVideoSeekConfigCallable(const Model::SetVideoSeekConfigRequest& request) const;
|
||||||
|
|||||||
@@ -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 <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/cdn/CdnExport.h>
|
|
||||||
|
|
||||||
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_
|
|
||||||
@@ -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 <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <utility>
|
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
|
||||||
#include <alibabacloud/cdn/CdnExport.h>
|
|
||||||
|
|
||||||
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_
|
|
||||||
@@ -6783,42 +6783,6 @@ CdnClient::SetSourceHostConfigOutcomeCallable CdnClient::setSourceHostConfigCall
|
|||||||
return task->get_future();
|
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<const AsyncCallerContext>& 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<std::packaged_task<SetUserGreenManagerConfigOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->setUserGreenManagerConfig(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
CdnClient::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const
|
CdnClient::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
using AlibabaCloud::Cdn::Model::BatchDeleteCdnDomainConfigRequest;
|
using AlibabaCloud::Cdn::Model::BatchDeleteCdnDomainConfigRequest;
|
||||||
|
|
||||||
BatchDeleteCdnDomainConfigRequest::BatchDeleteCdnDomainConfigRequest() :
|
BatchDeleteCdnDomainConfigRequest::BatchDeleteCdnDomainConfigRequest() :
|
||||||
RpcServiceRequest("cdn", "2018-05-10", "BatchDeleteCdnDomainConfig")
|
RpcServiceRequest("cdn", "2014-11-11", "BatchDeleteCdnDomainConfig")
|
||||||
{
|
{
|
||||||
setMethod(HttpRequest::Method::Post);
|
setMethod(HttpRequest::Method::Post);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 <alibabacloud/cdn/model/SetUserGreenManagerConfigRequest.h>
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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 <alibabacloud/cdn/model/SetUserGreenManagerConfigResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
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());
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user