This commit is contained in:
sdk-team
2021-03-03 07:06:26 +00:00
parent 1ffa242729
commit aa07136890
200 changed files with 3456 additions and 148 deletions

View File

@@ -411,6 +411,42 @@ DcdnClient::CreateDcdnCertificateSigningRequestOutcomeCallable DcdnClient::creat
return task->get_future();
}
DcdnClient::CreateDcdnDeliverTaskOutcome DcdnClient::createDcdnDeliverTask(const CreateDcdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDcdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDcdnDeliverTaskOutcome(CreateDcdnDeliverTaskResult(outcome.result()));
else
return CreateDcdnDeliverTaskOutcome(outcome.error());
}
void DcdnClient::createDcdnDeliverTaskAsync(const CreateDcdnDeliverTaskRequest& request, const CreateDcdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDcdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::CreateDcdnDeliverTaskOutcomeCallable DcdnClient::createDcdnDeliverTaskCallable(const CreateDcdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDcdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->createDcdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::CreateDcdnDomainOfflineLogDeliveryOutcome DcdnClient::createDcdnDomainOfflineLogDelivery(const CreateDcdnDomainOfflineLogDeliveryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,6 +483,78 @@ DcdnClient::CreateDcdnDomainOfflineLogDeliveryOutcomeCallable DcdnClient::create
return task->get_future();
}
DcdnClient::CreateDcdnSubTaskOutcome DcdnClient::createDcdnSubTask(const CreateDcdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDcdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDcdnSubTaskOutcome(CreateDcdnSubTaskResult(outcome.result()));
else
return CreateDcdnSubTaskOutcome(outcome.error());
}
void DcdnClient::createDcdnSubTaskAsync(const CreateDcdnSubTaskRequest& request, const CreateDcdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDcdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::CreateDcdnSubTaskOutcomeCallable DcdnClient::createDcdnSubTaskCallable(const CreateDcdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDcdnSubTaskOutcome()>>(
[this, request]()
{
return this->createDcdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DeleteDcdnDeliverTaskOutcome DcdnClient::deleteDcdnDeliverTask(const DeleteDcdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDcdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDcdnDeliverTaskOutcome(DeleteDcdnDeliverTaskResult(outcome.result()));
else
return DeleteDcdnDeliverTaskOutcome(outcome.error());
}
void DcdnClient::deleteDcdnDeliverTaskAsync(const DeleteDcdnDeliverTaskRequest& request, const DeleteDcdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDcdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DeleteDcdnDeliverTaskOutcomeCallable DcdnClient::deleteDcdnDeliverTaskCallable(const DeleteDcdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDcdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->deleteDcdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DeleteDcdnDomainOutcome DcdnClient::deleteDcdnDomain(const DeleteDcdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +735,42 @@ DcdnClient::DeleteDcdnSpecificStagingConfigOutcomeCallable DcdnClient::deleteDcd
return task->get_future();
}
DcdnClient::DeleteDcdnSubTaskOutcome DcdnClient::deleteDcdnSubTask(const DeleteDcdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDcdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDcdnSubTaskOutcome(DeleteDcdnSubTaskResult(outcome.result()));
else
return DeleteDcdnSubTaskOutcome(outcome.error());
}
void DcdnClient::deleteDcdnSubTaskAsync(const DeleteDcdnSubTaskRequest& request, const DeleteDcdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDcdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DeleteDcdnSubTaskOutcomeCallable DcdnClient::deleteDcdnSubTaskCallable(const DeleteDcdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDcdnSubTaskOutcome()>>(
[this, request]()
{
return this->deleteDcdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnBgpBpsDataOutcome DcdnClient::describeDcdnBgpBpsData(const DescribeDcdnBgpBpsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,6 +951,42 @@ DcdnClient::DescribeDcdnConfigOfVersionOutcomeCallable DcdnClient::describeDcdnC
return task->get_future();
}
DcdnClient::DescribeDcdnDeliverListOutcome DcdnClient::describeDcdnDeliverList(const DescribeDcdnDeliverListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnDeliverListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnDeliverListOutcome(DescribeDcdnDeliverListResult(outcome.result()));
else
return DescribeDcdnDeliverListOutcome(outcome.error());
}
void DcdnClient::describeDcdnDeliverListAsync(const DescribeDcdnDeliverListRequest& request, const DescribeDcdnDeliverListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnDeliverList(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnDeliverListOutcomeCallable DcdnClient::describeDcdnDeliverListCallable(const DescribeDcdnDeliverListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnDeliverListOutcome()>>(
[this, request]()
{
return this->describeDcdnDeliverList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnDomainBpsDataOutcome DcdnClient::describeDcdnDomainBpsData(const DescribeDcdnDomainBpsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2571,6 +2751,114 @@ DcdnClient::DescribeDcdnRefreshTasksOutcomeCallable DcdnClient::describeDcdnRefr
return task->get_future();
}
DcdnClient::DescribeDcdnRegionAndIspOutcome DcdnClient::describeDcdnRegionAndIsp(const DescribeDcdnRegionAndIspRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnRegionAndIspOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnRegionAndIspOutcome(DescribeDcdnRegionAndIspResult(outcome.result()));
else
return DescribeDcdnRegionAndIspOutcome(outcome.error());
}
void DcdnClient::describeDcdnRegionAndIspAsync(const DescribeDcdnRegionAndIspRequest& request, const DescribeDcdnRegionAndIspAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnRegionAndIsp(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnRegionAndIspOutcomeCallable DcdnClient::describeDcdnRegionAndIspCallable(const DescribeDcdnRegionAndIspRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnRegionAndIspOutcome()>>(
[this, request]()
{
return this->describeDcdnRegionAndIsp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnReportOutcome DcdnClient::describeDcdnReport(const DescribeDcdnReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnReportOutcome(DescribeDcdnReportResult(outcome.result()));
else
return DescribeDcdnReportOutcome(outcome.error());
}
void DcdnClient::describeDcdnReportAsync(const DescribeDcdnReportRequest& request, const DescribeDcdnReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnReport(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnReportOutcomeCallable DcdnClient::describeDcdnReportCallable(const DescribeDcdnReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnReportOutcome()>>(
[this, request]()
{
return this->describeDcdnReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnReportListOutcome DcdnClient::describeDcdnReportList(const DescribeDcdnReportListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnReportListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnReportListOutcome(DescribeDcdnReportListResult(outcome.result()));
else
return DescribeDcdnReportListOutcome(outcome.error());
}
void DcdnClient::describeDcdnReportListAsync(const DescribeDcdnReportListRequest& request, const DescribeDcdnReportListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnReportList(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnReportListOutcomeCallable DcdnClient::describeDcdnReportListCallable(const DescribeDcdnReportListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnReportListOutcome()>>(
[this, request]()
{
return this->describeDcdnReportList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnServiceOutcome DcdnClient::describeDcdnService(const DescribeDcdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2643,6 +2931,42 @@ DcdnClient::DescribeDcdnStagingIpOutcomeCallable DcdnClient::describeDcdnStaging
return task->get_future();
}
DcdnClient::DescribeDcdnSubListOutcome DcdnClient::describeDcdnSubList(const DescribeDcdnSubListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnSubListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnSubListOutcome(DescribeDcdnSubListResult(outcome.result()));
else
return DescribeDcdnSubListOutcome(outcome.error());
}
void DcdnClient::describeDcdnSubListAsync(const DescribeDcdnSubListRequest& request, const DescribeDcdnSubListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnSubList(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnSubListOutcomeCallable DcdnClient::describeDcdnSubListCallable(const DescribeDcdnSubListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnSubListOutcome()>>(
[this, request]()
{
return this->describeDcdnSubList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnTagResourcesOutcome DcdnClient::describeDcdnTagResources(const DescribeDcdnTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2931,6 +3255,42 @@ DcdnClient::DescribeDcdnUserResourcePackageOutcomeCallable DcdnClient::describeD
return task->get_future();
}
DcdnClient::DescribeDcdnUserSecDropOutcome DcdnClient::describeDcdnUserSecDrop(const DescribeDcdnUserSecDropRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnUserSecDropOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnUserSecDropOutcome(DescribeDcdnUserSecDropResult(outcome.result()));
else
return DescribeDcdnUserSecDropOutcome(outcome.error());
}
void DcdnClient::describeDcdnUserSecDropAsync(const DescribeDcdnUserSecDropRequest& request, const DescribeDcdnUserSecDropAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnUserSecDrop(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnUserSecDropOutcomeCallable DcdnClient::describeDcdnUserSecDropCallable(const DescribeDcdnUserSecDropRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnUserSecDropOutcome()>>(
[this, request]()
{
return this->describeDcdnUserSecDrop(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnUserTagsOutcome DcdnClient::describeDcdnUserTags(const DescribeDcdnUserTagsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3255,42 +3615,6 @@ DcdnClient::ModifyDCdnDomainSchdmByPropertyOutcomeCallable DcdnClient::modifyDCd
return task->get_future();
}
DcdnClient::ModifyDcdnServiceOutcome DcdnClient::modifyDcdnService(const ModifyDcdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDcdnServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDcdnServiceOutcome(ModifyDcdnServiceResult(outcome.result()));
else
return ModifyDcdnServiceOutcome(outcome.error());
}
void DcdnClient::modifyDcdnServiceAsync(const ModifyDcdnServiceRequest& request, const ModifyDcdnServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDcdnService(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::ModifyDcdnServiceOutcomeCallable DcdnClient::modifyDcdnServiceCallable(const ModifyDcdnServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDcdnServiceOutcome()>>(
[this, request]()
{
return this->modifyDcdnService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::OpenDcdnServiceOutcome DcdnClient::openDcdnService(const OpenDcdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3831,6 +4155,42 @@ DcdnClient::UntagDcdnResourcesOutcomeCallable DcdnClient::untagDcdnResourcesCall
return task->get_future();
}
DcdnClient::UpdateDcdnDeliverTaskOutcome DcdnClient::updateDcdnDeliverTask(const UpdateDcdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDcdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDcdnDeliverTaskOutcome(UpdateDcdnDeliverTaskResult(outcome.result()));
else
return UpdateDcdnDeliverTaskOutcome(outcome.error());
}
void DcdnClient::updateDcdnDeliverTaskAsync(const UpdateDcdnDeliverTaskRequest& request, const UpdateDcdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDcdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::UpdateDcdnDeliverTaskOutcomeCallable DcdnClient::updateDcdnDeliverTaskCallable(const UpdateDcdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDcdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->updateDcdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::UpdateDcdnDomainOutcome DcdnClient::updateDcdnDomain(const UpdateDcdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3903,6 +4263,42 @@ DcdnClient::UpdateDcdnIpaDomainOutcomeCallable DcdnClient::updateDcdnIpaDomainCa
return task->get_future();
}
DcdnClient::UpdateDcdnSubTaskOutcome DcdnClient::updateDcdnSubTask(const UpdateDcdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDcdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDcdnSubTaskOutcome(UpdateDcdnSubTaskResult(outcome.result()));
else
return UpdateDcdnSubTaskOutcome(outcome.error());
}
void DcdnClient::updateDcdnSubTaskAsync(const UpdateDcdnSubTaskRequest& request, const UpdateDcdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDcdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::UpdateDcdnSubTaskOutcomeCallable DcdnClient::updateDcdnSubTaskCallable(const UpdateDcdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDcdnSubTaskOutcome()>>(
[this, request]()
{
return this->updateDcdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::VerifyDcdnDomainOwnerOutcome DcdnClient::verifyDcdnDomainOwner(const VerifyDcdnDomainOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,106 @@
/*
* 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/CreateDcdnDeliverTaskRequest.h>
using AlibabaCloud::Dcdn::Model::CreateDcdnDeliverTaskRequest;
CreateDcdnDeliverTaskRequest::CreateDcdnDeliverTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "CreateDcdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateDcdnDeliverTaskRequest::~CreateDcdnDeliverTaskRequest()
{}
std::string CreateDcdnDeliverTaskRequest::getReports()const
{
return reports_;
}
void CreateDcdnDeliverTaskRequest::setReports(const std::string& reports)
{
reports_ = reports;
setBodyParameter("Reports", reports);
}
std::string CreateDcdnDeliverTaskRequest::getDeliver()const
{
return deliver_;
}
void CreateDcdnDeliverTaskRequest::setDeliver(const std::string& deliver)
{
deliver_ = deliver;
setBodyParameter("Deliver", deliver);
}
std::string CreateDcdnDeliverTaskRequest::getDomainName()const
{
return domainName_;
}
void CreateDcdnDeliverTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
long CreateDcdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDcdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDcdnDeliverTaskRequest::getSchedule()const
{
return schedule_;
}
void CreateDcdnDeliverTaskRequest::setSchedule(const std::string& schedule)
{
schedule_ = schedule;
setBodyParameter("Schedule", schedule);
}
std::string CreateDcdnDeliverTaskRequest::getName()const
{
return name_;
}
void CreateDcdnDeliverTaskRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateDcdnDeliverTaskRequest::getStatus()const
{
return status_;
}
void CreateDcdnDeliverTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

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

View File

@@ -0,0 +1,95 @@
/*
* 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/CreateDcdnSubTaskRequest.h>
using AlibabaCloud::Dcdn::Model::CreateDcdnSubTaskRequest;
CreateDcdnSubTaskRequest::CreateDcdnSubTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "CreateDcdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateDcdnSubTaskRequest::~CreateDcdnSubTaskRequest()
{}
std::string CreateDcdnSubTaskRequest::getStartTime()const
{
return startTime_;
}
void CreateDcdnSubTaskRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string CreateDcdnSubTaskRequest::getDomainName()const
{
return domainName_;
}
void CreateDcdnSubTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
std::string CreateDcdnSubTaskRequest::getEndTime()const
{
return endTime_;
}
void CreateDcdnSubTaskRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
long CreateDcdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDcdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDcdnSubTaskRequest::getReportIds()const
{
return reportIds_;
}
void CreateDcdnSubTaskRequest::setReportIds(const std::string& reportIds)
{
reportIds_ = reportIds;
setBodyParameter("ReportIds", reportIds);
}
std::string CreateDcdnSubTaskRequest::getStatus()const
{
return status_;
}
void CreateDcdnSubTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/ModifyDcdnServiceResult.h>
#include <alibabacloud/dcdn/model/CreateDcdnSubTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
ModifyDcdnServiceResult::ModifyDcdnServiceResult() :
CreateDcdnSubTaskResult::CreateDcdnSubTaskResult() :
ServiceResult()
{}
ModifyDcdnServiceResult::ModifyDcdnServiceResult(const std::string &payload) :
CreateDcdnSubTaskResult::CreateDcdnSubTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDcdnServiceResult::~ModifyDcdnServiceResult()
CreateDcdnSubTaskResult::~CreateDcdnSubTaskResult()
{}
void ModifyDcdnServiceResult::parse(const std::string &payload)
void CreateDcdnSubTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View 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/dcdn/model/DeleteDcdnDeliverTaskRequest.h>
using AlibabaCloud::Dcdn::Model::DeleteDcdnDeliverTaskRequest;
DeleteDcdnDeliverTaskRequest::DeleteDcdnDeliverTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DeleteDcdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDcdnDeliverTaskRequest::~DeleteDcdnDeliverTaskRequest()
{}
long DeleteDcdnDeliverTaskRequest::getDeliverId()const
{
return deliverId_;
}
void DeleteDcdnDeliverTaskRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setParameter("DeliverId", std::to_string(deliverId));
}
long DeleteDcdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteDcdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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

View File

@@ -0,0 +1,40 @@
/*
* 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/DeleteDcdnSubTaskRequest.h>
using AlibabaCloud::Dcdn::Model::DeleteDcdnSubTaskRequest;
DeleteDcdnSubTaskRequest::DeleteDcdnSubTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DeleteDcdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDcdnSubTaskRequest::~DeleteDcdnSubTaskRequest()
{}
long DeleteDcdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteDcdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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

View 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/dcdn/model/DescribeDcdnDeliverListRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnDeliverListRequest;
DescribeDcdnDeliverListRequest::DescribeDcdnDeliverListRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDeliverList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnDeliverListRequest::~DescribeDcdnDeliverListRequest()
{}
long DescribeDcdnDeliverListRequest::getDeliverId()const
{
return deliverId_;
}
void DescribeDcdnDeliverListRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setParameter("DeliverId", std::to_string(deliverId));
}
long DescribeDcdnDeliverListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnDeliverListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnDeliverListRequest::getStatus()const
{
return status_;
}
void DescribeDcdnDeliverListRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View 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/dcdn/model/DescribeDcdnDeliverListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnDeliverListResult::DescribeDcdnDeliverListResult() :
ServiceResult()
{}
DescribeDcdnDeliverListResult::DescribeDcdnDeliverListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnDeliverListResult::~DescribeDcdnDeliverListResult()
{}
void DescribeDcdnDeliverListResult::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 DescribeDcdnDeliverListResult::getContent()const
{
return content_;
}

View 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/dcdn/model/DescribeDcdnRegionAndIspRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnRegionAndIspRequest;
DescribeDcdnRegionAndIspRequest::DescribeDcdnRegionAndIspRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnRegionAndIsp")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnRegionAndIspRequest::~DescribeDcdnRegionAndIspRequest()
{}
long DescribeDcdnRegionAndIspRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnRegionAndIspRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnRegionAndIspRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDcdnRegionAndIspRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -0,0 +1,74 @@
/*
* 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/DescribeDcdnRegionAndIspResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnRegionAndIspResult::DescribeDcdnRegionAndIspResult() :
ServiceResult()
{}
DescribeDcdnRegionAndIspResult::DescribeDcdnRegionAndIspResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnRegionAndIspResult::~DescribeDcdnRegionAndIspResult()
{}
void DescribeDcdnRegionAndIspResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["Region"];
for (auto valueRegionsRegion : allRegionsNode)
{
Region regionsObject;
if(!valueRegionsRegion["NameZh"].isNull())
regionsObject.nameZh = valueRegionsRegion["NameZh"].asString();
if(!valueRegionsRegion["NameEn"].isNull())
regionsObject.nameEn = valueRegionsRegion["NameEn"].asString();
regions_.push_back(regionsObject);
}
auto allIspsNode = value["Isps"]["Isp"];
for (auto valueIspsIsp : allIspsNode)
{
Isp ispsObject;
if(!valueIspsIsp["NameZh"].isNull())
ispsObject.nameZh = valueIspsIsp["NameZh"].asString();
if(!valueIspsIsp["NameEn"].isNull())
ispsObject.nameEn = valueIspsIsp["NameEn"].asString();
isps_.push_back(ispsObject);
}
}
std::vector<DescribeDcdnRegionAndIspResult::Region> DescribeDcdnRegionAndIspResult::getRegions()const
{
return regions_;
}
std::vector<DescribeDcdnRegionAndIspResult::Isp> DescribeDcdnRegionAndIspResult::getIsps()const
{
return isps_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/DescribeDcdnReportListRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnReportListRequest;
DescribeDcdnReportListRequest::DescribeDcdnReportListRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnReportList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnReportListRequest::~DescribeDcdnReportListRequest()
{}
long DescribeDcdnReportListRequest::getReportId()const
{
return reportId_;
}
void DescribeDcdnReportListRequest::setReportId(long reportId)
{
reportId_ = reportId;
setParameter("ReportId", std::to_string(reportId));
}
std::string DescribeDcdnReportListRequest::getPermission()const
{
return permission_;
}
void DescribeDcdnReportListRequest::setPermission(const std::string& permission)
{
permission_ = permission;
setParameter("Permission", permission);
}
long DescribeDcdnReportListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnReportListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnReportListRequest::getStatus()const
{
return status_;
}
void DescribeDcdnReportListRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View 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/dcdn/model/DescribeDcdnReportListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnReportListResult::DescribeDcdnReportListResult() :
ServiceResult()
{}
DescribeDcdnReportListResult::DescribeDcdnReportListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnReportListResult::~DescribeDcdnReportListResult()
{}
void DescribeDcdnReportListResult::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 DescribeDcdnReportListResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/DescribeDcdnReportRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnReportRequest;
DescribeDcdnReportRequest::DescribeDcdnReportRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnReport")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnReportRequest::~DescribeDcdnReportRequest()
{}
long DescribeDcdnReportRequest::getReportId()const
{
return reportId_;
}
void DescribeDcdnReportRequest::setReportId(long reportId)
{
reportId_ = reportId;
setParameter("ReportId", std::to_string(reportId));
}
std::string DescribeDcdnReportRequest::getStartTime()const
{
return startTime_;
}
void DescribeDcdnReportRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDcdnReportRequest::getArea()const
{
return area_;
}
void DescribeDcdnReportRequest::setArea(const std::string& area)
{
area_ = area;
setParameter("Area", area);
}
std::string DescribeDcdnReportRequest::getDomainName()const
{
return domainName_;
}
void DescribeDcdnReportRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDcdnReportRequest::getEndTime()const
{
return endTime_;
}
void DescribeDcdnReportRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDcdnReportRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnReportRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnReportRequest::getHttpCode()const
{
return httpCode_;
}
void DescribeDcdnReportRequest::setHttpCode(const std::string& httpCode)
{
httpCode_ = httpCode;
setParameter("HttpCode", httpCode);
}
std::string DescribeDcdnReportRequest::getIsOverseas()const
{
return isOverseas_;
}
void DescribeDcdnReportRequest::setIsOverseas(const std::string& isOverseas)
{
isOverseas_ = isOverseas;
setParameter("IsOverseas", isOverseas);
}

View 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/dcdn/model/DescribeDcdnReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnReportResult::DescribeDcdnReportResult() :
ServiceResult()
{}
DescribeDcdnReportResult::DescribeDcdnReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnReportResult::~DescribeDcdnReportResult()
{}
void DescribeDcdnReportResult::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 DescribeDcdnReportResult::getContent()const
{
return content_;
}

View 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/dcdn/model/DescribeDcdnSubListRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnSubListRequest;
DescribeDcdnSubListRequest::DescribeDcdnSubListRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnSubList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnSubListRequest::~DescribeDcdnSubListRequest()
{}
long DescribeDcdnSubListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnSubListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnSubListRequest::getStatus()const
{
return status_;
}
void DescribeDcdnSubListRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View 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/dcdn/model/DescribeDcdnSubListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnSubListResult::DescribeDcdnSubListResult() :
ServiceResult()
{}
DescribeDcdnSubListResult::DescribeDcdnSubListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnSubListResult::~DescribeDcdnSubListResult()
{}
void DescribeDcdnSubListResult::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 DescribeDcdnSubListResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/DescribeDcdnUserSecDropRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnUserSecDropRequest;
DescribeDcdnUserSecDropRequest::DescribeDcdnUserSecDropRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserSecDrop")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnUserSecDropRequest::~DescribeDcdnUserSecDropRequest()
{}
std::string DescribeDcdnUserSecDropRequest::getData()const
{
return data_;
}
void DescribeDcdnUserSecDropRequest::setData(const std::string& data)
{
data_ = data;
setParameter("Data", data);
}
long DescribeDcdnUserSecDropRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnUserSecDropRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDcdnUserSecDropRequest::getMetric()const
{
return metric_;
}
void DescribeDcdnUserSecDropRequest::setMetric(const std::string& metric)
{
metric_ = metric;
setParameter("Metric", metric);
}
std::string DescribeDcdnUserSecDropRequest::getSecFunc()const
{
return secFunc_;
}
void DescribeDcdnUserSecDropRequest::setSecFunc(const std::string& secFunc)
{
secFunc_ = secFunc;
setParameter("SecFunc", secFunc);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/DescribeDcdnUserSecDropResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnUserSecDropResult::DescribeDcdnUserSecDropResult() :
ServiceResult()
{}
DescribeDcdnUserSecDropResult::DescribeDcdnUserSecDropResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnUserSecDropResult::~DescribeDcdnUserSecDropResult()
{}
void DescribeDcdnUserSecDropResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Drops"].isNull())
drops_ = std::stoi(value["Drops"].asString());
if(!value["Msg"].isNull())
msg_ = value["Msg"].asString();
if(!value["UuidStr"].isNull())
uuidStr_ = value["UuidStr"].asString();
}
std::string DescribeDcdnUserSecDropResult::getMsg()const
{
return msg_;
}
int DescribeDcdnUserSecDropResult::getDrops()const
{
return drops_;
}
std::string DescribeDcdnUserSecDropResult::getUuidStr()const
{
return uuidStr_;
}

View File

@@ -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/dcdn/model/ModifyDcdnServiceRequest.h>
using AlibabaCloud::Dcdn::Model::ModifyDcdnServiceRequest;
ModifyDcdnServiceRequest::ModifyDcdnServiceRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "ModifyDcdnService")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDcdnServiceRequest::~ModifyDcdnServiceRequest()
{}
std::string ModifyDcdnServiceRequest::getWebsocketBillType()const
{
return websocketBillType_;
}
void ModifyDcdnServiceRequest::setWebsocketBillType(const std::string& websocketBillType)
{
websocketBillType_ = websocketBillType;
setParameter("WebsocketBillType", websocketBillType);
}
std::string ModifyDcdnServiceRequest::getBillType()const
{
return billType_;
}
void ModifyDcdnServiceRequest::setBillType(const std::string& billType)
{
billType_ = billType;
setParameter("BillType", billType);
}
std::string ModifyDcdnServiceRequest::getSecurityToken()const
{
return securityToken_;
}
void ModifyDcdnServiceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
long ModifyDcdnServiceRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDcdnServiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,117 @@
/*
* 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/UpdateDcdnDeliverTaskRequest.h>
using AlibabaCloud::Dcdn::Model::UpdateDcdnDeliverTaskRequest;
UpdateDcdnDeliverTaskRequest::UpdateDcdnDeliverTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "UpdateDcdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDcdnDeliverTaskRequest::~UpdateDcdnDeliverTaskRequest()
{}
std::string UpdateDcdnDeliverTaskRequest::getReports()const
{
return reports_;
}
void UpdateDcdnDeliverTaskRequest::setReports(const std::string& reports)
{
reports_ = reports;
setBodyParameter("Reports", reports);
}
std::string UpdateDcdnDeliverTaskRequest::getDeliver()const
{
return deliver_;
}
void UpdateDcdnDeliverTaskRequest::setDeliver(const std::string& deliver)
{
deliver_ = deliver;
setBodyParameter("Deliver", deliver);
}
long UpdateDcdnDeliverTaskRequest::getDeliverId()const
{
return deliverId_;
}
void UpdateDcdnDeliverTaskRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setBodyParameter("DeliverId", std::to_string(deliverId));
}
std::string UpdateDcdnDeliverTaskRequest::getDomainName()const
{
return domainName_;
}
void UpdateDcdnDeliverTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
long UpdateDcdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateDcdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateDcdnDeliverTaskRequest::getSchedule()const
{
return schedule_;
}
void UpdateDcdnDeliverTaskRequest::setSchedule(const std::string& schedule)
{
schedule_ = schedule;
setBodyParameter("Schedule", schedule);
}
std::string UpdateDcdnDeliverTaskRequest::getName()const
{
return name_;
}
void UpdateDcdnDeliverTaskRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string UpdateDcdnDeliverTaskRequest::getStatus()const
{
return status_;
}
void UpdateDcdnDeliverTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

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

View File

@@ -0,0 +1,95 @@
/*
* 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/UpdateDcdnSubTaskRequest.h>
using AlibabaCloud::Dcdn::Model::UpdateDcdnSubTaskRequest;
UpdateDcdnSubTaskRequest::UpdateDcdnSubTaskRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "UpdateDcdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDcdnSubTaskRequest::~UpdateDcdnSubTaskRequest()
{}
std::string UpdateDcdnSubTaskRequest::getStartTime()const
{
return startTime_;
}
void UpdateDcdnSubTaskRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string UpdateDcdnSubTaskRequest::getDomainName()const
{
return domainName_;
}
void UpdateDcdnSubTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
std::string UpdateDcdnSubTaskRequest::getEndTime()const
{
return endTime_;
}
void UpdateDcdnSubTaskRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
long UpdateDcdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateDcdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateDcdnSubTaskRequest::getReportIds()const
{
return reportIds_;
}
void UpdateDcdnSubTaskRequest::setReportIds(const std::string& reportIds)
{
reportIds_ = reportIds;
setBodyParameter("ReportIds", reportIds);
}
std::string UpdateDcdnSubTaskRequest::getStatus()const
{
return status_;
}
void UpdateDcdnSubTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

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