Sync cdn APIs.

This commit is contained in:
sdk-team
2020-09-23 02:50:08 +00:00
parent 9535455a22
commit 152b44dbed
16 changed files with 693 additions and 22 deletions

View File

@@ -1,3 +1,6 @@
2020-09-23 Version: patch
- Sync cdn APIs.
2020-09-22 Version: patch
- DescribePrice update amount type to string.

View File

@@ -25,8 +25,12 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/AddDcdnDomainResult.h
include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h
include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h
include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h
include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h
include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h
include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsResult.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsResult.h
include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h
@@ -202,8 +206,12 @@ set(dcdn_src
src/model/AddDcdnDomainResult.cc
src/model/AddDcdnIpaDomainRequest.cc
src/model/AddDcdnIpaDomainResult.cc
src/model/BatchAddDcdnDomainRequest.cc
src/model/BatchAddDcdnDomainResult.cc
src/model/BatchDeleteDcdnDomainConfigsRequest.cc
src/model/BatchDeleteDcdnDomainConfigsResult.cc
src/model/BatchSetDcdnDomainCertificateRequest.cc
src/model/BatchSetDcdnDomainCertificateResult.cc
src/model/BatchSetDcdnDomainConfigsRequest.cc
src/model/BatchSetDcdnDomainConfigsResult.cc
src/model/BatchSetDcdnIpaDomainConfigsRequest.cc

View File

@@ -26,8 +26,12 @@
#include "model/AddDcdnDomainResult.h"
#include "model/AddDcdnIpaDomainRequest.h"
#include "model/AddDcdnIpaDomainResult.h"
#include "model/BatchAddDcdnDomainRequest.h"
#include "model/BatchAddDcdnDomainResult.h"
#include "model/BatchDeleteDcdnDomainConfigsRequest.h"
#include "model/BatchDeleteDcdnDomainConfigsResult.h"
#include "model/BatchSetDcdnDomainCertificateRequest.h"
#include "model/BatchSetDcdnDomainCertificateResult.h"
#include "model/BatchSetDcdnDomainConfigsRequest.h"
#include "model/BatchSetDcdnDomainConfigsResult.h"
#include "model/BatchSetDcdnIpaDomainConfigsRequest.h"
@@ -211,9 +215,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddDcdnIpaDomainResult> AddDcdnIpaDomainOutcome;
typedef std::future<AddDcdnIpaDomainOutcome> AddDcdnIpaDomainOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::AddDcdnIpaDomainRequest&, const AddDcdnIpaDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDcdnIpaDomainAsyncHandler;
typedef Outcome<Error, Model::BatchAddDcdnDomainResult> BatchAddDcdnDomainOutcome;
typedef std::future<BatchAddDcdnDomainOutcome> BatchAddDcdnDomainOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::BatchAddDcdnDomainRequest&, const BatchAddDcdnDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchAddDcdnDomainAsyncHandler;
typedef Outcome<Error, Model::BatchDeleteDcdnDomainConfigsResult> BatchDeleteDcdnDomainConfigsOutcome;
typedef std::future<BatchDeleteDcdnDomainConfigsOutcome> BatchDeleteDcdnDomainConfigsOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::BatchDeleteDcdnDomainConfigsRequest&, const BatchDeleteDcdnDomainConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteDcdnDomainConfigsAsyncHandler;
typedef Outcome<Error, Model::BatchSetDcdnDomainCertificateResult> BatchSetDcdnDomainCertificateOutcome;
typedef std::future<BatchSetDcdnDomainCertificateOutcome> BatchSetDcdnDomainCertificateOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::BatchSetDcdnDomainCertificateRequest&, const BatchSetDcdnDomainCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchSetDcdnDomainCertificateAsyncHandler;
typedef Outcome<Error, Model::BatchSetDcdnDomainConfigsResult> BatchSetDcdnDomainConfigsOutcome;
typedef std::future<BatchSetDcdnDomainConfigsOutcome> BatchSetDcdnDomainConfigsOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::BatchSetDcdnDomainConfigsRequest&, const BatchSetDcdnDomainConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchSetDcdnDomainConfigsAsyncHandler;
@@ -477,9 +487,15 @@ namespace AlibabaCloud
AddDcdnIpaDomainOutcome addDcdnIpaDomain(const Model::AddDcdnIpaDomainRequest &request)const;
void addDcdnIpaDomainAsync(const Model::AddDcdnIpaDomainRequest& request, const AddDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDcdnIpaDomainOutcomeCallable addDcdnIpaDomainCallable(const Model::AddDcdnIpaDomainRequest& request) const;
BatchAddDcdnDomainOutcome batchAddDcdnDomain(const Model::BatchAddDcdnDomainRequest &request)const;
void batchAddDcdnDomainAsync(const Model::BatchAddDcdnDomainRequest& request, const BatchAddDcdnDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchAddDcdnDomainOutcomeCallable batchAddDcdnDomainCallable(const Model::BatchAddDcdnDomainRequest& request) const;
BatchDeleteDcdnDomainConfigsOutcome batchDeleteDcdnDomainConfigs(const Model::BatchDeleteDcdnDomainConfigsRequest &request)const;
void batchDeleteDcdnDomainConfigsAsync(const Model::BatchDeleteDcdnDomainConfigsRequest& request, const BatchDeleteDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchDeleteDcdnDomainConfigsOutcomeCallable batchDeleteDcdnDomainConfigsCallable(const Model::BatchDeleteDcdnDomainConfigsRequest& request) const;
BatchSetDcdnDomainCertificateOutcome batchSetDcdnDomainCertificate(const Model::BatchSetDcdnDomainCertificateRequest &request)const;
void batchSetDcdnDomainCertificateAsync(const Model::BatchSetDcdnDomainCertificateRequest& request, const BatchSetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchSetDcdnDomainCertificateOutcomeCallable batchSetDcdnDomainCertificateCallable(const Model::BatchSetDcdnDomainCertificateRequest& request) const;
BatchSetDcdnDomainConfigsOutcome batchSetDcdnDomainConfigs(const Model::BatchSetDcdnDomainConfigsRequest &request)const;
void batchSetDcdnDomainConfigsAsync(const Model::BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchSetDcdnDomainConfigsOutcomeCallable batchSetDcdnDomainConfigsCallable(const Model::BatchSetDcdnDomainConfigsRequest& request) const;

View File

@@ -0,0 +1,72 @@
/*
* 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_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT BatchAddDcdnDomainRequest : public RpcServiceRequest
{
public:
BatchAddDcdnDomainRequest();
~BatchAddDcdnDomainRequest();
std::string getSources()const;
void setSources(const std::string& sources);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getScope()const;
void setScope(const std::string& scope);
std::string getTopLevelDomain()const;
void setTopLevelDomain(const std::string& topLevelDomain);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getCheckUrl()const;
void setCheckUrl(const std::string& checkUrl);
private:
std::string sources_;
std::string resourceGroupId_;
std::string securityToken_;
std::string scope_;
std::string topLevelDomain_;
std::string ownerAccount_;
std::string domainName_;
long ownerId_;
std::string checkUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_

View File

@@ -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_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT BatchAddDcdnDomainResult : public ServiceResult
{
public:
BatchAddDcdnDomainResult();
explicit BatchAddDcdnDomainResult(const std::string &payload);
~BatchAddDcdnDomainResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnDomainCertificateRequest : public RpcServiceRequest
{
public:
BatchSetDcdnDomainCertificateRequest();
~BatchSetDcdnDomainCertificateRequest();
std::string getSSLProtocol()const;
void setSSLProtocol(const std::string& sSLProtocol);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getCertType()const;
void setCertType(const std::string& certType);
std::string getSSLPri()const;
void setSSLPri(const std::string& sSLPri);
std::string getCertName()const;
void setCertName(const std::string& certName);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSSLPub()const;
void setSSLPub(const std::string& sSLPub);
std::string getRegion()const;
void setRegion(const std::string& region);
private:
std::string sSLProtocol_;
std::string securityToken_;
std::string certType_;
std::string sSLPri_;
std::string certName_;
std::string domainName_;
long ownerId_;
std::string sSLPub_;
std::string region_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_

View File

@@ -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_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnDomainCertificateResult : public ServiceResult
{
public:
BatchSetDcdnDomainCertificateResult();
explicit BatchSetDcdnDomainCertificateResult(const std::string &payload);
~BatchSetDcdnDomainCertificateResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_

View File

@@ -41,8 +41,6 @@ namespace AlibabaCloud
TagDcdnResourcesRequest();
~TagDcdnResourcesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::vector<std::string> getResourceId()const;
@@ -53,7 +51,6 @@ namespace AlibabaCloud
void setResourceType(const std::string& resourceType);
private:
std::string regionId_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
long ownerId_;

View File

@@ -35,8 +35,8 @@ namespace AlibabaCloud
UntagDcdnResourcesRequest();
~UntagDcdnResourcesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getAll()const;
void setAll(bool all);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
long getOwnerId()const;
@@ -47,7 +47,7 @@ namespace AlibabaCloud
void setTagKey(const std::vector<std::string>& tagKey);
private:
std::string regionId_;
bool all_;
std::vector<std::string> resourceId_;
long ownerId_;
std::string resourceType_;

View File

@@ -123,6 +123,42 @@ DcdnClient::AddDcdnIpaDomainOutcomeCallable DcdnClient::addDcdnIpaDomainCallable
return task->get_future();
}
DcdnClient::BatchAddDcdnDomainOutcome DcdnClient::batchAddDcdnDomain(const BatchAddDcdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchAddDcdnDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchAddDcdnDomainOutcome(BatchAddDcdnDomainResult(outcome.result()));
else
return BatchAddDcdnDomainOutcome(outcome.error());
}
void DcdnClient::batchAddDcdnDomainAsync(const BatchAddDcdnDomainRequest& request, const BatchAddDcdnDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchAddDcdnDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::BatchAddDcdnDomainOutcomeCallable DcdnClient::batchAddDcdnDomainCallable(const BatchAddDcdnDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchAddDcdnDomainOutcome()>>(
[this, request]()
{
return this->batchAddDcdnDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::BatchDeleteDcdnDomainConfigsOutcome DcdnClient::batchDeleteDcdnDomainConfigs(const BatchDeleteDcdnDomainConfigsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -159,6 +195,42 @@ DcdnClient::BatchDeleteDcdnDomainConfigsOutcomeCallable DcdnClient::batchDeleteD
return task->get_future();
}
DcdnClient::BatchSetDcdnDomainCertificateOutcome DcdnClient::batchSetDcdnDomainCertificate(const BatchSetDcdnDomainCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchSetDcdnDomainCertificateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchSetDcdnDomainCertificateOutcome(BatchSetDcdnDomainCertificateResult(outcome.result()));
else
return BatchSetDcdnDomainCertificateOutcome(outcome.error());
}
void DcdnClient::batchSetDcdnDomainCertificateAsync(const BatchSetDcdnDomainCertificateRequest& request, const BatchSetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchSetDcdnDomainCertificate(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::BatchSetDcdnDomainCertificateOutcomeCallable DcdnClient::batchSetDcdnDomainCertificateCallable(const BatchSetDcdnDomainCertificateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchSetDcdnDomainCertificateOutcome()>>(
[this, request]()
{
return this->batchSetDcdnDomainCertificate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::BatchSetDcdnDomainConfigsOutcome DcdnClient::batchSetDcdnDomainConfigs(const BatchSetDcdnDomainConfigsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,128 @@
/*
* 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/dcdn/model/BatchAddDcdnDomainRequest.h>
using AlibabaCloud::Dcdn::Model::BatchAddDcdnDomainRequest;
BatchAddDcdnDomainRequest::BatchAddDcdnDomainRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "BatchAddDcdnDomain")
{
setMethod(HttpRequest::Method::Post);
}
BatchAddDcdnDomainRequest::~BatchAddDcdnDomainRequest()
{}
std::string BatchAddDcdnDomainRequest::getSources()const
{
return sources_;
}
void BatchAddDcdnDomainRequest::setSources(const std::string& sources)
{
sources_ = sources;
setParameter("Sources", sources);
}
std::string BatchAddDcdnDomainRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void BatchAddDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string BatchAddDcdnDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void BatchAddDcdnDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string BatchAddDcdnDomainRequest::getScope()const
{
return scope_;
}
void BatchAddDcdnDomainRequest::setScope(const std::string& scope)
{
scope_ = scope;
setParameter("Scope", scope);
}
std::string BatchAddDcdnDomainRequest::getTopLevelDomain()const
{
return topLevelDomain_;
}
void BatchAddDcdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain)
{
topLevelDomain_ = topLevelDomain;
setParameter("TopLevelDomain", topLevelDomain);
}
std::string BatchAddDcdnDomainRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BatchAddDcdnDomainRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string BatchAddDcdnDomainRequest::getDomainName()const
{
return domainName_;
}
void BatchAddDcdnDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long BatchAddDcdnDomainRequest::getOwnerId()const
{
return ownerId_;
}
void BatchAddDcdnDomainRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BatchAddDcdnDomainRequest::getCheckUrl()const
{
return checkUrl_;
}
void BatchAddDcdnDomainRequest::setCheckUrl(const std::string& checkUrl)
{
checkUrl_ = checkUrl;
setParameter("CheckUrl", checkUrl);
}

View File

@@ -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 <alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
BatchAddDcdnDomainResult::BatchAddDcdnDomainResult() :
ServiceResult()
{}
BatchAddDcdnDomainResult::BatchAddDcdnDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchAddDcdnDomainResult::~BatchAddDcdnDomainResult()
{}
void BatchAddDcdnDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,128 @@
/*
* 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/dcdn/model/BatchSetDcdnDomainCertificateRequest.h>
using AlibabaCloud::Dcdn::Model::BatchSetDcdnDomainCertificateRequest;
BatchSetDcdnDomainCertificateRequest::BatchSetDcdnDomainCertificateRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "BatchSetDcdnDomainCertificate")
{
setMethod(HttpRequest::Method::Post);
}
BatchSetDcdnDomainCertificateRequest::~BatchSetDcdnDomainCertificateRequest()
{}
std::string BatchSetDcdnDomainCertificateRequest::getSSLProtocol()const
{
return sSLProtocol_;
}
void BatchSetDcdnDomainCertificateRequest::setSSLProtocol(const std::string& sSLProtocol)
{
sSLProtocol_ = sSLProtocol;
setParameter("SSLProtocol", sSLProtocol);
}
std::string BatchSetDcdnDomainCertificateRequest::getSecurityToken()const
{
return securityToken_;
}
void BatchSetDcdnDomainCertificateRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string BatchSetDcdnDomainCertificateRequest::getCertType()const
{
return certType_;
}
void BatchSetDcdnDomainCertificateRequest::setCertType(const std::string& certType)
{
certType_ = certType;
setParameter("CertType", certType);
}
std::string BatchSetDcdnDomainCertificateRequest::getSSLPri()const
{
return sSLPri_;
}
void BatchSetDcdnDomainCertificateRequest::setSSLPri(const std::string& sSLPri)
{
sSLPri_ = sSLPri;
setParameter("SSLPri", sSLPri);
}
std::string BatchSetDcdnDomainCertificateRequest::getCertName()const
{
return certName_;
}
void BatchSetDcdnDomainCertificateRequest::setCertName(const std::string& certName)
{
certName_ = certName;
setParameter("CertName", certName);
}
std::string BatchSetDcdnDomainCertificateRequest::getDomainName()const
{
return domainName_;
}
void BatchSetDcdnDomainCertificateRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long BatchSetDcdnDomainCertificateRequest::getOwnerId()const
{
return ownerId_;
}
void BatchSetDcdnDomainCertificateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BatchSetDcdnDomainCertificateRequest::getSSLPub()const
{
return sSLPub_;
}
void BatchSetDcdnDomainCertificateRequest::setSSLPub(const std::string& sSLPub)
{
sSLPub_ = sSLPub;
setParameter("SSLPub", sSLPub);
}
std::string BatchSetDcdnDomainCertificateRequest::getRegion()const
{
return region_;
}
void BatchSetDcdnDomainCertificateRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -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 <alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
BatchSetDcdnDomainCertificateResult::BatchSetDcdnDomainCertificateResult() :
ServiceResult()
{}
BatchSetDcdnDomainCertificateResult::BatchSetDcdnDomainCertificateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchSetDcdnDomainCertificateResult::~BatchSetDcdnDomainCertificateResult()
{}
void BatchSetDcdnDomainCertificateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -27,17 +27,6 @@ TagDcdnResourcesRequest::TagDcdnResourcesRequest() :
TagDcdnResourcesRequest::~TagDcdnResourcesRequest()
{}
std::string TagDcdnResourcesRequest::getRegionId()const
{
return regionId_;
}
void TagDcdnResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::vector<TagDcdnResourcesRequest::Tag> TagDcdnResourcesRequest::getTag()const
{
return tag_;

View File

@@ -27,15 +27,15 @@ UntagDcdnResourcesRequest::UntagDcdnResourcesRequest() :
UntagDcdnResourcesRequest::~UntagDcdnResourcesRequest()
{}
std::string UntagDcdnResourcesRequest::getRegionId()const
bool UntagDcdnResourcesRequest::getAll()const
{
return regionId_;
return all_;
}
void UntagDcdnResourcesRequest::setRegionId(const std::string& regionId)
void UntagDcdnResourcesRequest::setAll(bool all)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
all_ = all;
setParameter("All", all ? "true" : "false");
}
std::vector<std::string> UntagDcdnResourcesRequest::getResourceId()const