Update DescribeRefreshTask.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-08-11 Version: 1.36.568
|
||||
- Update DescribeRefreshTask.
|
||||
|
||||
2020-08-11 Version: 1.36.567
|
||||
- Add ResourceGroup in resource snapshot.
|
||||
|
||||
|
||||
@@ -289,6 +289,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeUserUsageDetailDataExportTaskResult.h
|
||||
include/alibabacloud/cdn/model/DescribeUserVipsByDomainRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeUserVipsByDomainResult.h
|
||||
include/alibabacloud/cdn/model/DescribeVerifyContentRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeVerifyContentResult.h
|
||||
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryRequest.h
|
||||
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryResult.h
|
||||
include/alibabacloud/cdn/model/EnableRealtimeLogDeliveryRequest.h
|
||||
@@ -410,7 +412,9 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/UpdateFCTriggerRequest.h
|
||||
include/alibabacloud/cdn/model/UpdateFCTriggerResult.h
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigRequest.h
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h )
|
||||
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h
|
||||
include/alibabacloud/cdn/model/VerifyDomainOwnerRequest.h
|
||||
include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h )
|
||||
|
||||
set(cdn_src
|
||||
src/CdnClient.cc
|
||||
@@ -682,6 +686,8 @@ set(cdn_src
|
||||
src/model/DescribeUserUsageDetailDataExportTaskResult.cc
|
||||
src/model/DescribeUserVipsByDomainRequest.cc
|
||||
src/model/DescribeUserVipsByDomainResult.cc
|
||||
src/model/DescribeVerifyContentRequest.cc
|
||||
src/model/DescribeVerifyContentResult.cc
|
||||
src/model/DisableRealtimeLogDeliveryRequest.cc
|
||||
src/model/DisableRealtimeLogDeliveryResult.cc
|
||||
src/model/EnableRealtimeLogDeliveryRequest.cc
|
||||
@@ -803,7 +809,9 @@ set(cdn_src
|
||||
src/model/UpdateFCTriggerRequest.cc
|
||||
src/model/UpdateFCTriggerResult.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigRequest.cc
|
||||
src/model/UpdateLiveAppSnapshotConfigResult.cc )
|
||||
src/model/UpdateLiveAppSnapshotConfigResult.cc
|
||||
src/model/VerifyDomainOwnerRequest.cc
|
||||
src/model/VerifyDomainOwnerResult.cc )
|
||||
|
||||
add_library(cdn ${LIB_TYPE}
|
||||
${cdn_public_header}
|
||||
|
||||
@@ -290,6 +290,8 @@
|
||||
#include "model/DescribeUserUsageDetailDataExportTaskResult.h"
|
||||
#include "model/DescribeUserVipsByDomainRequest.h"
|
||||
#include "model/DescribeUserVipsByDomainResult.h"
|
||||
#include "model/DescribeVerifyContentRequest.h"
|
||||
#include "model/DescribeVerifyContentResult.h"
|
||||
#include "model/DisableRealtimeLogDeliveryRequest.h"
|
||||
#include "model/DisableRealtimeLogDeliveryResult.h"
|
||||
#include "model/EnableRealtimeLogDeliveryRequest.h"
|
||||
@@ -412,6 +414,8 @@
|
||||
#include "model/UpdateFCTriggerResult.h"
|
||||
#include "model/UpdateLiveAppSnapshotConfigRequest.h"
|
||||
#include "model/UpdateLiveAppSnapshotConfigResult.h"
|
||||
#include "model/VerifyDomainOwnerRequest.h"
|
||||
#include "model/VerifyDomainOwnerResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -823,6 +827,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeUserVipsByDomainResult> DescribeUserVipsByDomainOutcome;
|
||||
typedef std::future<DescribeUserVipsByDomainOutcome> DescribeUserVipsByDomainOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeUserVipsByDomainRequest&, const DescribeUserVipsByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserVipsByDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifyContentResult> DescribeVerifyContentOutcome;
|
||||
typedef std::future<DescribeVerifyContentOutcome> DescribeVerifyContentOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeVerifyContentRequest&, const DescribeVerifyContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyContentAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableRealtimeLogDeliveryResult> DisableRealtimeLogDeliveryOutcome;
|
||||
typedef std::future<DisableRealtimeLogDeliveryOutcome> DisableRealtimeLogDeliveryOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DisableRealtimeLogDeliveryRequest&, const DisableRealtimeLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableRealtimeLogDeliveryAsyncHandler;
|
||||
@@ -1006,6 +1013,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLiveAppSnapshotConfigResult> UpdateLiveAppSnapshotConfigOutcome;
|
||||
typedef std::future<UpdateLiveAppSnapshotConfigOutcome> UpdateLiveAppSnapshotConfigOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::UpdateLiveAppSnapshotConfigRequest&, const UpdateLiveAppSnapshotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveAppSnapshotConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyDomainOwnerResult> VerifyDomainOwnerOutcome;
|
||||
typedef std::future<VerifyDomainOwnerOutcome> VerifyDomainOwnerOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::VerifyDomainOwnerRequest&, const VerifyDomainOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDomainOwnerAsyncHandler;
|
||||
|
||||
CdnClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CdnClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -1413,6 +1423,9 @@ namespace AlibabaCloud
|
||||
DescribeUserVipsByDomainOutcome describeUserVipsByDomain(const Model::DescribeUserVipsByDomainRequest &request)const;
|
||||
void describeUserVipsByDomainAsync(const Model::DescribeUserVipsByDomainRequest& request, const DescribeUserVipsByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserVipsByDomainOutcomeCallable describeUserVipsByDomainCallable(const Model::DescribeUserVipsByDomainRequest& request) const;
|
||||
DescribeVerifyContentOutcome describeVerifyContent(const Model::DescribeVerifyContentRequest &request)const;
|
||||
void describeVerifyContentAsync(const Model::DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyContentOutcomeCallable describeVerifyContentCallable(const Model::DescribeVerifyContentRequest& request) const;
|
||||
DisableRealtimeLogDeliveryOutcome disableRealtimeLogDelivery(const Model::DisableRealtimeLogDeliveryRequest &request)const;
|
||||
void disableRealtimeLogDeliveryAsync(const Model::DisableRealtimeLogDeliveryRequest& request, const DisableRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableRealtimeLogDeliveryOutcomeCallable disableRealtimeLogDeliveryCallable(const Model::DisableRealtimeLogDeliveryRequest& request) const;
|
||||
@@ -1596,6 +1609,9 @@ namespace AlibabaCloud
|
||||
UpdateLiveAppSnapshotConfigOutcome updateLiveAppSnapshotConfig(const Model::UpdateLiveAppSnapshotConfigRequest &request)const;
|
||||
void updateLiveAppSnapshotConfigAsync(const Model::UpdateLiveAppSnapshotConfigRequest& request, const UpdateLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLiveAppSnapshotConfigOutcomeCallable updateLiveAppSnapshotConfigCallable(const Model::UpdateLiveAppSnapshotConfigRequest& request) const;
|
||||
VerifyDomainOwnerOutcome verifyDomainOwner(const Model::VerifyDomainOwnerRequest &request)const;
|
||||
void verifyDomainOwnerAsync(const Model::VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyDomainOwnerOutcomeCallable verifyDomainOwnerCallable(const Model::VerifyDomainOwnerRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -35,18 +35,12 @@ namespace AlibabaCloud
|
||||
DescribeRefreshTaskByIdRequest();
|
||||
~DescribeRefreshTaskByIdRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string taskId_;
|
||||
long ownerId_;
|
||||
|
||||
|
||||
@@ -49,16 +49,12 @@ namespace AlibabaCloud
|
||||
~DescribeRefreshTaskByIdResult();
|
||||
long getTotalCount()const;
|
||||
std::vector<CDNTask> getTasks()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::vector<CDNTask> tasks_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_DESCRIBEVERIFYCONTENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_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 DescribeVerifyContentRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifyContentRequest();
|
||||
~DescribeVerifyContentRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_DESCRIBEVERIFYCONTENTRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_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 DescribeVerifyContentResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifyContentResult();
|
||||
explicit DescribeVerifyContentResult(const std::string &payload);
|
||||
~DescribeVerifyContentResult();
|
||||
std::string getContent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_VERIFYDOMAINOWNERREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_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 VerifyDomainOwnerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifyDomainOwnerRequest();
|
||||
~VerifyDomainOwnerRequest();
|
||||
|
||||
std::string getVerifyType()const;
|
||||
void setVerifyType(const std::string& verifyType);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string verifyType_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
|
||||
51
cdn/include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h
Normal file
51
cdn/include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_VERIFYDOMAINOWNERRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_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 VerifyDomainOwnerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VerifyDomainOwnerResult();
|
||||
explicit VerifyDomainOwnerResult(const std::string &payload);
|
||||
~VerifyDomainOwnerResult();
|
||||
std::string getContent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string content_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
|
||||
@@ -4875,6 +4875,42 @@ CdnClient::DescribeUserVipsByDomainOutcomeCallable CdnClient::describeUserVipsBy
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeVerifyContentOutcome CdnClient::describeVerifyContent(const DescribeVerifyContentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifyContentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifyContentOutcome(DescribeVerifyContentResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifyContentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeVerifyContentAsync(const DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifyContent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeVerifyContentOutcomeCallable CdnClient::describeVerifyContentCallable(const DescribeVerifyContentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifyContentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifyContent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DisableRealtimeLogDeliveryOutcome CdnClient::disableRealtimeLogDelivery(const DisableRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7071,3 +7107,39 @@ CdnClient::UpdateLiveAppSnapshotConfigOutcomeCallable CdnClient::updateLiveAppSn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::VerifyDomainOwnerOutcome CdnClient::verifyDomainOwner(const VerifyDomainOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifyDomainOwnerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifyDomainOwnerOutcome(VerifyDomainOwnerResult(outcome.result()));
|
||||
else
|
||||
return VerifyDomainOwnerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::verifyDomainOwnerAsync(const VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifyDomainOwner(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::VerifyDomainOwnerOutcomeCallable CdnClient::verifyDomainOwnerCallable(const VerifyDomainOwnerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifyDomainOwnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifyDomainOwner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,28 +27,6 @@ DescribeRefreshTaskByIdRequest::DescribeRefreshTaskByIdRequest() :
|
||||
DescribeRefreshTaskByIdRequest::~DescribeRefreshTaskByIdRequest()
|
||||
{}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRefreshTaskByIdRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRefreshTaskByIdRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRefreshTaskByIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
|
||||
@@ -59,10 +59,6 @@ void DescribeRefreshTaskByIdResult::parse(const std::string &payload)
|
||||
tasksObject.objectType = valueTasksCDNTask["ObjectType"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
@@ -78,13 +74,3 @@ std::vector<DescribeRefreshTaskByIdResult::CDNTask> DescribeRefreshTaskByIdResul
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeRefreshTaskByIdResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
51
cdn/src/model/DescribeVerifyContentRequest.cc
Normal file
51
cdn/src/model/DescribeVerifyContentRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/DescribeVerifyContentRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeVerifyContentRequest;
|
||||
|
||||
DescribeVerifyContentRequest::DescribeVerifyContentRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeVerifyContent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVerifyContentRequest::~DescribeVerifyContentRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVerifyContentRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeVerifyContentRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeVerifyContentRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeVerifyContentRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
cdn/src/model/DescribeVerifyContentResult.cc
Normal file
51
cdn/src/model/DescribeVerifyContentResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/DescribeVerifyContentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeVerifyContentResult::DescribeVerifyContentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVerifyContentResult::DescribeVerifyContentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVerifyContentResult::~DescribeVerifyContentResult()
|
||||
{}
|
||||
|
||||
void DescribeVerifyContentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVerifyContentResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/VerifyDomainOwnerRequest.cc
Normal file
62
cdn/src/model/VerifyDomainOwnerRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/VerifyDomainOwnerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::VerifyDomainOwnerRequest;
|
||||
|
||||
VerifyDomainOwnerRequest::VerifyDomainOwnerRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "VerifyDomainOwner")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyDomainOwnerRequest::~VerifyDomainOwnerRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyDomainOwnerRequest::getVerifyType()const
|
||||
{
|
||||
return verifyType_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setVerifyType(const std::string& verifyType)
|
||||
{
|
||||
verifyType_ = verifyType;
|
||||
setParameter("VerifyType", verifyType);
|
||||
}
|
||||
|
||||
std::string VerifyDomainOwnerRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long VerifyDomainOwnerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VerifyDomainOwnerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
cdn/src/model/VerifyDomainOwnerResult.cc
Normal file
51
cdn/src/model/VerifyDomainOwnerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/VerifyDomainOwnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
VerifyDomainOwnerResult::VerifyDomainOwnerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifyDomainOwnerResult::VerifyDomainOwnerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifyDomainOwnerResult::~VerifyDomainOwnerResult()
|
||||
{}
|
||||
|
||||
void VerifyDomainOwnerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string VerifyDomainOwnerResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user