DCDN SDK Auto Released By xiaoyao,Version:1.34.8

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-12-20 15:37:04 +08:00
parent 0df947c481
commit 9664fb1b00
9 changed files with 302 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2018-12-20 Version: 1.34.8
1, Sync CDN API.
2018-12-11 Version: 1.34.7
1, Sync CDN API.

View File

@@ -1 +1 @@
1.34.7
1.34.8

View File

@@ -27,6 +27,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnRefreshQuotaResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainTopUrlVisitResult.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h
include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsResult.h
include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h
include/alibabacloud/dcdn/model/SetDcdnDomainCertificateResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainLogRequest.h
@@ -106,6 +108,8 @@ set(dcdn_src
src/model/DescribeDcdnRefreshQuotaResult.cc
src/model/DescribeDcdnDomainTopUrlVisitRequest.cc
src/model/DescribeDcdnDomainTopUrlVisitResult.cc
src/model/BatchSetDcdnDomainConfigsRequest.cc
src/model/BatchSetDcdnDomainConfigsResult.cc
src/model/SetDcdnDomainCertificateRequest.cc
src/model/SetDcdnDomainCertificateResult.cc
src/model/DescribeDcdnDomainLogRequest.cc

View File

@@ -28,6 +28,8 @@
#include "model/DescribeDcdnRefreshQuotaResult.h"
#include "model/DescribeDcdnDomainTopUrlVisitRequest.h"
#include "model/DescribeDcdnDomainTopUrlVisitResult.h"
#include "model/BatchSetDcdnDomainConfigsRequest.h"
#include "model/BatchSetDcdnDomainConfigsResult.h"
#include "model/SetDcdnDomainCertificateRequest.h"
#include "model/SetDcdnDomainCertificateResult.h"
#include "model/DescribeDcdnDomainLogRequest.h"
@@ -116,6 +118,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnDomainTopUrlVisitResult> DescribeDcdnDomainTopUrlVisitOutcome;
typedef std::future<DescribeDcdnDomainTopUrlVisitOutcome> DescribeDcdnDomainTopUrlVisitOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainTopUrlVisitRequest&, const DescribeDcdnDomainTopUrlVisitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainTopUrlVisitAsyncHandler;
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;
typedef Outcome<Error, Model::SetDcdnDomainCertificateResult> SetDcdnDomainCertificateOutcome;
typedef std::future<SetDcdnDomainCertificateOutcome> SetDcdnDomainCertificateOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::SetDcdnDomainCertificateRequest&, const SetDcdnDomainCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDcdnDomainCertificateAsyncHandler;
@@ -235,6 +240,9 @@ namespace AlibabaCloud
DescribeDcdnDomainTopUrlVisitOutcome describeDcdnDomainTopUrlVisit(const Model::DescribeDcdnDomainTopUrlVisitRequest &request)const;
void describeDcdnDomainTopUrlVisitAsync(const Model::DescribeDcdnDomainTopUrlVisitRequest& request, const DescribeDcdnDomainTopUrlVisitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainTopUrlVisitOutcomeCallable describeDcdnDomainTopUrlVisitCallable(const Model::DescribeDcdnDomainTopUrlVisitRequest& 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;
SetDcdnDomainCertificateOutcome setDcdnDomainCertificate(const Model::SetDcdnDomainCertificateRequest &request)const;
void setDcdnDomainCertificateAsync(const Model::SetDcdnDomainCertificateRequest& request, const SetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetDcdnDomainCertificateOutcomeCallable setDcdnDomainCertificateCallable(const Model::SetDcdnDomainCertificateRequest& request) const;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCONFIGSREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCONFIGSREQUEST_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 BatchSetDcdnDomainConfigsRequest : public RpcServiceRequest
{
public:
BatchSetDcdnDomainConfigsRequest();
~BatchSetDcdnDomainConfigsRequest();
std::string getFunctions()const;
void setFunctions(const std::string& functions);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getDomainNames()const;
void setDomainNames(const std::string& domainNames);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string functions_;
std::string securityToken_;
std::string domainNames_;
std::string ownerAccount_;
long ownerId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCONFIGSREQUEST_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_BATCHSETDCDNDOMAINCONFIGSRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCONFIGSRESULT_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 BatchSetDcdnDomainConfigsResult : public ServiceResult
{
public:
BatchSetDcdnDomainConfigsResult();
explicit BatchSetDcdnDomainConfigsResult(const std::string &payload);
~BatchSetDcdnDomainConfigsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCONFIGSRESULT_H_

View File

@@ -159,6 +159,42 @@ DcdnClient::DescribeDcdnDomainTopUrlVisitOutcomeCallable DcdnClient::describeDcd
return task->get_future();
}
DcdnClient::BatchSetDcdnDomainConfigsOutcome DcdnClient::batchSetDcdnDomainConfigs(const BatchSetDcdnDomainConfigsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchSetDcdnDomainConfigsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchSetDcdnDomainConfigsOutcome(BatchSetDcdnDomainConfigsResult(outcome.result()));
else
return BatchSetDcdnDomainConfigsOutcome(outcome.error());
}
void DcdnClient::batchSetDcdnDomainConfigsAsync(const BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchSetDcdnDomainConfigs(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::BatchSetDcdnDomainConfigsOutcomeCallable DcdnClient::batchSetDcdnDomainConfigsCallable(const BatchSetDcdnDomainConfigsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchSetDcdnDomainConfigsOutcome()>>(
[this, request]()
{
return this->batchSetDcdnDomainConfigs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::SetDcdnDomainCertificateOutcome DcdnClient::setDcdnDomainCertificate(const SetDcdnDomainCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,93 @@
/*
* 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/BatchSetDcdnDomainConfigsRequest.h>
using AlibabaCloud::Dcdn::Model::BatchSetDcdnDomainConfigsRequest;
BatchSetDcdnDomainConfigsRequest::BatchSetDcdnDomainConfigsRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "BatchSetDcdnDomainConfigs")
{}
BatchSetDcdnDomainConfigsRequest::~BatchSetDcdnDomainConfigsRequest()
{}
std::string BatchSetDcdnDomainConfigsRequest::getFunctions()const
{
return functions_;
}
void BatchSetDcdnDomainConfigsRequest::setFunctions(const std::string& functions)
{
functions_ = functions;
setParameter("Functions", functions);
}
std::string BatchSetDcdnDomainConfigsRequest::getSecurityToken()const
{
return securityToken_;
}
void BatchSetDcdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string BatchSetDcdnDomainConfigsRequest::getDomainNames()const
{
return domainNames_;
}
void BatchSetDcdnDomainConfigsRequest::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
setParameter("DomainNames", domainNames);
}
std::string BatchSetDcdnDomainConfigsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BatchSetDcdnDomainConfigsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BatchSetDcdnDomainConfigsRequest::getOwnerId()const
{
return ownerId_;
}
void BatchSetDcdnDomainConfigsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BatchSetDcdnDomainConfigsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BatchSetDcdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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