Delete live API.

This commit is contained in:
sdk-team
2021-05-10 02:41:10 +00:00
parent 131a52ee78
commit 01a8086b8f
62 changed files with 2817 additions and 1112 deletions

View File

@@ -159,42 +159,6 @@ CdnClient::AddLiveAppRecordConfigOutcomeCallable CdnClient::addLiveAppRecordConf
return task->get_future();
}
CdnClient::AddLiveStreamTranscodeOutcome CdnClient::addLiveStreamTranscode(const AddLiveStreamTranscodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLiveStreamTranscodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLiveStreamTranscodeOutcome(AddLiveStreamTranscodeResult(outcome.result()));
else
return AddLiveStreamTranscodeOutcome(outcome.error());
}
void CdnClient::addLiveStreamTranscodeAsync(const AddLiveStreamTranscodeRequest& request, const AddLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLiveStreamTranscode(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::AddLiveStreamTranscodeOutcomeCallable CdnClient::addLiveStreamTranscodeCallable(const AddLiveStreamTranscodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLiveStreamTranscodeOutcome()>>(
[this, request]()
{
return this->addLiveStreamTranscode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::BatchAddCdnDomainOutcome CdnClient::batchAddCdnDomain(const BatchAddCdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +447,78 @@ CdnClient::CreateCdnCertificateSigningRequestOutcomeCallable CdnClient::createCd
return task->get_future();
}
CdnClient::CreateCdnDeliverTaskOutcome CdnClient::createCdnDeliverTask(const CreateCdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCdnDeliverTaskOutcome(CreateCdnDeliverTaskResult(outcome.result()));
else
return CreateCdnDeliverTaskOutcome(outcome.error());
}
void CdnClient::createCdnDeliverTaskAsync(const CreateCdnDeliverTaskRequest& request, const CreateCdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::CreateCdnDeliverTaskOutcomeCallable CdnClient::createCdnDeliverTaskCallable(const CreateCdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->createCdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::CreateCdnSubTaskOutcome CdnClient::createCdnSubTask(const CreateCdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateCdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateCdnSubTaskOutcome(CreateCdnSubTaskResult(outcome.result()));
else
return CreateCdnSubTaskOutcome(outcome.error());
}
void CdnClient::createCdnSubTaskAsync(const CreateCdnSubTaskRequest& request, const CreateCdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createCdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::CreateCdnSubTaskOutcomeCallable CdnClient::createCdnSubTaskCallable(const CreateCdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateCdnSubTaskOutcome()>>(
[this, request]()
{
return this->createCdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::CreateIllegalUrlExportTaskOutcome CdnClient::createIllegalUrlExportTask(const CreateIllegalUrlExportTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +735,42 @@ CdnClient::DeleteCacheExpiredConfigOutcomeCallable CdnClient::deleteCacheExpired
return task->get_future();
}
CdnClient::DeleteCdnDeliverTaskOutcome CdnClient::deleteCdnDeliverTask(const DeleteCdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteCdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteCdnDeliverTaskOutcome(DeleteCdnDeliverTaskResult(outcome.result()));
else
return DeleteCdnDeliverTaskOutcome(outcome.error());
}
void CdnClient::deleteCdnDeliverTaskAsync(const DeleteCdnDeliverTaskRequest& request, const DeleteCdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteCdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DeleteCdnDeliverTaskOutcomeCallable CdnClient::deleteCdnDeliverTaskCallable(const DeleteCdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteCdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->deleteCdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DeleteCdnDomainOutcome CdnClient::deleteCdnDomain(const DeleteCdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,6 +807,42 @@ CdnClient::DeleteCdnDomainOutcomeCallable CdnClient::deleteCdnDomainCallable(con
return task->get_future();
}
CdnClient::DeleteCdnSubTaskOutcome CdnClient::deleteCdnSubTask(const DeleteCdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteCdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteCdnSubTaskOutcome(DeleteCdnSubTaskResult(outcome.result()));
else
return DeleteCdnSubTaskOutcome(outcome.error());
}
void CdnClient::deleteCdnSubTaskAsync(const DeleteCdnSubTaskRequest& request, const DeleteCdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteCdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DeleteCdnSubTaskOutcomeCallable CdnClient::deleteCdnSubTaskCallable(const DeleteCdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteCdnSubTaskOutcome()>>(
[this, request]()
{
return this->deleteCdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DeleteFCTriggerOutcome CdnClient::deleteFCTrigger(const DeleteFCTriggerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1203,42 @@ CdnClient::DescribeCdnCertificateListOutcomeCallable CdnClient::describeCdnCerti
return task->get_future();
}
CdnClient::DescribeCdnDeliverListOutcome CdnClient::describeCdnDeliverList(const DescribeCdnDeliverListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnDeliverListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnDeliverListOutcome(DescribeCdnDeliverListResult(outcome.result()));
else
return DescribeCdnDeliverListOutcome(outcome.error());
}
void CdnClient::describeCdnDeliverListAsync(const DescribeCdnDeliverListRequest& request, const DescribeCdnDeliverListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnDeliverList(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnDeliverListOutcomeCallable CdnClient::describeCdnDeliverListCallable(const DescribeCdnDeliverListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnDeliverListOutcome()>>(
[this, request]()
{
return this->describeCdnDeliverList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnDomainByCertificateOutcome CdnClient::describeCdnDomainByCertificate(const DescribeCdnDomainByCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1383,6 +1527,78 @@ CdnClient::DescribeCdnRegionAndIspOutcomeCallable CdnClient::describeCdnRegionAn
return task->get_future();
}
CdnClient::DescribeCdnReportOutcome CdnClient::describeCdnReport(const DescribeCdnReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnReportOutcome(DescribeCdnReportResult(outcome.result()));
else
return DescribeCdnReportOutcome(outcome.error());
}
void CdnClient::describeCdnReportAsync(const DescribeCdnReportRequest& request, const DescribeCdnReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnReport(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnReportOutcomeCallable CdnClient::describeCdnReportCallable(const DescribeCdnReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnReportOutcome()>>(
[this, request]()
{
return this->describeCdnReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnReportListOutcome CdnClient::describeCdnReportList(const DescribeCdnReportListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnReportListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnReportListOutcome(DescribeCdnReportListResult(outcome.result()));
else
return DescribeCdnReportListOutcome(outcome.error());
}
void CdnClient::describeCdnReportListAsync(const DescribeCdnReportListRequest& request, const DescribeCdnReportListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnReportList(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnReportListOutcomeCallable CdnClient::describeCdnReportListCallable(const DescribeCdnReportListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnReportListOutcome()>>(
[this, request]()
{
return this->describeCdnReportList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnServiceOutcome CdnClient::describeCdnService(const DescribeCdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1635,42 @@ CdnClient::DescribeCdnServiceOutcomeCallable CdnClient::describeCdnServiceCallab
return task->get_future();
}
CdnClient::DescribeCdnSubListOutcome CdnClient::describeCdnSubList(const DescribeCdnSubListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCdnSubListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCdnSubListOutcome(DescribeCdnSubListResult(outcome.result()));
else
return DescribeCdnSubListOutcome(outcome.error());
}
void CdnClient::describeCdnSubListAsync(const DescribeCdnSubListRequest& request, const DescribeCdnSubListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCdnSubList(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeCdnSubListOutcomeCallable CdnClient::describeCdnSubListCallable(const DescribeCdnSubListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCdnSubListOutcome()>>(
[this, request]()
{
return this->describeCdnSubList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeCdnTypesOutcome CdnClient::describeCdnTypes(const DescribeCdnTypesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3615,6 +3867,78 @@ CdnClient::DescribeDomainsUsageByDayOutcomeCallable CdnClient::describeDomainsUs
return task->get_future();
}
CdnClient::DescribeEsExceptionDataOutcome CdnClient::describeEsExceptionData(const DescribeEsExceptionDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeEsExceptionDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeEsExceptionDataOutcome(DescribeEsExceptionDataResult(outcome.result()));
else
return DescribeEsExceptionDataOutcome(outcome.error());
}
void CdnClient::describeEsExceptionDataAsync(const DescribeEsExceptionDataRequest& request, const DescribeEsExceptionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeEsExceptionData(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeEsExceptionDataOutcomeCallable CdnClient::describeEsExceptionDataCallable(const DescribeEsExceptionDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeEsExceptionDataOutcome()>>(
[this, request]()
{
return this->describeEsExceptionData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeEsExecuteDataOutcome CdnClient::describeEsExecuteData(const DescribeEsExecuteDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeEsExecuteDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeEsExecuteDataOutcome(DescribeEsExecuteDataResult(outcome.result()));
else
return DescribeEsExecuteDataOutcome(outcome.error());
}
void CdnClient::describeEsExecuteDataAsync(const DescribeEsExecuteDataRequest& request, const DescribeEsExecuteDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeEsExecuteData(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeEsExecuteDataOutcomeCallable CdnClient::describeEsExecuteDataCallable(const DescribeEsExecuteDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeEsExecuteDataOutcome()>>(
[this, request]()
{
return this->describeEsExecuteData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeFCTriggerOutcome CdnClient::describeFCTrigger(const DescribeFCTriggerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5379,42 +5703,6 @@ CdnClient::ModifyDomainCustomLogConfigOutcomeCallable CdnClient::modifyDomainCus
return task->get_future();
}
CdnClient::ModifyPathCacheExpiredConfigOutcome CdnClient::modifyPathCacheExpiredConfig(const ModifyPathCacheExpiredConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyPathCacheExpiredConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyPathCacheExpiredConfigOutcome(ModifyPathCacheExpiredConfigResult(outcome.result()));
else
return ModifyPathCacheExpiredConfigOutcome(outcome.error());
}
void CdnClient::modifyPathCacheExpiredConfigAsync(const ModifyPathCacheExpiredConfigRequest& request, const ModifyPathCacheExpiredConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyPathCacheExpiredConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::ModifyPathCacheExpiredConfigOutcomeCallable CdnClient::modifyPathCacheExpiredConfigCallable(const ModifyPathCacheExpiredConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyPathCacheExpiredConfigOutcome()>>(
[this, request]()
{
return this->modifyPathCacheExpiredConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::ModifyRealtimeLogDeliveryOutcome CdnClient::modifyRealtimeLogDelivery(const ModifyRealtimeLogDeliveryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5451,42 +5739,6 @@ CdnClient::ModifyRealtimeLogDeliveryOutcomeCallable CdnClient::modifyRealtimeLog
return task->get_future();
}
CdnClient::ModifyUserCustomLogConfigOutcome CdnClient::modifyUserCustomLogConfig(const ModifyUserCustomLogConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyUserCustomLogConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyUserCustomLogConfigOutcome(ModifyUserCustomLogConfigResult(outcome.result()));
else
return ModifyUserCustomLogConfigOutcome(outcome.error());
}
void CdnClient::modifyUserCustomLogConfigAsync(const ModifyUserCustomLogConfigRequest& request, const ModifyUserCustomLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyUserCustomLogConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::ModifyUserCustomLogConfigOutcomeCallable CdnClient::modifyUserCustomLogConfigCallable(const ModifyUserCustomLogConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyUserCustomLogConfigOutcome()>>(
[this, request]()
{
return this->modifyUserCustomLogConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::OpenCdnServiceOutcome CdnClient::openCdnService(const OpenCdnServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5919,42 +6171,6 @@ CdnClient::SetDomainServerCertificateOutcomeCallable CdnClient::setDomainServerC
return task->get_future();
}
CdnClient::SetErrorPageConfigOutcome CdnClient::setErrorPageConfig(const SetErrorPageConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetErrorPageConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetErrorPageConfigOutcome(SetErrorPageConfigResult(outcome.result()));
else
return SetErrorPageConfigOutcome(outcome.error());
}
void CdnClient::setErrorPageConfigAsync(const SetErrorPageConfigRequest& request, const SetErrorPageConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setErrorPageConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::SetErrorPageConfigOutcomeCallable CdnClient::setErrorPageConfigCallable(const SetErrorPageConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetErrorPageConfigOutcome()>>(
[this, request]()
{
return this->setErrorPageConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::SetFileCacheExpiredConfigOutcome CdnClient::setFileCacheExpiredConfig(const SetFileCacheExpiredConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6063,42 +6279,6 @@ CdnClient::SetForwardSchemeConfigOutcomeCallable CdnClient::setForwardSchemeConf
return task->get_future();
}
CdnClient::SetHttpErrorPageConfigOutcome CdnClient::setHttpErrorPageConfig(const SetHttpErrorPageConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetHttpErrorPageConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetHttpErrorPageConfigOutcome(SetHttpErrorPageConfigResult(outcome.result()));
else
return SetHttpErrorPageConfigOutcome(outcome.error());
}
void CdnClient::setHttpErrorPageConfigAsync(const SetHttpErrorPageConfigRequest& request, const SetHttpErrorPageConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setHttpErrorPageConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::SetHttpErrorPageConfigOutcomeCallable CdnClient::setHttpErrorPageConfigCallable(const SetHttpErrorPageConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetHttpErrorPageConfigOutcome()>>(
[this, request]()
{
return this->setHttpErrorPageConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::SetHttpHeaderConfigOutcome CdnClient::setHttpHeaderConfig(const SetHttpHeaderConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6603,42 +6783,6 @@ CdnClient::SetSourceHostConfigOutcomeCallable CdnClient::setSourceHostConfigCall
return task->get_future();
}
CdnClient::SetVideoSeekConfigOutcome CdnClient::setVideoSeekConfig(const SetVideoSeekConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetVideoSeekConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetVideoSeekConfigOutcome(SetVideoSeekConfigResult(outcome.result()));
else
return SetVideoSeekConfigOutcome(outcome.error());
}
void CdnClient::setVideoSeekConfigAsync(const SetVideoSeekConfigRequest& request, const SetVideoSeekConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setVideoSeekConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::SetVideoSeekConfigOutcomeCallable CdnClient::setVideoSeekConfigCallable(const SetVideoSeekConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetVideoSeekConfigOutcome()>>(
[this, request]()
{
return this->setVideoSeekConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::SetWaitingRoomConfigOutcome CdnClient::setWaitingRoomConfig(const SetWaitingRoomConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6819,6 +6963,78 @@ CdnClient::UntagResourcesOutcomeCallable CdnClient::untagResourcesCallable(const
return task->get_future();
}
CdnClient::UpdateCdnDeliverTaskOutcome CdnClient::updateCdnDeliverTask(const UpdateCdnDeliverTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCdnDeliverTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCdnDeliverTaskOutcome(UpdateCdnDeliverTaskResult(outcome.result()));
else
return UpdateCdnDeliverTaskOutcome(outcome.error());
}
void CdnClient::updateCdnDeliverTaskAsync(const UpdateCdnDeliverTaskRequest& request, const UpdateCdnDeliverTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCdnDeliverTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::UpdateCdnDeliverTaskOutcomeCallable CdnClient::updateCdnDeliverTaskCallable(const UpdateCdnDeliverTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCdnDeliverTaskOutcome()>>(
[this, request]()
{
return this->updateCdnDeliverTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::UpdateCdnSubTaskOutcome CdnClient::updateCdnSubTask(const UpdateCdnSubTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCdnSubTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCdnSubTaskOutcome(UpdateCdnSubTaskResult(outcome.result()));
else
return UpdateCdnSubTaskOutcome(outcome.error());
}
void CdnClient::updateCdnSubTaskAsync(const UpdateCdnSubTaskRequest& request, const UpdateCdnSubTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCdnSubTask(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::UpdateCdnSubTaskOutcomeCallable CdnClient::updateCdnSubTaskCallable(const UpdateCdnSubTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCdnSubTaskOutcome()>>(
[this, request]()
{
return this->updateCdnSubTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::UpdateFCTriggerOutcome CdnClient::updateFCTrigger(const UpdateFCTriggerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/AddLiveStreamTranscodeRequest.h>
using AlibabaCloud::Cdn::Model::AddLiveStreamTranscodeRequest;
AddLiveStreamTranscodeRequest::AddLiveStreamTranscodeRequest() :
RpcServiceRequest("cdn", "2014-11-11", "AddLiveStreamTranscode")
{
setMethod(HttpRequest::Method::Post);
}
AddLiveStreamTranscodeRequest::~AddLiveStreamTranscodeRequest()
{}
std::string AddLiveStreamTranscodeRequest::get_Template()const
{
return _template_;
}
void AddLiveStreamTranscodeRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
std::string AddLiveStreamTranscodeRequest::getSecurityToken()const
{
return securityToken_;
}
void AddLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string AddLiveStreamTranscodeRequest::getRecord()const
{
return record_;
}
void AddLiveStreamTranscodeRequest::setRecord(const std::string& record)
{
record_ = record;
setParameter("Record", record);
}
std::string AddLiveStreamTranscodeRequest::getApp()const
{
return app_;
}
void AddLiveStreamTranscodeRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string AddLiveStreamTranscodeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddLiveStreamTranscodeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveStreamTranscodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveStreamTranscodeRequest::getDomain()const
{
return domain_;
}
void AddLiveStreamTranscodeRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string AddLiveStreamTranscodeRequest::getSnapshot()const
{
return snapshot_;
}
void AddLiveStreamTranscodeRequest::setSnapshot(const std::string& snapshot)
{
snapshot_ = snapshot;
setParameter("Snapshot", snapshot);
}

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/cdn/model/CreateCdnDeliverTaskRequest.h>
using AlibabaCloud::Cdn::Model::CreateCdnDeliverTaskRequest;
CreateCdnDeliverTaskRequest::CreateCdnDeliverTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "CreateCdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateCdnDeliverTaskRequest::~CreateCdnDeliverTaskRequest()
{}
std::string CreateCdnDeliverTaskRequest::getReports()const
{
return reports_;
}
void CreateCdnDeliverTaskRequest::setReports(const std::string& reports)
{
reports_ = reports;
setBodyParameter("Reports", reports);
}
std::string CreateCdnDeliverTaskRequest::getDeliver()const
{
return deliver_;
}
void CreateCdnDeliverTaskRequest::setDeliver(const std::string& deliver)
{
deliver_ = deliver;
setBodyParameter("Deliver", deliver);
}
std::string CreateCdnDeliverTaskRequest::getDomainName()const
{
return domainName_;
}
void CreateCdnDeliverTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
long CreateCdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCdnDeliverTaskRequest::getSchedule()const
{
return schedule_;
}
void CreateCdnDeliverTaskRequest::setSchedule(const std::string& schedule)
{
schedule_ = schedule;
setBodyParameter("Schedule", schedule);
}
std::string CreateCdnDeliverTaskRequest::getName()const
{
return name_;
}
void CreateCdnDeliverTaskRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateCdnDeliverTaskRequest::getStatus()const
{
return status_;
}
void CreateCdnDeliverTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

View File

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

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/cdn/model/CreateCdnSubTaskRequest.h>
using AlibabaCloud::Cdn::Model::CreateCdnSubTaskRequest;
CreateCdnSubTaskRequest::CreateCdnSubTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "CreateCdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateCdnSubTaskRequest::~CreateCdnSubTaskRequest()
{}
std::string CreateCdnSubTaskRequest::getStartTime()const
{
return startTime_;
}
void CreateCdnSubTaskRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string CreateCdnSubTaskRequest::getDomainName()const
{
return domainName_;
}
void CreateCdnSubTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
std::string CreateCdnSubTaskRequest::getEndTime()const
{
return endTime_;
}
void CreateCdnSubTaskRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
long CreateCdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateCdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateCdnSubTaskRequest::getReportIds()const
{
return reportIds_;
}
void CreateCdnSubTaskRequest::setReportIds(const std::string& reportIds)
{
reportIds_ = reportIds;
setBodyParameter("ReportIds", reportIds);
}
std::string CreateCdnSubTaskRequest::getStatus()const
{
return status_;
}
void CreateCdnSubTaskRequest::setStatus(const std::string& status)
{
status_ = status;
setBodyParameter("Status", status);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cdn/model/SetErrorPageConfigResult.h>
#include <alibabacloud/cdn/model/CreateCdnSubTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
SetErrorPageConfigResult::SetErrorPageConfigResult() :
CreateCdnSubTaskResult::CreateCdnSubTaskResult() :
ServiceResult()
{}
SetErrorPageConfigResult::SetErrorPageConfigResult(const std::string &payload) :
CreateCdnSubTaskResult::CreateCdnSubTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetErrorPageConfigResult::~SetErrorPageConfigResult()
CreateCdnSubTaskResult::~CreateCdnSubTaskResult()
{}
void SetErrorPageConfigResult::parse(const std::string &payload)
void CreateCdnSubTaskResult::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/cdn/model/DeleteCdnDeliverTaskRequest.h>
using AlibabaCloud::Cdn::Model::DeleteCdnDeliverTaskRequest;
DeleteCdnDeliverTaskRequest::DeleteCdnDeliverTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DeleteCdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCdnDeliverTaskRequest::~DeleteCdnDeliverTaskRequest()
{}
long DeleteCdnDeliverTaskRequest::getDeliverId()const
{
return deliverId_;
}
void DeleteCdnDeliverTaskRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setParameter("DeliverId", std::to_string(deliverId));
}
long DeleteCdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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/cdn/model/DeleteCdnSubTaskRequest.h>
using AlibabaCloud::Cdn::Model::DeleteCdnSubTaskRequest;
DeleteCdnSubTaskRequest::DeleteCdnSubTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DeleteCdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCdnSubTaskRequest::~DeleteCdnSubTaskRequest()
{}
long DeleteCdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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/cdn/model/DescribeCdnDeliverListRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnDeliverListRequest;
DescribeCdnDeliverListRequest::DescribeCdnDeliverListRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnDeliverList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnDeliverListRequest::~DescribeCdnDeliverListRequest()
{}
long DescribeCdnDeliverListRequest::getDeliverId()const
{
return deliverId_;
}
void DescribeCdnDeliverListRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setParameter("DeliverId", std::to_string(deliverId));
}
long DescribeCdnDeliverListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnDeliverListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnDeliverListRequest::getStatus()const
{
return status_;
}
void DescribeCdnDeliverListRequest::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/cdn/model/DescribeCdnDeliverListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnDeliverListResult::DescribeCdnDeliverListResult() :
ServiceResult()
{}
DescribeCdnDeliverListResult::DescribeCdnDeliverListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnDeliverListResult::~DescribeCdnDeliverListResult()
{}
void DescribeCdnDeliverListResult::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 DescribeCdnDeliverListResult::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/cdn/model/DescribeCdnReportListRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnReportListRequest;
DescribeCdnReportListRequest::DescribeCdnReportListRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnReportList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnReportListRequest::~DescribeCdnReportListRequest()
{}
long DescribeCdnReportListRequest::getReportId()const
{
return reportId_;
}
void DescribeCdnReportListRequest::setReportId(long reportId)
{
reportId_ = reportId;
setParameter("ReportId", std::to_string(reportId));
}
std::string DescribeCdnReportListRequest::getPermission()const
{
return permission_;
}
void DescribeCdnReportListRequest::setPermission(const std::string& permission)
{
permission_ = permission;
setParameter("Permission", permission);
}
long DescribeCdnReportListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnReportListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnReportListRequest::getStatus()const
{
return status_;
}
void DescribeCdnReportListRequest::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/cdn/model/DescribeCdnReportListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnReportListResult::DescribeCdnReportListResult() :
ServiceResult()
{}
DescribeCdnReportListResult::DescribeCdnReportListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnReportListResult::~DescribeCdnReportListResult()
{}
void DescribeCdnReportListResult::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 DescribeCdnReportListResult::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/cdn/model/DescribeCdnReportRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnReportRequest;
DescribeCdnReportRequest::DescribeCdnReportRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnReport")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnReportRequest::~DescribeCdnReportRequest()
{}
long DescribeCdnReportRequest::getReportId()const
{
return reportId_;
}
void DescribeCdnReportRequest::setReportId(long reportId)
{
reportId_ = reportId;
setParameter("ReportId", std::to_string(reportId));
}
std::string DescribeCdnReportRequest::getStartTime()const
{
return startTime_;
}
void DescribeCdnReportRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeCdnReportRequest::getArea()const
{
return area_;
}
void DescribeCdnReportRequest::setArea(const std::string& area)
{
area_ = area;
setParameter("Area", area);
}
std::string DescribeCdnReportRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnReportRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeCdnReportRequest::getEndTime()const
{
return endTime_;
}
void DescribeCdnReportRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeCdnReportRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnReportRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnReportRequest::getHttpCode()const
{
return httpCode_;
}
void DescribeCdnReportRequest::setHttpCode(const std::string& httpCode)
{
httpCode_ = httpCode;
setParameter("HttpCode", httpCode);
}
std::string DescribeCdnReportRequest::getIsOverseas()const
{
return isOverseas_;
}
void DescribeCdnReportRequest::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/cdn/model/DescribeCdnReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnReportResult::DescribeCdnReportResult() :
ServiceResult()
{}
DescribeCdnReportResult::DescribeCdnReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnReportResult::~DescribeCdnReportResult()
{}
void DescribeCdnReportResult::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 DescribeCdnReportResult::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/cdn/model/DescribeCdnSubListRequest.h>
using AlibabaCloud::Cdn::Model::DescribeCdnSubListRequest;
DescribeCdnSubListRequest::DescribeCdnSubListRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnSubList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCdnSubListRequest::~DescribeCdnSubListRequest()
{}
long DescribeCdnSubListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnSubListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCdnSubListRequest::getStatus()const
{
return status_;
}
void DescribeCdnSubListRequest::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/cdn/model/DescribeCdnSubListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeCdnSubListResult::DescribeCdnSubListResult() :
ServiceResult()
{}
DescribeCdnSubListResult::DescribeCdnSubListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnSubListResult::~DescribeCdnSubListResult()
{}
void DescribeCdnSubListResult::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 DescribeCdnSubListResult::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/cdn/model/DescribeEsExceptionDataRequest.h>
using AlibabaCloud::Cdn::Model::DescribeEsExceptionDataRequest;
DescribeEsExceptionDataRequest::DescribeEsExceptionDataRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeEsExceptionData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeEsExceptionDataRequest::~DescribeEsExceptionDataRequest()
{}
std::string DescribeEsExceptionDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeEsExceptionDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeEsExceptionDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeEsExceptionDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeEsExceptionDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeEsExceptionDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeEsExceptionDataRequest::getRuleId()const
{
return ruleId_;
}
void DescribeEsExceptionDataRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}

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.
*/
#include <alibabacloud/cdn/model/DescribeEsExceptionDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeEsExceptionDataResult::DescribeEsExceptionDataResult() :
ServiceResult()
{}
DescribeEsExceptionDataResult::DescribeEsExceptionDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEsExceptionDataResult::~DescribeEsExceptionDataResult()
{}
void DescribeEsExceptionDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentsNode = value["Contents"]["Content"];
for (auto valueContentsContent : allContentsNode)
{
Content contentsObject;
if(!valueContentsContent["Name"].isNull())
contentsObject.name = valueContentsContent["Name"].asString();
auto allColumns = value["Columns"]["columns"];
for (auto value : allColumns)
contentsObject.columns.push_back(value.asString());
auto allPoints = value["Points"]["points"];
for (auto value : allPoints)
contentsObject.points.push_back(value.asString());
contents_.push_back(contentsObject);
}
}
std::vector<DescribeEsExceptionDataResult::Content> DescribeEsExceptionDataResult::getContents()const
{
return contents_;
}

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/cdn/model/DescribeEsExecuteDataRequest.h>
using AlibabaCloud::Cdn::Model::DescribeEsExecuteDataRequest;
DescribeEsExecuteDataRequest::DescribeEsExecuteDataRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeEsExecuteData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeEsExecuteDataRequest::~DescribeEsExecuteDataRequest()
{}
std::string DescribeEsExecuteDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeEsExecuteDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeEsExecuteDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeEsExecuteDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeEsExecuteDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeEsExecuteDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeEsExecuteDataRequest::getRuleId()const
{
return ruleId_;
}
void DescribeEsExecuteDataRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}

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.
*/
#include <alibabacloud/cdn/model/DescribeEsExecuteDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeEsExecuteDataResult::DescribeEsExecuteDataResult() :
ServiceResult()
{}
DescribeEsExecuteDataResult::DescribeEsExecuteDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEsExecuteDataResult::~DescribeEsExecuteDataResult()
{}
void DescribeEsExecuteDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentsNode = value["Contents"]["Content"];
for (auto valueContentsContent : allContentsNode)
{
Content contentsObject;
if(!valueContentsContent["Name"].isNull())
contentsObject.name = valueContentsContent["Name"].asString();
auto allColumns = value["Columns"]["columns"];
for (auto value : allColumns)
contentsObject.columns.push_back(value.asString());
auto allPoints = value["Points"]["points"];
for (auto value : allPoints)
contentsObject.points.push_back(value.asString());
contents_.push_back(contentsObject);
}
}
std::vector<DescribeEsExecuteDataResult::Content> DescribeEsExecuteDataResult::getContents()const
{
return contents_;
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ModifyPathCacheExpiredConfigRequest.h>
using AlibabaCloud::Cdn::Model::ModifyPathCacheExpiredConfigRequest;
ModifyPathCacheExpiredConfigRequest::ModifyPathCacheExpiredConfigRequest() :
RpcServiceRequest("cdn", "2014-11-11", "ModifyPathCacheExpiredConfig")
{
setMethod(HttpRequest::Method::Post);
}
ModifyPathCacheExpiredConfigRequest::~ModifyPathCacheExpiredConfigRequest()
{}
std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string ModifyPathCacheExpiredConfigRequest::getDomainName()const
{
return domainName_;
}
void ModifyPathCacheExpiredConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string ModifyPathCacheExpiredConfigRequest::getWeight()const
{
return weight_;
}
void ModifyPathCacheExpiredConfigRequest::setWeight(const std::string& weight)
{
weight_ = weight;
setParameter("Weight", weight);
}
std::string ModifyPathCacheExpiredConfigRequest::getCacheContent()const
{
return cacheContent_;
}
void ModifyPathCacheExpiredConfigRequest::setCacheContent(const std::string& cacheContent)
{
cacheContent_ = cacheContent;
setParameter("CacheContent", cacheContent);
}
long ModifyPathCacheExpiredConfigRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyPathCacheExpiredConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyPathCacheExpiredConfigRequest::getTTL()const
{
return tTL_;
}
void ModifyPathCacheExpiredConfigRequest::setTTL(const std::string& tTL)
{
tTL_ = tTL;
setParameter("TTL", tTL);
}
std::string ModifyPathCacheExpiredConfigRequest::getConfigID()const
{
return configID_;
}
void ModifyPathCacheExpiredConfigRequest::setConfigID(const std::string& configID)
{
configID_ = configID;
setParameter("ConfigID", configID);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ModifyPathCacheExpiredConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
ModifyPathCacheExpiredConfigResult::ModifyPathCacheExpiredConfigResult() :
ServiceResult()
{}
ModifyPathCacheExpiredConfigResult::ModifyPathCacheExpiredConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyPathCacheExpiredConfigResult::~ModifyPathCacheExpiredConfigResult()
{}
void ModifyPathCacheExpiredConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ModifyUserCustomLogConfigRequest.h>
using AlibabaCloud::Cdn::Model::ModifyUserCustomLogConfigRequest;
ModifyUserCustomLogConfigRequest::ModifyUserCustomLogConfigRequest() :
RpcServiceRequest("cdn", "2018-05-10", "ModifyUserCustomLogConfig")
{
setMethod(HttpRequest::Method::Get);
}
ModifyUserCustomLogConfigRequest::~ModifyUserCustomLogConfigRequest()
{}
long ModifyUserCustomLogConfigRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyUserCustomLogConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyUserCustomLogConfigRequest::getConfigId()const
{
return configId_;
}
void ModifyUserCustomLogConfigRequest::setConfigId(const std::string& configId)
{
configId_ = configId;
setParameter("ConfigId", configId);
}
std::string ModifyUserCustomLogConfigRequest::getTag()const
{
return tag_;
}
void ModifyUserCustomLogConfigRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}

View File

@@ -1,44 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/ModifyUserCustomLogConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
ModifyUserCustomLogConfigResult::ModifyUserCustomLogConfigResult() :
ServiceResult()
{}
ModifyUserCustomLogConfigResult::ModifyUserCustomLogConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyUserCustomLogConfigResult::~ModifyUserCustomLogConfigResult()
{}
void ModifyUserCustomLogConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/SetErrorPageConfigRequest.h>
using AlibabaCloud::Cdn::Model::SetErrorPageConfigRequest;
SetErrorPageConfigRequest::SetErrorPageConfigRequest() :
RpcServiceRequest("cdn", "2018-05-10", "SetErrorPageConfig")
{
setMethod(HttpRequest::Method::Post);
}
SetErrorPageConfigRequest::~SetErrorPageConfigRequest()
{}
std::string SetErrorPageConfigRequest::getPageType()const
{
return pageType_;
}
void SetErrorPageConfigRequest::setPageType(const std::string& pageType)
{
pageType_ = pageType;
setParameter("PageType", pageType);
}
std::string SetErrorPageConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void SetErrorPageConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string SetErrorPageConfigRequest::getDomainName()const
{
return domainName_;
}
void SetErrorPageConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string SetErrorPageConfigRequest::getCustomPageUrl()const
{
return customPageUrl_;
}
void SetErrorPageConfigRequest::setCustomPageUrl(const std::string& customPageUrl)
{
customPageUrl_ = customPageUrl;
setParameter("CustomPageUrl", customPageUrl);
}
long SetErrorPageConfigRequest::getOwnerId()const
{
return ownerId_;
}
void SetErrorPageConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/SetHttpErrorPageConfigRequest.h>
using AlibabaCloud::Cdn::Model::SetHttpErrorPageConfigRequest;
SetHttpErrorPageConfigRequest::SetHttpErrorPageConfigRequest() :
RpcServiceRequest("cdn", "2018-05-10", "SetHttpErrorPageConfig")
{
setMethod(HttpRequest::Method::Post);
}
SetHttpErrorPageConfigRequest::~SetHttpErrorPageConfigRequest()
{}
std::string SetHttpErrorPageConfigRequest::getPageUrl()const
{
return pageUrl_;
}
void SetHttpErrorPageConfigRequest::setPageUrl(const std::string& pageUrl)
{
pageUrl_ = pageUrl;
setParameter("PageUrl", pageUrl);
}
std::string SetHttpErrorPageConfigRequest::getErrorCode()const
{
return errorCode_;
}
void SetHttpErrorPageConfigRequest::setErrorCode(const std::string& errorCode)
{
errorCode_ = errorCode;
setParameter("ErrorCode", errorCode);
}
std::string SetHttpErrorPageConfigRequest::getDomainName()const
{
return domainName_;
}
void SetHttpErrorPageConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long SetHttpErrorPageConfigRequest::getOwnerId()const
{
return ownerId_;
}
void SetHttpErrorPageConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long SetHttpErrorPageConfigRequest::getConfigId()const
{
return configId_;
}
void SetHttpErrorPageConfigRequest::setConfigId(long configId)
{
configId_ = configId;
setParameter("ConfigId", std::to_string(configId));
}

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/cdn/model/SetVideoSeekConfigRequest.h>
using AlibabaCloud::Cdn::Model::SetVideoSeekConfigRequest;
SetVideoSeekConfigRequest::SetVideoSeekConfigRequest() :
RpcServiceRequest("cdn", "2014-11-11", "SetVideoSeekConfig")
{
setMethod(HttpRequest::Method::Post);
}
SetVideoSeekConfigRequest::~SetVideoSeekConfigRequest()
{}
std::string SetVideoSeekConfigRequest::getDomainName()const
{
return domainName_;
}
void SetVideoSeekConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long SetVideoSeekConfigRequest::getOwnerId()const
{
return ownerId_;
}
void SetVideoSeekConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SetVideoSeekConfigRequest::getSecurityToken()const
{
return securityToken_;
}
void SetVideoSeekConfigRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string SetVideoSeekConfigRequest::getEnable()const
{
return enable_;
}
void SetVideoSeekConfigRequest::setEnable(const std::string& enable)
{
enable_ = enable;
setParameter("Enable", enable);
}

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/cdn/model/UpdateCdnDeliverTaskRequest.h>
using AlibabaCloud::Cdn::Model::UpdateCdnDeliverTaskRequest;
UpdateCdnDeliverTaskRequest::UpdateCdnDeliverTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "UpdateCdnDeliverTask")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCdnDeliverTaskRequest::~UpdateCdnDeliverTaskRequest()
{}
std::string UpdateCdnDeliverTaskRequest::getReports()const
{
return reports_;
}
void UpdateCdnDeliverTaskRequest::setReports(const std::string& reports)
{
reports_ = reports;
setBodyParameter("Reports", reports);
}
std::string UpdateCdnDeliverTaskRequest::getDeliver()const
{
return deliver_;
}
void UpdateCdnDeliverTaskRequest::setDeliver(const std::string& deliver)
{
deliver_ = deliver;
setBodyParameter("Deliver", deliver);
}
long UpdateCdnDeliverTaskRequest::getDeliverId()const
{
return deliverId_;
}
void UpdateCdnDeliverTaskRequest::setDeliverId(long deliverId)
{
deliverId_ = deliverId;
setBodyParameter("DeliverId", std::to_string(deliverId));
}
std::string UpdateCdnDeliverTaskRequest::getDomainName()const
{
return domainName_;
}
void UpdateCdnDeliverTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
long UpdateCdnDeliverTaskRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateCdnDeliverTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateCdnDeliverTaskRequest::getSchedule()const
{
return schedule_;
}
void UpdateCdnDeliverTaskRequest::setSchedule(const std::string& schedule)
{
schedule_ = schedule;
setBodyParameter("Schedule", schedule);
}
std::string UpdateCdnDeliverTaskRequest::getName()const
{
return name_;
}
void UpdateCdnDeliverTaskRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string UpdateCdnDeliverTaskRequest::getStatus()const
{
return status_;
}
void UpdateCdnDeliverTaskRequest::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/cdn/model/UpdateCdnDeliverTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
UpdateCdnDeliverTaskResult::UpdateCdnDeliverTaskResult() :
ServiceResult()
{}
UpdateCdnDeliverTaskResult::UpdateCdnDeliverTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCdnDeliverTaskResult::~UpdateCdnDeliverTaskResult()
{}
void UpdateCdnDeliverTaskResult::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/cdn/model/UpdateCdnSubTaskRequest.h>
using AlibabaCloud::Cdn::Model::UpdateCdnSubTaskRequest;
UpdateCdnSubTaskRequest::UpdateCdnSubTaskRequest() :
RpcServiceRequest("cdn", "2018-05-10", "UpdateCdnSubTask")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCdnSubTaskRequest::~UpdateCdnSubTaskRequest()
{}
std::string UpdateCdnSubTaskRequest::getStartTime()const
{
return startTime_;
}
void UpdateCdnSubTaskRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string UpdateCdnSubTaskRequest::getDomainName()const
{
return domainName_;
}
void UpdateCdnSubTaskRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setBodyParameter("DomainName", domainName);
}
std::string UpdateCdnSubTaskRequest::getEndTime()const
{
return endTime_;
}
void UpdateCdnSubTaskRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
long UpdateCdnSubTaskRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateCdnSubTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateCdnSubTaskRequest::getReportIds()const
{
return reportIds_;
}
void UpdateCdnSubTaskRequest::setReportIds(const std::string& reportIds)
{
reportIds_ = reportIds;
setBodyParameter("ReportIds", reportIds);
}
std::string UpdateCdnSubTaskRequest::getStatus()const
{
return status_;
}
void UpdateCdnSubTaskRequest::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/cdn/model/UpdateCdnSubTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
UpdateCdnSubTaskResult::UpdateCdnSubTaskResult() :
ServiceResult()
{}
UpdateCdnSubTaskResult::UpdateCdnSubTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCdnSubTaskResult::~UpdateCdnSubTaskResult()
{}
void UpdateCdnSubTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}