ECS SDK Auto Released By corey.ql,Version:1.28.0
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -771,6 +771,42 @@ EcsClient::DescribeInstanceHistoryEventsOutcomeCallable EcsClient::describeInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeInstanceTopologyOutcome EcsClient::describeInstanceTopology(const DescribeInstanceTopologyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceTopologyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceTopologyOutcome(DescribeInstanceTopologyResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceTopologyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeInstanceTopologyAsync(const DescribeInstanceTopologyRequest& request, const DescribeInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceTopology(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeInstanceTopologyOutcomeCallable EcsClient::describeInstanceTopologyCallable(const DescribeInstanceTopologyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceTopologyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceTopology(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeletePhysicalConnectionOutcome EcsClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,42 +879,6 @@ EcsClient::RevokeSecurityGroupOutcomeCallable EcsClient::revokeSecurityGroupCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CheckAutoSnapshotPolicyOutcome EcsClient::checkAutoSnapshotPolicy(const CheckAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckAutoSnapshotPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckAutoSnapshotPolicyOutcome(CheckAutoSnapshotPolicyResult(outcome.result()));
|
||||
else
|
||||
return CheckAutoSnapshotPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::checkAutoSnapshotPolicyAsync(const CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkAutoSnapshotPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::CheckAutoSnapshotPolicyOutcomeCallable EcsClient::checkAutoSnapshotPolicyCallable(const CheckAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckAutoSnapshotPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkAutoSnapshotPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeTaskAttributeOutcome EcsClient::describeTaskAttribute(const DescribeTaskAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,42 +1707,6 @@ EcsClient::ConnectRouterInterfaceOutcomeCallable EcsClient::connectRouterInterfa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::AddIpRangeOutcome EcsClient::addIpRange(const AddIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddIpRangeOutcome(AddIpRangeResult(outcome.result()));
|
||||
else
|
||||
return AddIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::addIpRangeAsync(const AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::AddIpRangeOutcomeCallable EcsClient::addIpRangeCallable(const AddIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::GetInstanceConsoleOutputOutcome EcsClient::getInstanceConsoleOutput(const GetInstanceConsoleOutputRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,42 +2247,6 @@ EcsClient::CreateRouterInterfaceOutcomeCallable EcsClient::createRouterInterface
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CheckDiskEnableAutoSnapshotValidationOutcome EcsClient::checkDiskEnableAutoSnapshotValidation(const CheckDiskEnableAutoSnapshotValidationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(CheckDiskEnableAutoSnapshotValidationResult(outcome.result()));
|
||||
else
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::checkDiskEnableAutoSnapshotValidationAsync(const CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDiskEnableAutoSnapshotValidation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::CheckDiskEnableAutoSnapshotValidationOutcomeCallable EcsClient::checkDiskEnableAutoSnapshotValidationCallable(const CheckDiskEnableAutoSnapshotValidationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDiskEnableAutoSnapshotValidationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDiskEnableAutoSnapshotValidation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::RunInstancesOutcome EcsClient::runInstances(const RunInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3687,42 +3615,6 @@ EcsClient::RebootInstanceOutcomeCallable EcsClient::rebootInstanceCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::BindIpRangeOutcome EcsClient::bindIpRange(const BindIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindIpRangeOutcome(BindIpRangeResult(outcome.result()));
|
||||
else
|
||||
return BindIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::bindIpRangeAsync(const BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::BindIpRangeOutcomeCallable EcsClient::bindIpRangeCallable(const BindIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::InvokeCommandOutcome EcsClient::invokeCommand(const InvokeCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5847,42 +5739,6 @@ EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::describeNe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::UnbindIpRangeOutcome EcsClient::unbindIpRange(const UnbindIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindIpRangeOutcome(UnbindIpRangeResult(outcome.result()));
|
||||
else
|
||||
return UnbindIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::unbindIpRangeAsync(const UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::UnbindIpRangeOutcomeCallable EcsClient::unbindIpRangeCallable(const UnbindIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteRecycleBinOutcome EcsClient::deleteRecycleBin(const DeleteRecycleBinRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6351,42 +6207,6 @@ EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyIntranetBandwidthKbOutcome EcsClient::modifyIntranetBandwidthKb(const ModifyIntranetBandwidthKbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyIntranetBandwidthKbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyIntranetBandwidthKbOutcome(ModifyIntranetBandwidthKbResult(outcome.result()));
|
||||
else
|
||||
return ModifyIntranetBandwidthKbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyIntranetBandwidthKbAsync(const ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyIntranetBandwidthKb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyIntranetBandwidthKbOutcomeCallable EcsClient::modifyIntranetBandwidthKbCallable(const ModifyIntranetBandwidthKbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyIntranetBandwidthKbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyIntranetBandwidthKb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeBandwidthPackagesOutcome EcsClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6531,42 +6351,6 @@ EcsClient::DescribeSnapshotLinksOutcomeCallable EcsClient::describeSnapshotLinks
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeEventDetailOutcome EcsClient::describeEventDetail(const DescribeEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeEventDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeEventDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeEventDetailOutcomeCallable EcsClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeEventDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeEventDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeInvocationResultsOutcome EcsClient::describeInvocationResults(const DescribeInvocationResultsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6783,42 +6567,6 @@ EcsClient::CreateLaunchTemplateOutcomeCallable EcsClient::createLaunchTemplateCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeIntranetAttributeKbOutcome EcsClient::describeIntranetAttributeKb(const DescribeIntranetAttributeKbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIntranetAttributeKbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIntranetAttributeKbOutcome(DescribeIntranetAttributeKbResult(outcome.result()));
|
||||
else
|
||||
return DescribeIntranetAttributeKbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeIntranetAttributeKbAsync(const DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIntranetAttributeKb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeIntranetAttributeKbOutcomeCallable EcsClient::describeIntranetAttributeKbCallable(const DescribeIntranetAttributeKbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIntranetAttributeKbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIntranetAttributeKb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CreateNetworkInterfacePermissionOutcome EcsClient::createNetworkInterfacePermission(const CreateNetworkInterfacePermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7971,42 +7719,6 @@ EcsClient::DescribeInstancePhysicalAttributeOutcomeCallable EcsClient::describeI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ValidateSecurityGroupOutcome EcsClient::validateSecurityGroup(const ValidateSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ValidateSecurityGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ValidateSecurityGroupOutcome(ValidateSecurityGroupResult(outcome.result()));
|
||||
else
|
||||
return ValidateSecurityGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::validateSecurityGroupAsync(const ValidateSecurityGroupRequest& request, const ValidateSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, validateSecurityGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ValidateSecurityGroupOutcomeCallable EcsClient::validateSecurityGroupCallable(const ValidateSecurityGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ValidateSecurityGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->validateSecurityGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::TerminatePhysicalConnectionOutcome EcsClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8403,42 +8115,6 @@ EcsClient::DescribeClassicLinkInstancesOutcomeCallable EcsClient::describeClassi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeAutoSnapshotPolicyOutcome EcsClient::describeAutoSnapshotPolicy(const DescribeAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAutoSnapshotPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAutoSnapshotPolicyOutcome(DescribeAutoSnapshotPolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribeAutoSnapshotPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeAutoSnapshotPolicyAsync(const DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAutoSnapshotPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeAutoSnapshotPolicyOutcomeCallable EcsClient::describeAutoSnapshotPolicyCallable(const DescribeAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAutoSnapshotPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAutoSnapshotPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribePhysicalConnectionsOutcome EcsClient::describePhysicalConnections(const DescribePhysicalConnectionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8547,42 +8223,6 @@ EcsClient::CreateNetworkInterfaceOutcomeCallable EcsClient::createNetworkInterfa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeIpRangesOutcome EcsClient::describeIpRanges(const DescribeIpRangesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIpRangesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIpRangesOutcome(DescribeIpRangesResult(outcome.result()));
|
||||
else
|
||||
return DescribeIpRangesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeIpRangesAsync(const DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIpRanges(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeIpRangesOutcomeCallable EcsClient::describeIpRangesCallable(const DescribeIpRangesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIpRangesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIpRanges(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteNetworkInterfacePermissionOutcome EcsClient::deleteNetworkInterfacePermission(const DeleteNetworkInterfacePermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,104 +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/AddIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::AddIpRangeRequest;
|
||||
|
||||
AddIpRangeRequest::AddIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "AddIpRange")
|
||||
{}
|
||||
|
||||
AddIpRangeRequest::~AddIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string AddIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +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/AddIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIpRangeResult::~AddIpRangeResult()
|
||||
{}
|
||||
|
||||
void AddIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,93 +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/BindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::BindIpRangeRequest;
|
||||
|
||||
BindIpRangeRequest::BindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "BindIpRange")
|
||||
{}
|
||||
|
||||
BindIpRangeRequest::~BindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string BindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +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/BindIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindIpRangeResult::~BindIpRangeResult()
|
||||
{}
|
||||
|
||||
void BindIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,159 +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/CheckAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckAutoSnapshotPolicyRequest;
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const
|
||||
{
|
||||
return dataDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled)
|
||||
{
|
||||
dataDiskPolicyEnabled_ = dataDiskPolicyEnabled;
|
||||
setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const
|
||||
{
|
||||
return dataDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays)
|
||||
{
|
||||
dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays;
|
||||
setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return systemDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek;
|
||||
setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const
|
||||
{
|
||||
return systemDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod)
|
||||
{
|
||||
systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod;
|
||||
setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return dataDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek;
|
||||
setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const
|
||||
{
|
||||
return systemDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays)
|
||||
{
|
||||
systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays;
|
||||
setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const
|
||||
{
|
||||
return dataDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod)
|
||||
{
|
||||
dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod;
|
||||
setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const
|
||||
{
|
||||
return systemDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled)
|
||||
{
|
||||
systemDiskPolicyEnabled_ = systemDiskPolicyEnabled;
|
||||
setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
@@ -1,82 +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/CheckDiskEnableAutoSnapshotValidationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckDiskEnableAutoSnapshotValidationRequest;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation")
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest()
|
||||
{}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const
|
||||
{
|
||||
return diskIds_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds)
|
||||
{
|
||||
diskIds_ = diskIds;
|
||||
setParameter("DiskIds", diskIds);
|
||||
}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,59 +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/CheckDiskEnableAutoSnapshotValidationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult()
|
||||
{}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsPermitted"].isNull())
|
||||
isPermitted_ = value["IsPermitted"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const
|
||||
{
|
||||
return isPermitted_;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,17 @@ void CreateDeploymentSetRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance()const
|
||||
{
|
||||
return onUnableToRedeployFailedInstance_;
|
||||
}
|
||||
|
||||
void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance)
|
||||
{
|
||||
onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance;
|
||||
setParameter("OnUnableToRedeployFailedInstance", onUnableToRedeployFailedInstance);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
@@ -135,17 +146,6 @@ void CreateDeploymentSetRequest::setDomain(const std::string& domain)
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDeploymentSetRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getStrategy()const
|
||||
{
|
||||
return strategy_;
|
||||
|
||||
@@ -1,71 +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/DescribeAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyRequest;
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::DescribeAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::~DescribeAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::~DescribeAutoSnapshotPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto autoSnapshotPolicyNode = value["AutoSnapshotPolicy"];
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyEnabled = autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyTimePeriod = autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionDays = autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyEnabled = autoSnapshotPolicyNode["DataDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyTimePeriod = autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionDays = autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].asString();
|
||||
auto autoSnapshotExcutionStatusNode = value["AutoSnapshotExcutionStatus"];
|
||||
if(!autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.systemDiskExcutionStatus = autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].asString();
|
||||
if(!autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.dataDiskExcutionStatus = autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotExcutionStatus DescribeAutoSnapshotPolicyResult::getAutoSnapshotExcutionStatus()const
|
||||
{
|
||||
return autoSnapshotExcutionStatus_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotPolicy DescribeAutoSnapshotPolicyResult::getAutoSnapshotPolicy()const
|
||||
{
|
||||
return autoSnapshotPolicy_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload)
|
||||
deploymentSetsObject.deploymentSetName = value["DeploymentSetName"].asString();
|
||||
if(!value["Strategy"].isNull())
|
||||
deploymentSetsObject.strategy = value["Strategy"].asString();
|
||||
if(!value["DeploymentStrategy"].isNull())
|
||||
deploymentSetsObject.deploymentStrategy = value["DeploymentStrategy"].asString();
|
||||
if(!value["Domain"].isNull())
|
||||
deploymentSetsObject.domain = value["Domain"].asString();
|
||||
if(!value["Granularity"].isNull())
|
||||
@@ -60,6 +62,9 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload)
|
||||
deploymentSetsObject.instanceAmount = std::stoi(value["InstanceAmount"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
deploymentSetsObject.creationTime = value["CreationTime"].asString();
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (auto value : allInstanceIds)
|
||||
deploymentSetsObject.instanceIds.push_back(value.asString());
|
||||
deploymentSets_.push_back(deploymentSetsObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
|
||||
@@ -46,6 +46,10 @@ void DescribeDisksFullStatusResult::parse(const std::string &payload)
|
||||
DiskFullStatusType diskFullStatusSetObject;
|
||||
if(!value["DiskId"].isNull())
|
||||
diskFullStatusSetObject.diskId = value["DiskId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
diskFullStatusSetObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Device"].isNull())
|
||||
diskFullStatusSetObject.device = value["Device"].asString();
|
||||
auto allDiskEventSet = value["DiskEventSet"]["DiskEventType"];
|
||||
for (auto value : allDiskEventSet)
|
||||
{
|
||||
|
||||
@@ -1,280 +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/DescribeEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeEventDetail")
|
||||
{}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventDetailRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
@@ -1,136 +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/DescribeEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::~DescribeEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceId_ = value["ResourceId"].asString();
|
||||
if(!value["EventType"].isNull())
|
||||
eventType_ = value["EventType"].asString();
|
||||
if(!value["EventCategory"].isNull())
|
||||
eventCategory_ = value["EventCategory"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["SupportModify"].isNull())
|
||||
supportModify_ = value["SupportModify"].asString();
|
||||
if(!value["PlanTime"].isNull())
|
||||
planTime_ = value["PlanTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["EffectTime"].isNull())
|
||||
effectTime_ = value["EffectTime"].asString();
|
||||
if(!value["LimitTime"].isNull())
|
||||
limitTime_ = value["LimitTime"].asString();
|
||||
if(!value["Mark"].isNull())
|
||||
mark_ = value["Mark"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getLimitTime()const
|
||||
{
|
||||
return limitTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventCategory()const
|
||||
{
|
||||
return eventCategory_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEffectTime()const
|
||||
{
|
||||
return effectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getMark()const
|
||||
{
|
||||
return mark_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getSupportModify()const
|
||||
{
|
||||
return supportModify_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
82
ecs/src/model/DescribeInstanceTopologyRequest.cc
Normal file
82
ecs/src/model/DescribeInstanceTopologyRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/DescribeInstanceTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeInstanceTopologyRequest;
|
||||
|
||||
DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology")
|
||||
{}
|
||||
|
||||
DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest()
|
||||
{}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -14,46 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h>
|
||||
#include <alibabacloud/ecs/model/DescribeInstanceTopologyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() :
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult()
|
||||
DescribeInstanceTopologyResult::~DescribeInstanceTopologyResult()
|
||||
{}
|
||||
|
||||
void CheckAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
void DescribeInstanceTopologyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
if(!value["IsPermittedModify"].isNull())
|
||||
isPermittedModify_ = value["IsPermittedModify"].asString();
|
||||
auto allTopologys = value["Topologys"]["Topology"];
|
||||
for (auto value : allTopologys)
|
||||
{
|
||||
Topology topologysObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
topologysObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["HostId"].isNull())
|
||||
topologysObject.hostId = value["HostId"].asString();
|
||||
topologys_.push_back(topologysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
std::vector<DescribeInstanceTopologyResult::Topology> DescribeInstanceTopologyResult::getTopologys()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const
|
||||
{
|
||||
return isPermittedModify_;
|
||||
return topologys_;
|
||||
}
|
||||
|
||||
@@ -350,6 +350,17 @@ void DescribeInstancesRequest::setFilter1Value(const std::string& filter1Value)
|
||||
setParameter("Filter1Value", filter1Value);
|
||||
}
|
||||
|
||||
bool DescribeInstancesRequest::getNeedSaleCycle()const
|
||||
{
|
||||
return needSaleCycle_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setNeedSaleCycle(bool needSaleCycle)
|
||||
{
|
||||
needSaleCycle_ = needSaleCycle;
|
||||
setParameter("NeedSaleCycle", std::to_string(needSaleCycle));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getFilter2Key()const
|
||||
{
|
||||
return filter2Key_;
|
||||
|
||||
@@ -70,6 +70,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["HostName"].isNull())
|
||||
instancesObject.hostName = value["HostName"].asString();
|
||||
if(!value["DeploymentSetId"].isNull())
|
||||
instancesObject.deploymentSetId = value["DeploymentSetId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
instancesObject.status = value["Status"].asString();
|
||||
if(!value["SerialNumber"].isNull())
|
||||
|
||||
@@ -1,82 +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/DescribeIntranetAttributeKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIntranetAttributeKbRequest;
|
||||
|
||||
DescribeIntranetAttributeKbRequest::DescribeIntranetAttributeKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIntranetAttributeKb")
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbRequest::~DescribeIntranetAttributeKbRequest()
|
||||
{}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,80 +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/DescribeIntranetAttributeKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIntranetAttributeKbResult::~DescribeIntranetAttributeKbResult()
|
||||
{}
|
||||
|
||||
void DescribeIntranetAttributeKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["VlanId"].isNull())
|
||||
vlanId_ = value["VlanId"].asString();
|
||||
if(!value["IntranetIpAddress"].isNull())
|
||||
intranetIpAddress_ = value["IntranetIpAddress"].asString();
|
||||
if(!value["IntranetMaxBandwidthIn"].isNull())
|
||||
intranetMaxBandwidthIn_ = std::stoi(value["IntranetMaxBandwidthIn"].asString());
|
||||
if(!value["IntranetMaxBandwidthOut"].isNull())
|
||||
intranetMaxBandwidthOut_ = std::stoi(value["IntranetMaxBandwidthOut"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getVlanId()const
|
||||
{
|
||||
return vlanId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getIntranetIpAddress()const
|
||||
{
|
||||
return intranetIpAddress_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
@@ -1,126 +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/DescribeIpRangesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIpRangesRequest;
|
||||
|
||||
DescribeIpRangesRequest::DescribeIpRangesRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIpRanges")
|
||||
{}
|
||||
|
||||
DescribeIpRangesRequest::~DescribeIpRangesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpRangesRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,95 +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/DescribeIpRangesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpRangesResult::~DescribeIpRangesResult()
|
||||
{}
|
||||
|
||||
void DescribeIpRangesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpRanges = value["IpRanges"]["IpRange"];
|
||||
for (auto value : allIpRanges)
|
||||
{
|
||||
IpRange ipRangesObject;
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipRangesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["NicType"].isNull())
|
||||
ipRangesObject.nicType = value["NicType"].asString();
|
||||
ipRanges_.push_back(ipRangesObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIpRangesResult::IpRange> DescribeIpRangesResult::getIpRanges()const
|
||||
{
|
||||
return ipRanges_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -25,17 +25,6 @@ ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() :
|
||||
ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount1()const
|
||||
{
|
||||
return addAccount1_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount1(const std::string& addAccount1)
|
||||
{
|
||||
addAccount1_ = addAccount1;
|
||||
setParameter("AddAccount1", addAccount1);
|
||||
}
|
||||
|
||||
long ModifyImageSharePermissionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -58,114 +47,16 @@ void ModifyImageSharePermissionRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRegionId()const
|
||||
std::vector<std::string> ModifyImageSharePermissionRequest::getAddAccount()const
|
||||
{
|
||||
return regionId_;
|
||||
return addAccount_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
|
||||
void ModifyImageSharePermissionRequest::setAddAccount(const std::vector<std::string>& addAccount)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount9()const
|
||||
{
|
||||
return addAccount9_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount9(const std::string& addAccount9)
|
||||
{
|
||||
addAccount9_ = addAccount9;
|
||||
setParameter("AddAccount9", addAccount9);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount8()const
|
||||
{
|
||||
return addAccount8_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount8(const std::string& addAccount8)
|
||||
{
|
||||
addAccount8_ = addAccount8;
|
||||
setParameter("AddAccount8", addAccount8);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount7()const
|
||||
{
|
||||
return addAccount7_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount7(const std::string& addAccount7)
|
||||
{
|
||||
addAccount7_ = addAccount7;
|
||||
setParameter("AddAccount7", addAccount7);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount6()const
|
||||
{
|
||||
return addAccount6_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount6(const std::string& addAccount6)
|
||||
{
|
||||
addAccount6_ = addAccount6;
|
||||
setParameter("AddAccount6", addAccount6);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount5()const
|
||||
{
|
||||
return addAccount5_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount5(const std::string& addAccount5)
|
||||
{
|
||||
addAccount5_ = addAccount5;
|
||||
setParameter("AddAccount5", addAccount5);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount10()const
|
||||
{
|
||||
return addAccount10_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount10(const std::string& addAccount10)
|
||||
{
|
||||
addAccount10_ = addAccount10;
|
||||
setParameter("AddAccount10", addAccount10);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount4()const
|
||||
{
|
||||
return addAccount4_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount4(const std::string& addAccount4)
|
||||
{
|
||||
addAccount4_ = addAccount4;
|
||||
setParameter("AddAccount4", addAccount4);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount3()const
|
||||
{
|
||||
return addAccount3_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount3(const std::string& addAccount3)
|
||||
{
|
||||
addAccount3_ = addAccount3;
|
||||
setParameter("AddAccount3", addAccount3);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount2()const
|
||||
{
|
||||
return addAccount2_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount2(const std::string& addAccount2)
|
||||
{
|
||||
addAccount2_ = addAccount2;
|
||||
setParameter("AddAccount2", addAccount2);
|
||||
addAccount_ = addAccount;
|
||||
for(int i = 0; i!= addAccount.size(); i++)
|
||||
setParameter("AddAccount."+ std::to_string(i), addAccount.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const
|
||||
@@ -179,6 +70,29 @@ void ModifyImageSharePermissionRequest::setResourceOwnerAccount(const std::strin
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyImageSharePermissionRequest::getRemoveAccount()const
|
||||
{
|
||||
return removeAccount_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount(const std::vector<std::string>& removeAccount)
|
||||
{
|
||||
removeAccount_ = removeAccount;
|
||||
for(int i = 0; i!= removeAccount.size(); i++)
|
||||
setParameter("RemoveAccount."+ std::to_string(i), removeAccount.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -190,50 +104,6 @@ void ModifyImageSharePermissionRequest::setOwnerAccount(const std::string& owner
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount1()const
|
||||
{
|
||||
return removeAccount1_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount1(const std::string& removeAccount1)
|
||||
{
|
||||
removeAccount1_ = removeAccount1;
|
||||
setParameter("RemoveAccount1", removeAccount1);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount2()const
|
||||
{
|
||||
return removeAccount2_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount2(const std::string& removeAccount2)
|
||||
{
|
||||
removeAccount2_ = removeAccount2;
|
||||
setParameter("RemoveAccount2", removeAccount2);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount3()const
|
||||
{
|
||||
return removeAccount3_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount3(const std::string& removeAccount3)
|
||||
{
|
||||
removeAccount3_ = removeAccount3;
|
||||
setParameter("RemoveAccount3", removeAccount3);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount4()const
|
||||
{
|
||||
return removeAccount4_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount4(const std::string& removeAccount4)
|
||||
{
|
||||
removeAccount4_ = removeAccount4;
|
||||
setParameter("RemoveAccount4", removeAccount4);
|
||||
}
|
||||
|
||||
long ModifyImageSharePermissionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -245,69 +115,3 @@ void ModifyImageSharePermissionRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount9()const
|
||||
{
|
||||
return removeAccount9_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount9(const std::string& removeAccount9)
|
||||
{
|
||||
removeAccount9_ = removeAccount9;
|
||||
setParameter("RemoveAccount9", removeAccount9);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount5()const
|
||||
{
|
||||
return removeAccount5_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount5(const std::string& removeAccount5)
|
||||
{
|
||||
removeAccount5_ = removeAccount5;
|
||||
setParameter("RemoveAccount5", removeAccount5);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount6()const
|
||||
{
|
||||
return removeAccount6_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount6(const std::string& removeAccount6)
|
||||
{
|
||||
removeAccount6_ = removeAccount6;
|
||||
setParameter("RemoveAccount6", removeAccount6);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount7()const
|
||||
{
|
||||
return removeAccount7_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount7(const std::string& removeAccount7)
|
||||
{
|
||||
removeAccount7_ = removeAccount7;
|
||||
setParameter("RemoveAccount7", removeAccount7);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount8()const
|
||||
{
|
||||
return removeAccount8_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount8(const std::string& removeAccount8)
|
||||
{
|
||||
removeAccount8_ = removeAccount8;
|
||||
setParameter("RemoveAccount8", removeAccount8);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount10()const
|
||||
{
|
||||
return removeAccount10_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount10(const std::string& removeAccount10)
|
||||
{
|
||||
removeAccount10_ = removeAccount10;
|
||||
setParameter("RemoveAccount10", removeAccount10);
|
||||
}
|
||||
|
||||
|
||||
@@ -179,6 +179,17 @@ void ModifyInstanceDeploymentRequest::setCallerUid(long callerUid)
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceDeploymentRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
@@ -300,3 +311,14 @@ void ModifyInstanceDeploymentRequest::setRequestId(const std::string& requestId)
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool ModifyInstanceDeploymentRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
void ModifyInstanceDeploymentRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", std::to_string(force));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,104 +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/ModifyIntranetBandwidthKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyIntranetBandwidthKbRequest;
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::ModifyIntranetBandwidthKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyIntranetBandwidthKb")
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::~ModifyIntranetBandwidthKbRequest()
|
||||
{}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut)
|
||||
{
|
||||
intranetMaxBandwidthOut_ = intranetMaxBandwidthOut;
|
||||
setParameter("IntranetMaxBandwidthOut", std::to_string(intranetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn)
|
||||
{
|
||||
intranetMaxBandwidthIn_ = intranetMaxBandwidthIn;
|
||||
setParameter("IntranetMaxBandwidthIn", std::to_string(intranetMaxBandwidthIn));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +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/ModifyIntranetBandwidthKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::~ModifyIntranetBandwidthKbResult()
|
||||
{}
|
||||
|
||||
void ModifyIntranetBandwidthKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -102,3 +102,14 @@ void ResizeDiskRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ResizeDiskRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ResizeDiskRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
|
||||
@@ -634,6 +634,17 @@ void RunInstancesRequest::setNetworkInterface(const std::vector<NetworkInterface
|
||||
}
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
|
||||
@@ -1,93 +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/UnbindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::UnbindIpRangeRequest;
|
||||
|
||||
UnbindIpRangeRequest::UnbindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "UnbindIpRange")
|
||||
{}
|
||||
|
||||
UnbindIpRangeRequest::~UnbindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +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/UnbindIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindIpRangeResult::~UnbindIpRangeResult()
|
||||
{}
|
||||
|
||||
void UnbindIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,368 +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/ValidateSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ValidateSecurityGroupRequest;
|
||||
|
||||
ValidateSecurityGroupRequest::ValidateSecurityGroupRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ValidateSecurityGroup")
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupRequest::~ValidateSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getSourcePort()const
|
||||
{
|
||||
return sourcePort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourcePort(int sourcePort)
|
||||
{
|
||||
sourcePort_ = sourcePort;
|
||||
setParameter("SourcePort", std::to_string(sourcePort));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDestIp()const
|
||||
{
|
||||
return destIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestIp(const std::string& destIp)
|
||||
{
|
||||
destIp_ = destIp;
|
||||
setParameter("DestIp", destIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getIpProtocol()const
|
||||
{
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
{
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getDestPort()const
|
||||
{
|
||||
return destPort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestPort(int destPort)
|
||||
{
|
||||
destPort_ = destPort;
|
||||
setParameter("DestPort", std::to_string(destPort));
|
||||
}
|
||||
|
||||
@@ -1,90 +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/ValidateSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::~ValidateSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void ValidateSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto triggeredGroupRuleNode = value["TriggeredGroupRule"];
|
||||
if(!triggeredGroupRuleNode["IpProtocol"].isNull())
|
||||
triggeredGroupRule_.ipProtocol = triggeredGroupRuleNode["IpProtocol"].asString();
|
||||
if(!triggeredGroupRuleNode["PortRange"].isNull())
|
||||
triggeredGroupRule_.portRange = triggeredGroupRuleNode["PortRange"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupId"].isNull())
|
||||
triggeredGroupRule_.sourceGroupId = triggeredGroupRuleNode["SourceGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupName"].isNull())
|
||||
triggeredGroupRule_.sourceGroupName = triggeredGroupRuleNode["SourceGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceCidrIp"].isNull())
|
||||
triggeredGroupRule_.sourceCidrIp = triggeredGroupRuleNode["SourceCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["Policy"].isNull())
|
||||
triggeredGroupRule_.policy = triggeredGroupRuleNode["Policy"].asString();
|
||||
if(!triggeredGroupRuleNode["NicType"].isNull())
|
||||
triggeredGroupRule_.nicType = triggeredGroupRuleNode["NicType"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.sourceGroupOwnerAccount = triggeredGroupRuleNode["SourceGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupId"].isNull())
|
||||
triggeredGroupRule_.destGroupId = triggeredGroupRuleNode["DestGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupName"].isNull())
|
||||
triggeredGroupRule_.destGroupName = triggeredGroupRuleNode["DestGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["DestCidrIp"].isNull())
|
||||
triggeredGroupRule_.destCidrIp = triggeredGroupRuleNode["DestCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.destGroupOwnerAccount = triggeredGroupRuleNode["DestGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["Priority"].isNull())
|
||||
triggeredGroupRule_.priority = triggeredGroupRuleNode["Priority"].asString();
|
||||
if(!triggeredGroupRuleNode["Direction"].isNull())
|
||||
triggeredGroupRule_.direction = triggeredGroupRuleNode["Direction"].asString();
|
||||
if(!triggeredGroupRuleNode["Description"].isNull())
|
||||
triggeredGroupRule_.description = triggeredGroupRuleNode["Description"].asString();
|
||||
if(!triggeredGroupRuleNode["CreateTime"].isNull())
|
||||
triggeredGroupRule_.createTime = triggeredGroupRuleNode["CreateTime"].asString();
|
||||
if(!value["Policy"].isNull())
|
||||
policy_ = value["Policy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::TriggeredGroupRule ValidateSecurityGroupResult::getTriggeredGroupRule()const
|
||||
{
|
||||
return triggeredGroupRule_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user