Update EBS default encrypted APIs from private to public.
This commit is contained in:
@@ -4839,6 +4839,78 @@ EcsClient::DescribeDiagnosticReportsOutcomeCallable EcsClient::describeDiagnosti
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeDiskDefaultKMSKeyIdOutcome EcsClient::describeDiskDefaultKMSKeyId(const DescribeDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDiskDefaultKMSKeyIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDiskDefaultKMSKeyIdOutcome(DescribeDiskDefaultKMSKeyIdResult(outcome.result()));
|
||||
else
|
||||
return DescribeDiskDefaultKMSKeyIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeDiskDefaultKMSKeyIdAsync(const DescribeDiskDefaultKMSKeyIdRequest& request, const DescribeDiskDefaultKMSKeyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDiskDefaultKMSKeyId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeDiskDefaultKMSKeyIdOutcomeCallable EcsClient::describeDiskDefaultKMSKeyIdCallable(const DescribeDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDiskDefaultKMSKeyIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDiskDefaultKMSKeyId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeDiskEncryptionByDefaultStatusOutcome EcsClient::describeDiskEncryptionByDefaultStatus(const DescribeDiskEncryptionByDefaultStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDiskEncryptionByDefaultStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDiskEncryptionByDefaultStatusOutcome(DescribeDiskEncryptionByDefaultStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeDiskEncryptionByDefaultStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeDiskEncryptionByDefaultStatusAsync(const DescribeDiskEncryptionByDefaultStatusRequest& request, const DescribeDiskEncryptionByDefaultStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDiskEncryptionByDefaultStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeDiskEncryptionByDefaultStatusOutcomeCallable EcsClient::describeDiskEncryptionByDefaultStatusCallable(const DescribeDiskEncryptionByDefaultStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDiskEncryptionByDefaultStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDiskEncryptionByDefaultStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeDiskMonitorDataOutcome EcsClient::describeDiskMonitorData(const DescribeDiskMonitorDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8223,6 +8295,42 @@ EcsClient::DisableActivationOutcomeCallable EcsClient::disableActivationCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DisableDiskEncryptionByDefaultOutcome EcsClient::disableDiskEncryptionByDefault(const DisableDiskEncryptionByDefaultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableDiskEncryptionByDefaultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableDiskEncryptionByDefaultOutcome(DisableDiskEncryptionByDefaultResult(outcome.result()));
|
||||
else
|
||||
return DisableDiskEncryptionByDefaultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::disableDiskEncryptionByDefaultAsync(const DisableDiskEncryptionByDefaultRequest& request, const DisableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableDiskEncryptionByDefault(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DisableDiskEncryptionByDefaultOutcomeCallable EcsClient::disableDiskEncryptionByDefaultCallable(const DisableDiskEncryptionByDefaultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableDiskEncryptionByDefaultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableDiskEncryptionByDefault(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::EipFillParamsOutcome EcsClient::eipFillParams(const EipFillParamsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8331,6 +8439,42 @@ EcsClient::EipNotifyPaidOutcomeCallable EcsClient::eipNotifyPaidCallable(const E
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::EnableDiskEncryptionByDefaultOutcome EcsClient::enableDiskEncryptionByDefault(const EnableDiskEncryptionByDefaultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableDiskEncryptionByDefaultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableDiskEncryptionByDefaultOutcome(EnableDiskEncryptionByDefaultResult(outcome.result()));
|
||||
else
|
||||
return EnableDiskEncryptionByDefaultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::enableDiskEncryptionByDefaultAsync(const EnableDiskEncryptionByDefaultRequest& request, const EnableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableDiskEncryptionByDefault(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::EnableDiskEncryptionByDefaultOutcomeCallable EcsClient::enableDiskEncryptionByDefaultCallable(const EnableDiskEncryptionByDefaultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableDiskEncryptionByDefaultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableDiskEncryptionByDefault(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::EnablePhysicalConnectionOutcome EcsClient::enablePhysicalConnection(const EnablePhysicalConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9447,6 +9591,42 @@ EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyDiskDefaultKMSKeyIdOutcome EcsClient::modifyDiskDefaultKMSKeyId(const ModifyDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDiskDefaultKMSKeyIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDiskDefaultKMSKeyIdOutcome(ModifyDiskDefaultKMSKeyIdResult(outcome.result()));
|
||||
else
|
||||
return ModifyDiskDefaultKMSKeyIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyDiskDefaultKMSKeyIdAsync(const ModifyDiskDefaultKMSKeyIdRequest& request, const ModifyDiskDefaultKMSKeyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDiskDefaultKMSKeyId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyDiskDefaultKMSKeyIdOutcomeCallable EcsClient::modifyDiskDefaultKMSKeyIdCallable(const ModifyDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDiskDefaultKMSKeyIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDiskDefaultKMSKeyId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyDiskDeploymentOutcome EcsClient::modifyDiskDeployment(const ModifyDiskDeploymentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -11715,6 +11895,42 @@ EcsClient::RenewDedicatedHostsOutcomeCallable EcsClient::renewDedicatedHostsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::RenewElasticityAssurancesOutcome EcsClient::renewElasticityAssurances(const RenewElasticityAssurancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewElasticityAssurancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewElasticityAssurancesOutcome(RenewElasticityAssurancesResult(outcome.result()));
|
||||
else
|
||||
return RenewElasticityAssurancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::renewElasticityAssurancesAsync(const RenewElasticityAssurancesRequest& request, const RenewElasticityAssurancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewElasticityAssurances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::RenewElasticityAssurancesOutcomeCallable EcsClient::renewElasticityAssurancesCallable(const RenewElasticityAssurancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewElasticityAssurancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewElasticityAssurances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::RenewInstanceOutcome EcsClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -11895,6 +12111,42 @@ EcsClient::ResetDiskOutcomeCallable EcsClient::resetDiskCallable(const ResetDisk
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ResetDiskDefaultKMSKeyIdOutcome EcsClient::resetDiskDefaultKMSKeyId(const ResetDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResetDiskDefaultKMSKeyIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResetDiskDefaultKMSKeyIdOutcome(ResetDiskDefaultKMSKeyIdResult(outcome.result()));
|
||||
else
|
||||
return ResetDiskDefaultKMSKeyIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::resetDiskDefaultKMSKeyIdAsync(const ResetDiskDefaultKMSKeyIdRequest& request, const ResetDiskDefaultKMSKeyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resetDiskDefaultKMSKeyId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ResetDiskDefaultKMSKeyIdOutcomeCallable EcsClient::resetDiskDefaultKMSKeyIdCallable(const ResetDiskDefaultKMSKeyIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResetDiskDefaultKMSKeyIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resetDiskDefaultKMSKeyId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ResetDisksOutcome EcsClient::resetDisks(const ResetDisksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -12147,42 +12399,6 @@ EcsClient::SendFileOutcomeCallable EcsClient::sendFileCallable(const SendFileReq
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::StartElasticityAssuranceOutcome EcsClient::startElasticityAssurance(const StartElasticityAssuranceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartElasticityAssuranceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartElasticityAssuranceOutcome(StartElasticityAssuranceResult(outcome.result()));
|
||||
else
|
||||
return StartElasticityAssuranceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::startElasticityAssuranceAsync(const StartElasticityAssuranceRequest& request, const StartElasticityAssuranceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startElasticityAssurance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::StartElasticityAssuranceOutcomeCallable EcsClient::startElasticityAssuranceCallable(const StartElasticityAssuranceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartElasticityAssuranceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startElasticityAssurance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::StartImagePipelineExecutionOutcome EcsClient::startImagePipelineExecution(const StartImagePipelineExecutionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -106,6 +106,18 @@ void AttachDiskRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
AttachDiskRequest::AdditionalInfo AttachDiskRequest::getAdditionalInfo() const {
|
||||
return additionalInfo_;
|
||||
}
|
||||
|
||||
void AttachDiskRequest::setAdditionalInfo(const AttachDiskRequest::AdditionalInfo &additionalInfo) {
|
||||
additionalInfo_ = additionalInfo;
|
||||
setParameter(std::string("AdditionalInfo") + ".EnableSRIOV", additionalInfo.enableSRIOV ? "true" : "false");
|
||||
setParameter(std::string("AdditionalInfo") + ".Identifier", additionalInfo.identifier);
|
||||
setParameter(std::string("AdditionalInfo") + ".SafeMode", additionalInfo.safeMode ? "true" : "false");
|
||||
setParameter(std::string("AdditionalInfo") + ".TargetDevice", additionalInfo.targetDevice);
|
||||
}
|
||||
|
||||
std::string AttachDiskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void CopySnapshotRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
std::string CopySnapshotRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CopySnapshotRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CopySnapshotRequest::getDestinationRegionId() const {
|
||||
return destinationRegionId_;
|
||||
}
|
||||
|
||||
@@ -161,6 +161,15 @@ void CreateLaunchTemplateRequest::setSystemDiskAutoSnapshotPolicyId(const std::s
|
||||
setParameter(std::string("SystemDisk.AutoSnapshotPolicyId"), systemDiskAutoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateRequest::getAutoRenewPeriod() const {
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setAutoRenewPeriod(int autoRenewPeriod) {
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
@@ -233,6 +242,15 @@ void CreateLaunchTemplateRequest::setSystemDiskBurstingEnabled(bool systemDiskBu
|
||||
setParameter(std::string("SystemDisk.BurstingEnabled"), systemDiskBurstingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
@@ -242,6 +260,15 @@ void CreateLaunchTemplateRequest::setInstanceName(const std::string &instanceNam
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getInternetChargeType() const {
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
@@ -147,6 +147,15 @@ void CreateLaunchTemplateVersionRequest::setSystemDiskAutoSnapshotPolicyId(const
|
||||
setParameter(std::string("SystemDisk.AutoSnapshotPolicyId"), systemDiskAutoSnapshotPolicyId);
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateVersionRequest::getAutoRenewPeriod() const {
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setAutoRenewPeriod(int autoRenewPeriod) {
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateLaunchTemplateVersionRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
@@ -219,6 +228,15 @@ void CreateLaunchTemplateVersionRequest::setSystemDiskBurstingEnabled(bool syste
|
||||
setParameter(std::string("SystemDisk.BurstingEnabled"), systemDiskBurstingEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
@@ -228,6 +246,15 @@ void CreateLaunchTemplateVersionRequest::setInstanceName(const std::string &inst
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
bool CreateLaunchTemplateVersionRequest::getAutoRenew() const {
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setAutoRenew(bool autoRenew) {
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getInternetChargeType() const {
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,15 @@ void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string &resour
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
CreateNetworkInterfaceRequest::EnhancedNetwork CreateNetworkInterfaceRequest::getEnhancedNetwork() const {
|
||||
return enhancedNetwork_;
|
||||
}
|
||||
|
||||
void CreateNetworkInterfaceRequest::setEnhancedNetwork(const CreateNetworkInterfaceRequest::EnhancedNetwork &enhancedNetwork) {
|
||||
enhancedNetwork_ = enhancedNetwork;
|
||||
setParameter(std::string("EnhancedNetwork") + ".EnableSriov", enhancedNetwork.enableSriov ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateNetworkInterfaceRequest::Tag> CreateNetworkInterfaceRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSnapshotGroupRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateSnapshotGroupRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateSnapshotGroupRequest::getInstantAccess() const {
|
||||
return instantAccess_;
|
||||
}
|
||||
|
||||
45
ecs/src/model/DescribeDiskDefaultKMSKeyIdRequest.cc
Normal file
45
ecs/src/model/DescribeDiskDefaultKMSKeyIdRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeDiskDefaultKMSKeyIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeDiskDefaultKMSKeyIdRequest;
|
||||
|
||||
DescribeDiskDefaultKMSKeyIdRequest::DescribeDiskDefaultKMSKeyIdRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskDefaultKMSKeyId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiskDefaultKMSKeyIdRequest::~DescribeDiskDefaultKMSKeyIdRequest() {}
|
||||
|
||||
long DescribeDiskDefaultKMSKeyIdRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDiskDefaultKMSKeyIdRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDiskDefaultKMSKeyIdRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDiskDefaultKMSKeyIdRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
ecs/src/model/DescribeDiskDefaultKMSKeyIdResult.cc
Normal file
51
ecs/src/model/DescribeDiskDefaultKMSKeyIdResult.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/ecs/model/DescribeDiskDefaultKMSKeyIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeDiskDefaultKMSKeyIdResult::DescribeDiskDefaultKMSKeyIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDiskDefaultKMSKeyIdResult::DescribeDiskDefaultKMSKeyIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDiskDefaultKMSKeyIdResult::~DescribeDiskDefaultKMSKeyIdResult()
|
||||
{}
|
||||
|
||||
void DescribeDiskDefaultKMSKeyIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["KMSKeyId"].isNull())
|
||||
kMSKeyId_ = value["KMSKeyId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDiskDefaultKMSKeyIdResult::getKMSKeyId()const
|
||||
{
|
||||
return kMSKeyId_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeDiskEncryptionByDefaultStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeDiskEncryptionByDefaultStatusRequest;
|
||||
|
||||
DescribeDiskEncryptionByDefaultStatusRequest::DescribeDiskEncryptionByDefaultStatusRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskEncryptionByDefaultStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiskEncryptionByDefaultStatusRequest::~DescribeDiskEncryptionByDefaultStatusRequest() {}
|
||||
|
||||
long DescribeDiskEncryptionByDefaultStatusRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDiskEncryptionByDefaultStatusRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDiskEncryptionByDefaultStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDiskEncryptionByDefaultStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
ecs/src/model/DescribeDiskEncryptionByDefaultStatusResult.cc
Normal file
51
ecs/src/model/DescribeDiskEncryptionByDefaultStatusResult.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/ecs/model/DescribeDiskEncryptionByDefaultStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeDiskEncryptionByDefaultStatusResult::DescribeDiskEncryptionByDefaultStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDiskEncryptionByDefaultStatusResult::DescribeDiskEncryptionByDefaultStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDiskEncryptionByDefaultStatusResult::~DescribeDiskEncryptionByDefaultStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeDiskEncryptionByDefaultStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Encrypted"].isNull())
|
||||
encrypted_ = value["Encrypted"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DescribeDiskEncryptionByDefaultStatusResult::getEncrypted()const
|
||||
{
|
||||
return encrypted_;
|
||||
}
|
||||
|
||||
@@ -171,6 +171,16 @@ void DescribeDisksResult::parse(const std::string &payload)
|
||||
attachmentsObject.device = valueDisksDiskAttachmentsAttachment["Device"].asString();
|
||||
if(!valueDisksDiskAttachmentsAttachment["AttachedTime"].isNull())
|
||||
attachmentsObject.attachedTime = valueDisksDiskAttachmentsAttachment["AttachedTime"].asString();
|
||||
if(!valueDisksDiskAttachmentsAttachment["NsId"].isNull())
|
||||
attachmentsObject.nsId = std::stol(valueDisksDiskAttachmentsAttachment["NsId"].asString());
|
||||
if(!valueDisksDiskAttachmentsAttachment["Nguid"].isNull())
|
||||
attachmentsObject.nguid = valueDisksDiskAttachmentsAttachment["Nguid"].asString();
|
||||
if(!valueDisksDiskAttachmentsAttachment["Identifier"].isNull())
|
||||
attachmentsObject.identifier = valueDisksDiskAttachmentsAttachment["Identifier"].asString();
|
||||
if(!valueDisksDiskAttachmentsAttachment["TargetDevice"].isNull())
|
||||
attachmentsObject.targetDevice = valueDisksDiskAttachmentsAttachment["TargetDevice"].asString();
|
||||
if(!valueDisksDiskAttachmentsAttachment["AccessToken"].isNull())
|
||||
attachmentsObject.accessToken = valueDisksDiskAttachmentsAttachment["AccessToken"].asString();
|
||||
disksObject.attachments.push_back(attachmentsObject);
|
||||
}
|
||||
auto placementNode = value["Placement"];
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeInstanceHistoryEventsResult::parse(const std::string &payload)
|
||||
instanceSystemEventSetObject.instanceId = valueInstanceSystemEventSetInstanceSystemEventType["InstanceId"].asString();
|
||||
if(!valueInstanceSystemEventSetInstanceSystemEventType["Reason"].isNull())
|
||||
instanceSystemEventSetObject.reason = valueInstanceSystemEventSetInstanceSystemEventType["Reason"].asString();
|
||||
if(!valueInstanceSystemEventSetInstanceSystemEventType["ReasonCode"].isNull())
|
||||
instanceSystemEventSetObject.reasonCode = valueInstanceSystemEventSetInstanceSystemEventType["ReasonCode"].asString();
|
||||
auto eventTypeNode = value["EventType"];
|
||||
if(!eventTypeNode["Name"].isNull())
|
||||
instanceSystemEventSetObject.eventType.name = eventTypeNode["Name"].asString();
|
||||
|
||||
@@ -125,6 +125,11 @@ void DescribeInstanceTypesResult::parse(const std::string &payload)
|
||||
networkCardsObject.networkCardIndex = std::stoi(valueInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo["NetworkCardIndex"].asString());
|
||||
instanceTypesObject.networkCards.push_back(networkCardsObject);
|
||||
}
|
||||
auto enhancedNetworkNode = value["EnhancedNetwork"];
|
||||
if(!enhancedNetworkNode["SriovSupport"].isNull())
|
||||
instanceTypesObject.enhancedNetwork.sriovSupport = enhancedNetworkNode["SriovSupport"].asString() == "true";
|
||||
if(!enhancedNetworkNode["VfQueueNumberPerEni"].isNull())
|
||||
instanceTypesObject.enhancedNetwork.vfQueueNumberPerEni = std::stoi(enhancedNetworkNode["VfQueueNumberPerEni"].asString());
|
||||
auto allSupportedBootModes = value["SupportedBootModes"]["SupportedBootMode"];
|
||||
for (auto value : allSupportedBootModes)
|
||||
instanceTypesObject.supportedBootModes.push_back(value.asString());
|
||||
|
||||
@@ -159,6 +159,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
privateIpSetsObject.privateIpAddress = valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["PrivateIpAddress"].asString();
|
||||
if(!valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["Primary"].isNull())
|
||||
privateIpSetsObject.primary = valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["Primary"].asString() == "true";
|
||||
if(!valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["PrivateDnsName"].isNull())
|
||||
privateIpSetsObject.privateDnsName = valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["PrivateDnsName"].asString();
|
||||
networkInterfacesObject.privateIpSets.push_back(privateIpSetsObject);
|
||||
}
|
||||
auto allIpv6SetsNode = valueInstancesInstanceNetworkInterfacesNetworkInterface["Ipv6Sets"]["Ipv6Set"];
|
||||
@@ -267,6 +269,17 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
auto imageOptionsNode = value["ImageOptions"];
|
||||
if(!imageOptionsNode["LoginAsNonRoot"].isNull())
|
||||
instancesObject.imageOptions.loginAsNonRoot = imageOptionsNode["LoginAsNonRoot"].asString() == "true";
|
||||
auto privateDnsNameOptionsNode = value["PrivateDnsNameOptions"];
|
||||
if(!privateDnsNameOptionsNode["EnableInstanceIdDnsARecord"].isNull())
|
||||
instancesObject.privateDnsNameOptions.enableInstanceIdDnsARecord = privateDnsNameOptionsNode["EnableInstanceIdDnsARecord"].asString() == "true";
|
||||
if(!privateDnsNameOptionsNode["EnableInstanceIdDnsAAAARecord"].isNull())
|
||||
instancesObject.privateDnsNameOptions.enableInstanceIdDnsAAAARecord = privateDnsNameOptionsNode["EnableInstanceIdDnsAAAARecord"].asString() == "true";
|
||||
if(!privateDnsNameOptionsNode["EnableIpDnsARecord"].isNull())
|
||||
instancesObject.privateDnsNameOptions.enableIpDnsARecord = privateDnsNameOptionsNode["EnableIpDnsARecord"].asString() == "true";
|
||||
if(!privateDnsNameOptionsNode["EnableIpDnsPtrRecord"].isNull())
|
||||
instancesObject.privateDnsNameOptions.enableIpDnsPtrRecord = privateDnsNameOptionsNode["EnableIpDnsPtrRecord"].asString() == "true";
|
||||
if(!privateDnsNameOptionsNode["HostnameType"].isNull())
|
||||
instancesObject.privateDnsNameOptions.hostnameType = privateDnsNameOptionsNode["HostnameType"].asString();
|
||||
auto allRdmaIpAddress = value["RdmaIpAddress"]["IpAddress"];
|
||||
for (auto value : allRdmaIpAddress)
|
||||
instancesObject.rdmaIpAddress.push_back(value.asString());
|
||||
|
||||
@@ -88,6 +88,8 @@ void DescribeInvocationResultsResult::parse(const std::string &payload)
|
||||
invocationResultObject.containerName = invocationNodeInvocationResultsInvocationResult["ContainerName"].asString();
|
||||
if(!invocationNodeInvocationResultsInvocationResult["TerminationMode"].isNull())
|
||||
invocationResultObject.terminationMode = invocationNodeInvocationResultsInvocationResult["TerminationMode"].asString();
|
||||
if(!invocationNodeInvocationResultsInvocationResult["Launcher"].isNull())
|
||||
invocationResultObject.launcher = invocationNodeInvocationResultsInvocationResult["Launcher"].asString();
|
||||
auto allTagsNode = invocationNodeInvocationResultsInvocationResult["Tags"]["Tag"];
|
||||
for (auto invocationNodeInvocationResultsInvocationResultTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -81,6 +81,8 @@ void DescribeInvocationsResult::parse(const std::string &payload)
|
||||
invocationsObject.containerName = valueInvocationsInvocation["ContainerName"].asString();
|
||||
if(!valueInvocationsInvocation["TerminationMode"].isNull())
|
||||
invocationsObject.terminationMode = valueInvocationsInvocation["TerminationMode"].asString();
|
||||
if(!valueInvocationsInvocation["Launcher"].isNull())
|
||||
invocationsObject.launcher = valueInvocationsInvocation["Launcher"].asString();
|
||||
auto allInvokeInstancesNode = valueInvocationsInvocation["InvokeInstances"]["InvokeInstance"];
|
||||
for (auto valueInvocationsInvocationInvokeInstancesInvokeInstance : allInvokeInstancesNode)
|
||||
{
|
||||
|
||||
@@ -148,6 +148,12 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.deletionProtection = launchTemplateDataNode["DeletionProtection"].asString() == "true";
|
||||
if(!launchTemplateDataNode["CreditSpecification"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.creditSpecification = launchTemplateDataNode["CreditSpecification"].asString();
|
||||
if(!launchTemplateDataNode["AutoRenew"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.autoRenew = launchTemplateDataNode["AutoRenew"].asString() == "true";
|
||||
if(!launchTemplateDataNode["AutoRenewPeriod"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.autoRenewPeriod = std::stoi(launchTemplateDataNode["AutoRenewPeriod"].asString());
|
||||
if(!launchTemplateDataNode["PeriodUnit"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.periodUnit = launchTemplateDataNode["PeriodUnit"].asString();
|
||||
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
|
||||
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,20 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload)
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto connectionTrackingConfigurationNode = value["ConnectionTrackingConfiguration"];
|
||||
if(!connectionTrackingConfigurationNode["TcpClosedAndTimeWaitTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.tcpClosedAndTimeWaitTimeout = std::stoi(connectionTrackingConfigurationNode["TcpClosedAndTimeWaitTimeout"].asString());
|
||||
if(!connectionTrackingConfigurationNode["TcpEstablishedTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.tcpEstablishedTimeout = std::stoi(connectionTrackingConfigurationNode["TcpEstablishedTimeout"].asString());
|
||||
if(!connectionTrackingConfigurationNode["UdpTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.udpTimeout = std::stoi(connectionTrackingConfigurationNode["UdpTimeout"].asString());
|
||||
auto networkInterfaceTrafficConfigNode = value["NetworkInterfaceTrafficConfig"];
|
||||
if(!networkInterfaceTrafficConfigNode["NetworkInterfaceTrafficMode"].isNull())
|
||||
networkInterfaceTrafficConfig_.networkInterfaceTrafficMode = networkInterfaceTrafficConfigNode["NetworkInterfaceTrafficMode"].asString();
|
||||
if(!networkInterfaceTrafficConfigNode["QueueNumber"].isNull())
|
||||
networkInterfaceTrafficConfig_.queueNumber = std::stoi(networkInterfaceTrafficConfigNode["QueueNumber"].asString());
|
||||
if(!networkInterfaceTrafficConfigNode["QueuePairNumber"].isNull())
|
||||
networkInterfaceTrafficConfig_.queuePairNumber = std::stoi(networkInterfaceTrafficConfigNode["QueuePairNumber"].asString());
|
||||
auto associatedPublicIpNode = value["AssociatedPublicIp"];
|
||||
if(!associatedPublicIpNode["PublicIpAddress"].isNull())
|
||||
associatedPublicIp_.publicIpAddress = associatedPublicIpNode["PublicIpAddress"].asString();
|
||||
@@ -127,20 +141,9 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload)
|
||||
slaveInterfaceSpecification_.workState = slaveInterfaceSpecificationNode["WorkState"].asString();
|
||||
if(!slaveInterfaceSpecificationNode["BondNetworkInterfaceId"].isNull())
|
||||
slaveInterfaceSpecification_.bondNetworkInterfaceId = slaveInterfaceSpecificationNode["BondNetworkInterfaceId"].asString();
|
||||
auto networkInterfaceTrafficConfigNode = value["NetworkInterfaceTrafficConfig"];
|
||||
if(!networkInterfaceTrafficConfigNode["NetworkInterfaceTrafficMode"].isNull())
|
||||
networkInterfaceTrafficConfig_.networkInterfaceTrafficMode = networkInterfaceTrafficConfigNode["NetworkInterfaceTrafficMode"].asString();
|
||||
if(!networkInterfaceTrafficConfigNode["QueueNumber"].isNull())
|
||||
networkInterfaceTrafficConfig_.queueNumber = std::stoi(networkInterfaceTrafficConfigNode["QueueNumber"].asString());
|
||||
if(!networkInterfaceTrafficConfigNode["QueuePairNumber"].isNull())
|
||||
networkInterfaceTrafficConfig_.queuePairNumber = std::stoi(networkInterfaceTrafficConfigNode["QueuePairNumber"].asString());
|
||||
auto connectionTrackingConfigurationNode = value["ConnectionTrackingConfiguration"];
|
||||
if(!connectionTrackingConfigurationNode["TcpEstablishedTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.tcpEstablishedTimeout = std::stoi(connectionTrackingConfigurationNode["TcpEstablishedTimeout"].asString());
|
||||
if(!connectionTrackingConfigurationNode["TcpClosedAndTimeWaitTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.tcpClosedAndTimeWaitTimeout = std::stoi(connectionTrackingConfigurationNode["TcpClosedAndTimeWaitTimeout"].asString());
|
||||
if(!connectionTrackingConfigurationNode["UdpTimeout"].isNull())
|
||||
connectionTrackingConfiguration_.udpTimeout = std::stoi(connectionTrackingConfigurationNode["UdpTimeout"].asString());
|
||||
auto enhancedNetworkNode = value["EnhancedNetwork"];
|
||||
if(!enhancedNetworkNode["EnableSriov"].isNull())
|
||||
enhancedNetwork_.enableSriov = enhancedNetworkNode["EnableSriov"].asString() == "true";
|
||||
auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"];
|
||||
for (const auto &item : allSecurityGroupIds)
|
||||
securityGroupIds_.push_back(item.asString());
|
||||
@@ -224,6 +227,11 @@ std::string DescribeNetworkInterfaceAttributeResult::getNetworkInterfaceId()cons
|
||||
return networkInterfaceId_;
|
||||
}
|
||||
|
||||
DescribeNetworkInterfaceAttributeResult::EnhancedNetwork DescribeNetworkInterfaceAttributeResult::getEnhancedNetwork()const
|
||||
{
|
||||
return enhancedNetwork_;
|
||||
}
|
||||
|
||||
std::vector<DescribeNetworkInterfaceAttributeResult::Ipv6Set> DescribeNetworkInterfaceAttributeResult::getIpv6Sets()const
|
||||
{
|
||||
return ipv6Sets_;
|
||||
|
||||
@@ -91,6 +91,8 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload)
|
||||
privateIpSetsObject.privateIpAddress = valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["PrivateIpAddress"].asString();
|
||||
if(!valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["Primary"].isNull())
|
||||
privateIpSetsObject.primary = valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["Primary"].asString() == "true";
|
||||
if(!valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["PrivateDnsName"].isNull())
|
||||
privateIpSetsObject.privateDnsName = valueNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet["PrivateDnsName"].asString();
|
||||
auto associatedPublicIp1Node = value["AssociatedPublicIp"];
|
||||
if(!associatedPublicIp1Node["PublicIpAddress"].isNull())
|
||||
privateIpSetsObject.associatedPublicIp1.publicIpAddress = associatedPublicIp1Node["PublicIpAddress"].asString();
|
||||
|
||||
@@ -115,6 +115,15 @@ void DescribePriceRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
DescribePriceRequest::PromotionOptions DescribePriceRequest::getPromotionOptions() const {
|
||||
return promotionOptions_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setPromotionOptions(const DescribePriceRequest::PromotionOptions &promotionOptions) {
|
||||
promotionOptions_ = promotionOptions;
|
||||
setParameter(std::string("PromotionOptions") + ".CouponNo", promotionOptions.couponNo);
|
||||
}
|
||||
|
||||
int DescribePriceRequest::getInstanceCpuCoreCount() const {
|
||||
return instanceCpuCoreCount_;
|
||||
}
|
||||
|
||||
@@ -61,30 +61,150 @@ void DescribePriceResult::parse(const std::string &payload)
|
||||
priceInfo_.price.currency = priceNode["Currency"].asString();
|
||||
if(!priceNode["TradePrice"].isNull())
|
||||
priceInfo_.price.tradePrice = std::stof(priceNode["TradePrice"].asString());
|
||||
auto allDetailInfosNode = priceNode["DetailInfos"]["ResourcePriceModel"];
|
||||
for (auto priceNodeDetailInfosResourcePriceModel : allDetailInfosNode)
|
||||
if(!priceNode["StandardPrice"].isNull())
|
||||
priceInfo_.price.standardPrice = std::stof(priceNode["StandardPrice"].asString());
|
||||
if(!priceNode["StandardDiscountPrice"].isNull())
|
||||
priceInfo_.price.standardDiscountPrice = std::stof(priceNode["StandardDiscountPrice"].asString());
|
||||
if(!priceNode["IsContractPromotion"].isNull())
|
||||
priceInfo_.price.isContractPromotion = priceNode["IsContractPromotion"].asString() == "true";
|
||||
if(!priceNode["SpotInstanceTypePrice"].isNull())
|
||||
priceInfo_.price.spotInstanceTypePrice = std::stof(priceNode["SpotInstanceTypePrice"].asString());
|
||||
if(!priceNode["SpotInstanceTypeOriginalPrice"].isNull())
|
||||
priceInfo_.price.spotInstanceTypeOriginalPrice = std::stof(priceNode["SpotInstanceTypeOriginalPrice"].asString());
|
||||
if(!priceNode["ReservedInstanceHourTradePrice"].isNull())
|
||||
priceInfo_.price.reservedInstanceHourTradePrice = std::stof(priceNode["ReservedInstanceHourTradePrice"].asString());
|
||||
if(!priceNode["ReservedInstanceHourDiscountPrice"].isNull())
|
||||
priceInfo_.price.reservedInstanceHourDiscountPrice = std::stof(priceNode["ReservedInstanceHourDiscountPrice"].asString());
|
||||
auto allCouponsNode = priceNode["Coupons"]["Coupon"];
|
||||
for (auto priceNodeCouponsCoupon : allCouponsNode)
|
||||
{
|
||||
PriceInfo::Price::ResourcePriceModel resourcePriceModelObject;
|
||||
if(!priceNodeDetailInfosResourcePriceModel["Resource"].isNull())
|
||||
resourcePriceModelObject.resource = priceNodeDetailInfosResourcePriceModel["Resource"].asString();
|
||||
if(!priceNodeDetailInfosResourcePriceModel["OriginalPrice"].isNull())
|
||||
resourcePriceModelObject.originalPrice = std::stof(priceNodeDetailInfosResourcePriceModel["OriginalPrice"].asString());
|
||||
if(!priceNodeDetailInfosResourcePriceModel["DiscountPrice"].isNull())
|
||||
resourcePriceModelObject.discountPrice = std::stof(priceNodeDetailInfosResourcePriceModel["DiscountPrice"].asString());
|
||||
if(!priceNodeDetailInfosResourcePriceModel["TradePrice"].isNull())
|
||||
resourcePriceModelObject.tradePrice = std::stof(priceNodeDetailInfosResourcePriceModel["TradePrice"].asString());
|
||||
auto allSubRulesNode = priceNodeDetailInfosResourcePriceModel["SubRules"]["Rule"];
|
||||
for (auto priceNodeDetailInfosResourcePriceModelSubRulesRule : allSubRulesNode)
|
||||
{
|
||||
PriceInfo::Price::ResourcePriceModel::Rule1 subRulesObject;
|
||||
if(!priceNodeDetailInfosResourcePriceModelSubRulesRule["Description"].isNull())
|
||||
subRulesObject.description = priceNodeDetailInfosResourcePriceModelSubRulesRule["Description"].asString();
|
||||
if(!priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].isNull())
|
||||
subRulesObject.ruleId = std::stol(priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].asString());
|
||||
resourcePriceModelObject.subRules.push_back(subRulesObject);
|
||||
}
|
||||
priceInfo_.price.detailInfos.push_back(resourcePriceModelObject);
|
||||
PriceInfo::Price::Coupon couponObject;
|
||||
if(!priceNodeCouponsCoupon["IsSelected"].isNull())
|
||||
couponObject.isSelected = priceNodeCouponsCoupon["IsSelected"].asString() == "true";
|
||||
if(!priceNodeCouponsCoupon["CouponNo"].isNull())
|
||||
couponObject.couponNo = priceNodeCouponsCoupon["CouponNo"].asString();
|
||||
if(!priceNodeCouponsCoupon["Description"].isNull())
|
||||
couponObject.description = priceNodeCouponsCoupon["Description"].asString();
|
||||
if(!priceNodeCouponsCoupon["Name"].isNull())
|
||||
couponObject.name = priceNodeCouponsCoupon["Name"].asString();
|
||||
if(!priceNodeCouponsCoupon["DiscountOff"].isNull())
|
||||
couponObject.discountOff = std::stof(priceNodeCouponsCoupon["DiscountOff"].asString());
|
||||
if(!priceNodeCouponsCoupon["OptionCode"].isNull())
|
||||
couponObject.optionCode = priceNodeCouponsCoupon["OptionCode"].asString();
|
||||
auto allRuleIds = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds)
|
||||
couponObject.ruleIds.push_back(value.asString());
|
||||
priceInfo_.price.coupons.push_back(couponObject);
|
||||
}
|
||||
auto allDetailInfosNode = priceNode["DetailInfos"]["DetailInfo"];
|
||||
for (auto priceNodeDetailInfosDetailInfo : allDetailInfosNode)
|
||||
{
|
||||
PriceInfo::Price::DetailInfo detailInfoObject;
|
||||
if(!priceNodeDetailInfosDetailInfo["Resource"].isNull())
|
||||
detailInfoObject.resource = priceNodeDetailInfosDetailInfo["Resource"].asString();
|
||||
if(!priceNodeDetailInfosDetailInfo["OriginalPrice"].isNull())
|
||||
detailInfoObject.originalPrice = std::stof(priceNodeDetailInfosDetailInfo["OriginalPrice"].asString());
|
||||
if(!priceNodeDetailInfosDetailInfo["DiscountPrice"].isNull())
|
||||
detailInfoObject.discountPrice = std::stof(priceNodeDetailInfosDetailInfo["DiscountPrice"].asString());
|
||||
if(!priceNodeDetailInfosDetailInfo["TradePrice"].isNull())
|
||||
detailInfoObject.tradePrice = std::stof(priceNodeDetailInfosDetailInfo["TradePrice"].asString());
|
||||
if(!priceNodeDetailInfosDetailInfo["StandardPrice"].isNull())
|
||||
detailInfoObject.standardPrice = std::stof(priceNodeDetailInfosDetailInfo["StandardPrice"].asString());
|
||||
if(!priceNodeDetailInfosDetailInfo["StandardDiscountPrice"].isNull())
|
||||
detailInfoObject.standardDiscountPrice = std::stof(priceNodeDetailInfosDetailInfo["StandardDiscountPrice"].asString());
|
||||
if(!priceNodeDetailInfosDetailInfo["IsContractPromotion"].isNull())
|
||||
detailInfoObject.isContractPromotion = priceNodeDetailInfosDetailInfo["IsContractPromotion"].asString() == "true";
|
||||
auto allSubRulesNode = priceNodeDetailInfosDetailInfo["SubRules"]["Rule"];
|
||||
for (auto priceNodeDetailInfosDetailInfoSubRulesRule : allSubRulesNode)
|
||||
{
|
||||
PriceInfo::Price::DetailInfo::Rule2 subRulesObject;
|
||||
if(!priceNodeDetailInfosDetailInfoSubRulesRule["Description"].isNull())
|
||||
subRulesObject.description = priceNodeDetailInfosDetailInfoSubRulesRule["Description"].asString();
|
||||
if(!priceNodeDetailInfosDetailInfoSubRulesRule["RuleId"].isNull())
|
||||
subRulesObject.ruleId = std::stol(priceNodeDetailInfosDetailInfoSubRulesRule["RuleId"].asString());
|
||||
detailInfoObject.subRules.push_back(subRulesObject);
|
||||
}
|
||||
auto allAttributesNode = priceNodeDetailInfosDetailInfo["Attributes"]["Attribute"];
|
||||
for (auto priceNodeDetailInfosDetailInfoAttributesAttribute : allAttributesNode)
|
||||
{
|
||||
PriceInfo::Price::DetailInfo::Attribute attributesObject;
|
||||
if(!priceNodeDetailInfosDetailInfoAttributesAttribute["Code"].isNull())
|
||||
attributesObject.code = priceNodeDetailInfosDetailInfoAttributesAttribute["Code"].asString();
|
||||
if(!priceNodeDetailInfosDetailInfoAttributesAttribute["Value"].isNull())
|
||||
attributesObject.value = priceNodeDetailInfosDetailInfoAttributesAttribute["Value"].asString();
|
||||
detailInfoObject.attributes.push_back(attributesObject);
|
||||
}
|
||||
auto depreciateInfo1Node = value["DepreciateInfo"];
|
||||
if(!depreciateInfo1Node["ListPrice"].isNull())
|
||||
detailInfoObject.depreciateInfo1.listPrice = std::stof(depreciateInfo1Node["ListPrice"].asString());
|
||||
if(!depreciateInfo1Node["OriginalStandardPrice"].isNull())
|
||||
detailInfoObject.depreciateInfo1.originalStandardPrice = std::stof(depreciateInfo1Node["OriginalStandardPrice"].asString());
|
||||
if(!depreciateInfo1Node["CheapStandardPrice"].isNull())
|
||||
detailInfoObject.depreciateInfo1.cheapStandardPrice = std::stof(depreciateInfo1Node["CheapStandardPrice"].asString());
|
||||
if(!depreciateInfo1Node["CheapRate"].isNull())
|
||||
detailInfoObject.depreciateInfo1.cheapRate = std::stof(depreciateInfo1Node["CheapRate"].asString());
|
||||
if(!depreciateInfo1Node["DifferentialPrice"].isNull())
|
||||
detailInfoObject.depreciateInfo1.differentialPrice = std::stof(depreciateInfo1Node["DifferentialPrice"].asString());
|
||||
if(!depreciateInfo1Node["DifferentialName"].isNull())
|
||||
detailInfoObject.depreciateInfo1.differentialName = depreciateInfo1Node["DifferentialName"].asString();
|
||||
if(!depreciateInfo1Node["MonthPrice"].isNull())
|
||||
detailInfoObject.depreciateInfo1.monthPrice = std::stof(depreciateInfo1Node["MonthPrice"].asString());
|
||||
if(!depreciateInfo1Node["IsShow"].isNull())
|
||||
detailInfoObject.depreciateInfo1.isShow = depreciateInfo1Node["IsShow"].asString() == "true";
|
||||
if(!depreciateInfo1Node["StartTime"].isNull())
|
||||
detailInfoObject.depreciateInfo1.startTime = depreciateInfo1Node["StartTime"].asString();
|
||||
priceInfo_.price.detailInfos.push_back(detailInfoObject);
|
||||
}
|
||||
auto allPromotionsNode = priceNode["Promotions"]["Promotion"];
|
||||
for (auto priceNodePromotionsPromotion : allPromotionsNode)
|
||||
{
|
||||
PriceInfo::Price::Promotion promotionObject;
|
||||
if(!priceNodePromotionsPromotion["Name"].isNull())
|
||||
promotionObject.name = priceNodePromotionsPromotion["Name"].asString();
|
||||
if(!priceNodePromotionsPromotion["DiscountOff"].isNull())
|
||||
promotionObject.discountOff = std::stof(priceNodePromotionsPromotion["DiscountOff"].asString());
|
||||
auto allRuleIds3 = value["RuleIds"]["RuleId"];
|
||||
for (auto value : allRuleIds3)
|
||||
promotionObject.ruleIds3.push_back(value.asString());
|
||||
priceInfo_.price.promotions.push_back(promotionObject);
|
||||
}
|
||||
auto depreciateInfoNode = priceNode["DepreciateInfo"];
|
||||
if(!depreciateInfoNode["ListPrice"].isNull())
|
||||
priceInfo_.price.depreciateInfo.listPrice = std::stof(depreciateInfoNode["ListPrice"].asString());
|
||||
if(!depreciateInfoNode["OriginalStandardPrice"].isNull())
|
||||
priceInfo_.price.depreciateInfo.originalStandardPrice = std::stof(depreciateInfoNode["OriginalStandardPrice"].asString());
|
||||
if(!depreciateInfoNode["CheapStandardPrice"].isNull())
|
||||
priceInfo_.price.depreciateInfo.cheapStandardPrice = std::stof(depreciateInfoNode["CheapStandardPrice"].asString());
|
||||
if(!depreciateInfoNode["CheapRate"].isNull())
|
||||
priceInfo_.price.depreciateInfo.cheapRate = std::stof(depreciateInfoNode["CheapRate"].asString());
|
||||
if(!depreciateInfoNode["DifferentialPrice"].isNull())
|
||||
priceInfo_.price.depreciateInfo.differentialPrice = std::stof(depreciateInfoNode["DifferentialPrice"].asString());
|
||||
if(!depreciateInfoNode["DifferentialName"].isNull())
|
||||
priceInfo_.price.depreciateInfo.differentialName = depreciateInfoNode["DifferentialName"].asString();
|
||||
if(!depreciateInfoNode["MonthPrice"].isNull())
|
||||
priceInfo_.price.depreciateInfo.monthPrice = std::stof(depreciateInfoNode["MonthPrice"].asString());
|
||||
if(!depreciateInfoNode["IsShow"].isNull())
|
||||
priceInfo_.price.depreciateInfo.isShow = depreciateInfoNode["IsShow"].asString() == "true";
|
||||
if(!depreciateInfoNode["StartTime"].isNull())
|
||||
priceInfo_.price.depreciateInfo.startTime = depreciateInfoNode["StartTime"].asString();
|
||||
auto allRuleIdSet = priceNode["RuleIdSet"]["RuleId"];
|
||||
for (auto value : allRuleIdSet)
|
||||
priceInfo_.price.ruleIdSet.push_back(value.asString());
|
||||
auto priceWarningNode = priceInfoNode["PriceWarning"];
|
||||
if(!priceWarningNode["Msg"].isNull())
|
||||
priceInfo_.priceWarning.msg = priceWarningNode["Msg"].asString();
|
||||
if(!priceWarningNode["Code"].isNull())
|
||||
priceInfo_.priceWarning.code = priceWarningNode["Code"].asString();
|
||||
auto relatedPriceNode = priceInfoNode["RelatedPrice"];
|
||||
auto marketplaceImagePriceNode = relatedPriceNode["MarketplaceImagePrice"];
|
||||
if(!marketplaceImagePriceNode["Currency"].isNull())
|
||||
priceInfo_.relatedPrice.marketplaceImagePrice.currency = marketplaceImagePriceNode["Currency"].asString();
|
||||
if(!marketplaceImagePriceNode["OriginalPrice"].isNull())
|
||||
priceInfo_.relatedPrice.marketplaceImagePrice.originalPrice = std::stof(marketplaceImagePriceNode["OriginalPrice"].asString());
|
||||
if(!marketplaceImagePriceNode["DiscountPrice"].isNull())
|
||||
priceInfo_.relatedPrice.marketplaceImagePrice.discountPrice = std::stof(marketplaceImagePriceNode["DiscountPrice"].asString());
|
||||
if(!marketplaceImagePriceNode["TradePrice"].isNull())
|
||||
priceInfo_.relatedPrice.marketplaceImagePrice.tradePrice = std::stof(marketplaceImagePriceNode["TradePrice"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
45
ecs/src/model/DisableDiskEncryptionByDefaultRequest.cc
Normal file
45
ecs/src/model/DisableDiskEncryptionByDefaultRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DisableDiskEncryptionByDefaultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DisableDiskEncryptionByDefaultRequest;
|
||||
|
||||
DisableDiskEncryptionByDefaultRequest::DisableDiskEncryptionByDefaultRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "DisableDiskEncryptionByDefault") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableDiskEncryptionByDefaultRequest::~DisableDiskEncryptionByDefaultRequest() {}
|
||||
|
||||
long DisableDiskEncryptionByDefaultRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DisableDiskEncryptionByDefaultRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DisableDiskEncryptionByDefaultRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableDiskEncryptionByDefaultRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
ecs/src/model/DisableDiskEncryptionByDefaultResult.cc
Normal file
44
ecs/src/model/DisableDiskEncryptionByDefaultResult.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/ecs/model/DisableDiskEncryptionByDefaultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DisableDiskEncryptionByDefaultResult::DisableDiskEncryptionByDefaultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableDiskEncryptionByDefaultResult::DisableDiskEncryptionByDefaultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableDiskEncryptionByDefaultResult::~DisableDiskEncryptionByDefaultResult()
|
||||
{}
|
||||
|
||||
void DisableDiskEncryptionByDefaultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
ecs/src/model/EnableDiskEncryptionByDefaultRequest.cc
Normal file
72
ecs/src/model/EnableDiskEncryptionByDefaultRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/ecs/model/EnableDiskEncryptionByDefaultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::EnableDiskEncryptionByDefaultRequest;
|
||||
|
||||
EnableDiskEncryptionByDefaultRequest::EnableDiskEncryptionByDefaultRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "EnableDiskEncryptionByDefault") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableDiskEncryptionByDefaultRequest::~EnableDiskEncryptionByDefaultRequest() {}
|
||||
|
||||
long EnableDiskEncryptionByDefaultRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EnableDiskEncryptionByDefaultRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EnableDiskEncryptionByDefaultRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void EnableDiskEncryptionByDefaultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string EnableDiskEncryptionByDefaultRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void EnableDiskEncryptionByDefaultRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long EnableDiskEncryptionByDefaultRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableDiskEncryptionByDefaultRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string EnableDiskEncryptionByDefaultRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableDiskEncryptionByDefaultRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
ecs/src/model/EnableDiskEncryptionByDefaultResult.cc
Normal file
44
ecs/src/model/EnableDiskEncryptionByDefaultResult.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/ecs/model/EnableDiskEncryptionByDefaultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
EnableDiskEncryptionByDefaultResult::EnableDiskEncryptionByDefaultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableDiskEncryptionByDefaultResult::EnableDiskEncryptionByDefaultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableDiskEncryptionByDefaultResult::~EnableDiskEncryptionByDefaultResult()
|
||||
{}
|
||||
|
||||
void EnableDiskEncryptionByDefaultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -238,3 +238,12 @@ void InvokeCommandRequest::setUsername(const std::string &username) {
|
||||
setParameter(std::string("Username"), username);
|
||||
}
|
||||
|
||||
std::string InvokeCommandRequest::getLauncher() const {
|
||||
return launcher_;
|
||||
}
|
||||
|
||||
void InvokeCommandRequest::setLauncher(const std::string &launcher) {
|
||||
launcher_ = launcher;
|
||||
setParameter(std::string("Launcher"), launcher);
|
||||
}
|
||||
|
||||
|
||||
@@ -124,6 +124,15 @@ void ModifyDedicatedHostsChargeTypeRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
ModifyDedicatedHostsChargeTypeRequest::PromotionOptions ModifyDedicatedHostsChargeTypeRequest::getPromotionOptions() const {
|
||||
return promotionOptions_;
|
||||
}
|
||||
|
||||
void ModifyDedicatedHostsChargeTypeRequest::setPromotionOptions(const ModifyDedicatedHostsChargeTypeRequest::PromotionOptions &promotionOptions) {
|
||||
promotionOptions_ = promotionOptions;
|
||||
setParameter(std::string("PromotionOptions") + ".CouponNo", promotionOptions.couponNo);
|
||||
}
|
||||
|
||||
bool ModifyDedicatedHostsChargeTypeRequest::getDetailFee() const {
|
||||
return detailFee_;
|
||||
}
|
||||
|
||||
54
ecs/src/model/ModifyDiskDefaultKMSKeyIdRequest.cc
Normal file
54
ecs/src/model/ModifyDiskDefaultKMSKeyIdRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/ModifyDiskDefaultKMSKeyIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyDiskDefaultKMSKeyIdRequest;
|
||||
|
||||
ModifyDiskDefaultKMSKeyIdRequest::ModifyDiskDefaultKMSKeyIdRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskDefaultKMSKeyId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDiskDefaultKMSKeyIdRequest::~ModifyDiskDefaultKMSKeyIdRequest() {}
|
||||
|
||||
long ModifyDiskDefaultKMSKeyIdRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDiskDefaultKMSKeyIdRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDiskDefaultKMSKeyIdRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDiskDefaultKMSKeyIdRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDiskDefaultKMSKeyIdRequest::getKMSKeyId() const {
|
||||
return kMSKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDiskDefaultKMSKeyIdRequest::setKMSKeyId(const std::string &kMSKeyId) {
|
||||
kMSKeyId_ = kMSKeyId;
|
||||
setParameter(std::string("KMSKeyId"), kMSKeyId);
|
||||
}
|
||||
|
||||
44
ecs/src/model/ModifyDiskDefaultKMSKeyIdResult.cc
Normal file
44
ecs/src/model/ModifyDiskDefaultKMSKeyIdResult.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/ecs/model/ModifyDiskDefaultKMSKeyIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyDiskDefaultKMSKeyIdResult::ModifyDiskDefaultKMSKeyIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDiskDefaultKMSKeyIdResult::ModifyDiskDefaultKMSKeyIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDiskDefaultKMSKeyIdResult::~ModifyDiskDefaultKMSKeyIdResult()
|
||||
{}
|
||||
|
||||
void ModifyDiskDefaultKMSKeyIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -97,6 +97,19 @@ void ModifyInstanceAttributeRequest::setHostName(const std::string &hostName) {
|
||||
setParameter(std::string("HostName"), hostName);
|
||||
}
|
||||
|
||||
ModifyInstanceAttributeRequest::PrivateDnsNameOptions ModifyInstanceAttributeRequest::getPrivateDnsNameOptions() const {
|
||||
return privateDnsNameOptions_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setPrivateDnsNameOptions(const ModifyInstanceAttributeRequest::PrivateDnsNameOptions &privateDnsNameOptions) {
|
||||
privateDnsNameOptions_ = privateDnsNameOptions;
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".HostnameType", privateDnsNameOptions.hostnameType);
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableInstanceIdDnsARecord", privateDnsNameOptions.enableInstanceIdDnsARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableInstanceIdDnsAAAARecord", privateDnsNameOptions.enableInstanceIdDnsAAAARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableIpDnsARecord", privateDnsNameOptions.enableIpDnsARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableIpDnsPtrRecord", privateDnsNameOptions.enableIpDnsPtrRecord ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getCpuOptionsTopologyType() const {
|
||||
return cpuOptionsTopologyType_;
|
||||
}
|
||||
@@ -106,6 +119,15 @@ void ModifyInstanceAttributeRequest::setCpuOptionsTopologyType(const std::string
|
||||
setParameter(std::string("CpuOptions.TopologyType"), cpuOptionsTopologyType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getOSNameEn() const {
|
||||
return oSNameEn_;
|
||||
}
|
||||
|
||||
void ModifyInstanceAttributeRequest::setOSNameEn(const std::string &oSNameEn) {
|
||||
oSNameEn_ = oSNameEn;
|
||||
setParameter(std::string("OSNameEn"), oSNameEn);
|
||||
}
|
||||
|
||||
bool ModifyInstanceAttributeRequest::getEnableJumboFrame() const {
|
||||
return enableJumboFrame_;
|
||||
}
|
||||
@@ -166,6 +188,7 @@ ModifyInstanceAttributeRequest::AdditionalInfo ModifyInstanceAttributeRequest::g
|
||||
void ModifyInstanceAttributeRequest::setAdditionalInfo(const ModifyInstanceAttributeRequest::AdditionalInfo &additionalInfo) {
|
||||
additionalInfo_ = additionalInfo;
|
||||
setParameter(std::string("AdditionalInfo") + ".PvdConfig", additionalInfo.pvdConfig);
|
||||
setParameter(std::string("AdditionalInfo") + ".EnableHighDensityMode", additionalInfo.enableHighDensityMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyInstanceAttributeRequest::getInstanceId() const {
|
||||
|
||||
@@ -133,6 +133,15 @@ void ModifyInstanceChargeTypeRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
ModifyInstanceChargeTypeRequest::PromotionOptions ModifyInstanceChargeTypeRequest::getPromotionOptions() const {
|
||||
return promotionOptions_;
|
||||
}
|
||||
|
||||
void ModifyInstanceChargeTypeRequest::setPromotionOptions(const ModifyInstanceChargeTypeRequest::PromotionOptions &promotionOptions) {
|
||||
promotionOptions_ = promotionOptions;
|
||||
setParameter(std::string("PromotionOptions") + ".CouponNo", promotionOptions.couponNo);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceChargeTypeRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,15 @@ void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceTrafficConfig(co
|
||||
setParameter(std::string("NetworkInterfaceTrafficConfig") + ".TxQueueSize", std::to_string(networkInterfaceTrafficConfig.txQueueSize));
|
||||
}
|
||||
|
||||
ModifyNetworkInterfaceAttributeRequest::EnhancedNetwork ModifyNetworkInterfaceAttributeRequest::getEnhancedNetwork() const {
|
||||
return enhancedNetwork_;
|
||||
}
|
||||
|
||||
void ModifyNetworkInterfaceAttributeRequest::setEnhancedNetwork(const ModifyNetworkInterfaceAttributeRequest::EnhancedNetwork &enhancedNetwork) {
|
||||
enhancedNetwork_ = enhancedNetwork;
|
||||
setParameter(std::string("EnhancedNetwork") + ".EnableSriov", enhancedNetwork.enableSriov ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyNetworkInterfaceAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,15 @@ void PurchaseReservedInstancesOfferingRequest::setDescription(const std::string
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string PurchaseReservedInstancesOfferingRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void PurchaseReservedInstancesOfferingRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string PurchaseReservedInstancesOfferingRequest::getPlatform() const {
|
||||
return platform_;
|
||||
}
|
||||
|
||||
116
ecs/src/model/RenewElasticityAssurancesRequest.cc
Normal file
116
ecs/src/model/RenewElasticityAssurancesRequest.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/ecs/model/RenewElasticityAssurancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::RenewElasticityAssurancesRequest;
|
||||
|
||||
RenewElasticityAssurancesRequest::RenewElasticityAssurancesRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "RenewElasticityAssurances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RenewElasticityAssurancesRequest::~RenewElasticityAssurancesRequest() {}
|
||||
|
||||
long RenewElasticityAssurancesRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> RenewElasticityAssurancesRequest::getPrivatePoolOptionsId() const {
|
||||
return privatePoolOptionsId_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setPrivatePoolOptionsId(const std::vector<std::string> &privatePoolOptionsId) {
|
||||
privatePoolOptionsId_ = privatePoolOptionsId;
|
||||
}
|
||||
|
||||
int RenewElasticityAssurancesRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
bool RenewElasticityAssurancesRequest::getAutoPay() const {
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setAutoPay(bool autoPay) {
|
||||
autoPay_ = autoPay;
|
||||
setParameter(std::string("AutoPay"), autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long RenewElasticityAssurancesRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesRequest::getPeriodUnit() const {
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void RenewElasticityAssurancesRequest::setPeriodUnit(const std::string &periodUnit) {
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter(std::string("PeriodUnit"), periodUnit);
|
||||
}
|
||||
|
||||
59
ecs/src/model/RenewElasticityAssurancesResult.cc
Normal file
59
ecs/src/model/RenewElasticityAssurancesResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/ecs/model/RenewElasticityAssurancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
RenewElasticityAssurancesResult::RenewElasticityAssurancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RenewElasticityAssurancesResult::RenewElasticityAssurancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RenewElasticityAssurancesResult::~RenewElasticityAssurancesResult()
|
||||
{}
|
||||
|
||||
void RenewElasticityAssurancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrivatePoolOptionsIdSet = value["PrivatePoolOptionsIdSet"]["PrivatePoolOptionsId"];
|
||||
for (const auto &item : allPrivatePoolOptionsIdSet)
|
||||
privatePoolOptionsIdSet_.push_back(item.asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> RenewElasticityAssurancesResult::getPrivatePoolOptionsIdSet()const
|
||||
{
|
||||
return privatePoolOptionsIdSet_;
|
||||
}
|
||||
|
||||
std::string RenewElasticityAssurancesResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
45
ecs/src/model/ResetDiskDefaultKMSKeyIdRequest.cc
Normal file
45
ecs/src/model/ResetDiskDefaultKMSKeyIdRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/ResetDiskDefaultKMSKeyIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ResetDiskDefaultKMSKeyIdRequest;
|
||||
|
||||
ResetDiskDefaultKMSKeyIdRequest::ResetDiskDefaultKMSKeyIdRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "ResetDiskDefaultKMSKeyId") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResetDiskDefaultKMSKeyIdRequest::~ResetDiskDefaultKMSKeyIdRequest() {}
|
||||
|
||||
long ResetDiskDefaultKMSKeyIdRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ResetDiskDefaultKMSKeyIdRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ResetDiskDefaultKMSKeyIdRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ResetDiskDefaultKMSKeyIdRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/StartElasticityAssuranceResult.h>
|
||||
#include <alibabacloud/ecs/model/ResetDiskDefaultKMSKeyIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
StartElasticityAssuranceResult::StartElasticityAssuranceResult() :
|
||||
ResetDiskDefaultKMSKeyIdResult::ResetDiskDefaultKMSKeyIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartElasticityAssuranceResult::StartElasticityAssuranceResult(const std::string &payload) :
|
||||
ResetDiskDefaultKMSKeyIdResult::ResetDiskDefaultKMSKeyIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartElasticityAssuranceResult::~StartElasticityAssuranceResult()
|
||||
ResetDiskDefaultKMSKeyIdResult::~ResetDiskDefaultKMSKeyIdResult()
|
||||
{}
|
||||
|
||||
void StartElasticityAssuranceResult::parse(const std::string &payload)
|
||||
void ResetDiskDefaultKMSKeyIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -155,6 +155,15 @@ void RunCommandRequest::setParameters(std::map<std::string, std::string> paramet
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getLauncher() const {
|
||||
return launcher_;
|
||||
}
|
||||
|
||||
void RunCommandRequest::setLauncher(const std::string &launcher) {
|
||||
launcher_ = launcher;
|
||||
setParameter(std::string("Launcher"), launcher);
|
||||
}
|
||||
|
||||
std::string RunCommandRequest::getContainerName() const {
|
||||
return containerName_;
|
||||
}
|
||||
|
||||
@@ -333,6 +333,19 @@ void RunInstancesRequest::setPasswordInherit(bool passwordInherit) {
|
||||
setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false");
|
||||
}
|
||||
|
||||
RunInstancesRequest::PrivateDnsNameOptions RunInstancesRequest::getPrivateDnsNameOptions() const {
|
||||
return privateDnsNameOptions_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setPrivateDnsNameOptions(const RunInstancesRequest::PrivateDnsNameOptions &privateDnsNameOptions) {
|
||||
privateDnsNameOptions_ = privateDnsNameOptions;
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableInstanceIdDnsARecord", privateDnsNameOptions.enableInstanceIdDnsARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableInstanceIdDnsAAAARecord", privateDnsNameOptions.enableInstanceIdDnsAAAARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableIpDnsARecord", privateDnsNameOptions.enableIpDnsARecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".EnableIpDnsPtrRecord", privateDnsNameOptions.enableIpDnsPtrRecord ? "true" : "false");
|
||||
setParameter(std::string("PrivateDnsNameOptions") + ".HostnameType", privateDnsNameOptions.hostnameType);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getInstanceType() const {
|
||||
return instanceType_;
|
||||
}
|
||||
@@ -592,6 +605,7 @@ RunInstancesRequest::AdditionalInfo RunInstancesRequest::getAdditionalInfo() con
|
||||
void RunInstancesRequest::setAdditionalInfo(const RunInstancesRequest::AdditionalInfo &additionalInfo) {
|
||||
additionalInfo_ = additionalInfo;
|
||||
setParameter(std::string("AdditionalInfo") + ".PvdConfig", additionalInfo.pvdConfig);
|
||||
setParameter(std::string("AdditionalInfo") + ".EnableHighDensityMode", additionalInfo.enableHighDensityMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getVSwitchId() const {
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/StartElasticityAssuranceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::StartElasticityAssuranceRequest;
|
||||
|
||||
StartElasticityAssuranceRequest::StartElasticityAssuranceRequest()
|
||||
: RpcServiceRequest("ecs", "2014-05-26", "StartElasticityAssurance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartElasticityAssuranceRequest::~StartElasticityAssuranceRequest() {}
|
||||
|
||||
long StartElasticityAssuranceRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string StartElasticityAssuranceRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string StartElasticityAssuranceRequest::getPrivatePoolOptionsId() const {
|
||||
return privatePoolOptionsId_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) {
|
||||
privatePoolOptionsId_ = privatePoolOptionsId;
|
||||
setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId);
|
||||
}
|
||||
|
||||
std::string StartElasticityAssuranceRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string StartElasticityAssuranceRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long StartElasticityAssuranceRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartElasticityAssuranceRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user