Fixed SDK update delay.
This commit is contained in:
@@ -375,6 +375,42 @@ DcdnClient::BatchStopDcdnDomainOutcomeCallable DcdnClient::batchStopDcdnDomainCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::CommitStagingRoutineCodeOutcome DcdnClient::commitStagingRoutineCode(const CommitStagingRoutineCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CommitStagingRoutineCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CommitStagingRoutineCodeOutcome(CommitStagingRoutineCodeResult(outcome.result()));
|
||||
else
|
||||
return CommitStagingRoutineCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::commitStagingRoutineCodeAsync(const CommitStagingRoutineCodeRequest& request, const CommitStagingRoutineCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, commitStagingRoutineCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::CommitStagingRoutineCodeOutcomeCallable DcdnClient::commitStagingRoutineCodeCallable(const CommitStagingRoutineCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CommitStagingRoutineCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->commitStagingRoutineCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::CreateDcdnCertificateSigningRequestOutcome DcdnClient::createDcdnCertificateSigningRequest(const CreateDcdnCertificateSigningRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +555,42 @@ DcdnClient::CreateDcdnSubTaskOutcomeCallable DcdnClient::createDcdnSubTaskCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::CreateRoutineOutcome DcdnClient::createRoutine(const CreateRoutineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRoutineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRoutineOutcome(CreateRoutineResult(outcome.result()));
|
||||
else
|
||||
return CreateRoutineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::createRoutineAsync(const CreateRoutineRequest& request, const CreateRoutineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRoutine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::CreateRoutineOutcomeCallable DcdnClient::createRoutineCallable(const CreateRoutineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRoutineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRoutine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DeleteDcdnDeliverTaskOutcome DcdnClient::deleteDcdnDeliverTask(const DeleteDcdnDeliverTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +843,114 @@ DcdnClient::DeleteDcdnSubTaskOutcomeCallable DcdnClient::deleteDcdnSubTaskCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineOutcome DcdnClient::deleteRoutine(const DeleteRoutineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRoutineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRoutineOutcome(DeleteRoutineResult(outcome.result()));
|
||||
else
|
||||
return DeleteRoutineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::deleteRoutineAsync(const DeleteRoutineRequest& request, const DeleteRoutineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRoutine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineOutcomeCallable DcdnClient::deleteRoutineCallable(const DeleteRoutineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRoutineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRoutine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineCodeRevisionOutcome DcdnClient::deleteRoutineCodeRevision(const DeleteRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRoutineCodeRevisionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRoutineCodeRevisionOutcome(DeleteRoutineCodeRevisionResult(outcome.result()));
|
||||
else
|
||||
return DeleteRoutineCodeRevisionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::deleteRoutineCodeRevisionAsync(const DeleteRoutineCodeRevisionRequest& request, const DeleteRoutineCodeRevisionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRoutineCodeRevision(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineCodeRevisionOutcomeCallable DcdnClient::deleteRoutineCodeRevisionCallable(const DeleteRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRoutineCodeRevisionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRoutineCodeRevision(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineConfEnvsOutcome DcdnClient::deleteRoutineConfEnvs(const DeleteRoutineConfEnvsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRoutineConfEnvsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRoutineConfEnvsOutcome(DeleteRoutineConfEnvsResult(outcome.result()));
|
||||
else
|
||||
return DeleteRoutineConfEnvsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::deleteRoutineConfEnvsAsync(const DeleteRoutineConfEnvsRequest& request, const DeleteRoutineConfEnvsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRoutineConfEnvs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DeleteRoutineConfEnvsOutcomeCallable DcdnClient::deleteRoutineConfEnvsCallable(const DeleteRoutineConfEnvsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRoutineConfEnvsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRoutineConfEnvs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnBgpBpsDataOutcome DcdnClient::describeDcdnBgpBpsData(const DescribeDcdnBgpBpsDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1167,42 @@ DcdnClient::DescribeDcdnConfigOfVersionOutcomeCallable DcdnClient::describeDcdnC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDeletedDomainsOutcome DcdnClient::describeDcdnDeletedDomains(const DescribeDcdnDeletedDomainsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnDeletedDomainsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnDeletedDomainsOutcome(DescribeDcdnDeletedDomainsResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnDeletedDomainsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnDeletedDomainsAsync(const DescribeDcdnDeletedDomainsRequest& request, const DescribeDcdnDeletedDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnDeletedDomains(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDeletedDomainsOutcomeCallable DcdnClient::describeDcdnDeletedDomainsCallable(const DescribeDcdnDeletedDomainsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnDeletedDomainsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnDeletedDomains(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDeliverListOutcome DcdnClient::describeDcdnDeliverList(const DescribeDcdnDeliverListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1311,42 @@ DcdnClient::DescribeDcdnDomainByCertificateOutcomeCallable DcdnClient::describeD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainCcActivityLogOutcome DcdnClient::describeDcdnDomainCcActivityLog(const DescribeDcdnDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnDomainCcActivityLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnDomainCcActivityLogOutcome(DescribeDcdnDomainCcActivityLogResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnDomainCcActivityLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnDomainCcActivityLogAsync(const DescribeDcdnDomainCcActivityLogRequest& request, const DescribeDcdnDomainCcActivityLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnDomainCcActivityLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainCcActivityLogOutcomeCallable DcdnClient::describeDcdnDomainCcActivityLogCallable(const DescribeDcdnDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnDomainCcActivityLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnDomainCcActivityLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainCertificateInfoOutcome DcdnClient::describeDcdnDomainCertificateInfo(const DescribeDcdnDomainCertificateInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2211,6 +2463,42 @@ DcdnClient::DescribeDcdnDomainTrafficDataOutcomeCallable DcdnClient::describeDcd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainUsageDataOutcome DcdnClient::describeDcdnDomainUsageData(const DescribeDcdnDomainUsageDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnDomainUsageDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnDomainUsageDataOutcome(DescribeDcdnDomainUsageDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnDomainUsageDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnDomainUsageDataAsync(const DescribeDcdnDomainUsageDataRequest& request, const DescribeDcdnDomainUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnDomainUsageData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainUsageDataOutcomeCallable DcdnClient::describeDcdnDomainUsageDataCallable(const DescribeDcdnDomainUsageDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnDomainUsageDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnDomainUsageData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainUvDataOutcome DcdnClient::describeDcdnDomainUvData(const DescribeDcdnDomainUvDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3543,6 +3831,222 @@ DcdnClient::DescribeDcdnWafDomainOutcomeCallable DcdnClient::describeDcdnWafDoma
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnsecServiceOutcome DcdnClient::describeDcdnsecService(const DescribeDcdnsecServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnsecServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnsecServiceOutcome(DescribeDcdnsecServiceResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnsecServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnsecServiceAsync(const DescribeDcdnsecServiceRequest& request, const DescribeDcdnsecServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnsecService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnsecServiceOutcomeCallable DcdnClient::describeDcdnsecServiceCallable(const DescribeDcdnsecServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnsecServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnsecService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineOutcome DcdnClient::describeRoutine(const DescribeRoutineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRoutineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRoutineOutcome(DescribeRoutineResult(outcome.result()));
|
||||
else
|
||||
return DescribeRoutineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeRoutineAsync(const DescribeRoutineRequest& request, const DescribeRoutineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRoutine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineOutcomeCallable DcdnClient::describeRoutineCallable(const DescribeRoutineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRoutineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRoutine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineCanaryEnvsOutcome DcdnClient::describeRoutineCanaryEnvs(const DescribeRoutineCanaryEnvsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRoutineCanaryEnvsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRoutineCanaryEnvsOutcome(DescribeRoutineCanaryEnvsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRoutineCanaryEnvsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeRoutineCanaryEnvsAsync(const DescribeRoutineCanaryEnvsRequest& request, const DescribeRoutineCanaryEnvsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRoutineCanaryEnvs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineCanaryEnvsOutcomeCallable DcdnClient::describeRoutineCanaryEnvsCallable(const DescribeRoutineCanaryEnvsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRoutineCanaryEnvsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRoutineCanaryEnvs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineCodeRevisionOutcome DcdnClient::describeRoutineCodeRevision(const DescribeRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRoutineCodeRevisionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRoutineCodeRevisionOutcome(DescribeRoutineCodeRevisionResult(outcome.result()));
|
||||
else
|
||||
return DescribeRoutineCodeRevisionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeRoutineCodeRevisionAsync(const DescribeRoutineCodeRevisionRequest& request, const DescribeRoutineCodeRevisionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRoutineCodeRevision(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineCodeRevisionOutcomeCallable DcdnClient::describeRoutineCodeRevisionCallable(const DescribeRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRoutineCodeRevisionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRoutineCodeRevision(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineSpecOutcome DcdnClient::describeRoutineSpec(const DescribeRoutineSpecRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRoutineSpecOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRoutineSpecOutcome(DescribeRoutineSpecResult(outcome.result()));
|
||||
else
|
||||
return DescribeRoutineSpecOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeRoutineSpecAsync(const DescribeRoutineSpecRequest& request, const DescribeRoutineSpecAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRoutineSpec(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineSpecOutcomeCallable DcdnClient::describeRoutineSpecCallable(const DescribeRoutineSpecRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRoutineSpecOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRoutineSpec(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineUserInfoOutcome DcdnClient::describeRoutineUserInfo(const DescribeRoutineUserInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRoutineUserInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRoutineUserInfoOutcome(DescribeRoutineUserInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeRoutineUserInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeRoutineUserInfoAsync(const DescribeRoutineUserInfoRequest& request, const DescribeRoutineUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRoutineUserInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeRoutineUserInfoOutcomeCallable DcdnClient::describeRoutineUserInfoCallable(const DescribeRoutineUserInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRoutineUserInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRoutineUserInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeUserDcdnIpaStatusOutcome DcdnClient::describeUserDcdnIpaStatus(const DescribeUserDcdnIpaStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3759,6 +4263,42 @@ DcdnClient::DisableDcdnOfflineLogDeliveryOutcomeCallable DcdnClient::disableDcdn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::EditRoutineConfOutcome DcdnClient::editRoutineConf(const EditRoutineConfRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EditRoutineConfOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EditRoutineConfOutcome(EditRoutineConfResult(outcome.result()));
|
||||
else
|
||||
return EditRoutineConfOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::editRoutineConfAsync(const EditRoutineConfRequest& request, const EditRoutineConfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, editRoutineConf(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::EditRoutineConfOutcomeCallable DcdnClient::editRoutineConfCallable(const EditRoutineConfRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EditRoutineConfOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->editRoutineConf(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::EnableDcdnDomainOfflineLogDeliveryOutcome DcdnClient::enableDcdnDomainOfflineLogDelivery(const EnableDcdnDomainOfflineLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3939,6 +4479,42 @@ DcdnClient::PublishDcdnStagingConfigToProductionOutcomeCallable DcdnClient::publ
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::PublishRoutineCodeRevisionOutcome DcdnClient::publishRoutineCodeRevision(const PublishRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PublishRoutineCodeRevisionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PublishRoutineCodeRevisionOutcome(PublishRoutineCodeRevisionResult(outcome.result()));
|
||||
else
|
||||
return PublishRoutineCodeRevisionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::publishRoutineCodeRevisionAsync(const PublishRoutineCodeRevisionRequest& request, const PublishRoutineCodeRevisionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, publishRoutineCodeRevision(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::PublishRoutineCodeRevisionOutcomeCallable DcdnClient::publishRoutineCodeRevisionCallable(const PublishRoutineCodeRevisionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PublishRoutineCodeRevisionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->publishRoutineCodeRevision(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::RefreshDcdnObjectCachesOutcome DcdnClient::refreshDcdnObjectCaches(const RefreshDcdnObjectCachesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4155,6 +4731,78 @@ DcdnClient::SetDcdnDomainStagingConfigOutcomeCallable DcdnClient::setDcdnDomainS
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::SetDcdnUserConfigOutcome DcdnClient::setDcdnUserConfig(const SetDcdnUserConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetDcdnUserConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetDcdnUserConfigOutcome(SetDcdnUserConfigResult(outcome.result()));
|
||||
else
|
||||
return SetDcdnUserConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::setDcdnUserConfigAsync(const SetDcdnUserConfigRequest& request, const SetDcdnUserConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setDcdnUserConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::SetDcdnUserConfigOutcomeCallable DcdnClient::setDcdnUserConfigCallable(const SetDcdnUserConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetDcdnUserConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setDcdnUserConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::SetRoutineSubdomainOutcome DcdnClient::setRoutineSubdomain(const SetRoutineSubdomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetRoutineSubdomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetRoutineSubdomainOutcome(SetRoutineSubdomainResult(outcome.result()));
|
||||
else
|
||||
return SetRoutineSubdomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::setRoutineSubdomainAsync(const SetRoutineSubdomainRequest& request, const SetRoutineSubdomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setRoutineSubdomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::SetRoutineSubdomainOutcomeCallable DcdnClient::setRoutineSubdomainCallable(const SetRoutineSubdomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetRoutineSubdomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setRoutineSubdomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::StartDcdnDomainOutcome DcdnClient::startDcdnDomain(const StartDcdnDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4515,6 +5163,78 @@ DcdnClient::UpdateDcdnSubTaskOutcomeCallable DcdnClient::updateDcdnSubTaskCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::UploadRoutineCodeOutcome DcdnClient::uploadRoutineCode(const UploadRoutineCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadRoutineCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadRoutineCodeOutcome(UploadRoutineCodeResult(outcome.result()));
|
||||
else
|
||||
return UploadRoutineCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::uploadRoutineCodeAsync(const UploadRoutineCodeRequest& request, const UploadRoutineCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadRoutineCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::UploadRoutineCodeOutcomeCallable DcdnClient::uploadRoutineCodeCallable(const UploadRoutineCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadRoutineCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadRoutineCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::UploadStagingRoutineCodeOutcome DcdnClient::uploadStagingRoutineCode(const UploadStagingRoutineCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadStagingRoutineCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadStagingRoutineCodeOutcome(UploadStagingRoutineCodeResult(outcome.result()));
|
||||
else
|
||||
return UploadStagingRoutineCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::uploadStagingRoutineCodeAsync(const UploadStagingRoutineCodeRequest& request, const UploadStagingRoutineCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadStagingRoutineCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::UploadStagingRoutineCodeOutcomeCallable DcdnClient::uploadStagingRoutineCodeCallable(const UploadStagingRoutineCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadStagingRoutineCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadStagingRoutineCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::VerifyDcdnDomainOwnerOutcome DcdnClient::verifyDcdnDomainOwner(const VerifyDcdnDomainOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
dcdn/src/model/CommitStagingRoutineCodeRequest.cc
Normal file
62
dcdn/src/model/CommitStagingRoutineCodeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/CommitStagingRoutineCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::CommitStagingRoutineCodeRequest;
|
||||
|
||||
CommitStagingRoutineCodeRequest::CommitStagingRoutineCodeRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "CommitStagingRoutineCode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CommitStagingRoutineCodeRequest::~CommitStagingRoutineCodeRequest()
|
||||
{}
|
||||
|
||||
std::string CommitStagingRoutineCodeRequest::getCodeDescription()const
|
||||
{
|
||||
return codeDescription_;
|
||||
}
|
||||
|
||||
void CommitStagingRoutineCodeRequest::setCodeDescription(const std::string& codeDescription)
|
||||
{
|
||||
codeDescription_ = codeDescription;
|
||||
setBodyParameter("CodeDescription", codeDescription);
|
||||
}
|
||||
|
||||
long CommitStagingRoutineCodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CommitStagingRoutineCodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CommitStagingRoutineCodeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CommitStagingRoutineCodeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/CommitStagingRoutineCodeResult.cc
Normal file
51
dcdn/src/model/CommitStagingRoutineCodeResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/CommitStagingRoutineCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
CommitStagingRoutineCodeResult::CommitStagingRoutineCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CommitStagingRoutineCodeResult::CommitStagingRoutineCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CommitStagingRoutineCodeResult::~CommitStagingRoutineCodeResult()
|
||||
{}
|
||||
|
||||
void CommitStagingRoutineCodeResult::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 CommitStagingRoutineCodeResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -93,14 +93,3 @@ void CreateDcdnDeliverTaskRequest::setName(const std::string& name)
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDcdnDeliverTaskRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateDcdnDeliverTaskRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,17 +27,6 @@ CreateDcdnSubTaskRequest::CreateDcdnSubTaskRequest() :
|
||||
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_;
|
||||
@@ -49,17 +38,6 @@ void CreateDcdnSubTaskRequest::setDomainName(const std::string& 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_;
|
||||
@@ -82,14 +60,3 @@ void CreateDcdnSubTaskRequest::setReportIds(const std::string& reportIds)
|
||||
setBodyParameter("ReportIds", reportIds);
|
||||
}
|
||||
|
||||
std::string CreateDcdnSubTaskRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateDcdnSubTaskRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
73
dcdn/src/model/CreateRoutineRequest.cc
Normal file
73
dcdn/src/model/CreateRoutineRequest.cc
Normal 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/CreateRoutineRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::CreateRoutineRequest;
|
||||
|
||||
CreateRoutineRequest::CreateRoutineRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "CreateRoutine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRoutineRequest::~CreateRoutineRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRoutineRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRoutineRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateRoutineRequest::getEnvConf()const
|
||||
{
|
||||
return envConf_;
|
||||
}
|
||||
|
||||
void CreateRoutineRequest::setEnvConf(const std::string& envConf)
|
||||
{
|
||||
envConf_ = envConf;
|
||||
setBodyParameter("EnvConf", envConf);
|
||||
}
|
||||
|
||||
long CreateRoutineRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateRoutineRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRoutineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateRoutineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/CreateRoutineResult.cc
Normal file
51
dcdn/src/model/CreateRoutineResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/CreateRoutineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
CreateRoutineResult::CreateRoutineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRoutineResult::CreateRoutineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRoutineResult::~CreateRoutineResult()
|
||||
{}
|
||||
|
||||
void CreateRoutineResult::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 CreateRoutineResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/DeleteRoutineCodeRevisionRequest.cc
Normal file
62
dcdn/src/model/DeleteRoutineCodeRevisionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineCodeRevisionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DeleteRoutineCodeRevisionRequest;
|
||||
|
||||
DeleteRoutineCodeRevisionRequest::DeleteRoutineCodeRevisionRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DeleteRoutineCodeRevision")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRoutineCodeRevisionRequest::~DeleteRoutineCodeRevisionRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRoutineCodeRevisionRequest::getSelectCodeRevision()const
|
||||
{
|
||||
return selectCodeRevision_;
|
||||
}
|
||||
|
||||
void DeleteRoutineCodeRevisionRequest::setSelectCodeRevision(const std::string& selectCodeRevision)
|
||||
{
|
||||
selectCodeRevision_ = selectCodeRevision;
|
||||
setBodyParameter("SelectCodeRevision", selectCodeRevision);
|
||||
}
|
||||
|
||||
long DeleteRoutineCodeRevisionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRoutineCodeRevisionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteRoutineCodeRevisionRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteRoutineCodeRevisionRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DeleteRoutineCodeRevisionResult.cc
Normal file
51
dcdn/src/model/DeleteRoutineCodeRevisionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineCodeRevisionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DeleteRoutineCodeRevisionResult::DeleteRoutineCodeRevisionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRoutineCodeRevisionResult::DeleteRoutineCodeRevisionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRoutineCodeRevisionResult::~DeleteRoutineCodeRevisionResult()
|
||||
{}
|
||||
|
||||
void DeleteRoutineCodeRevisionResult::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 DeleteRoutineCodeRevisionResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/DeleteRoutineConfEnvsRequest.cc
Normal file
62
dcdn/src/model/DeleteRoutineConfEnvsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineConfEnvsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DeleteRoutineConfEnvsRequest;
|
||||
|
||||
DeleteRoutineConfEnvsRequest::DeleteRoutineConfEnvsRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DeleteRoutineConfEnvs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRoutineConfEnvsRequest::~DeleteRoutineConfEnvsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRoutineConfEnvsRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void DeleteRoutineConfEnvsRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setBodyParameter("Envs", envs);
|
||||
}
|
||||
|
||||
long DeleteRoutineConfEnvsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRoutineConfEnvsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteRoutineConfEnvsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteRoutineConfEnvsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DeleteRoutineConfEnvsResult.cc
Normal file
51
dcdn/src/model/DeleteRoutineConfEnvsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineConfEnvsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DeleteRoutineConfEnvsResult::DeleteRoutineConfEnvsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRoutineConfEnvsResult::DeleteRoutineConfEnvsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRoutineConfEnvsResult::~DeleteRoutineConfEnvsResult()
|
||||
{}
|
||||
|
||||
void DeleteRoutineConfEnvsResult::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 DeleteRoutineConfEnvsResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DeleteRoutineRequest.cc
Normal file
51
dcdn/src/model/DeleteRoutineRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DeleteRoutineRequest;
|
||||
|
||||
DeleteRoutineRequest::DeleteRoutineRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DeleteRoutine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRoutineRequest::~DeleteRoutineRequest()
|
||||
{}
|
||||
|
||||
long DeleteRoutineRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteRoutineRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteRoutineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteRoutineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DeleteRoutineResult.cc
Normal file
51
dcdn/src/model/DeleteRoutineResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DeleteRoutineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DeleteRoutineResult::DeleteRoutineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRoutineResult::DeleteRoutineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRoutineResult::~DeleteRoutineResult()
|
||||
{}
|
||||
|
||||
void DeleteRoutineResult::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 DeleteRoutineResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/DescribeDcdnDeletedDomainsRequest.cc
Normal file
62
dcdn/src/model/DescribeDcdnDeletedDomainsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnDeletedDomainsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnDeletedDomainsRequest;
|
||||
|
||||
DescribeDcdnDeletedDomainsRequest::DescribeDcdnDeletedDomainsRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDeletedDomains")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnDeletedDomainsRequest::~DescribeDcdnDeletedDomainsRequest()
|
||||
{}
|
||||
|
||||
int DescribeDcdnDeletedDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDeletedDomainsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeDcdnDeletedDomainsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDeletedDomainsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeDcdnDeletedDomainsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDeletedDomainsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
80
dcdn/src/model/DescribeDcdnDeletedDomainsResult.cc
Normal file
80
dcdn/src/model/DescribeDcdnDeletedDomainsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/DescribeDcdnDeletedDomainsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnDeletedDomainsResult::DescribeDcdnDeletedDomainsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnDeletedDomainsResult::DescribeDcdnDeletedDomainsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnDeletedDomainsResult::~DescribeDcdnDeletedDomainsResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnDeletedDomainsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsNode = value["Domains"]["PageData"];
|
||||
for (auto valueDomainsPageData : allDomainsNode)
|
||||
{
|
||||
PageData domainsObject;
|
||||
if(!valueDomainsPageData["DomainName"].isNull())
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["GmtModified"].isNull())
|
||||
domainsObject.gmtModified = valueDomainsPageData["GmtModified"].asString();
|
||||
domains_.push_back(domainsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnDeletedDomainsResult::PageData> DescribeDcdnDeletedDomainsResult::getDomains()const
|
||||
{
|
||||
return domains_;
|
||||
}
|
||||
|
||||
long DescribeDcdnDeletedDomainsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeDcdnDeletedDomainsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDcdnDeletedDomainsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -49,14 +49,3 @@ void DescribeDcdnDeliverListRequest::setOwnerId(long 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);
|
||||
}
|
||||
|
||||
|
||||
128
dcdn/src/model/DescribeDcdnDomainCcActivityLogRequest.cc
Normal file
128
dcdn/src/model/DescribeDcdnDomainCcActivityLogRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnDomainCcActivityLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainCcActivityLogRequest;
|
||||
|
||||
DescribeDcdnDomainCcActivityLogRequest::DescribeDcdnDomainCcActivityLogRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainCcActivityLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainCcActivityLogRequest::~DescribeDcdnDomainCcActivityLogRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getTriggerObject()const
|
||||
{
|
||||
return triggerObject_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setTriggerObject(const std::string& triggerObject)
|
||||
{
|
||||
triggerObject_ = triggerObject;
|
||||
setParameter("TriggerObject", triggerObject);
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainCcActivityLogRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
90
dcdn/src/model/DescribeDcdnDomainCcActivityLogResult.cc
Normal file
90
dcdn/src/model/DescribeDcdnDomainCcActivityLogResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/DescribeDcdnDomainCcActivityLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnDomainCcActivityLogResult::DescribeDcdnDomainCcActivityLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnDomainCcActivityLogResult::DescribeDcdnDomainCcActivityLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainCcActivityLogResult::~DescribeDcdnDomainCcActivityLogResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnDomainCcActivityLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActivityLogNode = value["ActivityLog"]["LogInfo"];
|
||||
for (auto valueActivityLogLogInfo : allActivityLogNode)
|
||||
{
|
||||
LogInfo activityLogObject;
|
||||
if(!valueActivityLogLogInfo["TimeStamp"].isNull())
|
||||
activityLogObject.timeStamp = valueActivityLogLogInfo["TimeStamp"].asString();
|
||||
if(!valueActivityLogLogInfo["Value"].isNull())
|
||||
activityLogObject.value = valueActivityLogLogInfo["Value"].asString();
|
||||
if(!valueActivityLogLogInfo["TriggerObject"].isNull())
|
||||
activityLogObject.triggerObject = valueActivityLogLogInfo["TriggerObject"].asString();
|
||||
if(!valueActivityLogLogInfo["DomainName"].isNull())
|
||||
activityLogObject.domainName = valueActivityLogLogInfo["DomainName"].asString();
|
||||
if(!valueActivityLogLogInfo["Ttl"].isNull())
|
||||
activityLogObject.ttl = std::stol(valueActivityLogLogInfo["Ttl"].asString());
|
||||
if(!valueActivityLogLogInfo["Action"].isNull())
|
||||
activityLogObject.action = valueActivityLogLogInfo["Action"].asString();
|
||||
if(!valueActivityLogLogInfo["RuleName"].isNull())
|
||||
activityLogObject.ruleName = valueActivityLogLogInfo["RuleName"].asString();
|
||||
activityLog_.push_back(activityLogObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stol(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnDomainCcActivityLogResult::LogInfo> DescribeDcdnDomainCcActivityLogResult::getActivityLog()const
|
||||
{
|
||||
return activityLog_;
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainCcActivityLogResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
@@ -71,3 +71,14 @@ void DescribeDcdnDomainConfigsRequest::setSecurityToken(const std::string& secur
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainConfigsRequest::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainConfigsRequest::setConfigId(const std::string& configId)
|
||||
{
|
||||
configId_ = configId;
|
||||
setParameter("ConfigId", configId);
|
||||
}
|
||||
|
||||
|
||||
117
dcdn/src/model/DescribeDcdnDomainUsageDataRequest.cc
Normal file
117
dcdn/src/model/DescribeDcdnDomainUsageDataRequest.cc
Normal 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/DescribeDcdnDomainUsageDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainUsageDataRequest;
|
||||
|
||||
DescribeDcdnDomainUsageDataRequest::DescribeDcdnDomainUsageDataRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainUsageData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainUsageDataRequest::~DescribeDcdnDomainUsageDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getDataProtocol()const
|
||||
{
|
||||
return dataProtocol_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setDataProtocol(const std::string& dataProtocol)
|
||||
{
|
||||
dataProtocol_ = dataProtocol;
|
||||
setParameter("DataProtocol", dataProtocol);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getArea()const
|
||||
{
|
||||
return area_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setArea(const std::string& area)
|
||||
{
|
||||
area_ = area;
|
||||
setParameter("Area", area);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainUsageDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getField()const
|
||||
{
|
||||
return field_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setField(const std::string& field)
|
||||
{
|
||||
field_ = field;
|
||||
setParameter("Field", field);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainUsageDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
}
|
||||
|
||||
105
dcdn/src/model/DescribeDcdnDomainUsageDataResult.cc
Normal file
105
dcdn/src/model/DescribeDcdnDomainUsageDataResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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/DescribeDcdnDomainUsageDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnDomainUsageDataResult::DescribeDcdnDomainUsageDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnDomainUsageDataResult::DescribeDcdnDomainUsageDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainUsageDataResult::~DescribeDcdnDomainUsageDataResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnDomainUsageDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsageDataPerIntervalNode = value["UsageDataPerInterval"]["DataModule"];
|
||||
for (auto valueUsageDataPerIntervalDataModule : allUsageDataPerIntervalNode)
|
||||
{
|
||||
DataModule usageDataPerIntervalObject;
|
||||
if(!valueUsageDataPerIntervalDataModule["TimeStamp"].isNull())
|
||||
usageDataPerIntervalObject.timeStamp = valueUsageDataPerIntervalDataModule["TimeStamp"].asString();
|
||||
if(!valueUsageDataPerIntervalDataModule["PeakTime"].isNull())
|
||||
usageDataPerIntervalObject.peakTime = valueUsageDataPerIntervalDataModule["PeakTime"].asString();
|
||||
if(!valueUsageDataPerIntervalDataModule["Value"].isNull())
|
||||
usageDataPerIntervalObject.value = valueUsageDataPerIntervalDataModule["Value"].asString();
|
||||
if(!valueUsageDataPerIntervalDataModule["SpecialValue"].isNull())
|
||||
usageDataPerIntervalObject.specialValue = valueUsageDataPerIntervalDataModule["SpecialValue"].asString();
|
||||
usageDataPerInterval_.push_back(usageDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Area"].isNull())
|
||||
area_ = value["Area"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnDomainUsageDataResult::DataModule> DescribeDcdnDomainUsageDataResult::getUsageDataPerInterval()const
|
||||
{
|
||||
return usageDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getArea()const
|
||||
{
|
||||
return area_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainUsageDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,22 @@ void DescribeDcdnIpaUserDomainsRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnIpaUserDomainsRequest::Tag> DescribeDcdnIpaUserDomainsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeDcdnIpaUserDomainsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDcdnIpaUserDomainsRequest::getFuncFilter()const
|
||||
{
|
||||
return funcFilter_;
|
||||
|
||||
@@ -38,17 +38,6 @@ void DescribeDcdnReportListRequest::setReportId(long 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_;
|
||||
@@ -60,14 +49,3 @@ void DescribeDcdnReportListRequest::setOwnerId(long 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);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,14 +38,3 @@ void DescribeDcdnSubListRequest::setOwnerId(long 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);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,28 @@ void DescribeDcdnUserDomainsByFuncRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserDomainsByFuncRequest::getFuncFilter()const
|
||||
{
|
||||
return funcFilter_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setFuncFilter(const std::string& funcFilter)
|
||||
{
|
||||
funcFilter_ = funcFilter;
|
||||
setParameter("FuncFilter", funcFilter);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserDomainsByFuncRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsByFuncRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeDcdnUserDomainsByFuncRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -47,8 +47,6 @@ void DescribeDcdnUserDomainsByFuncResult::parse(const std::string &payload)
|
||||
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
|
||||
if(!valueDomainsPageData["Cname"].isNull())
|
||||
domainsObject.cname = valueDomainsPageData["Cname"].asString();
|
||||
if(!valueDomainsPageData["CdnType"].isNull())
|
||||
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
|
||||
if(!valueDomainsPageData["DomainStatus"].isNull())
|
||||
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
|
||||
if(!valueDomainsPageData["GmtCreated"].isNull())
|
||||
|
||||
@@ -120,6 +120,17 @@ void DescribeDcdnUserDomainsRequest::setFuncFilter(const std::string& funcFilter
|
||||
setParameter("FuncFilter", funcFilter);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserDomainsRequest::getCoverage()const
|
||||
{
|
||||
return coverage_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserDomainsRequest::setCoverage(const std::string& coverage)
|
||||
{
|
||||
coverage_ = coverage;
|
||||
setParameter("Coverage", coverage);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserDomainsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeDcdnWafDomainRequest::DescribeDcdnWafDomainRequest() :
|
||||
DescribeDcdnWafDomainRequest::~DescribeDcdnWafDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnWafDomainRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnWafDomainRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnWafDomainRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
51
dcdn/src/model/DescribeDcdnsecServiceRequest.cc
Normal file
51
dcdn/src/model/DescribeDcdnsecServiceRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnsecServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnsecServiceRequest;
|
||||
|
||||
DescribeDcdnsecServiceRequest::DescribeDcdnsecServiceRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnsecService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnsecServiceRequest::~DescribeDcdnsecServiceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDcdnsecServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnsecServiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDcdnsecServiceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
127
dcdn/src/model/DescribeDcdnsecServiceResult.cc
Normal file
127
dcdn/src/model/DescribeDcdnsecServiceResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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/DescribeDcdnsecServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnsecServiceResult::DescribeDcdnsecServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnsecServiceResult::DescribeDcdnsecServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnsecServiceResult::~DescribeDcdnsecServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnsecServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOperationLocksNode = value["OperationLocks"]["LockReason"];
|
||||
for (auto valueOperationLocksLockReason : allOperationLocksNode)
|
||||
{
|
||||
LockReason operationLocksObject;
|
||||
if(!valueOperationLocksLockReason["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = valueOperationLocksLockReason["LockReason"].asString();
|
||||
operationLocks_.push_back(operationLocksObject);
|
||||
}
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
internetChargeType_ = value["InternetChargeType"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["ChangingChargeType"].isNull())
|
||||
changingChargeType_ = value["ChangingChargeType"].asString();
|
||||
if(!value["ChangingAffectTime"].isNull())
|
||||
changingAffectTime_ = value["ChangingAffectTime"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
version_ = value["Version"].asString();
|
||||
if(!value["FlowType"].isNull())
|
||||
flowType_ = value["FlowType"].asString();
|
||||
if(!value["RequestType"].isNull())
|
||||
requestType_ = value["RequestType"].asString();
|
||||
if(!value["DomainNum"].isNull())
|
||||
domainNum_ = value["DomainNum"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getChangingChargeType()const
|
||||
{
|
||||
return changingChargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getFlowType()const
|
||||
{
|
||||
return flowType_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getDomainNum()const
|
||||
{
|
||||
return domainNum_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnsecServiceResult::LockReason> DescribeDcdnsecServiceResult::getOperationLocks()const
|
||||
{
|
||||
return operationLocks_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getChangingAffectTime()const
|
||||
{
|
||||
return changingAffectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnsecServiceResult::getRequestType()const
|
||||
{
|
||||
return requestType_;
|
||||
}
|
||||
|
||||
40
dcdn/src/model/DescribeRoutineCanaryEnvsRequest.cc
Normal file
40
dcdn/src/model/DescribeRoutineCanaryEnvsRequest.cc
Normal 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/DescribeRoutineCanaryEnvsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeRoutineCanaryEnvsRequest;
|
||||
|
||||
DescribeRoutineCanaryEnvsRequest::DescribeRoutineCanaryEnvsRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeRoutineCanaryEnvs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRoutineCanaryEnvsRequest::~DescribeRoutineCanaryEnvsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRoutineCanaryEnvsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRoutineCanaryEnvsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineCanaryEnvsResult.cc
Normal file
51
dcdn/src/model/DescribeRoutineCanaryEnvsResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineCanaryEnvsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeRoutineCanaryEnvsResult::DescribeRoutineCanaryEnvsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRoutineCanaryEnvsResult::DescribeRoutineCanaryEnvsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRoutineCanaryEnvsResult::~DescribeRoutineCanaryEnvsResult()
|
||||
{}
|
||||
|
||||
void DescribeRoutineCanaryEnvsResult::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 DescribeRoutineCanaryEnvsResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/DescribeRoutineCodeRevisionRequest.cc
Normal file
62
dcdn/src/model/DescribeRoutineCodeRevisionRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineCodeRevisionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeRoutineCodeRevisionRequest;
|
||||
|
||||
DescribeRoutineCodeRevisionRequest::DescribeRoutineCodeRevisionRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeRoutineCodeRevision")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRoutineCodeRevisionRequest::~DescribeRoutineCodeRevisionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRoutineCodeRevisionRequest::getSelectCodeRevision()const
|
||||
{
|
||||
return selectCodeRevision_;
|
||||
}
|
||||
|
||||
void DescribeRoutineCodeRevisionRequest::setSelectCodeRevision(const std::string& selectCodeRevision)
|
||||
{
|
||||
selectCodeRevision_ = selectCodeRevision;
|
||||
setBodyParameter("SelectCodeRevision", selectCodeRevision);
|
||||
}
|
||||
|
||||
long DescribeRoutineCodeRevisionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRoutineCodeRevisionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRoutineCodeRevisionRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeRoutineCodeRevisionRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineCodeRevisionResult.cc
Normal file
51
dcdn/src/model/DescribeRoutineCodeRevisionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineCodeRevisionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeRoutineCodeRevisionResult::DescribeRoutineCodeRevisionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRoutineCodeRevisionResult::DescribeRoutineCodeRevisionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRoutineCodeRevisionResult::~DescribeRoutineCodeRevisionResult()
|
||||
{}
|
||||
|
||||
void DescribeRoutineCodeRevisionResult::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 DescribeRoutineCodeRevisionResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineRequest.cc
Normal file
51
dcdn/src/model/DescribeRoutineRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeRoutineRequest;
|
||||
|
||||
DescribeRoutineRequest::DescribeRoutineRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeRoutine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRoutineRequest::~DescribeRoutineRequest()
|
||||
{}
|
||||
|
||||
long DescribeRoutineRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRoutineRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRoutineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeRoutineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineResult.cc
Normal file
51
dcdn/src/model/DescribeRoutineResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeRoutineResult::DescribeRoutineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRoutineResult::DescribeRoutineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRoutineResult::~DescribeRoutineResult()
|
||||
{}
|
||||
|
||||
void DescribeRoutineResult::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 DescribeRoutineResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
40
dcdn/src/model/DescribeRoutineSpecRequest.cc
Normal file
40
dcdn/src/model/DescribeRoutineSpecRequest.cc
Normal 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/DescribeRoutineSpecRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeRoutineSpecRequest;
|
||||
|
||||
DescribeRoutineSpecRequest::DescribeRoutineSpecRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeRoutineSpec")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRoutineSpecRequest::~DescribeRoutineSpecRequest()
|
||||
{}
|
||||
|
||||
long DescribeRoutineSpecRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRoutineSpecRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineSpecResult.cc
Normal file
51
dcdn/src/model/DescribeRoutineSpecResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineSpecResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeRoutineSpecResult::DescribeRoutineSpecResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRoutineSpecResult::DescribeRoutineSpecResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRoutineSpecResult::~DescribeRoutineSpecResult()
|
||||
{}
|
||||
|
||||
void DescribeRoutineSpecResult::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 DescribeRoutineSpecResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
40
dcdn/src/model/DescribeRoutineUserInfoRequest.cc
Normal file
40
dcdn/src/model/DescribeRoutineUserInfoRequest.cc
Normal 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/DescribeRoutineUserInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeRoutineUserInfoRequest;
|
||||
|
||||
DescribeRoutineUserInfoRequest::DescribeRoutineUserInfoRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeRoutineUserInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRoutineUserInfoRequest::~DescribeRoutineUserInfoRequest()
|
||||
{}
|
||||
|
||||
long DescribeRoutineUserInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRoutineUserInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeRoutineUserInfoResult.cc
Normal file
51
dcdn/src/model/DescribeRoutineUserInfoResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeRoutineUserInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeRoutineUserInfoResult::DescribeRoutineUserInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRoutineUserInfoResult::DescribeRoutineUserInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRoutineUserInfoResult::~DescribeRoutineUserInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeRoutineUserInfoResult::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 DescribeRoutineUserInfoResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
73
dcdn/src/model/EditRoutineConfRequest.cc
Normal file
73
dcdn/src/model/EditRoutineConfRequest.cc
Normal 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/EditRoutineConfRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::EditRoutineConfRequest;
|
||||
|
||||
EditRoutineConfRequest::EditRoutineConfRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "EditRoutineConf")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EditRoutineConfRequest::~EditRoutineConfRequest()
|
||||
{}
|
||||
|
||||
std::string EditRoutineConfRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void EditRoutineConfRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string EditRoutineConfRequest::getEnvConf()const
|
||||
{
|
||||
return envConf_;
|
||||
}
|
||||
|
||||
void EditRoutineConfRequest::setEnvConf(const std::string& envConf)
|
||||
{
|
||||
envConf_ = envConf;
|
||||
setBodyParameter("EnvConf", envConf);
|
||||
}
|
||||
|
||||
long EditRoutineConfRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EditRoutineConfRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EditRoutineConfRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void EditRoutineConfRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/EditRoutineConfResult.cc
Normal file
51
dcdn/src/model/EditRoutineConfResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/EditRoutineConfResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
EditRoutineConfResult::EditRoutineConfResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EditRoutineConfResult::EditRoutineConfResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EditRoutineConfResult::~EditRoutineConfResult()
|
||||
{}
|
||||
|
||||
void EditRoutineConfResult::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 EditRoutineConfResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
73
dcdn/src/model/PublishRoutineCodeRevisionRequest.cc
Normal file
73
dcdn/src/model/PublishRoutineCodeRevisionRequest.cc
Normal 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/PublishRoutineCodeRevisionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::PublishRoutineCodeRevisionRequest;
|
||||
|
||||
PublishRoutineCodeRevisionRequest::PublishRoutineCodeRevisionRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "PublishRoutineCodeRevision")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PublishRoutineCodeRevisionRequest::~PublishRoutineCodeRevisionRequest()
|
||||
{}
|
||||
|
||||
std::string PublishRoutineCodeRevisionRequest::getSelectCodeRevision()const
|
||||
{
|
||||
return selectCodeRevision_;
|
||||
}
|
||||
|
||||
void PublishRoutineCodeRevisionRequest::setSelectCodeRevision(const std::string& selectCodeRevision)
|
||||
{
|
||||
selectCodeRevision_ = selectCodeRevision;
|
||||
setBodyParameter("SelectCodeRevision", selectCodeRevision);
|
||||
}
|
||||
|
||||
std::string PublishRoutineCodeRevisionRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void PublishRoutineCodeRevisionRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setBodyParameter("Envs", envs);
|
||||
}
|
||||
|
||||
long PublishRoutineCodeRevisionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void PublishRoutineCodeRevisionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string PublishRoutineCodeRevisionRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void PublishRoutineCodeRevisionRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/PublishRoutineCodeRevisionResult.cc
Normal file
51
dcdn/src/model/PublishRoutineCodeRevisionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/PublishRoutineCodeRevisionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
PublishRoutineCodeRevisionResult::PublishRoutineCodeRevisionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PublishRoutineCodeRevisionResult::PublishRoutineCodeRevisionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PublishRoutineCodeRevisionResult::~PublishRoutineCodeRevisionResult()
|
||||
{}
|
||||
|
||||
void PublishRoutineCodeRevisionResult::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 PublishRoutineCodeRevisionResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ RollbackDcdnStagingConfigRequest::RollbackDcdnStagingConfigRequest() :
|
||||
RollbackDcdnStagingConfigRequest::~RollbackDcdnStagingConfigRequest()
|
||||
{}
|
||||
|
||||
std::string RollbackDcdnStagingConfigRequest::getFunctionName()const
|
||||
{
|
||||
return functionName_;
|
||||
}
|
||||
|
||||
void RollbackDcdnStagingConfigRequest::setFunctionName(const std::string& functionName)
|
||||
{
|
||||
functionName_ = functionName;
|
||||
setParameter("FunctionName", functionName);
|
||||
}
|
||||
|
||||
std::string RollbackDcdnStagingConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
84
dcdn/src/model/SetDcdnUserConfigRequest.cc
Normal file
84
dcdn/src/model/SetDcdnUserConfigRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/SetDcdnUserConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::SetDcdnUserConfigRequest;
|
||||
|
||||
SetDcdnUserConfigRequest::SetDcdnUserConfigRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "SetDcdnUserConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDcdnUserConfigRequest::~SetDcdnUserConfigRequest()
|
||||
{}
|
||||
|
||||
std::string SetDcdnUserConfigRequest::getConfigs()const
|
||||
{
|
||||
return configs_;
|
||||
}
|
||||
|
||||
void SetDcdnUserConfigRequest::setConfigs(const std::string& configs)
|
||||
{
|
||||
configs_ = configs;
|
||||
setParameter("Configs", configs);
|
||||
}
|
||||
|
||||
std::string SetDcdnUserConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void SetDcdnUserConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long SetDcdnUserConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetDcdnUserConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SetDcdnUserConfigRequest::getFunctionId()const
|
||||
{
|
||||
return functionId_;
|
||||
}
|
||||
|
||||
void SetDcdnUserConfigRequest::setFunctionId(int functionId)
|
||||
{
|
||||
functionId_ = functionId;
|
||||
setParameter("FunctionId", std::to_string(functionId));
|
||||
}
|
||||
|
||||
std::string SetDcdnUserConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetDcdnUserConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
44
dcdn/src/model/SetDcdnUserConfigResult.cc
Normal file
44
dcdn/src/model/SetDcdnUserConfigResult.cc
Normal 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/SetDcdnUserConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
SetDcdnUserConfigResult::SetDcdnUserConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDcdnUserConfigResult::SetDcdnUserConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDcdnUserConfigResult::~SetDcdnUserConfigResult()
|
||||
{}
|
||||
|
||||
void SetDcdnUserConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
dcdn/src/model/SetRoutineSubdomainRequest.cc
Normal file
51
dcdn/src/model/SetRoutineSubdomainRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/SetRoutineSubdomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::SetRoutineSubdomainRequest;
|
||||
|
||||
SetRoutineSubdomainRequest::SetRoutineSubdomainRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "SetRoutineSubdomain")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetRoutineSubdomainRequest::~SetRoutineSubdomainRequest()
|
||||
{}
|
||||
|
||||
std::string SetRoutineSubdomainRequest::getSubdomains()const
|
||||
{
|
||||
return subdomains_;
|
||||
}
|
||||
|
||||
void SetRoutineSubdomainRequest::setSubdomains(const std::string& subdomains)
|
||||
{
|
||||
subdomains_ = subdomains;
|
||||
setBodyParameter("Subdomains", subdomains);
|
||||
}
|
||||
|
||||
long SetRoutineSubdomainRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetRoutineSubdomainRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/SetRoutineSubdomainResult.cc
Normal file
51
dcdn/src/model/SetRoutineSubdomainResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/SetRoutineSubdomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
SetRoutineSubdomainResult::SetRoutineSubdomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetRoutineSubdomainResult::SetRoutineSubdomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetRoutineSubdomainResult::~SetRoutineSubdomainResult()
|
||||
{}
|
||||
|
||||
void SetRoutineSubdomainResult::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 SetRoutineSubdomainResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
@@ -104,14 +104,3 @@ void UpdateDcdnDeliverTaskRequest::setName(const std::string& name)
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateDcdnDeliverTaskRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateDcdnDeliverTaskRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,14 +82,3 @@ void UpdateDcdnSubTaskRequest::setReportIds(const std::string& reportIds)
|
||||
setBodyParameter("ReportIds", reportIds);
|
||||
}
|
||||
|
||||
std::string UpdateDcdnSubTaskRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateDcdnSubTaskRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
62
dcdn/src/model/UploadRoutineCodeRequest.cc
Normal file
62
dcdn/src/model/UploadRoutineCodeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/UploadRoutineCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::UploadRoutineCodeRequest;
|
||||
|
||||
UploadRoutineCodeRequest::UploadRoutineCodeRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "UploadRoutineCode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadRoutineCodeRequest::~UploadRoutineCodeRequest()
|
||||
{}
|
||||
|
||||
std::string UploadRoutineCodeRequest::getCodeDescription()const
|
||||
{
|
||||
return codeDescription_;
|
||||
}
|
||||
|
||||
void UploadRoutineCodeRequest::setCodeDescription(const std::string& codeDescription)
|
||||
{
|
||||
codeDescription_ = codeDescription;
|
||||
setBodyParameter("CodeDescription", codeDescription);
|
||||
}
|
||||
|
||||
long UploadRoutineCodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UploadRoutineCodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UploadRoutineCodeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UploadRoutineCodeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/UploadRoutineCodeResult.cc
Normal file
51
dcdn/src/model/UploadRoutineCodeResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/UploadRoutineCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
UploadRoutineCodeResult::UploadRoutineCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadRoutineCodeResult::UploadRoutineCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadRoutineCodeResult::~UploadRoutineCodeResult()
|
||||
{}
|
||||
|
||||
void UploadRoutineCodeResult::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 UploadRoutineCodeResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/UploadStagingRoutineCodeRequest.cc
Normal file
62
dcdn/src/model/UploadStagingRoutineCodeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/UploadStagingRoutineCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::UploadStagingRoutineCodeRequest;
|
||||
|
||||
UploadStagingRoutineCodeRequest::UploadStagingRoutineCodeRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "UploadStagingRoutineCode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadStagingRoutineCodeRequest::~UploadStagingRoutineCodeRequest()
|
||||
{}
|
||||
|
||||
std::string UploadStagingRoutineCodeRequest::getCodeDescription()const
|
||||
{
|
||||
return codeDescription_;
|
||||
}
|
||||
|
||||
void UploadStagingRoutineCodeRequest::setCodeDescription(const std::string& codeDescription)
|
||||
{
|
||||
codeDescription_ = codeDescription;
|
||||
setBodyParameter("CodeDescription", codeDescription);
|
||||
}
|
||||
|
||||
long UploadStagingRoutineCodeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UploadStagingRoutineCodeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UploadStagingRoutineCodeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UploadStagingRoutineCodeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
51
dcdn/src/model/UploadStagingRoutineCodeResult.cc
Normal file
51
dcdn/src/model/UploadStagingRoutineCodeResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/UploadStagingRoutineCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
UploadStagingRoutineCodeResult::UploadStagingRoutineCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadStagingRoutineCodeResult::UploadStagingRoutineCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadStagingRoutineCodeResult::~UploadStagingRoutineCodeResult()
|
||||
{}
|
||||
|
||||
void UploadStagingRoutineCodeResult::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 UploadStagingRoutineCodeResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user