Add auto grouping apis.
This commit is contained in:
@@ -31,21 +31,21 @@ ResourceManagerClient::ResourceManagerClient(const Credentials &credentials, con
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "resourcemanager");
|
||||
}
|
||||
|
||||
ResourceManagerClient::ResourceManagerClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "resourcemanager");
|
||||
}
|
||||
|
||||
ResourceManagerClient::ResourceManagerClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "resourcemanager");
|
||||
}
|
||||
|
||||
ResourceManagerClient::~ResourceManagerClient()
|
||||
@@ -411,6 +411,42 @@ ResourceManagerClient::CheckAccountDeleteOutcomeCallable ResourceManagerClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::CreateAutoGroupingRuleOutcome ResourceManagerClient::createAutoGroupingRule(const CreateAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAutoGroupingRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAutoGroupingRuleOutcome(CreateAutoGroupingRuleResult(outcome.result()));
|
||||
else
|
||||
return CreateAutoGroupingRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::createAutoGroupingRuleAsync(const CreateAutoGroupingRuleRequest& request, const CreateAutoGroupingRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAutoGroupingRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::CreateAutoGroupingRuleOutcomeCallable ResourceManagerClient::createAutoGroupingRuleCallable(const CreateAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAutoGroupingRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAutoGroupingRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::CreateCloudAccountOutcome ResourceManagerClient::createCloudAccount(const CreateCloudAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +843,42 @@ ResourceManagerClient::DeleteAccountOutcomeCallable ResourceManagerClient::delet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::DeleteAutoGroupingRuleOutcome ResourceManagerClient::deleteAutoGroupingRule(const DeleteAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAutoGroupingRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAutoGroupingRuleOutcome(DeleteAutoGroupingRuleResult(outcome.result()));
|
||||
else
|
||||
return DeleteAutoGroupingRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::deleteAutoGroupingRuleAsync(const DeleteAutoGroupingRuleRequest& request, const DeleteAutoGroupingRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAutoGroupingRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::DeleteAutoGroupingRuleOutcomeCallable ResourceManagerClient::deleteAutoGroupingRuleCallable(const DeleteAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAutoGroupingRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAutoGroupingRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::DeleteControlPolicyOutcome ResourceManagerClient::deleteControlPolicy(const DeleteControlPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1275,78 @@ ResourceManagerClient::DetachPolicyOutcomeCallable ResourceManagerClient::detach
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::DisableAssociatedTransferOutcome ResourceManagerClient::disableAssociatedTransfer(const DisableAssociatedTransferRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableAssociatedTransferOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableAssociatedTransferOutcome(DisableAssociatedTransferResult(outcome.result()));
|
||||
else
|
||||
return DisableAssociatedTransferOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::disableAssociatedTransferAsync(const DisableAssociatedTransferRequest& request, const DisableAssociatedTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableAssociatedTransfer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::DisableAssociatedTransferOutcomeCallable ResourceManagerClient::disableAssociatedTransferCallable(const DisableAssociatedTransferRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableAssociatedTransferOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableAssociatedTransfer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::DisableAutoGroupingOutcome ResourceManagerClient::disableAutoGrouping(const DisableAutoGroupingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableAutoGroupingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableAutoGroupingOutcome(DisableAutoGroupingResult(outcome.result()));
|
||||
else
|
||||
return DisableAutoGroupingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::disableAutoGroupingAsync(const DisableAutoGroupingRequest& request, const DisableAutoGroupingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableAutoGrouping(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::DisableAutoGroupingOutcomeCallable ResourceManagerClient::disableAutoGroupingCallable(const DisableAutoGroupingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableAutoGroupingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableAutoGrouping(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::DisableControlPolicyOutcome ResourceManagerClient::disableControlPolicy(const DisableControlPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1383,78 @@ ResourceManagerClient::DisableControlPolicyOutcomeCallable ResourceManagerClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::EnableAssociatedTransferOutcome ResourceManagerClient::enableAssociatedTransfer(const EnableAssociatedTransferRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAssociatedTransferOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableAssociatedTransferOutcome(EnableAssociatedTransferResult(outcome.result()));
|
||||
else
|
||||
return EnableAssociatedTransferOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::enableAssociatedTransferAsync(const EnableAssociatedTransferRequest& request, const EnableAssociatedTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableAssociatedTransfer(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::EnableAssociatedTransferOutcomeCallable ResourceManagerClient::enableAssociatedTransferCallable(const EnableAssociatedTransferRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableAssociatedTransferOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableAssociatedTransfer(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::EnableAutoGroupingOutcome ResourceManagerClient::enableAutoGrouping(const EnableAutoGroupingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAutoGroupingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableAutoGroupingOutcome(EnableAutoGroupingResult(outcome.result()));
|
||||
else
|
||||
return EnableAutoGroupingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::enableAutoGroupingAsync(const EnableAutoGroupingRequest& request, const EnableAutoGroupingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableAutoGrouping(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::EnableAutoGroupingOutcomeCallable ResourceManagerClient::enableAutoGroupingCallable(const EnableAutoGroupingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableAutoGroupingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableAutoGrouping(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::EnableControlPolicyOutcome ResourceManagerClient::enableControlPolicy(const EnableControlPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1635,78 @@ ResourceManagerClient::GetAccountDeletionStatusOutcomeCallable ResourceManagerCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::GetAutoGroupingRuleOutcome ResourceManagerClient::getAutoGroupingRule(const GetAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAutoGroupingRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAutoGroupingRuleOutcome(GetAutoGroupingRuleResult(outcome.result()));
|
||||
else
|
||||
return GetAutoGroupingRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::getAutoGroupingRuleAsync(const GetAutoGroupingRuleRequest& request, const GetAutoGroupingRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAutoGroupingRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::GetAutoGroupingRuleOutcomeCallable ResourceManagerClient::getAutoGroupingRuleCallable(const GetAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAutoGroupingRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAutoGroupingRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::GetAutoGroupingStatusOutcome ResourceManagerClient::getAutoGroupingStatus(const GetAutoGroupingStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAutoGroupingStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAutoGroupingStatusOutcome(GetAutoGroupingStatusResult(outcome.result()));
|
||||
else
|
||||
return GetAutoGroupingStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::getAutoGroupingStatusAsync(const GetAutoGroupingStatusRequest& request, const GetAutoGroupingStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAutoGroupingStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::GetAutoGroupingStatusOutcomeCallable ResourceManagerClient::getAutoGroupingStatusCallable(const GetAutoGroupingStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAutoGroupingStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAutoGroupingStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::GetControlPolicyOutcome ResourceManagerClient::getControlPolicy(const GetControlPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1995,6 +2283,78 @@ ResourceManagerClient::ListAncestorsOutcomeCallable ResourceManagerClient::listA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::ListAssociatedTransferSettingOutcome ResourceManagerClient::listAssociatedTransferSetting(const ListAssociatedTransferSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAssociatedTransferSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAssociatedTransferSettingOutcome(ListAssociatedTransferSettingResult(outcome.result()));
|
||||
else
|
||||
return ListAssociatedTransferSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::listAssociatedTransferSettingAsync(const ListAssociatedTransferSettingRequest& request, const ListAssociatedTransferSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAssociatedTransferSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::ListAssociatedTransferSettingOutcomeCallable ResourceManagerClient::listAssociatedTransferSettingCallable(const ListAssociatedTransferSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAssociatedTransferSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAssociatedTransferSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::ListAutoGroupingRulesOutcome ResourceManagerClient::listAutoGroupingRules(const ListAutoGroupingRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAutoGroupingRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAutoGroupingRulesOutcome(ListAutoGroupingRulesResult(outcome.result()));
|
||||
else
|
||||
return ListAutoGroupingRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::listAutoGroupingRulesAsync(const ListAutoGroupingRulesRequest& request, const ListAutoGroupingRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAutoGroupingRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::ListAutoGroupingRulesOutcomeCallable ResourceManagerClient::listAutoGroupingRulesCallable(const ListAutoGroupingRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAutoGroupingRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAutoGroupingRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::ListControlPoliciesOutcome ResourceManagerClient::listControlPolicies(const ListControlPoliciesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3183,6 +3543,114 @@ ResourceManagerClient::UpdateAccountOutcomeCallable ResourceManagerClient::updat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAssociatedTransferSettingOutcome ResourceManagerClient::updateAssociatedTransferSetting(const UpdateAssociatedTransferSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAssociatedTransferSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAssociatedTransferSettingOutcome(UpdateAssociatedTransferSettingResult(outcome.result()));
|
||||
else
|
||||
return UpdateAssociatedTransferSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::updateAssociatedTransferSettingAsync(const UpdateAssociatedTransferSettingRequest& request, const UpdateAssociatedTransferSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAssociatedTransferSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAssociatedTransferSettingOutcomeCallable ResourceManagerClient::updateAssociatedTransferSettingCallable(const UpdateAssociatedTransferSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAssociatedTransferSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAssociatedTransferSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAutoGroupingConfigOutcome ResourceManagerClient::updateAutoGroupingConfig(const UpdateAutoGroupingConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAutoGroupingConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAutoGroupingConfigOutcome(UpdateAutoGroupingConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateAutoGroupingConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::updateAutoGroupingConfigAsync(const UpdateAutoGroupingConfigRequest& request, const UpdateAutoGroupingConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAutoGroupingConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAutoGroupingConfigOutcomeCallable ResourceManagerClient::updateAutoGroupingConfigCallable(const UpdateAutoGroupingConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAutoGroupingConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAutoGroupingConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAutoGroupingRuleOutcome ResourceManagerClient::updateAutoGroupingRule(const UpdateAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAutoGroupingRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAutoGroupingRuleOutcome(UpdateAutoGroupingRuleResult(outcome.result()));
|
||||
else
|
||||
return UpdateAutoGroupingRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ResourceManagerClient::updateAutoGroupingRuleAsync(const UpdateAutoGroupingRuleRequest& request, const UpdateAutoGroupingRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAutoGroupingRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateAutoGroupingRuleOutcomeCallable ResourceManagerClient::updateAutoGroupingRuleCallable(const UpdateAutoGroupingRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAutoGroupingRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAutoGroupingRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ResourceManagerClient::UpdateControlPolicyOutcome ResourceManagerClient::updateControlPolicy(const UpdateControlPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -25,6 +25,15 @@ AttachPolicyRequest::AttachPolicyRequest()
|
||||
|
||||
AttachPolicyRequest::~AttachPolicyRequest() {}
|
||||
|
||||
std::string AttachPolicyRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getPolicyType() const {
|
||||
return policyType_;
|
||||
}
|
||||
@@ -43,15 +52,6 @@ void AttachPolicyRequest::setPrincipalType(const std::string &principalType) {
|
||||
setParameter(std::string("PrincipalType"), principalType);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getPolicyName() const {
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
140
resourcemanager/src/model/CreateAutoGroupingRuleRequest.cc
Normal file
140
resourcemanager/src/model/CreateAutoGroupingRuleRequest.cc
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreateAutoGroupingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateAutoGroupingRuleRequest;
|
||||
|
||||
CreateAutoGroupingRuleRequest::CreateAutoGroupingRuleRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "CreateAutoGroupingRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAutoGroupingRuleRequest::~CreateAutoGroupingRuleRequest() {}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getRuleDesc() const {
|
||||
return ruleDesc_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setRuleDesc(const std::string &ruleDesc) {
|
||||
ruleDesc_ = ruleDesc;
|
||||
setParameter(std::string("RuleDesc"), ruleDesc);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getResourceTypesScope() const {
|
||||
return resourceTypesScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setResourceTypesScope(const std::string &resourceTypesScope) {
|
||||
resourceTypesScope_ = resourceTypesScope;
|
||||
setParameter(std::string("ResourceTypesScope"), resourceTypesScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getExcludeResourceGroupIdsScope() const {
|
||||
return excludeResourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setExcludeResourceGroupIdsScope(const std::string &excludeResourceGroupIdsScope) {
|
||||
excludeResourceGroupIdsScope_ = excludeResourceGroupIdsScope;
|
||||
setParameter(std::string("ExcludeResourceGroupIdsScope"), excludeResourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getResourceIdsScope() const {
|
||||
return resourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setResourceIdsScope(const std::string &resourceIdsScope) {
|
||||
resourceIdsScope_ = resourceIdsScope;
|
||||
setParameter(std::string("ResourceIdsScope"), resourceIdsScope);
|
||||
}
|
||||
|
||||
std::vector<CreateAutoGroupingRuleRequest::RuleContents> CreateAutoGroupingRuleRequest::getRuleContents() const {
|
||||
return ruleContents_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setRuleContents(const std::vector<CreateAutoGroupingRuleRequest::RuleContents> &ruleContents) {
|
||||
ruleContents_ = ruleContents;
|
||||
for(int dep1 = 0; dep1 != ruleContents.size(); dep1++) {
|
||||
auto ruleContentsObj = ruleContents.at(dep1);
|
||||
std::string ruleContentsObjStr = std::string("RuleContents") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(ruleContentsObjStr + ".TargetResourceGroupCondition", ruleContentsObj.targetResourceGroupCondition);
|
||||
setParameter(ruleContentsObjStr + ".AutoGroupingScopeCondition", ruleContentsObj.autoGroupingScopeCondition);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getExcludeResourceTypesScope() const {
|
||||
return excludeResourceTypesScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setExcludeResourceTypesScope(const std::string &excludeResourceTypesScope) {
|
||||
excludeResourceTypesScope_ = excludeResourceTypesScope;
|
||||
setParameter(std::string("ExcludeResourceTypesScope"), excludeResourceTypesScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getExcludeRegionIdsScope() const {
|
||||
return excludeRegionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setExcludeRegionIdsScope(const std::string &excludeRegionIdsScope) {
|
||||
excludeRegionIdsScope_ = excludeRegionIdsScope;
|
||||
setParameter(std::string("ExcludeRegionIdsScope"), excludeRegionIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAutoGroupingRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/CreateAutoGroupingRuleResult.cc
Normal file
51
resourcemanager/src/model/CreateAutoGroupingRuleResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CreateAutoGroupingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateAutoGroupingRuleResult::CreateAutoGroupingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAutoGroupingRuleResult::CreateAutoGroupingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAutoGroupingRuleResult::~CreateAutoGroupingRuleResult()
|
||||
{}
|
||||
|
||||
void CreateAutoGroupingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = value["RuleId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAutoGroupingRuleResult::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
@@ -40,26 +40,26 @@ void CreateCloudAccountResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void CreatePolicyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
if(!policyNode["DefaultVersion"].isNull())
|
||||
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
|
||||
if(!policyNode["Description"].isNull())
|
||||
policy_.description = policyNode["Description"].asString();
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
policy_.policyName = policyNode["PolicyName"].asString();
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
if(!policyNode["PolicyType"].isNull())
|
||||
policy_.policyType = policyNode["PolicyType"].asString();
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void CreatePolicyVersionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
if(!policyVersionNode["IsDefaultVersion"].isNull())
|
||||
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,3 +43,15 @@ void CreateResourceGroupRequest::setName(const std::string &name) {
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::vector<CreateResourceGroupRequest::Tag> CreateResourceGroupRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setTag(const std::vector<CreateResourceGroupRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void CreateResourceGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceGroupNode = value["ResourceGroup"];
|
||||
if(!resourceGroupNode["DisplayName"].isNull())
|
||||
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
|
||||
if(!resourceGroupNode["Status"].isNull())
|
||||
resourceGroup_.status = resourceGroupNode["Status"].asString();
|
||||
if(!resourceGroupNode["AccountId"].isNull())
|
||||
resourceGroup_.accountId = resourceGroupNode["AccountId"].asString();
|
||||
if(!resourceGroupNode["Name"].isNull())
|
||||
resourceGroup_.name = resourceGroupNode["Name"].asString();
|
||||
if(!resourceGroupNode["CreateDate"].isNull())
|
||||
resourceGroup_.createDate = resourceGroupNode["CreateDate"].asString();
|
||||
if(!resourceGroupNode["DisplayName"].isNull())
|
||||
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
|
||||
if(!resourceGroupNode["Id"].isNull())
|
||||
resourceGroup_.id = resourceGroupNode["Id"].asString();
|
||||
if(!resourceGroupNode["Name"].isNull())
|
||||
resourceGroup_.name = resourceGroupNode["Name"].asString();
|
||||
if(!resourceGroupNode["Status"].isNull())
|
||||
resourceGroup_.status = resourceGroupNode["Status"].asString();
|
||||
auto allRegionStatusesNode = resourceGroupNode["RegionStatuses"]["RegionStatus"];
|
||||
for (auto resourceGroupNodeRegionStatusesRegionStatus : allRegionStatusesNode)
|
||||
{
|
||||
ResourceGroup::RegionStatus regionStatusObject;
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
|
||||
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["RegionId"].isNull())
|
||||
regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString();
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
|
||||
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
|
||||
resourceGroup_.regionStatuses.push_back(regionStatusObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void CreateRoleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void CreateServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["IsServiceLinkedRole"].isNull())
|
||||
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
36
resourcemanager/src/model/DeleteAutoGroupingRuleRequest.cc
Normal file
36
resourcemanager/src/model/DeleteAutoGroupingRuleRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteAutoGroupingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteAutoGroupingRuleRequest;
|
||||
|
||||
DeleteAutoGroupingRuleRequest::DeleteAutoGroupingRuleRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteAutoGroupingRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAutoGroupingRuleRequest::~DeleteAutoGroupingRuleRequest() {}
|
||||
|
||||
std::string DeleteAutoGroupingRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeleteAutoGroupingRuleResult.cc
Normal file
44
resourcemanager/src/model/DeleteAutoGroupingRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteAutoGroupingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteAutoGroupingRuleResult::DeleteAutoGroupingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAutoGroupingRuleResult::DeleteAutoGroupingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAutoGroupingRuleResult::~DeleteAutoGroupingRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteAutoGroupingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DetachPolicyRequest::DetachPolicyRequest()
|
||||
|
||||
DetachPolicyRequest::~DetachPolicyRequest() {}
|
||||
|
||||
std::string DetachPolicyRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getPolicyType() const {
|
||||
return policyType_;
|
||||
}
|
||||
@@ -43,15 +52,6 @@ void DetachPolicyRequest::setPrincipalType(const std::string &principalType) {
|
||||
setParameter(std::string("PrincipalType"), principalType);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getPolicyName() const {
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DisableAssociatedTransferRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DisableAssociatedTransferRequest;
|
||||
|
||||
DisableAssociatedTransferRequest::DisableAssociatedTransferRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "DisableAssociatedTransfer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableAssociatedTransferRequest::~DisableAssociatedTransferRequest() {}
|
||||
|
||||
44
resourcemanager/src/model/DisableAssociatedTransferResult.cc
Normal file
44
resourcemanager/src/model/DisableAssociatedTransferResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DisableAssociatedTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DisableAssociatedTransferResult::DisableAssociatedTransferResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableAssociatedTransferResult::DisableAssociatedTransferResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableAssociatedTransferResult::~DisableAssociatedTransferResult()
|
||||
{}
|
||||
|
||||
void DisableAssociatedTransferResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
resourcemanager/src/model/DisableAutoGroupingRequest.cc
Normal file
27
resourcemanager/src/model/DisableAutoGroupingRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DisableAutoGroupingRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DisableAutoGroupingRequest;
|
||||
|
||||
DisableAutoGroupingRequest::DisableAutoGroupingRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "DisableAutoGrouping") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableAutoGroupingRequest::~DisableAutoGroupingRequest() {}
|
||||
|
||||
44
resourcemanager/src/model/DisableAutoGroupingResult.cc
Normal file
44
resourcemanager/src/model/DisableAutoGroupingResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DisableAutoGroupingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DisableAutoGroupingResult::DisableAutoGroupingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableAutoGroupingResult::DisableAutoGroupingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableAutoGroupingResult::~DisableAutoGroupingResult()
|
||||
{}
|
||||
|
||||
void DisableAutoGroupingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
resourcemanager/src/model/EnableAssociatedTransferRequest.cc
Normal file
27
resourcemanager/src/model/EnableAssociatedTransferRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/EnableAssociatedTransferRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::EnableAssociatedTransferRequest;
|
||||
|
||||
EnableAssociatedTransferRequest::EnableAssociatedTransferRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "EnableAssociatedTransfer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableAssociatedTransferRequest::~EnableAssociatedTransferRequest() {}
|
||||
|
||||
44
resourcemanager/src/model/EnableAssociatedTransferResult.cc
Normal file
44
resourcemanager/src/model/EnableAssociatedTransferResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/EnableAssociatedTransferResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
EnableAssociatedTransferResult::EnableAssociatedTransferResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAssociatedTransferResult::EnableAssociatedTransferResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAssociatedTransferResult::~EnableAssociatedTransferResult()
|
||||
{}
|
||||
|
||||
void EnableAssociatedTransferResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
resourcemanager/src/model/EnableAutoGroupingRequest.cc
Normal file
27
resourcemanager/src/model/EnableAutoGroupingRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/EnableAutoGroupingRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::EnableAutoGroupingRequest;
|
||||
|
||||
EnableAutoGroupingRequest::EnableAutoGroupingRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "EnableAutoGrouping") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableAutoGroupingRequest::~EnableAutoGroupingRequest() {}
|
||||
|
||||
44
resourcemanager/src/model/EnableAutoGroupingResult.cc
Normal file
44
resourcemanager/src/model/EnableAutoGroupingResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/EnableAutoGroupingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
EnableAutoGroupingResult::EnableAutoGroupingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableAutoGroupingResult::EnableAutoGroupingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableAutoGroupingResult::~EnableAutoGroupingResult()
|
||||
{}
|
||||
|
||||
void EnableAutoGroupingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
resourcemanager/src/model/GetAutoGroupingRuleRequest.cc
Normal file
36
resourcemanager/src/model/GetAutoGroupingRuleRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetAutoGroupingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetAutoGroupingRuleRequest;
|
||||
|
||||
GetAutoGroupingRuleRequest::GetAutoGroupingRuleRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "GetAutoGroupingRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAutoGroupingRuleRequest::~GetAutoGroupingRuleRequest() {}
|
||||
|
||||
std::string GetAutoGroupingRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void GetAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
90
resourcemanager/src/model/GetAutoGroupingRuleResult.cc
Normal file
90
resourcemanager/src/model/GetAutoGroupingRuleResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetAutoGroupingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetAutoGroupingRuleResult::GetAutoGroupingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAutoGroupingRuleResult::GetAutoGroupingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAutoGroupingRuleResult::~GetAutoGroupingRuleResult()
|
||||
{}
|
||||
|
||||
void GetAutoGroupingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ruleNode = value["Rule"];
|
||||
if(!ruleNode["CreateTime"].isNull())
|
||||
rule_.createTime = ruleNode["CreateTime"].asString();
|
||||
if(!ruleNode["ExcludeRegionIdsScope"].isNull())
|
||||
rule_.excludeRegionIdsScope = ruleNode["ExcludeRegionIdsScope"].asString();
|
||||
if(!ruleNode["ExcludeResourceGroupIdsScope"].isNull())
|
||||
rule_.excludeResourceGroupIdsScope = ruleNode["ExcludeResourceGroupIdsScope"].asString();
|
||||
if(!ruleNode["ExcludeResourceIdsScope"].isNull())
|
||||
rule_.excludeResourceIdsScope = ruleNode["ExcludeResourceIdsScope"].asString();
|
||||
if(!ruleNode["ExcludeResourceTypesScope"].isNull())
|
||||
rule_.excludeResourceTypesScope = ruleNode["ExcludeResourceTypesScope"].asString();
|
||||
if(!ruleNode["ModifyTime"].isNull())
|
||||
rule_.modifyTime = ruleNode["ModifyTime"].asString();
|
||||
if(!ruleNode["RegionIdsScope"].isNull())
|
||||
rule_.regionIdsScope = ruleNode["RegionIdsScope"].asString();
|
||||
if(!ruleNode["ResourceGroupIdsScope"].isNull())
|
||||
rule_.resourceGroupIdsScope = ruleNode["ResourceGroupIdsScope"].asString();
|
||||
if(!ruleNode["ResourceIdsScope"].isNull())
|
||||
rule_.resourceIdsScope = ruleNode["ResourceIdsScope"].asString();
|
||||
if(!ruleNode["ResourceTypesScope"].isNull())
|
||||
rule_.resourceTypesScope = ruleNode["ResourceTypesScope"].asString();
|
||||
if(!ruleNode["RuleDesc"].isNull())
|
||||
rule_.ruleDesc = ruleNode["RuleDesc"].asString();
|
||||
if(!ruleNode["RuleId"].isNull())
|
||||
rule_.ruleId = ruleNode["RuleId"].asString();
|
||||
if(!ruleNode["RuleName"].isNull())
|
||||
rule_.ruleName = ruleNode["RuleName"].asString();
|
||||
if(!ruleNode["RuleType"].isNull())
|
||||
rule_.ruleType = ruleNode["RuleType"].asString();
|
||||
auto allRuleContentsNode = ruleNode["RuleContents"]["RuleContent"];
|
||||
for (auto ruleNodeRuleContentsRuleContent : allRuleContentsNode)
|
||||
{
|
||||
Rule::RuleContent ruleContentObject;
|
||||
if(!ruleNodeRuleContentsRuleContent["AutoGroupingScopeCondition"].isNull())
|
||||
ruleContentObject.autoGroupingScopeCondition = ruleNodeRuleContentsRuleContent["AutoGroupingScopeCondition"].asString();
|
||||
if(!ruleNodeRuleContentsRuleContent["RuleContentId"].isNull())
|
||||
ruleContentObject.ruleContentId = ruleNodeRuleContentsRuleContent["RuleContentId"].asString();
|
||||
if(!ruleNodeRuleContentsRuleContent["TargetResourceGroupCondition"].isNull())
|
||||
ruleContentObject.targetResourceGroupCondition = ruleNodeRuleContentsRuleContent["TargetResourceGroupCondition"].asString();
|
||||
rule_.ruleContents.push_back(ruleContentObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetAutoGroupingRuleResult::Rule GetAutoGroupingRuleResult::getRule()const
|
||||
{
|
||||
return rule_;
|
||||
}
|
||||
|
||||
27
resourcemanager/src/model/GetAutoGroupingStatusRequest.cc
Normal file
27
resourcemanager/src/model/GetAutoGroupingStatusRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetAutoGroupingStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetAutoGroupingStatusRequest;
|
||||
|
||||
GetAutoGroupingStatusRequest::GetAutoGroupingStatusRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "GetAutoGroupingStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAutoGroupingStatusRequest::~GetAutoGroupingStatusRequest() {}
|
||||
|
||||
58
resourcemanager/src/model/GetAutoGroupingStatusResult.cc
Normal file
58
resourcemanager/src/model/GetAutoGroupingStatusResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetAutoGroupingStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetAutoGroupingStatusResult::GetAutoGroupingStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAutoGroupingStatusResult::GetAutoGroupingStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAutoGroupingStatusResult::~GetAutoGroupingStatusResult()
|
||||
{}
|
||||
|
||||
void GetAutoGroupingStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EnableExistedResourcesTransfer"].isNull())
|
||||
enableExistedResourcesTransfer_ = value["EnableExistedResourcesTransfer"].asString() == "true";
|
||||
if(!value["EnableStatus"].isNull())
|
||||
enableStatus_ = value["EnableStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAutoGroupingStatusResult::getEnableStatus()const
|
||||
{
|
||||
return enableStatus_;
|
||||
}
|
||||
|
||||
bool GetAutoGroupingStatusResult::getEnableExistedResourcesTransfer()const
|
||||
{
|
||||
return enableExistedResourcesTransfer_;
|
||||
}
|
||||
|
||||
@@ -40,22 +40,22 @@ void GetPolicyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["AttachmentCount"].isNull())
|
||||
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
if(!policyNode["DefaultVersion"].isNull())
|
||||
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
|
||||
if(!policyNode["UpdateDate"].isNull())
|
||||
policy_.updateDate = policyNode["UpdateDate"].asString();
|
||||
if(!policyNode["Description"].isNull())
|
||||
policy_.description = policyNode["Description"].asString();
|
||||
if(!policyNode["PolicyDocument"].isNull())
|
||||
policy_.policyDocument = policyNode["PolicyDocument"].asString();
|
||||
if(!policyNode["AttachmentCount"].isNull())
|
||||
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
policy_.policyName = policyNode["PolicyName"].asString();
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
if(!policyNode["PolicyType"].isNull())
|
||||
policy_.policyType = policyNode["PolicyType"].asString();
|
||||
if(!policyNode["UpdateDate"].isNull())
|
||||
policy_.updateDate = policyNode["UpdateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void GetPolicyVersionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
if(!policyVersionNode["IsDefaultVersion"].isNull())
|
||||
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
|
||||
if(!policyVersionNode["PolicyDocument"].isNull())
|
||||
policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString();
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void GetResourceDirectoryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceDirectoryNode = value["ResourceDirectory"];
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["ControlPolicyStatus"].isNull())
|
||||
resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString();
|
||||
if(!resourceDirectoryNode["CreateTime"].isNull())
|
||||
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
|
||||
if(!resourceDirectoryNode["IdentityInformation"].isNull())
|
||||
resourceDirectory_.identityInformation = resourceDirectoryNode["IdentityInformation"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountId"].isNull())
|
||||
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountName"].isNull())
|
||||
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
|
||||
if(!resourceDirectoryNode["ScpStatus"].isNull())
|
||||
resourceDirectory_.scpStatus = resourceDirectoryNode["ScpStatus"].asString();
|
||||
if(!resourceDirectoryNode["ControlPolicyStatus"].isNull())
|
||||
resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString();
|
||||
if(!resourceDirectoryNode["MemberDeletionStatus"].isNull())
|
||||
resourceDirectory_.memberDeletionStatus = resourceDirectoryNode["MemberDeletionStatus"].asString();
|
||||
if(!resourceDirectoryNode["IdentityInformation"].isNull())
|
||||
resourceDirectory_.identityInformation = resourceDirectoryNode["IdentityInformation"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["ScpStatus"].isNull())
|
||||
resourceDirectory_.scpStatus = resourceDirectoryNode["ScpStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,31 +40,31 @@ void GetRoleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["IsServiceLinkedRole"].isNull())
|
||||
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
if(!roleNode["UpdateDate"].isNull())
|
||||
role_.updateDate = roleNode["UpdateDate"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["IsServiceLinkedRole"].isNull())
|
||||
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
|
||||
auto latestDeletionTaskNode = roleNode["LatestDeletionTask"];
|
||||
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
|
||||
role_.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
|
||||
if(!latestDeletionTaskNode["CreateDate"].isNull())
|
||||
role_.latestDeletionTask.createDate = latestDeletionTaskNode["CreateDate"].asString();
|
||||
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
|
||||
role_.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,16 +40,16 @@ void InitResourceDirectoryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceDirectoryNode = value["ResourceDirectory"];
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["CreateTime"].isNull())
|
||||
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountId"].isNull())
|
||||
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountName"].isNull())
|
||||
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ ListAccountsForParentRequest::ListAccountsForParentRequest()
|
||||
|
||||
ListAccountsForParentRequest::~ListAccountsForParentRequest() {}
|
||||
|
||||
std::string ListAccountsForParentRequest::getQueryKeyword() const {
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setQueryKeyword(const std::string &queryKeyword) {
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter(std::string("QueryKeyword"), queryKeyword);
|
||||
}
|
||||
|
||||
int ListAccountsForParentRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
@@ -43,24 +34,6 @@ void ListAccountsForParentRequest::setPageNumber(int pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListAccountsForParentRequest::getParentFolderId() const {
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setParentFolderId(const std::string &parentFolderId) {
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter(std::string("ParentFolderId"), parentFolderId);
|
||||
}
|
||||
|
||||
bool ListAccountsForParentRequest::getIncludeTags() const {
|
||||
return includeTags_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setIncludeTags(bool includeTags) {
|
||||
includeTags_ = includeTags;
|
||||
setParameter(std::string("IncludeTags"), includeTags ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListAccountsForParentRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -82,3 +55,30 @@ void ListAccountsForParentRequest::setTag(const std::vector<ListAccountsForParen
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListAccountsForParentRequest::getQueryKeyword() const {
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setQueryKeyword(const std::string &queryKeyword) {
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter(std::string("QueryKeyword"), queryKeyword);
|
||||
}
|
||||
|
||||
std::string ListAccountsForParentRequest::getParentFolderId() const {
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setParentFolderId(const std::string &parentFolderId) {
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter(std::string("ParentFolderId"), parentFolderId);
|
||||
}
|
||||
|
||||
bool ListAccountsForParentRequest::getIncludeTags() const {
|
||||
return includeTags_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setIncludeTags(bool includeTags) {
|
||||
includeTags_ = includeTags;
|
||||
setParameter(std::string("IncludeTags"), includeTags ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListAssociatedTransferSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListAssociatedTransferSettingRequest;
|
||||
|
||||
ListAssociatedTransferSettingRequest::ListAssociatedTransferSettingRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "ListAssociatedTransferSetting") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAssociatedTransferSettingRequest::~ListAssociatedTransferSettingRequest() {}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListAssociatedTransferSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListAssociatedTransferSettingResult::ListAssociatedTransferSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAssociatedTransferSettingResult::ListAssociatedTransferSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAssociatedTransferSettingResult::~ListAssociatedTransferSettingResult()
|
||||
{}
|
||||
|
||||
void ListAssociatedTransferSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto associatedTransferSettingNode = value["AssociatedTransferSetting"];
|
||||
if(!associatedTransferSettingNode["AccountId"].isNull())
|
||||
associatedTransferSetting_.accountId = associatedTransferSettingNode["AccountId"].asString();
|
||||
if(!associatedTransferSettingNode["Status"].isNull())
|
||||
associatedTransferSetting_.status = associatedTransferSettingNode["Status"].asString();
|
||||
if(!associatedTransferSettingNode["EnablePartialRule"].isNull())
|
||||
associatedTransferSetting_.enablePartialRule = associatedTransferSettingNode["EnablePartialRule"].asString();
|
||||
if(!associatedTransferSettingNode["EnableExistingResourcesTransfer"].isNull())
|
||||
associatedTransferSetting_.enableExistingResourcesTransfer = associatedTransferSettingNode["EnableExistingResourcesTransfer"].asString();
|
||||
auto allRuleSettingsNode = associatedTransferSettingNode["RuleSettings"]["RuleSetting"];
|
||||
for (auto associatedTransferSettingNodeRuleSettingsRuleSetting : allRuleSettingsNode)
|
||||
{
|
||||
AssociatedTransferSetting::RuleSetting ruleSettingObject;
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedResourceType"].isNull())
|
||||
ruleSettingObject.associatedResourceType = associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedResourceType"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["MasterResourceType"].isNull())
|
||||
ruleSettingObject.masterResourceType = associatedTransferSettingNodeRuleSettingsRuleSetting["MasterResourceType"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedService"].isNull())
|
||||
ruleSettingObject.associatedService = associatedTransferSettingNodeRuleSettingsRuleSetting["AssociatedService"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["MasterService"].isNull())
|
||||
ruleSettingObject.masterService = associatedTransferSettingNodeRuleSettingsRuleSetting["MasterService"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["TriggerType"].isNull())
|
||||
ruleSettingObject.triggerType = associatedTransferSettingNodeRuleSettingsRuleSetting["TriggerType"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["RuleId"].isNull())
|
||||
ruleSettingObject.ruleId = associatedTransferSettingNodeRuleSettingsRuleSetting["RuleId"].asString();
|
||||
if(!associatedTransferSettingNodeRuleSettingsRuleSetting["Status"].isNull())
|
||||
ruleSettingObject.status = associatedTransferSettingNodeRuleSettingsRuleSetting["Status"].asString();
|
||||
associatedTransferSetting_.ruleSettings.push_back(ruleSettingObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListAssociatedTransferSettingResult::AssociatedTransferSetting ListAssociatedTransferSettingResult::getAssociatedTransferSetting()const
|
||||
{
|
||||
return associatedTransferSetting_;
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/ListAutoGroupingRulesRequest.cc
Normal file
72
resourcemanager/src/model/ListAutoGroupingRulesRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/ListAutoGroupingRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListAutoGroupingRulesRequest;
|
||||
|
||||
ListAutoGroupingRulesRequest::ListAutoGroupingRulesRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "ListAutoGroupingRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAutoGroupingRulesRequest::~ListAutoGroupingRulesRequest() {}
|
||||
|
||||
std::string ListAutoGroupingRulesRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void ListAutoGroupingRulesRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string ListAutoGroupingRulesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListAutoGroupingRulesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListAutoGroupingRulesRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void ListAutoGroupingRulesRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
int ListAutoGroupingRulesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListAutoGroupingRulesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListAutoGroupingRulesRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ListAutoGroupingRulesRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
109
resourcemanager/src/model/ListAutoGroupingRulesResult.cc
Normal file
109
resourcemanager/src/model/ListAutoGroupingRulesResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListAutoGroupingRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListAutoGroupingRulesResult::ListAutoGroupingRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAutoGroupingRulesResult::ListAutoGroupingRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAutoGroupingRulesResult::~ListAutoGroupingRulesResult()
|
||||
{}
|
||||
|
||||
void ListAutoGroupingRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRulesNode = value["Rules"]["Rule"];
|
||||
for (auto valueRulesRule : allRulesNode)
|
||||
{
|
||||
Rule rulesObject;
|
||||
if(!valueRulesRule["CreateTime"].isNull())
|
||||
rulesObject.createTime = valueRulesRule["CreateTime"].asString();
|
||||
if(!valueRulesRule["ExcludeRegionIdsScope"].isNull())
|
||||
rulesObject.excludeRegionIdsScope = valueRulesRule["ExcludeRegionIdsScope"].asString();
|
||||
if(!valueRulesRule["ExcludeResourceGroupIdsScope"].isNull())
|
||||
rulesObject.excludeResourceGroupIdsScope = valueRulesRule["ExcludeResourceGroupIdsScope"].asString();
|
||||
if(!valueRulesRule["ExcludeResourceIdsScope"].isNull())
|
||||
rulesObject.excludeResourceIdsScope = valueRulesRule["ExcludeResourceIdsScope"].asString();
|
||||
if(!valueRulesRule["ExcludeResourceTypesScope"].isNull())
|
||||
rulesObject.excludeResourceTypesScope = valueRulesRule["ExcludeResourceTypesScope"].asString();
|
||||
if(!valueRulesRule["ModifyTime"].isNull())
|
||||
rulesObject.modifyTime = valueRulesRule["ModifyTime"].asString();
|
||||
if(!valueRulesRule["RegionIdsScope"].isNull())
|
||||
rulesObject.regionIdsScope = valueRulesRule["RegionIdsScope"].asString();
|
||||
if(!valueRulesRule["ResourceGroupIdsScope"].isNull())
|
||||
rulesObject.resourceGroupIdsScope = valueRulesRule["ResourceGroupIdsScope"].asString();
|
||||
if(!valueRulesRule["ResourceIdsScope"].isNull())
|
||||
rulesObject.resourceIdsScope = valueRulesRule["ResourceIdsScope"].asString();
|
||||
if(!valueRulesRule["ResourceTypesScope"].isNull())
|
||||
rulesObject.resourceTypesScope = valueRulesRule["ResourceTypesScope"].asString();
|
||||
if(!valueRulesRule["RuleDesc"].isNull())
|
||||
rulesObject.ruleDesc = valueRulesRule["RuleDesc"].asString();
|
||||
if(!valueRulesRule["RuleId"].isNull())
|
||||
rulesObject.ruleId = valueRulesRule["RuleId"].asString();
|
||||
if(!valueRulesRule["RuleName"].isNull())
|
||||
rulesObject.ruleName = valueRulesRule["RuleName"].asString();
|
||||
if(!valueRulesRule["RuleType"].isNull())
|
||||
rulesObject.ruleType = valueRulesRule["RuleType"].asString();
|
||||
auto allRuleContentsNode = valueRulesRule["RuleContents"]["RuleContent"];
|
||||
for (auto valueRulesRuleRuleContentsRuleContent : allRuleContentsNode)
|
||||
{
|
||||
Rule::RuleContent ruleContentsObject;
|
||||
if(!valueRulesRuleRuleContentsRuleContent["AutoGroupingScopeCondition"].isNull())
|
||||
ruleContentsObject.autoGroupingScopeCondition = valueRulesRuleRuleContentsRuleContent["AutoGroupingScopeCondition"].asString();
|
||||
if(!valueRulesRuleRuleContentsRuleContent["RuleContentId"].isNull())
|
||||
ruleContentsObject.ruleContentId = valueRulesRuleRuleContentsRuleContent["RuleContentId"].asString();
|
||||
if(!valueRulesRuleRuleContentsRuleContent["TargetResourceGroupCondition"].isNull())
|
||||
ruleContentsObject.targetResourceGroupCondition = valueRulesRuleRuleContentsRuleContent["TargetResourceGroupCondition"].asString();
|
||||
rulesObject.ruleContents.push_back(ruleContentsObject);
|
||||
}
|
||||
rules_.push_back(rulesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListAutoGroupingRulesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListAutoGroupingRulesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListAutoGroupingRulesResult::Rule> ListAutoGroupingRulesResult::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
@@ -43,28 +43,28 @@ void ListPoliciesResult::parse(const std::string &payload)
|
||||
for (auto valuePoliciesPolicy : allPoliciesNode)
|
||||
{
|
||||
Policy policiesObject;
|
||||
if(!valuePoliciesPolicy["AttachmentCount"].isNull())
|
||||
policiesObject.attachmentCount = std::stoi(valuePoliciesPolicy["AttachmentCount"].asString());
|
||||
if(!valuePoliciesPolicy["CreateDate"].isNull())
|
||||
policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString();
|
||||
if(!valuePoliciesPolicy["DefaultVersion"].isNull())
|
||||
policiesObject.defaultVersion = valuePoliciesPolicy["DefaultVersion"].asString();
|
||||
if(!valuePoliciesPolicy["Description"].isNull())
|
||||
policiesObject.description = valuePoliciesPolicy["Description"].asString();
|
||||
if(!valuePoliciesPolicy["UpdateDate"].isNull())
|
||||
policiesObject.updateDate = valuePoliciesPolicy["UpdateDate"].asString();
|
||||
if(!valuePoliciesPolicy["AttachmentCount"].isNull())
|
||||
policiesObject.attachmentCount = std::stoi(valuePoliciesPolicy["AttachmentCount"].asString());
|
||||
if(!valuePoliciesPolicy["PolicyName"].isNull())
|
||||
policiesObject.policyName = valuePoliciesPolicy["PolicyName"].asString();
|
||||
if(!valuePoliciesPolicy["CreateDate"].isNull())
|
||||
policiesObject.createDate = valuePoliciesPolicy["CreateDate"].asString();
|
||||
if(!valuePoliciesPolicy["PolicyType"].isNull())
|
||||
policiesObject.policyType = valuePoliciesPolicy["PolicyType"].asString();
|
||||
if(!valuePoliciesPolicy["UpdateDate"].isNull())
|
||||
policiesObject.updateDate = valuePoliciesPolicy["UpdateDate"].asString();
|
||||
policies_.push_back(policiesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,28 +43,28 @@ void ListPolicyAttachmentsResult::parse(const std::string &payload)
|
||||
for (auto valuePolicyAttachmentsPolicyAttachment : allPolicyAttachmentsNode)
|
||||
{
|
||||
PolicyAttachment policyAttachmentsObject;
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["Description"].isNull())
|
||||
policyAttachmentsObject.description = valuePolicyAttachmentsPolicyAttachment["Description"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].isNull())
|
||||
policyAttachmentsObject.resourceGroupId = valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PolicyName"].isNull())
|
||||
policyAttachmentsObject.policyName = valuePolicyAttachmentsPolicyAttachment["PolicyName"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalName"].isNull())
|
||||
policyAttachmentsObject.principalName = valuePolicyAttachmentsPolicyAttachment["PrincipalName"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["AttachDate"].isNull())
|
||||
policyAttachmentsObject.attachDate = valuePolicyAttachmentsPolicyAttachment["AttachDate"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["Description"].isNull())
|
||||
policyAttachmentsObject.description = valuePolicyAttachmentsPolicyAttachment["Description"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PolicyName"].isNull())
|
||||
policyAttachmentsObject.policyName = valuePolicyAttachmentsPolicyAttachment["PolicyName"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PolicyType"].isNull())
|
||||
policyAttachmentsObject.policyType = valuePolicyAttachmentsPolicyAttachment["PolicyType"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalName"].isNull())
|
||||
policyAttachmentsObject.principalName = valuePolicyAttachmentsPolicyAttachment["PrincipalName"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["PrincipalType"].isNull())
|
||||
policyAttachmentsObject.principalType = valuePolicyAttachmentsPolicyAttachment["PrincipalType"].asString();
|
||||
if(!valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].isNull())
|
||||
policyAttachmentsObject.resourceGroupId = valuePolicyAttachmentsPolicyAttachment["ResourceGroupId"].asString();
|
||||
policyAttachments_.push_back(policyAttachmentsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void ListPolicyVersionsResult::parse(const std::string &payload)
|
||||
for (auto valuePolicyVersionsPolicyVersion : allPolicyVersionsNode)
|
||||
{
|
||||
PolicyVersion policyVersionsObject;
|
||||
if(!valuePolicyVersionsPolicyVersion["CreateDate"].isNull())
|
||||
policyVersionsObject.createDate = valuePolicyVersionsPolicyVersion["CreateDate"].asString();
|
||||
if(!valuePolicyVersionsPolicyVersion["IsDefaultVersion"].isNull())
|
||||
policyVersionsObject.isDefaultVersion = valuePolicyVersionsPolicyVersion["IsDefaultVersion"].asString() == "true";
|
||||
if(!valuePolicyVersionsPolicyVersion["VersionId"].isNull())
|
||||
policyVersionsObject.versionId = valuePolicyVersionsPolicyVersion["VersionId"].asString();
|
||||
if(!valuePolicyVersionsPolicyVersion["CreateDate"].isNull())
|
||||
policyVersionsObject.createDate = valuePolicyVersionsPolicyVersion["CreateDate"].asString();
|
||||
policyVersions_.push_back(policyVersionsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,37 +43,37 @@ void ListRolesResult::parse(const std::string &payload)
|
||||
for (auto valueRolesRole : allRolesNode)
|
||||
{
|
||||
Role rolesObject;
|
||||
if(!valueRolesRole["Arn"].isNull())
|
||||
rolesObject.arn = valueRolesRole["Arn"].asString();
|
||||
if(!valueRolesRole["CreateDate"].isNull())
|
||||
rolesObject.createDate = valueRolesRole["CreateDate"].asString();
|
||||
if(!valueRolesRole["Description"].isNull())
|
||||
rolesObject.description = valueRolesRole["Description"].asString();
|
||||
if(!valueRolesRole["IsServiceLinkedRole"].isNull())
|
||||
rolesObject.isServiceLinkedRole = valueRolesRole["IsServiceLinkedRole"].asString() == "true";
|
||||
if(!valueRolesRole["MaxSessionDuration"].isNull())
|
||||
rolesObject.maxSessionDuration = std::stol(valueRolesRole["MaxSessionDuration"].asString());
|
||||
if(!valueRolesRole["RoleId"].isNull())
|
||||
rolesObject.roleId = valueRolesRole["RoleId"].asString();
|
||||
if(!valueRolesRole["RoleName"].isNull())
|
||||
rolesObject.roleName = valueRolesRole["RoleName"].asString();
|
||||
if(!valueRolesRole["RolePrincipalName"].isNull())
|
||||
rolesObject.rolePrincipalName = valueRolesRole["RolePrincipalName"].asString();
|
||||
if(!valueRolesRole["UpdateDate"].isNull())
|
||||
rolesObject.updateDate = valueRolesRole["UpdateDate"].asString();
|
||||
if(!valueRolesRole["Description"].isNull())
|
||||
rolesObject.description = valueRolesRole["Description"].asString();
|
||||
if(!valueRolesRole["MaxSessionDuration"].isNull())
|
||||
rolesObject.maxSessionDuration = std::stol(valueRolesRole["MaxSessionDuration"].asString());
|
||||
if(!valueRolesRole["RoleName"].isNull())
|
||||
rolesObject.roleName = valueRolesRole["RoleName"].asString();
|
||||
if(!valueRolesRole["CreateDate"].isNull())
|
||||
rolesObject.createDate = valueRolesRole["CreateDate"].asString();
|
||||
if(!valueRolesRole["RoleId"].isNull())
|
||||
rolesObject.roleId = valueRolesRole["RoleId"].asString();
|
||||
if(!valueRolesRole["Arn"].isNull())
|
||||
rolesObject.arn = valueRolesRole["Arn"].asString();
|
||||
if(!valueRolesRole["IsServiceLinkedRole"].isNull())
|
||||
rolesObject.isServiceLinkedRole = valueRolesRole["IsServiceLinkedRole"].asString() == "true";
|
||||
auto latestDeletionTaskNode = value["LatestDeletionTask"];
|
||||
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
|
||||
rolesObject.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
|
||||
if(!latestDeletionTaskNode["CreateDate"].isNull())
|
||||
rolesObject.latestDeletionTask.createDate = latestDeletionTaskNode["CreateDate"].asString();
|
||||
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
|
||||
rolesObject.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
|
||||
roles_.push_back(rolesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,27 @@ ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::std::string> ListTagResourcesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
@@ -45,15 +66,6 @@ void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListTagResourcesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
@@ -63,15 +75,3 @@ void ListTagResourcesRequest::setMaxResults(int maxResults) {
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
|
||||
setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void PromoteResourceAccountResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ResendCreateCloudAccountEmailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ResendPromoteResourceAccountEmailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/UpdateAssociatedTransferSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::UpdateAssociatedTransferSettingRequest;
|
||||
|
||||
UpdateAssociatedTransferSettingRequest::UpdateAssociatedTransferSettingRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAssociatedTransferSetting") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAssociatedTransferSettingRequest::~UpdateAssociatedTransferSettingRequest() {}
|
||||
|
||||
std::vector<UpdateAssociatedTransferSettingRequest::RuleSettings> UpdateAssociatedTransferSettingRequest::getRuleSettings() const {
|
||||
return ruleSettings_;
|
||||
}
|
||||
|
||||
void UpdateAssociatedTransferSettingRequest::setRuleSettings(const std::vector<UpdateAssociatedTransferSettingRequest::RuleSettings> &ruleSettings) {
|
||||
ruleSettings_ = ruleSettings;
|
||||
for(int dep1 = 0; dep1 != ruleSettings.size(); dep1++) {
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".AssociatedService", ruleSettings[dep1].associatedService);
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".MasterService", ruleSettings[dep1].masterService);
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".MasterResourceType", ruleSettings[dep1].masterResourceType);
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".AssociatedResourceType", ruleSettings[dep1].associatedResourceType);
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".RuleId", ruleSettings[dep1].ruleId);
|
||||
setParameter(std::string("RuleSettings") + "." + std::to_string(dep1 + 1) + ".Status", ruleSettings[dep1].status);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateAssociatedTransferSettingRequest::getEnableExistingResourcesTransfer() const {
|
||||
return enableExistingResourcesTransfer_;
|
||||
}
|
||||
|
||||
void UpdateAssociatedTransferSettingRequest::setEnableExistingResourcesTransfer(const std::string &enableExistingResourcesTransfer) {
|
||||
enableExistingResourcesTransfer_ = enableExistingResourcesTransfer;
|
||||
setParameter(std::string("EnableExistingResourcesTransfer"), enableExistingResourcesTransfer);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/UpdateAssociatedTransferSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
UpdateAssociatedTransferSettingResult::UpdateAssociatedTransferSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAssociatedTransferSettingResult::UpdateAssociatedTransferSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAssociatedTransferSettingResult::~UpdateAssociatedTransferSettingResult()
|
||||
{}
|
||||
|
||||
void UpdateAssociatedTransferSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
resourcemanager/src/model/UpdateAutoGroupingConfigRequest.cc
Normal file
36
resourcemanager/src/model/UpdateAutoGroupingConfigRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/UpdateAutoGroupingConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::UpdateAutoGroupingConfigRequest;
|
||||
|
||||
UpdateAutoGroupingConfigRequest::UpdateAutoGroupingConfigRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAutoGroupingConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAutoGroupingConfigRequest::~UpdateAutoGroupingConfigRequest() {}
|
||||
|
||||
bool UpdateAutoGroupingConfigRequest::getEnableExistingResourcesTransfer() const {
|
||||
return enableExistingResourcesTransfer_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingConfigRequest::setEnableExistingResourcesTransfer(bool enableExistingResourcesTransfer) {
|
||||
enableExistingResourcesTransfer_ = enableExistingResourcesTransfer;
|
||||
setParameter(std::string("EnableExistingResourcesTransfer"), enableExistingResourcesTransfer ? "true" : "false");
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/UpdateAutoGroupingConfigResult.cc
Normal file
44
resourcemanager/src/model/UpdateAutoGroupingConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/UpdateAutoGroupingConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
UpdateAutoGroupingConfigResult::UpdateAutoGroupingConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAutoGroupingConfigResult::UpdateAutoGroupingConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAutoGroupingConfigResult::~UpdateAutoGroupingConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateAutoGroupingConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
141
resourcemanager/src/model/UpdateAutoGroupingRuleRequest.cc
Normal file
141
resourcemanager/src/model/UpdateAutoGroupingRuleRequest.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/UpdateAutoGroupingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::UpdateAutoGroupingRuleRequest;
|
||||
|
||||
UpdateAutoGroupingRuleRequest::UpdateAutoGroupingRuleRequest()
|
||||
: RpcServiceRequest("resourcemanager", "2020-03-31", "UpdateAutoGroupingRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAutoGroupingRuleRequest::~UpdateAutoGroupingRuleRequest() {}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getRuleDesc() const {
|
||||
return ruleDesc_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setRuleDesc(const std::string &ruleDesc) {
|
||||
ruleDesc_ = ruleDesc;
|
||||
setParameter(std::string("RuleDesc"), ruleDesc);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getResourceTypesScope() const {
|
||||
return resourceTypesScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setResourceTypesScope(const std::string &resourceTypesScope) {
|
||||
resourceTypesScope_ = resourceTypesScope;
|
||||
setParameter(std::string("ResourceTypesScope"), resourceTypesScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceGroupIdsScope() const {
|
||||
return excludeResourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setExcludeResourceGroupIdsScope(const std::string &excludeResourceGroupIdsScope) {
|
||||
excludeResourceGroupIdsScope_ = excludeResourceGroupIdsScope;
|
||||
setParameter(std::string("ExcludeResourceGroupIdsScope"), excludeResourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getResourceIdsScope() const {
|
||||
return resourceIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setResourceIdsScope(const std::string &resourceIdsScope) {
|
||||
resourceIdsScope_ = resourceIdsScope;
|
||||
setParameter(std::string("ResourceIdsScope"), resourceIdsScope);
|
||||
}
|
||||
|
||||
std::vector<UpdateAutoGroupingRuleRequest::RuleContents> UpdateAutoGroupingRuleRequest::getRuleContents() const {
|
||||
return ruleContents_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setRuleContents(const std::vector<UpdateAutoGroupingRuleRequest::RuleContents> &ruleContents) {
|
||||
ruleContents_ = ruleContents;
|
||||
for(int dep1 = 0; dep1 != ruleContents.size(); dep1++) {
|
||||
auto ruleContentsObj = ruleContents.at(dep1);
|
||||
std::string ruleContentsObjStr = std::string("RuleContents") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(ruleContentsObjStr + ".RuleContentId", ruleContentsObj.ruleContentId);
|
||||
setParameter(ruleContentsObjStr + ".TargetResourceGroupCondition", ruleContentsObj.targetResourceGroupCondition);
|
||||
setParameter(ruleContentsObjStr + ".AutoGroupingScopeCondition", ruleContentsObj.autoGroupingScopeCondition);
|
||||
}
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceTypesScope() const {
|
||||
return excludeResourceTypesScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setExcludeResourceTypesScope(const std::string &excludeResourceTypesScope) {
|
||||
excludeResourceTypesScope_ = excludeResourceTypesScope;
|
||||
setParameter(std::string("ExcludeResourceTypesScope"), excludeResourceTypesScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getExcludeRegionIdsScope() const {
|
||||
return excludeRegionIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setExcludeRegionIdsScope(const std::string &excludeRegionIdsScope) {
|
||||
excludeRegionIdsScope_ = excludeRegionIdsScope;
|
||||
setParameter(std::string("ExcludeRegionIdsScope"), excludeRegionIdsScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
std::string UpdateAutoGroupingRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void UpdateAutoGroupingRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/UpdateAutoGroupingRuleResult.cc
Normal file
44
resourcemanager/src/model/UpdateAutoGroupingRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/UpdateAutoGroupingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
UpdateAutoGroupingRuleResult::UpdateAutoGroupingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAutoGroupingRuleResult::UpdateAutoGroupingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAutoGroupingRuleResult::~UpdateAutoGroupingRuleResult()
|
||||
{}
|
||||
|
||||
void UpdateAutoGroupingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,24 +40,24 @@ void UpdateRoleResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["UpdateDate"].isNull())
|
||||
role_.updateDate = roleNode["UpdateDate"].asString();
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
if(!roleNode["UpdateDate"].isNull())
|
||||
role_.updateDate = roleNode["UpdateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user