Add cmsGroupId parameter to CreateApplicationGroupRequest.
This commit is contained in:
@@ -31,21 +31,21 @@ OosClient::OosClient(const Credentials &credentials, const ClientConfiguration &
|
||||
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, "oos");
|
||||
}
|
||||
|
||||
OosClient::OosClient(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, "oos");
|
||||
}
|
||||
|
||||
OosClient::OosClient(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, "oos");
|
||||
}
|
||||
|
||||
OosClient::~OosClient()
|
||||
@@ -87,6 +87,150 @@ OosClient::CancelExecutionOutcomeCallable OosClient::cancelExecutionCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ChangeResourceGroupOutcome OosClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ChangeResourceGroupOutcomeCallable OosClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ContinueDeployApplicationGroupOutcome OosClient::continueDeployApplicationGroup(const ContinueDeployApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ContinueDeployApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ContinueDeployApplicationGroupOutcome(ContinueDeployApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return ContinueDeployApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::continueDeployApplicationGroupAsync(const ContinueDeployApplicationGroupRequest& request, const ContinueDeployApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, continueDeployApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ContinueDeployApplicationGroupOutcomeCallable OosClient::continueDeployApplicationGroupCallable(const ContinueDeployApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ContinueDeployApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->continueDeployApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateApplicationOutcome OosClient::createApplication(const CreateApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateApplicationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateApplicationOutcome(CreateApplicationResult(outcome.result()));
|
||||
else
|
||||
return CreateApplicationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createApplication(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreateApplicationOutcomeCallable OosClient::createApplicationCallable(const CreateApplicationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateApplicationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createApplication(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateApplicationGroupOutcome OosClient::createApplicationGroup(const CreateApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateApplicationGroupOutcome(CreateApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createApplicationGroupAsync(const CreateApplicationGroupRequest& request, const CreateApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreateApplicationGroupOutcomeCallable OosClient::createApplicationGroupCallable(const CreateApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateParameterOutcome OosClient::createParameter(const CreateParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +411,78 @@ OosClient::CreateTemplateOutcomeCallable OosClient::createTemplateCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteApplicationOutcome OosClient::deleteApplication(const DeleteApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteApplicationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteApplicationOutcome(DeleteApplicationResult(outcome.result()));
|
||||
else
|
||||
return DeleteApplicationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteApplication(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeleteApplicationOutcomeCallable OosClient::deleteApplicationCallable(const DeleteApplicationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteApplicationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteApplication(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteApplicationGroupOutcome OosClient::deleteApplicationGroup(const DeleteApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteApplicationGroupOutcome(DeleteApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deleteApplicationGroupAsync(const DeleteApplicationGroupRequest& request, const DeleteApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeleteApplicationGroupOutcomeCallable OosClient::deleteApplicationGroupCallable(const DeleteApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteExecutionsOutcome OosClient::deleteExecutions(const DeleteExecutionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +735,42 @@ OosClient::DeleteTemplatesOutcomeCallable OosClient::deleteTemplatesCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeployApplicationGroupOutcome OosClient::deployApplicationGroup(const DeployApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployApplicationGroupOutcome(DeployApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return DeployApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deployApplicationGroupAsync(const DeployApplicationGroupRequest& request, const DeployApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeployApplicationGroupOutcomeCallable OosClient::deployApplicationGroupCallable(const DeployApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DescribeRegionsOutcome OosClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +843,78 @@ OosClient::GenerateExecutionPolicyOutcomeCallable OosClient::generateExecutionPo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetApplicationOutcome OosClient::getApplication(const GetApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetApplicationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetApplicationOutcome(GetApplicationResult(outcome.result()));
|
||||
else
|
||||
return GetApplicationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getApplicationAsync(const GetApplicationRequest& request, const GetApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getApplication(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetApplicationOutcomeCallable OosClient::getApplicationCallable(const GetApplicationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetApplicationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getApplication(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetApplicationGroupOutcome OosClient::getApplicationGroup(const GetApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetApplicationGroupOutcome(GetApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return GetApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getApplicationGroupAsync(const GetApplicationGroupRequest& request, const GetApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetApplicationGroupOutcomeCallable OosClient::getApplicationGroupCallable(const GetApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetExecutionTemplateOutcome OosClient::getExecutionTemplate(const GetExecutionTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1347,78 @@ OosClient::ListActionsOutcomeCallable OosClient::listActionsCallable(const ListA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListApplicationGroupsOutcome OosClient::listApplicationGroups(const ListApplicationGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListApplicationGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListApplicationGroupsOutcome(ListApplicationGroupsResult(outcome.result()));
|
||||
else
|
||||
return ListApplicationGroupsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listApplicationGroupsAsync(const ListApplicationGroupsRequest& request, const ListApplicationGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listApplicationGroups(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListApplicationGroupsOutcomeCallable OosClient::listApplicationGroupsCallable(const ListApplicationGroupsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListApplicationGroupsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listApplicationGroups(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListApplicationsOutcome OosClient::listApplications(const ListApplicationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListApplicationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListApplicationsOutcome(ListApplicationsResult(outcome.result()));
|
||||
else
|
||||
return ListApplicationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listApplications(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListApplicationsOutcomeCallable OosClient::listApplicationsCallable(const ListApplicationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListApplicationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listApplications(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListExecutionLogsOutcome OosClient::listExecutionLogs(const ListExecutionLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,42 +1599,6 @@ OosClient::ListInstancePatchesOutcomeCallable OosClient::listInstancePatchesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInstanceStateReportsOutcome OosClient::listInstanceStateReports(const ListInstanceStateReportsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstanceStateReportsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstanceStateReportsOutcome(ListInstanceStateReportsResult(outcome.result()));
|
||||
else
|
||||
return ListInstanceStateReportsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listInstanceStateReportsAsync(const ListInstanceStateReportsRequest& request, const ListInstanceStateReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstanceStateReports(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListInstanceStateReportsOutcomeCallable OosClient::listInstanceStateReportsCallable(const ListInstanceStateReportsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstanceStateReportsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstanceStateReports(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListInventoryEntriesOutcome OosClient::listInventoryEntries(const ListInventoryEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2031,6 +2391,78 @@ OosClient::UntagResourcesOutcomeCallable OosClient::untagResourcesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateApplicationOutcome OosClient::updateApplication(const UpdateApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateApplicationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateApplicationOutcome(UpdateApplicationResult(outcome.result()));
|
||||
else
|
||||
return UpdateApplicationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateApplicationAsync(const UpdateApplicationRequest& request, const UpdateApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateApplication(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateApplicationOutcomeCallable OosClient::updateApplicationCallable(const UpdateApplicationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateApplicationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateApplication(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateApplicationGroupOutcome OosClient::updateApplicationGroup(const UpdateApplicationGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateApplicationGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateApplicationGroupOutcome(UpdateApplicationGroupResult(outcome.result()));
|
||||
else
|
||||
return UpdateApplicationGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateApplicationGroupAsync(const UpdateApplicationGroupRequest& request, const UpdateApplicationGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateApplicationGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateApplicationGroupOutcomeCallable OosClient::updateApplicationGroupCallable(const UpdateApplicationGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateApplicationGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateApplicationGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateExecutionOutcome OosClient::updateExecution(const UpdateExecutionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2067,42 +2499,6 @@ OosClient::UpdateExecutionOutcomeCallable OosClient::updateExecutionCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateInstanceInformationOutcome OosClient::updateInstanceInformation(const UpdateInstanceInformationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateInstanceInformationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateInstanceInformationOutcome(UpdateInstanceInformationResult(outcome.result()));
|
||||
else
|
||||
return UpdateInstanceInformationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateInstanceInformationAsync(const UpdateInstanceInformationRequest& request, const UpdateInstanceInformationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateInstanceInformation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateInstanceInformationOutcomeCallable OosClient::updateInstanceInformationCallable(const UpdateInstanceInformationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateInstanceInformationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateInstanceInformation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateParameterOutcome OosClient::updateParameter(const UpdateParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CancelExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CancelExecutionRequest;
|
||||
|
||||
CancelExecutionRequest::CancelExecutionRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CancelExecution")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelExecutionRequest::~CancelExecutionRequest()
|
||||
{}
|
||||
|
||||
std::string CancelExecutionRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CancelExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CancelExecutionRequest;
|
||||
|
||||
CancelExecutionRequest::CancelExecutionRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CancelExecution") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelExecutionRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
CancelExecutionRequest::~CancelExecutionRequest() {}
|
||||
|
||||
std::string CancelExecutionRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
std::string CancelExecutionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CancelExecutionRequest::setExecutionId(const std::string &executionId) {
|
||||
executionId_ = executionId;
|
||||
setParameter(std::string("ExecutionId"), executionId);
|
||||
}
|
||||
|
||||
void CancelExecutionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CancelExecutionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelExecutionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
63
oos/src/model/ChangeResourceGroupRequest.cc
Normal file
63
oos/src/model/ChangeResourceGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ChangeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ChangeResourceGroupRequest;
|
||||
|
||||
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ChangeResourceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getNewResourceGroupId() const {
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) {
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter(std::string("NewResourceGroupId"), newResourceGroupId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/UpdateInstanceInformationResult.h>
|
||||
#include <alibabacloud/oos/model/ChangeResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UpdateInstanceInformationResult::UpdateInstanceInformationResult() :
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateInstanceInformationResult::UpdateInstanceInformationResult(const std::string &payload) :
|
||||
ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateInstanceInformationResult::~UpdateInstanceInformationResult()
|
||||
ChangeResourceGroupResult::~ChangeResourceGroupResult()
|
||||
{}
|
||||
|
||||
void UpdateInstanceInformationResult::parse(const std::string &payload)
|
||||
void ChangeResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
63
oos/src/model/ContinueDeployApplicationGroupRequest.cc
Normal file
63
oos/src/model/ContinueDeployApplicationGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ContinueDeployApplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ContinueDeployApplicationGroupRequest;
|
||||
|
||||
ContinueDeployApplicationGroupRequest::ContinueDeployApplicationGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ContinueDeployApplicationGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ContinueDeployApplicationGroupRequest::~ContinueDeployApplicationGroupRequest() {}
|
||||
|
||||
std::string ContinueDeployApplicationGroupRequest::getDeployParameters() const {
|
||||
return deployParameters_;
|
||||
}
|
||||
|
||||
void ContinueDeployApplicationGroupRequest::setDeployParameters(const std::string &deployParameters) {
|
||||
deployParameters_ = deployParameters;
|
||||
setParameter(std::string("DeployParameters"), deployParameters);
|
||||
}
|
||||
|
||||
std::string ContinueDeployApplicationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ContinueDeployApplicationGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ContinueDeployApplicationGroupRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void ContinueDeployApplicationGroupRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string ContinueDeployApplicationGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ContinueDeployApplicationGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
oos/src/model/ContinueDeployApplicationGroupResult.cc
Normal file
44
oos/src/model/ContinueDeployApplicationGroupResult.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/oos/model/ContinueDeployApplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ContinueDeployApplicationGroupResult::ContinueDeployApplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ContinueDeployApplicationGroupResult::ContinueDeployApplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ContinueDeployApplicationGroupResult::~ContinueDeployApplicationGroupResult()
|
||||
{}
|
||||
|
||||
void ContinueDeployApplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
108
oos/src/model/CreateApplicationGroupRequest.cc
Normal file
108
oos/src/model/CreateApplicationGroupRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/oos/model/CreateApplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateApplicationGroupRequest;
|
||||
|
||||
CreateApplicationGroupRequest::CreateApplicationGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateApplicationGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationGroupRequest::~CreateApplicationGroupRequest() {}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getCmsGroupId() const {
|
||||
return cmsGroupId_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setCmsGroupId(const std::string &cmsGroupId) {
|
||||
cmsGroupId_ = cmsGroupId;
|
||||
setParameter(std::string("CmsGroupId"), cmsGroupId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getDeployRegionId() const {
|
||||
return deployRegionId_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setDeployRegionId(const std::string &deployRegionId) {
|
||||
deployRegionId_ = deployRegionId;
|
||||
setParameter(std::string("DeployRegionId"), deployRegionId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getImportTagValue() const {
|
||||
return importTagValue_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setImportTagValue(const std::string &importTagValue) {
|
||||
importTagValue_ = importTagValue;
|
||||
setParameter(std::string("ImportTagValue"), importTagValue);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getImportTagKey() const {
|
||||
return importTagKey_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setImportTagKey(const std::string &importTagKey) {
|
||||
importTagKey_ = importTagKey;
|
||||
setParameter(std::string("ImportTagKey"), importTagKey);
|
||||
}
|
||||
|
||||
std::string CreateApplicationGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateApplicationGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
68
oos/src/model/CreateApplicationGroupResult.cc
Normal file
68
oos/src/model/CreateApplicationGroupResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/oos/model/CreateApplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateApplicationGroupResult::CreateApplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationGroupResult::CreateApplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationGroupResult::~CreateApplicationGroupResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applicationGroupNode = value["ApplicationGroup"];
|
||||
if(!applicationGroupNode["CmsGroupId"].isNull())
|
||||
applicationGroup_.cmsGroupId = applicationGroupNode["CmsGroupId"].asString();
|
||||
if(!applicationGroupNode["DeployRegionId"].isNull())
|
||||
applicationGroup_.deployRegionId = applicationGroupNode["DeployRegionId"].asString();
|
||||
if(!applicationGroupNode["Description"].isNull())
|
||||
applicationGroup_.description = applicationGroupNode["Description"].asString();
|
||||
if(!applicationGroupNode["UpdateDate"].isNull())
|
||||
applicationGroup_.updateDate = applicationGroupNode["UpdateDate"].asString();
|
||||
if(!applicationGroupNode["ImportTagKey"].isNull())
|
||||
applicationGroup_.importTagKey = applicationGroupNode["ImportTagKey"].asString();
|
||||
if(!applicationGroupNode["ApplicationName"].isNull())
|
||||
applicationGroup_.applicationName = applicationGroupNode["ApplicationName"].asString();
|
||||
if(!applicationGroupNode["ImportTagValue"].isNull())
|
||||
applicationGroup_.importTagValue = applicationGroupNode["ImportTagValue"].asString();
|
||||
if(!applicationGroupNode["Name"].isNull())
|
||||
applicationGroup_.name = applicationGroupNode["Name"].asString();
|
||||
if(!applicationGroupNode["CreateDate"].isNull())
|
||||
applicationGroup_.createDate = applicationGroupNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateApplicationGroupResult::ApplicationGroup CreateApplicationGroupResult::getApplicationGroup()const
|
||||
{
|
||||
return applicationGroup_;
|
||||
}
|
||||
|
||||
81
oos/src/model/CreateApplicationRequest.cc
Normal file
81
oos/src/model/CreateApplicationRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/CreateApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateApplicationRequest;
|
||||
|
||||
CreateApplicationRequest::CreateApplicationRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationRequest::~CreateApplicationRequest() {}
|
||||
|
||||
std::string CreateApplicationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
60
oos/src/model/CreateApplicationResult.cc
Normal file
60
oos/src/model/CreateApplicationResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/oos/model/CreateApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationResult::~CreateApplicationResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applicationNode = value["Application"];
|
||||
if(!applicationNode["Tags"].isNull())
|
||||
application_.tags = applicationNode["Tags"].asString();
|
||||
if(!applicationNode["Name"].isNull())
|
||||
application_.name = applicationNode["Name"].asString();
|
||||
if(!applicationNode["UpdateDate"].isNull())
|
||||
application_.updateDate = applicationNode["UpdateDate"].asString();
|
||||
if(!applicationNode["Description"].isNull())
|
||||
application_.description = applicationNode["Description"].asString();
|
||||
if(!applicationNode["CreateDate"].isNull())
|
||||
application_.createDate = applicationNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateApplicationResult::Application CreateApplicationResult::getApplication()const
|
||||
{
|
||||
return application_;
|
||||
}
|
||||
|
||||
@@ -1,117 +1,108 @@
|
||||
/*
|
||||
* 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/oos/model/CreateParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateParameterRequest;
|
||||
|
||||
CreateParameterRequest::CreateParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateParameterRequest::~CreateParameterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateParameterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateParameterRequest;
|
||||
|
||||
CreateParameterRequest::CreateParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateParameterRequest::~CreateParameterRequest() {}
|
||||
|
||||
std::string CreateParameterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateParameterRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateParameterRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void CreateParameterRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string CreateParameterRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getConstraints()const
|
||||
{
|
||||
return constraints_;
|
||||
void CreateParameterRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setConstraints(const std::string& constraints)
|
||||
{
|
||||
constraints_ = constraints;
|
||||
setParameter("Constraints", constraints);
|
||||
std::string CreateParameterRequest::getConstraints() const {
|
||||
return constraints_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void CreateParameterRequest::setConstraints(const std::string &constraints) {
|
||||
constraints_ = constraints;
|
||||
setParameter(std::string("Constraints"), constraints);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string CreateParameterRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateParameterRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateParameterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateParameterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
void CreateParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
std::string CreateParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,32 @@ void CreateParameterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["Tags"].isNull())
|
||||
_parameter_.tags = _parameterNode["Tags"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["ResourceGroupId"].isNull())
|
||||
_parameter_.resourceGroupId = _parameterNode["ResourceGroupId"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/CreatePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreatePatchBaselineRequest;
|
||||
|
||||
CreatePatchBaselineRequest::CreatePatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreatePatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePatchBaselineRequest::~CreatePatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreatePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreatePatchBaselineRequest;
|
||||
|
||||
CreatePatchBaselineRequest::CreatePatchBaselineRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreatePatchBaseline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreatePatchBaselineRequest::~CreatePatchBaselineRequest() {}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getApprovalRules()const
|
||||
{
|
||||
return approvalRules_;
|
||||
void CreatePatchBaselineRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setApprovalRules(const std::string& approvalRules)
|
||||
{
|
||||
approvalRules_ = approvalRules;
|
||||
setParameter("ApprovalRules", approvalRules);
|
||||
std::string CreatePatchBaselineRequest::getApprovalRules() const {
|
||||
return approvalRules_;
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreatePatchBaselineRequest::setApprovalRules(const std::string &approvalRules) {
|
||||
approvalRules_ = approvalRules;
|
||||
setParameter(std::string("ApprovalRules"), approvalRules);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreatePatchBaselineRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getOperationSystem()const
|
||||
{
|
||||
return operationSystem_;
|
||||
void CreatePatchBaselineRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setOperationSystem(const std::string& operationSystem)
|
||||
{
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter("OperationSystem", operationSystem);
|
||||
std::string CreatePatchBaselineRequest::getOperationSystem() const {
|
||||
return operationSystem_;
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreatePatchBaselineRequest::setOperationSystem(const std::string &operationSystem) {
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter(std::string("OperationSystem"), operationSystem);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreatePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreatePatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreatePatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePatchBaselineRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void CreatePatchBaselineResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patchBaselineNode = value["PatchBaseline"];
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["UpdatedDate"].isNull())
|
||||
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
|
||||
if(!patchBaselineNode["UpdatedBy"].isNull())
|
||||
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["ApprovalRules"].isNull())
|
||||
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,128 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateSecretParameterRequest;
|
||||
|
||||
CreateSecretParameterRequest::CreateSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSecretParameterRequest::~CreateSecretParameterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSecretParameterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateSecretParameterRequest;
|
||||
|
||||
CreateSecretParameterRequest::CreateSecretParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateSecretParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateSecretParameterRequest::~CreateSecretParameterRequest() {}
|
||||
|
||||
std::string CreateSecretParameterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateSecretParameterRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateSecretParameterRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void CreateSecretParameterRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string CreateSecretParameterRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getConstraints()const
|
||||
{
|
||||
return constraints_;
|
||||
void CreateSecretParameterRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setConstraints(const std::string& constraints)
|
||||
{
|
||||
constraints_ = constraints;
|
||||
setParameter("Constraints", constraints);
|
||||
std::string CreateSecretParameterRequest::getConstraints() const {
|
||||
return constraints_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateSecretParameterRequest::setConstraints(const std::string &constraints) {
|
||||
constraints_ = constraints;
|
||||
setParameter(std::string("Constraints"), constraints);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateSecretParameterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
void CreateSecretParameterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
std::string CreateSecretParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getKeyId()const
|
||||
{
|
||||
return keyId_;
|
||||
void CreateSecretParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setKeyId(const std::string& keyId)
|
||||
{
|
||||
keyId_ = keyId;
|
||||
setParameter("KeyId", keyId);
|
||||
std::string CreateSecretParameterRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void CreateSecretParameterRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string CreateSecretParameterRequest::getKeyId() const {
|
||||
return keyId_;
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateSecretParameterRequest::setKeyId(const std::string &keyId) {
|
||||
keyId_ = keyId;
|
||||
setParameter(std::string("KeyId"), keyId);
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateSecretParameterRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,34 @@ void CreateSecretParameterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["KeyId"].isNull())
|
||||
_parameter_.keyId = _parameterNode["KeyId"].asString();
|
||||
if(!_parameterNode["Tags"].isNull())
|
||||
_parameter_.tags = _parameterNode["Tags"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["ResourceGroupId"].isNull())
|
||||
_parameter_.resourceGroupId = _parameterNode["ResourceGroupId"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,150 +1,135 @@
|
||||
/*
|
||||
* 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/oos/model/CreateStateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateStateConfigurationRequest;
|
||||
|
||||
CreateStateConfigurationRequest::CreateStateConfigurationRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateStateConfiguration")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateStateConfigurationRequest::~CreateStateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getScheduleType()const
|
||||
{
|
||||
return scheduleType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateStateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateStateConfigurationRequest;
|
||||
|
||||
CreateStateConfigurationRequest::CreateStateConfigurationRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateStateConfiguration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setScheduleType(const std::string& scheduleType)
|
||||
{
|
||||
scheduleType_ = scheduleType;
|
||||
setParameter("ScheduleType", scheduleType);
|
||||
CreateStateConfigurationRequest::~CreateStateConfigurationRequest() {}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getScheduleType() const {
|
||||
return scheduleType_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateStateConfigurationRequest::setScheduleType(const std::string &scheduleType) {
|
||||
scheduleType_ = scheduleType;
|
||||
setParameter(std::string("ScheduleType"), scheduleType);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string CreateStateConfigurationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateStateConfigurationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateStateConfigurationRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTargets()const
|
||||
{
|
||||
return targets_;
|
||||
void CreateStateConfigurationRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTargets(const std::string& targets)
|
||||
{
|
||||
targets_ = targets;
|
||||
setParameter("Targets", targets);
|
||||
std::string CreateStateConfigurationRequest::getTargets() const {
|
||||
return targets_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
void CreateStateConfigurationRequest::setTargets(const std::string &targets) {
|
||||
targets_ = targets;
|
||||
setParameter(std::string("Targets"), targets);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
std::string CreateStateConfigurationRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateStateConfigurationRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateStateConfigurationRequest::getTemplateVersion() const {
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getScheduleExpression()const
|
||||
{
|
||||
return scheduleExpression_;
|
||||
void CreateStateConfigurationRequest::setTemplateVersion(const std::string &templateVersion) {
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter(std::string("TemplateVersion"), templateVersion);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setScheduleExpression(const std::string& scheduleExpression)
|
||||
{
|
||||
scheduleExpression_ = scheduleExpression;
|
||||
setParameter("ScheduleExpression", scheduleExpression);
|
||||
std::string CreateStateConfigurationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void CreateStateConfigurationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string CreateStateConfigurationRequest::getScheduleExpression() const {
|
||||
return scheduleExpression_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getConfigureMode()const
|
||||
{
|
||||
return configureMode_;
|
||||
void CreateStateConfigurationRequest::setScheduleExpression(const std::string &scheduleExpression) {
|
||||
scheduleExpression_ = scheduleExpression;
|
||||
setParameter(std::string("ScheduleExpression"), scheduleExpression);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setConfigureMode(const std::string& configureMode)
|
||||
{
|
||||
configureMode_ = configureMode;
|
||||
setParameter("ConfigureMode", configureMode);
|
||||
std::string CreateStateConfigurationRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void CreateStateConfigurationRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string CreateStateConfigurationRequest::getConfigureMode() const {
|
||||
return configureMode_;
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
void CreateStateConfigurationRequest::setConfigureMode(const std::string &configureMode) {
|
||||
configureMode_ = configureMode;
|
||||
setParameter(std::string("ConfigureMode"), configureMode);
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
std::string CreateStateConfigurationRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string CreateStateConfigurationRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateStateConfigurationRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,28 +42,30 @@ void CreateStateConfigurationResult::parse(const std::string &payload)
|
||||
auto stateConfigurationNode = value["StateConfiguration"];
|
||||
if(!stateConfigurationNode["CreateTime"].isNull())
|
||||
stateConfiguration_.createTime = stateConfigurationNode["CreateTime"].asString();
|
||||
if(!stateConfigurationNode["Description"].isNull())
|
||||
stateConfiguration_.description = stateConfigurationNode["Description"].asString();
|
||||
if(!stateConfigurationNode["StateConfigurationId"].isNull())
|
||||
stateConfiguration_.stateConfigurationId = stateConfigurationNode["StateConfigurationId"].asString();
|
||||
if(!stateConfigurationNode["TemplateId"].isNull())
|
||||
stateConfiguration_.templateId = stateConfigurationNode["TemplateId"].asString();
|
||||
if(!stateConfigurationNode["TemplateName"].isNull())
|
||||
stateConfiguration_.templateName = stateConfigurationNode["TemplateName"].asString();
|
||||
if(!stateConfigurationNode["TemplateVersion"].isNull())
|
||||
stateConfiguration_.templateVersion = stateConfigurationNode["TemplateVersion"].asString();
|
||||
if(!stateConfigurationNode["Parameters"].isNull())
|
||||
stateConfiguration_.parameters = stateConfigurationNode["Parameters"].asString();
|
||||
if(!stateConfigurationNode["ConfigureMode"].isNull())
|
||||
stateConfiguration_.configureMode = stateConfigurationNode["ConfigureMode"].asString();
|
||||
if(!stateConfigurationNode["ScheduleType"].isNull())
|
||||
stateConfiguration_.scheduleType = stateConfigurationNode["ScheduleType"].asString();
|
||||
if(!stateConfigurationNode["ScheduleExpression"].isNull())
|
||||
stateConfiguration_.scheduleExpression = stateConfigurationNode["ScheduleExpression"].asString();
|
||||
if(!stateConfigurationNode["Targets"].isNull())
|
||||
stateConfiguration_.targets = stateConfigurationNode["Targets"].asString();
|
||||
if(!stateConfigurationNode["Tags"].isNull())
|
||||
stateConfiguration_.tags = stateConfigurationNode["Tags"].asString();
|
||||
if(!stateConfigurationNode["StateConfigurationId"].isNull())
|
||||
stateConfiguration_.stateConfigurationId = stateConfigurationNode["StateConfigurationId"].asString();
|
||||
if(!stateConfigurationNode["ScheduleExpression"].isNull())
|
||||
stateConfiguration_.scheduleExpression = stateConfigurationNode["ScheduleExpression"].asString();
|
||||
if(!stateConfigurationNode["TemplateName"].isNull())
|
||||
stateConfiguration_.templateName = stateConfigurationNode["TemplateName"].asString();
|
||||
if(!stateConfigurationNode["TemplateVersion"].isNull())
|
||||
stateConfiguration_.templateVersion = stateConfigurationNode["TemplateVersion"].asString();
|
||||
if(!stateConfigurationNode["ConfigureMode"].isNull())
|
||||
stateConfiguration_.configureMode = stateConfigurationNode["ConfigureMode"].asString();
|
||||
if(!stateConfigurationNode["ScheduleType"].isNull())
|
||||
stateConfiguration_.scheduleType = stateConfigurationNode["ScheduleType"].asString();
|
||||
if(!stateConfigurationNode["Parameters"].isNull())
|
||||
stateConfiguration_.parameters = stateConfigurationNode["Parameters"].asString();
|
||||
if(!stateConfigurationNode["Description"].isNull())
|
||||
stateConfiguration_.description = stateConfigurationNode["Description"].asString();
|
||||
if(!stateConfigurationNode["ResourceGroupId"].isNull())
|
||||
stateConfiguration_.resourceGroupId = stateConfigurationNode["ResourceGroupId"].asString();
|
||||
if(!stateConfigurationNode["TemplateId"].isNull())
|
||||
stateConfiguration_.templateId = stateConfigurationNode["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/CreateTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateTemplateRequest;
|
||||
|
||||
CreateTemplateRequest::CreateTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTemplateRequest::~CreateTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTemplateRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateTemplateRequest;
|
||||
|
||||
CreateTemplateRequest::CreateTemplateRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
CreateTemplateRequest::~CreateTemplateRequest() {}
|
||||
|
||||
std::string CreateTemplateRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateTemplateRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void CreateTemplateRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
std::map<std::string, std::string> CreateTemplateRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void CreateTemplateRequest::setTags(std::map<std::string, std::string> tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string CreateTemplateRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void CreateTemplateRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string CreateTemplateRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getVersionName()const
|
||||
{
|
||||
return versionName_;
|
||||
void CreateTemplateRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setVersionName(const std::string& versionName)
|
||||
{
|
||||
versionName_ = versionName;
|
||||
setParameter("VersionName", versionName);
|
||||
std::string CreateTemplateRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getVersionName() const {
|
||||
return versionName_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setVersionName(const std::string &versionName) {
|
||||
versionName_ = versionName;
|
||||
setParameter(std::string("VersionName"), versionName);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,34 @@ void CreateTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ResourceGroupId"].isNull())
|
||||
_template_.resourceGroupId = _templateNode["ResourceGroupId"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!value["TemplateType"].isNull())
|
||||
templateType_ = value["TemplateType"].asString();
|
||||
|
||||
|
||||
54
oos/src/model/DeleteApplicationGroupRequest.cc
Normal file
54
oos/src/model/DeleteApplicationGroupRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteApplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteApplicationGroupRequest;
|
||||
|
||||
DeleteApplicationGroupRequest::DeleteApplicationGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteApplicationGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApplicationGroupRequest::~DeleteApplicationGroupRequest() {}
|
||||
|
||||
std::string DeleteApplicationGroupRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void DeleteApplicationGroupRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string DeleteApplicationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteApplicationGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteApplicationGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteApplicationGroupResult.cc
Normal file
44
oos/src/model/DeleteApplicationGroupResult.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/oos/model/DeleteApplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteApplicationGroupResult::DeleteApplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationGroupResult::DeleteApplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationGroupResult::~DeleteApplicationGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
oos/src/model/DeleteApplicationRequest.cc
Normal file
45
oos/src/model/DeleteApplicationRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteApplicationRequest;
|
||||
|
||||
DeleteApplicationRequest::DeleteApplicationRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApplicationRequest::~DeleteApplicationRequest() {}
|
||||
|
||||
std::string DeleteApplicationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteApplicationRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteApplicationResult.cc
Normal file
44
oos/src/model/DeleteApplicationResult.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/oos/model/DeleteApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationResult::~DeleteApplicationResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteExecutionsRequest;
|
||||
|
||||
DeleteExecutionsRequest::DeleteExecutionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteExecutions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExecutionsRequest::~DeleteExecutionsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteExecutionsRequest::getExecutionIds()const
|
||||
{
|
||||
return executionIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteExecutionsRequest;
|
||||
|
||||
DeleteExecutionsRequest::DeleteExecutionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteExecutions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteExecutionsRequest::setExecutionIds(const std::string& executionIds)
|
||||
{
|
||||
executionIds_ = executionIds;
|
||||
setParameter("ExecutionIds", executionIds);
|
||||
DeleteExecutionsRequest::~DeleteExecutionsRequest() {}
|
||||
|
||||
std::string DeleteExecutionsRequest::getExecutionIds() const {
|
||||
return executionIds_;
|
||||
}
|
||||
|
||||
std::string DeleteExecutionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DeleteExecutionsRequest::setExecutionIds(const std::string &executionIds) {
|
||||
executionIds_ = executionIds;
|
||||
setParameter(std::string("ExecutionIds"), executionIds);
|
||||
}
|
||||
|
||||
void DeleteExecutionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DeleteExecutionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteExecutionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteParameterRequest;
|
||||
|
||||
DeleteParameterRequest::DeleteParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteParameterRequest::~DeleteParameterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteParameterRequest;
|
||||
|
||||
DeleteParameterRequest::DeleteParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteParameterRequest::~DeleteParameterRequest() {}
|
||||
|
||||
std::string DeleteParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void DeleteParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string DeleteParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeletePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeletePatchBaselineRequest;
|
||||
|
||||
DeletePatchBaselineRequest::DeletePatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeletePatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePatchBaselineRequest::~DeletePatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeletePatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeletePatchBaselineRequest;
|
||||
|
||||
DeletePatchBaselineRequest::DeletePatchBaselineRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeletePatchBaseline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeletePatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeletePatchBaselineRequest::~DeletePatchBaselineRequest() {}
|
||||
|
||||
std::string DeletePatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeletePatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void DeletePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeletePatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string DeletePatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeletePatchBaselineRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteSecretParameterRequest;
|
||||
|
||||
DeleteSecretParameterRequest::DeleteSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSecretParameterRequest::~DeleteSecretParameterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteSecretParameterRequest;
|
||||
|
||||
DeleteSecretParameterRequest::DeleteSecretParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteSecretParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteSecretParameterRequest::~DeleteSecretParameterRequest() {}
|
||||
|
||||
std::string DeleteSecretParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DeleteSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void DeleteSecretParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string DeleteSecretParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteSecretParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteStateConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteStateConfigurationsRequest;
|
||||
|
||||
DeleteStateConfigurationsRequest::DeleteStateConfigurationsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteStateConfigurations")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteStateConfigurationsRequest::~DeleteStateConfigurationsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getStateConfigurationIds()const
|
||||
{
|
||||
return stateConfigurationIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteStateConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteStateConfigurationsRequest;
|
||||
|
||||
DeleteStateConfigurationsRequest::DeleteStateConfigurationsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteStateConfigurations") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setStateConfigurationIds(const std::string& stateConfigurationIds)
|
||||
{
|
||||
stateConfigurationIds_ = stateConfigurationIds;
|
||||
setParameter("StateConfigurationIds", stateConfigurationIds);
|
||||
DeleteStateConfigurationsRequest::~DeleteStateConfigurationsRequest() {}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getStateConfigurationIds() const {
|
||||
return stateConfigurationIds_;
|
||||
}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteStateConfigurationsRequest::setStateConfigurationIds(const std::string &stateConfigurationIds) {
|
||||
stateConfigurationIds_ = stateConfigurationIds;
|
||||
setParameter(std::string("StateConfigurationIds"), stateConfigurationIds);
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
std::string DeleteStateConfigurationsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteStateConfigurationsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DeleteStateConfigurationsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DeleteStateConfigurationsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteStateConfigurationsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplateRequest;
|
||||
|
||||
DeleteTemplateRequest::DeleteTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTemplateRequest::~DeleteTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplateRequest;
|
||||
|
||||
DeleteTemplateRequest::DeleteTemplateRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DeleteTemplateRequest::~DeleteTemplateRequest() {}
|
||||
|
||||
std::string DeleteTemplateRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getAutoDeleteExecutions()const
|
||||
{
|
||||
return autoDeleteExecutions_;
|
||||
void DeleteTemplateRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setAutoDeleteExecutions(bool autoDeleteExecutions)
|
||||
{
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter("AutoDeleteExecutions", autoDeleteExecutions ? "true" : "false");
|
||||
bool DeleteTemplateRequest::getAutoDeleteExecutions() const {
|
||||
return autoDeleteExecutions_;
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void DeleteTemplateRequest::setAutoDeleteExecutions(bool autoDeleteExecutions) {
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter(std::string("AutoDeleteExecutions"), autoDeleteExecutions ? "true" : "false");
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string DeleteTemplateRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplatesRequest;
|
||||
|
||||
DeleteTemplatesRequest::DeleteTemplatesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTemplatesRequest::~DeleteTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTemplatesRequest::getTemplateNames()const
|
||||
{
|
||||
return templateNames_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplatesRequest;
|
||||
|
||||
DeleteTemplatesRequest::DeleteTemplatesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeleteTemplates") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setTemplateNames(const std::string& templateNames)
|
||||
{
|
||||
templateNames_ = templateNames;
|
||||
setParameter("TemplateNames", templateNames);
|
||||
DeleteTemplatesRequest::~DeleteTemplatesRequest() {}
|
||||
|
||||
std::string DeleteTemplatesRequest::getTemplateNames() const {
|
||||
return templateNames_;
|
||||
}
|
||||
|
||||
std::string DeleteTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void DeleteTemplatesRequest::setTemplateNames(const std::string &templateNames) {
|
||||
templateNames_ = templateNames;
|
||||
setParameter(std::string("TemplateNames"), templateNames);
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string DeleteTemplatesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
bool DeleteTemplatesRequest::getAutoDeleteExecutions()const
|
||||
{
|
||||
return autoDeleteExecutions_;
|
||||
void DeleteTemplatesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setAutoDeleteExecutions(bool autoDeleteExecutions)
|
||||
{
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter("AutoDeleteExecutions", autoDeleteExecutions ? "true" : "false");
|
||||
bool DeleteTemplatesRequest::getAutoDeleteExecutions() const {
|
||||
return autoDeleteExecutions_;
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setAutoDeleteExecutions(bool autoDeleteExecutions) {
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter(std::string("AutoDeleteExecutions"), autoDeleteExecutions ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
63
oos/src/model/DeployApplicationGroupRequest.cc
Normal file
63
oos/src/model/DeployApplicationGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeployApplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeployApplicationGroupRequest;
|
||||
|
||||
DeployApplicationGroupRequest::DeployApplicationGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DeployApplicationGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeployApplicationGroupRequest::~DeployApplicationGroupRequest() {}
|
||||
|
||||
std::string DeployApplicationGroupRequest::getDeployParameters() const {
|
||||
return deployParameters_;
|
||||
}
|
||||
|
||||
void DeployApplicationGroupRequest::setDeployParameters(const std::string &deployParameters) {
|
||||
deployParameters_ = deployParameters;
|
||||
setParameter(std::string("DeployParameters"), deployParameters);
|
||||
}
|
||||
|
||||
std::string DeployApplicationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeployApplicationGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationGroupRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void DeployApplicationGroupRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string DeployApplicationGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeployApplicationGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeployApplicationGroupResult.cc
Normal file
44
oos/src/model/DeployApplicationGroupResult.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/oos/model/DeployApplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeployApplicationGroupResult::DeployApplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployApplicationGroupResult::DeployApplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployApplicationGroupResult::~DeployApplicationGroupResult()
|
||||
{}
|
||||
|
||||
void DeployApplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "DescribeRegions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest() {}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage()const
|
||||
{
|
||||
return acceptLanguage_;
|
||||
void DescribeRegionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage)
|
||||
{
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter("AcceptLanguage", acceptLanguage);
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GenerateExecutionPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GenerateExecutionPolicyRequest;
|
||||
|
||||
GenerateExecutionPolicyRequest::GenerateExecutionPolicyRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GenerateExecutionPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateExecutionPolicyRequest::~GenerateExecutionPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GenerateExecutionPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GenerateExecutionPolicyRequest;
|
||||
|
||||
GenerateExecutionPolicyRequest::GenerateExecutionPolicyRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GenerateExecutionPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
GenerateExecutionPolicyRequest::~GenerateExecutionPolicyRequest() {}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateVersion() const {
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GenerateExecutionPolicyRequest::setTemplateVersion(const std::string &templateVersion) {
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter(std::string("TemplateVersion"), templateVersion);
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GenerateExecutionPolicyRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void GenerateExecutionPolicyRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
|
||||
54
oos/src/model/GetApplicationGroupRequest.cc
Normal file
54
oos/src/model/GetApplicationGroupRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetApplicationGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetApplicationGroupRequest;
|
||||
|
||||
GetApplicationGroupRequest::GetApplicationGroupRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetApplicationGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApplicationGroupRequest::~GetApplicationGroupRequest() {}
|
||||
|
||||
std::string GetApplicationGroupRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void GetApplicationGroupRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
std::string GetApplicationGroupRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetApplicationGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetApplicationGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetApplicationGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
76
oos/src/model/GetApplicationGroupResult.cc
Normal file
76
oos/src/model/GetApplicationGroupResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/oos/model/GetApplicationGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetApplicationGroupResult::GetApplicationGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetApplicationGroupResult::GetApplicationGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetApplicationGroupResult::~GetApplicationGroupResult()
|
||||
{}
|
||||
|
||||
void GetApplicationGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applicationGroupNode = value["ApplicationGroup"];
|
||||
if(!applicationGroupNode["CmsGroupId"].isNull())
|
||||
applicationGroup_.cmsGroupId = applicationGroupNode["CmsGroupId"].asString();
|
||||
if(!applicationGroupNode["DeployRegionId"].isNull())
|
||||
applicationGroup_.deployRegionId = applicationGroupNode["DeployRegionId"].asString();
|
||||
if(!applicationGroupNode["Description"].isNull())
|
||||
applicationGroup_.description = applicationGroupNode["Description"].asString();
|
||||
if(!applicationGroupNode["UpdateDate"].isNull())
|
||||
applicationGroup_.updateDate = applicationGroupNode["UpdateDate"].asString();
|
||||
if(!applicationGroupNode["ImportTagKey"].isNull())
|
||||
applicationGroup_.importTagKey = applicationGroupNode["ImportTagKey"].asString();
|
||||
if(!applicationGroupNode["ApplicationName"].isNull())
|
||||
applicationGroup_.applicationName = applicationGroupNode["ApplicationName"].asString();
|
||||
if(!applicationGroupNode["ImportTagValue"].isNull())
|
||||
applicationGroup_.importTagValue = applicationGroupNode["ImportTagValue"].asString();
|
||||
if(!applicationGroupNode["Name"].isNull())
|
||||
applicationGroup_.name = applicationGroupNode["Name"].asString();
|
||||
if(!applicationGroupNode["CreateDate"].isNull())
|
||||
applicationGroup_.createDate = applicationGroupNode["CreateDate"].asString();
|
||||
if(!applicationGroupNode["DeployParameters"].isNull())
|
||||
applicationGroup_.deployParameters = applicationGroupNode["DeployParameters"].asString();
|
||||
if(!applicationGroupNode["Status"].isNull())
|
||||
applicationGroup_.status = applicationGroupNode["Status"].asString();
|
||||
if(!applicationGroupNode["StatusReason"].isNull())
|
||||
applicationGroup_.statusReason = applicationGroupNode["StatusReason"].asString();
|
||||
if(!applicationGroupNode["DeployOutputs"].isNull())
|
||||
applicationGroup_.deployOutputs = applicationGroupNode["DeployOutputs"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetApplicationGroupResult::ApplicationGroup GetApplicationGroupResult::getApplicationGroup()const
|
||||
{
|
||||
return applicationGroup_;
|
||||
}
|
||||
|
||||
45
oos/src/model/GetApplicationRequest.cc
Normal file
45
oos/src/model/GetApplicationRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetApplicationRequest;
|
||||
|
||||
GetApplicationRequest::GetApplicationRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApplicationRequest::~GetApplicationRequest() {}
|
||||
|
||||
std::string GetApplicationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetApplicationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetApplicationRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetApplicationRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
62
oos/src/model/GetApplicationResult.cc
Normal file
62
oos/src/model/GetApplicationResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetApplicationResult::GetApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetApplicationResult::GetApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetApplicationResult::~GetApplicationResult()
|
||||
{}
|
||||
|
||||
void GetApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applicationNode = value["Application"];
|
||||
if(!applicationNode["Description"].isNull())
|
||||
application_.description = applicationNode["Description"].asString();
|
||||
if(!applicationNode["UpdateDate"].isNull())
|
||||
application_.updateDate = applicationNode["UpdateDate"].asString();
|
||||
if(!applicationNode["ResourceGroupId"].isNull())
|
||||
application_.resourceGroupId = applicationNode["ResourceGroupId"].asString();
|
||||
if(!applicationNode["Tags"].isNull())
|
||||
application_.tags = applicationNode["Tags"].asString();
|
||||
if(!applicationNode["Name"].isNull())
|
||||
application_.name = applicationNode["Name"].asString();
|
||||
if(!applicationNode["CreateDate"].isNull())
|
||||
application_.createDate = applicationNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetApplicationResult::Application GetApplicationResult::getApplication()const
|
||||
{
|
||||
return application_;
|
||||
}
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetExecutionTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetExecutionTemplateRequest;
|
||||
|
||||
GetExecutionTemplateRequest::GetExecutionTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetExecutionTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetExecutionTemplateRequest::~GetExecutionTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string GetExecutionTemplateRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetExecutionTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetExecutionTemplateRequest;
|
||||
|
||||
GetExecutionTemplateRequest::GetExecutionTemplateRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetExecutionTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetExecutionTemplateRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
GetExecutionTemplateRequest::~GetExecutionTemplateRequest() {}
|
||||
|
||||
std::string GetExecutionTemplateRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
std::string GetExecutionTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetExecutionTemplateRequest::setExecutionId(const std::string &executionId) {
|
||||
executionId_ = executionId;
|
||||
setParameter(std::string("ExecutionId"), executionId);
|
||||
}
|
||||
|
||||
void GetExecutionTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetExecutionTemplateRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetExecutionTemplateRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void GetExecutionTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
|
||||
@@ -1,84 +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/oos/model/GetInventorySchemaRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetInventorySchemaRequest;
|
||||
|
||||
GetInventorySchemaRequest::GetInventorySchemaRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetInventorySchema")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInventorySchemaRequest::~GetInventorySchemaRequest()
|
||||
{}
|
||||
|
||||
bool GetInventorySchemaRequest::getAggregator()const
|
||||
{
|
||||
return aggregator_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetInventorySchemaRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetInventorySchemaRequest;
|
||||
|
||||
GetInventorySchemaRequest::GetInventorySchemaRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetInventorySchema") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setAggregator(bool aggregator)
|
||||
{
|
||||
aggregator_ = aggregator;
|
||||
setParameter("Aggregator", aggregator ? "true" : "false");
|
||||
GetInventorySchemaRequest::~GetInventorySchemaRequest() {}
|
||||
|
||||
bool GetInventorySchemaRequest::getAggregator() const {
|
||||
return aggregator_;
|
||||
}
|
||||
|
||||
std::string GetInventorySchemaRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetInventorySchemaRequest::setAggregator(bool aggregator) {
|
||||
aggregator_ = aggregator;
|
||||
setParameter(std::string("Aggregator"), aggregator ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetInventorySchemaRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetInventorySchemaRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void GetInventorySchemaRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string GetInventorySchemaRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int GetInventorySchemaRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void GetInventorySchemaRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int GetInventorySchemaRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string GetInventorySchemaRequest::getTypeName()const
|
||||
{
|
||||
return typeName_;
|
||||
void GetInventorySchemaRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setTypeName(const std::string& typeName)
|
||||
{
|
||||
typeName_ = typeName;
|
||||
setParameter("TypeName", typeName);
|
||||
std::string GetInventorySchemaRequest::getTypeName() const {
|
||||
return typeName_;
|
||||
}
|
||||
|
||||
void GetInventorySchemaRequest::setTypeName(const std::string &typeName) {
|
||||
typeName_ = typeName;
|
||||
setParameter(std::string("TypeName"), typeName);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void GetInventorySchemaResult::parse(const std::string &payload)
|
||||
for (auto valueSchemasSchema : allSchemasNode)
|
||||
{
|
||||
Schema schemasObject;
|
||||
if(!valueSchemasSchema["TypeName"].isNull())
|
||||
schemasObject.typeName = valueSchemasSchema["TypeName"].asString();
|
||||
if(!valueSchemasSchema["Version"].isNull())
|
||||
schemasObject.version = valueSchemasSchema["Version"].asString();
|
||||
if(!valueSchemasSchema["TypeName"].isNull())
|
||||
schemasObject.typeName = valueSchemasSchema["TypeName"].asString();
|
||||
auto allAttributesNode = valueSchemasSchema["Attributes"]["Attribute"];
|
||||
for (auto valueSchemasSchemaAttributesAttribute : allAttributesNode)
|
||||
{
|
||||
@@ -61,6 +61,8 @@ void GetInventorySchemaResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = value["MaxResults"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -69,6 +71,11 @@ std::string GetInventorySchemaResult::getNextToken()const
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string GetInventorySchemaResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<GetInventorySchemaResult::Schema> GetInventorySchemaResult::getSchemas()const
|
||||
{
|
||||
return schemas_;
|
||||
|
||||
@@ -1,62 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParameterRequest;
|
||||
|
||||
GetParameterRequest::GetParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetParameterRequest::~GetParameterRequest()
|
||||
{}
|
||||
|
||||
int GetParameterRequest::getParameterVersion()const
|
||||
{
|
||||
return parameterVersion_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParameterRequest;
|
||||
|
||||
GetParameterRequest::GetParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetParameterRequest::setParameterVersion(int parameterVersion)
|
||||
{
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter("ParameterVersion", std::to_string(parameterVersion));
|
||||
GetParameterRequest::~GetParameterRequest() {}
|
||||
|
||||
std::string GetParameterRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string GetParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetParameterRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void GetParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
int GetParameterRequest::getParameterVersion() const {
|
||||
return parameterVersion_;
|
||||
}
|
||||
|
||||
std::string GetParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void GetParameterRequest::setParameterVersion(int parameterVersion) {
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter(std::string("ParameterVersion"), std::to_string(parameterVersion));
|
||||
}
|
||||
|
||||
void GetParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string GetParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,34 @@ void GetParameterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["Tags"].isNull())
|
||||
_parameter_.tags = _parameterNode["Tags"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["ResourceGroupId"].isNull())
|
||||
_parameter_.resourceGroupId = _parameterNode["ResourceGroupId"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/oos/model/GetParametersByPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParametersByPathRequest;
|
||||
|
||||
GetParametersByPathRequest::GetParametersByPathRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetParametersByPath")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetParametersByPathRequest::~GetParametersByPathRequest()
|
||||
{}
|
||||
|
||||
bool GetParametersByPathRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParametersByPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParametersByPathRequest;
|
||||
|
||||
GetParametersByPathRequest::GetParametersByPathRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetParametersByPath") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
GetParametersByPathRequest::~GetParametersByPathRequest() {}
|
||||
|
||||
bool GetParametersByPathRequest::getRecursive() const {
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
std::string GetParametersByPathRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void GetParametersByPathRequest::setRecursive(bool recursive) {
|
||||
recursive_ = recursive;
|
||||
setParameter(std::string("Recursive"), recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string GetParametersByPathRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string GetParametersByPathRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetParametersByPathRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetParametersByPathRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetParametersByPathRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void GetParametersByPathRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string GetParametersByPathRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int GetParametersByPathRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void GetParametersByPathRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int GetParametersByPathRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void GetParametersByPathRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,38 +43,38 @@ void GetParametersByPathResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParametersRequest;
|
||||
|
||||
GetParametersRequest::GetParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetParametersRequest::~GetParametersRequest()
|
||||
{}
|
||||
|
||||
std::string GetParametersRequest::getNames()const
|
||||
{
|
||||
return names_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParametersRequest;
|
||||
|
||||
GetParametersRequest::GetParametersRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetParameters") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetParametersRequest::setNames(const std::string& names)
|
||||
{
|
||||
names_ = names;
|
||||
setParameter("Names", names);
|
||||
GetParametersRequest::~GetParametersRequest() {}
|
||||
|
||||
std::string GetParametersRequest::getNames() const {
|
||||
return names_;
|
||||
}
|
||||
|
||||
std::string GetParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetParametersRequest::setNames(const std::string &names) {
|
||||
names_ = names;
|
||||
setParameter(std::string("Names"), names);
|
||||
}
|
||||
|
||||
void GetParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetParametersRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetParametersRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,34 @@ void GetParametersResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["Tags"].isNull())
|
||||
parametersObject.tags = valueParametersParameter["Tags"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["ResourceGroupId"].isNull())
|
||||
parametersObject.resourceGroupId = valueParametersParameter["ResourceGroupId"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
auto allInvalidParameters = value["InvalidParameters"]["InvalidParameter"];
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetPatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetPatchBaselineRequest;
|
||||
|
||||
GetPatchBaselineRequest::GetPatchBaselineRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetPatchBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPatchBaselineRequest::~GetPatchBaselineRequest()
|
||||
{}
|
||||
|
||||
std::string GetPatchBaselineRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetPatchBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetPatchBaselineRequest;
|
||||
|
||||
GetPatchBaselineRequest::GetPatchBaselineRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetPatchBaseline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPatchBaselineRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
GetPatchBaselineRequest::~GetPatchBaselineRequest() {}
|
||||
|
||||
std::string GetPatchBaselineRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetPatchBaselineRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void GetPatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetPatchBaselineRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string GetPatchBaselineRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetPatchBaselineRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,28 @@ void GetPatchBaselineResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto patchBaselineNode = value["PatchBaseline"];
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["IsDefault"].isNull())
|
||||
patchBaseline_.isDefault = patchBaselineNode["IsDefault"].asString() == "true";
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["UpdatedDate"].isNull())
|
||||
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
|
||||
if(!patchBaselineNode["UpdatedBy"].isNull())
|
||||
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
|
||||
if(!patchBaselineNode["Description"].isNull())
|
||||
patchBaseline_.description = patchBaselineNode["Description"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
if(!patchBaselineNode["OperationSystem"].isNull())
|
||||
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
|
||||
if(!patchBaselineNode["CreatedBy"].isNull())
|
||||
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
|
||||
if(!patchBaselineNode["CreatedDate"].isNull())
|
||||
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
|
||||
if(!patchBaselineNode["Name"].isNull())
|
||||
patchBaseline_.name = patchBaselineNode["Name"].asString();
|
||||
if(!patchBaselineNode["ApprovalRules"].isNull())
|
||||
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
|
||||
if(!patchBaselineNode["Id"].isNull())
|
||||
patchBaseline_.id = patchBaselineNode["Id"].asString();
|
||||
if(!patchBaselineNode["ShareType"].isNull())
|
||||
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParameterRequest;
|
||||
|
||||
GetSecretParameterRequest::GetSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSecretParameterRequest::~GetSecretParameterRequest()
|
||||
{}
|
||||
|
||||
bool GetSecretParameterRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParameterRequest;
|
||||
|
||||
GetSecretParameterRequest::GetSecretParameterRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetSecretParameter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
GetSecretParameterRequest::~GetSecretParameterRequest() {}
|
||||
|
||||
bool GetSecretParameterRequest::getWithDecryption() const {
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
int GetSecretParameterRequest::getParameterVersion()const
|
||||
{
|
||||
return parameterVersion_;
|
||||
void GetSecretParameterRequest::setWithDecryption(bool withDecryption) {
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter(std::string("WithDecryption"), withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setParameterVersion(int parameterVersion)
|
||||
{
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter("ParameterVersion", std::to_string(parameterVersion));
|
||||
int GetSecretParameterRequest::getParameterVersion() const {
|
||||
return parameterVersion_;
|
||||
}
|
||||
|
||||
std::string GetSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetSecretParameterRequest::setParameterVersion(int parameterVersion) {
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter(std::string("ParameterVersion"), std::to_string(parameterVersion));
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetSecretParameterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void GetSecretParameterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string GetSecretParameterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,36 @@ void GetSecretParameterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["KeyId"].isNull())
|
||||
_parameter_.keyId = _parameterNode["KeyId"].asString();
|
||||
if(!_parameterNode["Tags"].isNull())
|
||||
_parameter_.tags = _parameterNode["Tags"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["Constraints"].isNull())
|
||||
_parameter_.constraints = _parameterNode["Constraints"].asString();
|
||||
if(!_parameterNode["ResourceGroupId"].isNull())
|
||||
_parameter_.resourceGroupId = _parameterNode["ResourceGroupId"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/GetSecretParametersByPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParametersByPathRequest;
|
||||
|
||||
GetSecretParametersByPathRequest::GetSecretParametersByPathRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetSecretParametersByPath")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSecretParametersByPathRequest::~GetSecretParametersByPathRequest()
|
||||
{}
|
||||
|
||||
bool GetSecretParametersByPathRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParametersByPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParametersByPathRequest;
|
||||
|
||||
GetSecretParametersByPathRequest::GetSecretParametersByPathRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetSecretParametersByPath") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
GetSecretParametersByPathRequest::~GetSecretParametersByPathRequest() {}
|
||||
|
||||
bool GetSecretParametersByPathRequest::getWithDecryption() const {
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
bool GetSecretParametersByPathRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
void GetSecretParametersByPathRequest::setWithDecryption(bool withDecryption) {
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter(std::string("WithDecryption"), withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
bool GetSecretParametersByPathRequest::getRecursive() const {
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
std::string GetSecretParametersByPathRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void GetSecretParametersByPathRequest::setRecursive(bool recursive) {
|
||||
recursive_ = recursive;
|
||||
setParameter(std::string("Recursive"), recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string GetSecretParametersByPathRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string GetSecretParametersByPathRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetSecretParametersByPathRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetSecretParametersByPathRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetSecretParametersByPathRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void GetSecretParametersByPathRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string GetSecretParametersByPathRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int GetSecretParametersByPathRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void GetSecretParametersByPathRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int GetSecretParametersByPathRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void GetSecretParametersByPathRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,40 +43,40 @@ void GetSecretParametersByPathResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["KeyId"].isNull())
|
||||
parametersObject.keyId = valueParametersParameter["KeyId"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParametersRequest;
|
||||
|
||||
GetSecretParametersRequest::GetSecretParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetSecretParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSecretParametersRequest::~GetSecretParametersRequest()
|
||||
{}
|
||||
|
||||
bool GetSecretParametersRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParametersRequest;
|
||||
|
||||
GetSecretParametersRequest::GetSecretParametersRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetSecretParameters") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetSecretParametersRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
GetSecretParametersRequest::~GetSecretParametersRequest() {}
|
||||
|
||||
bool GetSecretParametersRequest::getWithDecryption() const {
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
std::string GetSecretParametersRequest::getNames()const
|
||||
{
|
||||
return names_;
|
||||
void GetSecretParametersRequest::setWithDecryption(bool withDecryption) {
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter(std::string("WithDecryption"), withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetSecretParametersRequest::setNames(const std::string& names)
|
||||
{
|
||||
names_ = names;
|
||||
setParameter("Names", names);
|
||||
std::string GetSecretParametersRequest::getNames() const {
|
||||
return names_;
|
||||
}
|
||||
|
||||
std::string GetSecretParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetSecretParametersRequest::setNames(const std::string &names) {
|
||||
names_ = names;
|
||||
setParameter(std::string("Names"), names);
|
||||
}
|
||||
|
||||
void GetSecretParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetSecretParametersRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetSecretParametersRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,36 @@ void GetSecretParametersResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["KeyId"].isNull())
|
||||
parametersObject.keyId = valueParametersParameter["KeyId"].asString();
|
||||
if(!valueParametersParameter["Tags"].isNull())
|
||||
parametersObject.tags = valueParametersParameter["Tags"].asString();
|
||||
if(!valueParametersParameter["Value"].isNull())
|
||||
parametersObject.value = valueParametersParameter["Value"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["Constraints"].isNull())
|
||||
parametersObject.constraints = valueParametersParameter["Constraints"].asString();
|
||||
if(!valueParametersParameter["ResourceGroupId"].isNull())
|
||||
parametersObject.resourceGroupId = valueParametersParameter["ResourceGroupId"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = std::stoi(valueParametersParameter["ParameterVersion"].asString());
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
auto allInvalidParameters = value["InvalidParameters"]["InvalidParameter"];
|
||||
|
||||
@@ -1,40 +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/oos/model/GetServiceSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetServiceSettingsRequest;
|
||||
|
||||
GetServiceSettingsRequest::GetServiceSettingsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetServiceSettings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceSettingsRequest::~GetServiceSettingsRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceSettingsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetServiceSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetServiceSettingsRequest;
|
||||
|
||||
GetServiceSettingsRequest::GetServiceSettingsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetServiceSettings") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetServiceSettingsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
GetServiceSettingsRequest::~GetServiceSettingsRequest() {}
|
||||
|
||||
std::string GetServiceSettingsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceSettingsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,16 +43,18 @@ void GetServiceSettingsResult::parse(const std::string &payload)
|
||||
for (auto valueServiceSettingsServiceSetting : allServiceSettingsNode)
|
||||
{
|
||||
ServiceSetting serviceSettingsObject;
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssEnabled"].isNull())
|
||||
serviceSettingsObject.deliveryOssEnabled = valueServiceSettingsServiceSetting["DeliveryOssEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssBucketName"].isNull())
|
||||
serviceSettingsObject.deliveryOssBucketName = valueServiceSettingsServiceSetting["DeliveryOssBucketName"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].isNull())
|
||||
serviceSettingsObject.deliveryOssKeyPrefix = valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssEnabled"].isNull())
|
||||
serviceSettingsObject.deliveryOssEnabled = valueServiceSettingsServiceSetting["DeliveryOssEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsEnabled"].isNull())
|
||||
serviceSettingsObject.deliverySlsEnabled = valueServiceSettingsServiceSetting["DeliverySlsEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsProjectName"].isNull())
|
||||
serviceSettingsObject.deliverySlsProjectName = valueServiceSettingsServiceSetting["DeliverySlsProjectName"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["RdcEnterpriseId"].isNull())
|
||||
serviceSettingsObject.rdcEnterpriseId = valueServiceSettingsServiceSetting["RdcEnterpriseId"].asString();
|
||||
serviceSettings_.push_back(serviceSettingsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetTemplateRequest;
|
||||
|
||||
GetTemplateRequest::GetTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTemplateRequest::~GetTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string GetTemplateRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetTemplateRequest;
|
||||
|
||||
GetTemplateRequest::GetTemplateRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
GetTemplateRequest::~GetTemplateRequest() {}
|
||||
|
||||
std::string GetTemplateRequest::getTemplateVersion() const {
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
std::string GetTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void GetTemplateRequest::setTemplateVersion(const std::string &templateVersion) {
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter(std::string("TemplateVersion"), templateVersion);
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string GetTemplateRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void GetTemplateRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string GetTemplateRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,38 @@ void GetTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!_templateNode["TemplateType"].isNull())
|
||||
_template_.templateType = _templateNode["TemplateType"].asString();
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ResourceGroupId"].isNull())
|
||||
_template_.resourceGroupId = _templateNode["ResourceGroupId"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["VersionName"].isNull())
|
||||
_template_.versionName = _templateNode["VersionName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListActionsRequest;
|
||||
|
||||
ListActionsRequest::ListActionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListActions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListActionsRequest::~ListActionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListActionsRequest::getOOSActionName()const
|
||||
{
|
||||
return oOSActionName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListActionsRequest;
|
||||
|
||||
ListActionsRequest::ListActionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListActions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListActionsRequest::setOOSActionName(const std::string& oOSActionName)
|
||||
{
|
||||
oOSActionName_ = oOSActionName;
|
||||
setParameter("OOSActionName", oOSActionName);
|
||||
ListActionsRequest::~ListActionsRequest() {}
|
||||
|
||||
std::string ListActionsRequest::getOOSActionName() const {
|
||||
return oOSActionName_;
|
||||
}
|
||||
|
||||
std::string ListActionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListActionsRequest::setOOSActionName(const std::string &oOSActionName) {
|
||||
oOSActionName_ = oOSActionName;
|
||||
setParameter(std::string("OOSActionName"), oOSActionName);
|
||||
}
|
||||
|
||||
void ListActionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListActionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListActionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListActionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListActionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListActionsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListActionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListActionsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListActionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListActionsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListActionsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,26 @@ void ListActionsResult::parse(const std::string &payload)
|
||||
for (auto valueActionsAction : allActionsNode)
|
||||
{
|
||||
Action actionsObject;
|
||||
if(!valueActionsAction["OOSActionName"].isNull())
|
||||
actionsObject.oOSActionName = valueActionsAction["OOSActionName"].asString();
|
||||
if(!valueActionsAction["Description"].isNull())
|
||||
actionsObject.description = valueActionsAction["Description"].asString();
|
||||
if(!valueActionsAction["Popularity"].isNull())
|
||||
actionsObject.popularity = std::stoi(valueActionsAction["Popularity"].asString());
|
||||
if(!valueActionsAction["ActionType"].isNull())
|
||||
actionsObject.actionType = valueActionsAction["ActionType"].asString();
|
||||
if(!valueActionsAction["Description"].isNull())
|
||||
actionsObject.description = valueActionsAction["Description"].asString();
|
||||
if(!valueActionsAction["CreatedDate"].isNull())
|
||||
actionsObject.createdDate = valueActionsAction["CreatedDate"].asString();
|
||||
if(!valueActionsAction["Properties"].isNull())
|
||||
actionsObject.properties = valueActionsAction["Properties"].asString();
|
||||
if(!valueActionsAction["TemplateVersion"].isNull())
|
||||
actionsObject.templateVersion = valueActionsAction["TemplateVersion"].asString();
|
||||
if(!valueActionsAction["OOSActionName"].isNull())
|
||||
actionsObject.oOSActionName = valueActionsAction["OOSActionName"].asString();
|
||||
if(!valueActionsAction["Properties"].isNull())
|
||||
actionsObject.properties = valueActionsAction["Properties"].asString();
|
||||
actions_.push_back(actionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
72
oos/src/model/ListApplicationGroupsRequest.cc
Normal file
72
oos/src/model/ListApplicationGroupsRequest.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/oos/model/ListApplicationGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListApplicationGroupsRequest;
|
||||
|
||||
ListApplicationGroupsRequest::ListApplicationGroupsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListApplicationGroups") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListApplicationGroupsRequest::~ListApplicationGroupsRequest() {}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getDeployRegionId() const {
|
||||
return deployRegionId_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setDeployRegionId(const std::string &deployRegionId) {
|
||||
deployRegionId_ = deployRegionId;
|
||||
setParameter(std::string("DeployRegionId"), deployRegionId);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setApplicationName(const std::string &applicationName) {
|
||||
applicationName_ = applicationName;
|
||||
setParameter(std::string("ApplicationName"), applicationName);
|
||||
}
|
||||
|
||||
int ListApplicationGroupsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
93
oos/src/model/ListApplicationGroupsResult.cc
Normal file
93
oos/src/model/ListApplicationGroupsResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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/oos/model/ListApplicationGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListApplicationGroupsResult::ListApplicationGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationGroupsResult::ListApplicationGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationGroupsResult::~ListApplicationGroupsResult()
|
||||
{}
|
||||
|
||||
void ListApplicationGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationGroupsNode = value["ApplicationGroups"]["ApplicationGroup"];
|
||||
for (auto valueApplicationGroupsApplicationGroup : allApplicationGroupsNode)
|
||||
{
|
||||
ApplicationGroup applicationGroupsObject;
|
||||
if(!valueApplicationGroupsApplicationGroup["CmsGroupId"].isNull())
|
||||
applicationGroupsObject.cmsGroupId = valueApplicationGroupsApplicationGroup["CmsGroupId"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["DeployRegionId"].isNull())
|
||||
applicationGroupsObject.deployRegionId = valueApplicationGroupsApplicationGroup["DeployRegionId"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["UpdateDate"].isNull())
|
||||
applicationGroupsObject.updateDate = valueApplicationGroupsApplicationGroup["UpdateDate"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["Description"].isNull())
|
||||
applicationGroupsObject.description = valueApplicationGroupsApplicationGroup["Description"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["ImportTagKey"].isNull())
|
||||
applicationGroupsObject.importTagKey = valueApplicationGroupsApplicationGroup["ImportTagKey"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["ApplicationName"].isNull())
|
||||
applicationGroupsObject.applicationName = valueApplicationGroupsApplicationGroup["ApplicationName"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["ImportTagValue"].isNull())
|
||||
applicationGroupsObject.importTagValue = valueApplicationGroupsApplicationGroup["ImportTagValue"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["Name"].isNull())
|
||||
applicationGroupsObject.name = valueApplicationGroupsApplicationGroup["Name"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["CreateDate"].isNull())
|
||||
applicationGroupsObject.createDate = valueApplicationGroupsApplicationGroup["CreateDate"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["Status"].isNull())
|
||||
applicationGroupsObject.status = valueApplicationGroupsApplicationGroup["Status"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["DeployParameters"].isNull())
|
||||
applicationGroupsObject.deployParameters = valueApplicationGroupsApplicationGroup["DeployParameters"].asString();
|
||||
if(!valueApplicationGroupsApplicationGroup["StatusReason"].isNull())
|
||||
applicationGroupsObject.statusReason = valueApplicationGroupsApplicationGroup["StatusReason"].asString();
|
||||
applicationGroups_.push_back(applicationGroupsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListApplicationGroupsResult::ApplicationGroup> ListApplicationGroupsResult::getApplicationGroups()const
|
||||
{
|
||||
return applicationGroups_;
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListApplicationGroupsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
81
oos/src/model/ListApplicationsRequest.cc
Normal file
81
oos/src/model/ListApplicationsRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/ListApplicationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListApplicationsRequest;
|
||||
|
||||
ListApplicationsRequest::ListApplicationsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListApplications") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListApplicationsRequest::~ListApplicationsRequest() {}
|
||||
|
||||
std::string ListApplicationsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getNames() const {
|
||||
return names_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setNames(const std::string &names) {
|
||||
names_ = names;
|
||||
setParameter(std::string("Names"), names);
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
int ListApplicationsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
81
oos/src/model/ListApplicationsResult.cc
Normal file
81
oos/src/model/ListApplicationsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/ListApplicationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListApplicationsResult::ListApplicationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationsResult::ListApplicationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationsResult::~ListApplicationsResult()
|
||||
{}
|
||||
|
||||
void ListApplicationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationsNode = value["Applications"]["Application"];
|
||||
for (auto valueApplicationsApplication : allApplicationsNode)
|
||||
{
|
||||
Application applicationsObject;
|
||||
if(!valueApplicationsApplication["Description"].isNull())
|
||||
applicationsObject.description = valueApplicationsApplication["Description"].asString();
|
||||
if(!valueApplicationsApplication["UpdateDate"].isNull())
|
||||
applicationsObject.updateDate = valueApplicationsApplication["UpdateDate"].asString();
|
||||
if(!valueApplicationsApplication["ResourceGroupId"].isNull())
|
||||
applicationsObject.resourceGroupId = valueApplicationsApplication["ResourceGroupId"].asString();
|
||||
if(!valueApplicationsApplication["Tags"].isNull())
|
||||
applicationsObject.tags = valueApplicationsApplication["Tags"].asString();
|
||||
if(!valueApplicationsApplication["Name"].isNull())
|
||||
applicationsObject.name = valueApplicationsApplication["Name"].asString();
|
||||
if(!valueApplicationsApplication["CreateDate"].isNull())
|
||||
applicationsObject.createDate = valueApplicationsApplication["CreateDate"].asString();
|
||||
applications_.push_back(applicationsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListApplicationsResult::Application> ListApplicationsResult::getApplications()const
|
||||
{
|
||||
return applications_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListApplicationsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/ListExecutionLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionLogsRequest;
|
||||
|
||||
ListExecutionLogsRequest::ListExecutionLogsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutionLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionLogsRequest::~ListExecutionLogsRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionLogsRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionLogsRequest;
|
||||
|
||||
ListExecutionLogsRequest::ListExecutionLogsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListExecutionLogs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
ListExecutionLogsRequest::~ListExecutionLogsRequest() {}
|
||||
|
||||
std::string ListExecutionLogsRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getLogType()const
|
||||
{
|
||||
return logType_;
|
||||
void ListExecutionLogsRequest::setExecutionId(const std::string &executionId) {
|
||||
executionId_ = executionId;
|
||||
setParameter(std::string("ExecutionId"), executionId);
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setLogType(const std::string& logType)
|
||||
{
|
||||
logType_ = logType;
|
||||
setParameter("LogType", logType);
|
||||
std::string ListExecutionLogsRequest::getLogType() const {
|
||||
return logType_;
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListExecutionLogsRequest::setLogType(const std::string &logType) {
|
||||
logType_ = logType;
|
||||
setParameter(std::string("LogType"), logType);
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListExecutionLogsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListExecutionLogsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListExecutionLogsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListExecutionLogsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListExecutionLogsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListExecutionLogsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getTaskExecutionId()const
|
||||
{
|
||||
return taskExecutionId_;
|
||||
void ListExecutionLogsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setTaskExecutionId(const std::string& taskExecutionId)
|
||||
{
|
||||
taskExecutionId_ = taskExecutionId;
|
||||
setParameter("TaskExecutionId", taskExecutionId);
|
||||
std::string ListExecutionLogsRequest::getTaskExecutionId() const {
|
||||
return taskExecutionId_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setTaskExecutionId(const std::string &taskExecutionId) {
|
||||
taskExecutionId_ = taskExecutionId;
|
||||
setParameter(std::string("TaskExecutionId"), taskExecutionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,22 +43,22 @@ void ListExecutionLogsResult::parse(const std::string &payload)
|
||||
for (auto valueExecutionLogsExecutionLog : allExecutionLogsNode)
|
||||
{
|
||||
ExecutionLog executionLogsObject;
|
||||
if(!valueExecutionLogsExecutionLog["Timestamp"].isNull())
|
||||
executionLogsObject.timestamp = valueExecutionLogsExecutionLog["Timestamp"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["Message"].isNull())
|
||||
executionLogsObject.message = valueExecutionLogsExecutionLog["Message"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["TaskExecutionId"].isNull())
|
||||
executionLogsObject.taskExecutionId = valueExecutionLogsExecutionLog["TaskExecutionId"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["Message"].isNull())
|
||||
executionLogsObject.message = valueExecutionLogsExecutionLog["Message"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["LogType"].isNull())
|
||||
executionLogsObject.logType = valueExecutionLogsExecutionLog["LogType"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["Timestamp"].isNull())
|
||||
executionLogsObject.timestamp = valueExecutionLogsExecutionLog["Timestamp"].asString();
|
||||
executionLogs_.push_back(executionLogsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["IsTruncated"].isNull())
|
||||
isTruncated_ = value["IsTruncated"].asString() == "true";
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionRiskyTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionRiskyTasksRequest;
|
||||
|
||||
ListExecutionRiskyTasksRequest::ListExecutionRiskyTasksRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutionRiskyTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionRiskyTasksRequest::~ListExecutionRiskyTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionRiskyTasksRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionRiskyTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionRiskyTasksRequest;
|
||||
|
||||
ListExecutionRiskyTasksRequest::ListExecutionRiskyTasksRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListExecutionRiskyTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListExecutionRiskyTasksRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
ListExecutionRiskyTasksRequest::~ListExecutionRiskyTasksRequest() {}
|
||||
|
||||
std::string ListExecutionRiskyTasksRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionRiskyTasksRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void ListExecutionRiskyTasksRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListExecutionRiskyTasksRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string ListExecutionRiskyTasksRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ListExecutionRiskyTasksRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,260 +1,225 @@
|
||||
/*
|
||||
* 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/oos/model/ListExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionsRequest;
|
||||
|
||||
ListExecutionsRequest::ListExecutionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionsRequest::~ListExecutionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionsRequest::getExecutedBy()const
|
||||
{
|
||||
return executedBy_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionsRequest;
|
||||
|
||||
ListExecutionsRequest::ListExecutionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListExecutions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setExecutedBy(const std::string& executedBy)
|
||||
{
|
||||
executedBy_ = executedBy;
|
||||
setParameter("ExecutedBy", executedBy);
|
||||
ListExecutionsRequest::~ListExecutionsRequest() {}
|
||||
|
||||
std::string ListExecutionsRequest::getExecutedBy() const {
|
||||
return executedBy_;
|
||||
}
|
||||
|
||||
bool ListExecutionsRequest::getIncludeChildExecution()const
|
||||
{
|
||||
return includeChildExecution_;
|
||||
void ListExecutionsRequest::setExecutedBy(const std::string &executedBy) {
|
||||
executedBy_ = executedBy;
|
||||
setParameter(std::string("ExecutedBy"), executedBy);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setIncludeChildExecution(bool includeChildExecution)
|
||||
{
|
||||
includeChildExecution_ = includeChildExecution;
|
||||
setParameter("IncludeChildExecution", includeChildExecution ? "true" : "false");
|
||||
bool ListExecutionsRequest::getIncludeChildExecution() const {
|
||||
return includeChildExecution_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
void ListExecutionsRequest::setIncludeChildExecution(bool includeChildExecution) {
|
||||
includeChildExecution_ = includeChildExecution;
|
||||
setParameter(std::string("IncludeChildExecution"), includeChildExecution ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
std::string ListExecutionsRequest::getMode() const {
|
||||
return mode_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
void ListExecutionsRequest::setMode(const std::string &mode) {
|
||||
mode_ = mode;
|
||||
setParameter(std::string("Mode"), mode);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
std::string ListExecutionsRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListExecutionsRequest::setExecutionId(const std::string &executionId) {
|
||||
executionId_ = executionId;
|
||||
setParameter(std::string("ExecutionId"), executionId);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListExecutionsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getRamRole()const
|
||||
{
|
||||
return ramRole_;
|
||||
void ListExecutionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setRamRole(const std::string& ramRole)
|
||||
{
|
||||
ramRole_ = ramRole;
|
||||
setParameter("RamRole", ramRole);
|
||||
std::string ListExecutionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListExecutionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListExecutionsRequest::getRamRole() const {
|
||||
return ramRole_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void ListExecutionsRequest::setRamRole(const std::string &ramRole) {
|
||||
ramRole_ = ramRole;
|
||||
setParameter(std::string("RamRole"), ramRole);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
std::string ListExecutionsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getEndDateBefore()const
|
||||
{
|
||||
return endDateBefore_;
|
||||
void ListExecutionsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setEndDateBefore(const std::string& endDateBefore)
|
||||
{
|
||||
endDateBefore_ = endDateBefore;
|
||||
setParameter("EndDateBefore", endDateBefore);
|
||||
std::string ListExecutionsRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
void ListExecutionsRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
std::string ListExecutionsRequest::getEndDateBefore() const {
|
||||
return endDateBefore_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
void ListExecutionsRequest::setEndDateBefore(const std::string &endDateBefore) {
|
||||
endDateBefore_ = endDateBefore;
|
||||
setParameter(std::string("EndDateBefore"), endDateBefore);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setResourceId(const std::string& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
setParameter("ResourceId", resourceId);
|
||||
std::string ListExecutionsRequest::getSortOrder() const {
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStartDateAfter()const
|
||||
{
|
||||
return startDateAfter_;
|
||||
void ListExecutionsRequest::setSortOrder(const std::string &sortOrder) {
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStartDateAfter(const std::string& startDateAfter)
|
||||
{
|
||||
startDateAfter_ = startDateAfter;
|
||||
setParameter("StartDateAfter", startDateAfter);
|
||||
std::string ListExecutionsRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStartDateBefore()const
|
||||
{
|
||||
return startDateBefore_;
|
||||
void ListExecutionsRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStartDateBefore(const std::string& startDateBefore)
|
||||
{
|
||||
startDateBefore_ = startDateBefore;
|
||||
setParameter("StartDateBefore", startDateBefore);
|
||||
std::string ListExecutionsRequest::getStartDateAfter() const {
|
||||
return startDateAfter_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListExecutionsRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListExecutionsRequest::setStartDateAfter(const std::string &startDateAfter) {
|
||||
startDateAfter_ = startDateAfter;
|
||||
setParameter(std::string("StartDateAfter"), startDateAfter);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
std::string ListExecutionsRequest::getStartDateBefore() const {
|
||||
return startDateBefore_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getParentExecutionId()const
|
||||
{
|
||||
return parentExecutionId_;
|
||||
void ListExecutionsRequest::setStartDateBefore(const std::string &startDateBefore) {
|
||||
startDateBefore_ = startDateBefore;
|
||||
setParameter(std::string("StartDateBefore"), startDateBefore);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setParentExecutionId(const std::string& parentExecutionId)
|
||||
{
|
||||
parentExecutionId_ = parentExecutionId;
|
||||
setParameter("ParentExecutionId", parentExecutionId);
|
||||
std::map<std::string, std::string> ListExecutionsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getEndDateAfter()const
|
||||
{
|
||||
return endDateAfter_;
|
||||
void ListExecutionsRequest::setTags(std::map<std::string, std::string> tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setEndDateAfter(const std::string& endDateAfter)
|
||||
{
|
||||
endDateAfter_ = endDateAfter;
|
||||
setParameter("EndDateAfter", endDateAfter);
|
||||
std::string ListExecutionsRequest::getParentExecutionId() const {
|
||||
return parentExecutionId_;
|
||||
}
|
||||
|
||||
int ListExecutionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListExecutionsRequest::setParentExecutionId(const std::string &parentExecutionId) {
|
||||
parentExecutionId_ = parentExecutionId;
|
||||
setParameter(std::string("ParentExecutionId"), parentExecutionId);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
std::string ListExecutionsRequest::getEndDateAfter() const {
|
||||
return endDateAfter_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
void ListExecutionsRequest::setEndDateAfter(const std::string &endDateAfter) {
|
||||
endDateAfter_ = endDateAfter;
|
||||
setParameter(std::string("EndDateAfter"), endDateAfter);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
int ListExecutionsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
void ListExecutionsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
std::string ListExecutionsRequest::getSortField() const {
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getResourceTemplateName()const
|
||||
{
|
||||
return resourceTemplateName_;
|
||||
void ListExecutionsRequest::setSortField(const std::string &sortField) {
|
||||
sortField_ = sortField;
|
||||
setParameter(std::string("SortField"), sortField);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setResourceTemplateName(const std::string& resourceTemplateName)
|
||||
{
|
||||
resourceTemplateName_ = resourceTemplateName;
|
||||
setParameter("ResourceTemplateName", resourceTemplateName);
|
||||
std::string ListExecutionsRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
void ListExecutionsRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
std::string ListExecutionsRequest::getResourceTemplateName() const {
|
||||
return resourceTemplateName_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setResourceTemplateName(const std::string &resourceTemplateName) {
|
||||
resourceTemplateName_ = resourceTemplateName;
|
||||
setParameter(std::string("ResourceTemplateName"), resourceTemplateName);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,62 +43,64 @@ void ListExecutionsResult::parse(const std::string &payload)
|
||||
for (auto valueExecutionsExecution : allExecutionsNode)
|
||||
{
|
||||
Execution executionsObject;
|
||||
if(!valueExecutionsExecution["ExecutionId"].isNull())
|
||||
executionsObject.executionId = valueExecutionsExecution["ExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["TemplateName"].isNull())
|
||||
executionsObject.templateName = valueExecutionsExecution["TemplateName"].asString();
|
||||
if(!valueExecutionsExecution["TemplateId"].isNull())
|
||||
executionsObject.templateId = valueExecutionsExecution["TemplateId"].asString();
|
||||
if(!valueExecutionsExecution["TemplateVersion"].isNull())
|
||||
executionsObject.templateVersion = valueExecutionsExecution["TemplateVersion"].asString();
|
||||
if(!valueExecutionsExecution["Status"].isNull())
|
||||
executionsObject.status = valueExecutionsExecution["Status"].asString();
|
||||
if(!valueExecutionsExecution["WaitingStatus"].isNull())
|
||||
executionsObject.waitingStatus = valueExecutionsExecution["WaitingStatus"].asString();
|
||||
if(!valueExecutionsExecution["Targets"].isNull())
|
||||
executionsObject.targets = valueExecutionsExecution["Targets"].asString();
|
||||
if(!valueExecutionsExecution["StatusReason"].isNull())
|
||||
executionsObject.statusReason = valueExecutionsExecution["StatusReason"].asString();
|
||||
if(!valueExecutionsExecution["Tags"].isNull())
|
||||
executionsObject.tags = valueExecutionsExecution["Tags"].asString();
|
||||
if(!valueExecutionsExecution["LastSuccessfulTriggerTime"].isNull())
|
||||
executionsObject.lastSuccessfulTriggerTime = valueExecutionsExecution["LastSuccessfulTriggerTime"].asString();
|
||||
if(!valueExecutionsExecution["Mode"].isNull())
|
||||
executionsObject.mode = valueExecutionsExecution["Mode"].asString();
|
||||
if(!valueExecutionsExecution["ExecutedBy"].isNull())
|
||||
executionsObject.executedBy = valueExecutionsExecution["ExecutedBy"].asString();
|
||||
if(!valueExecutionsExecution["StartDate"].isNull())
|
||||
executionsObject.startDate = valueExecutionsExecution["StartDate"].asString();
|
||||
if(!valueExecutionsExecution["EndDate"].isNull())
|
||||
executionsObject.endDate = valueExecutionsExecution["EndDate"].asString();
|
||||
if(!valueExecutionsExecution["SafetyCheck"].isNull())
|
||||
executionsObject.safetyCheck = valueExecutionsExecution["SafetyCheck"].asString();
|
||||
if(!valueExecutionsExecution["TemplateName"].isNull())
|
||||
executionsObject.templateName = valueExecutionsExecution["TemplateName"].asString();
|
||||
if(!valueExecutionsExecution["TemplateVersion"].isNull())
|
||||
executionsObject.templateVersion = valueExecutionsExecution["TemplateVersion"].asString();
|
||||
if(!valueExecutionsExecution["CreateDate"].isNull())
|
||||
executionsObject.createDate = valueExecutionsExecution["CreateDate"].asString();
|
||||
if(!valueExecutionsExecution["UpdateDate"].isNull())
|
||||
executionsObject.updateDate = valueExecutionsExecution["UpdateDate"].asString();
|
||||
if(!valueExecutionsExecution["Status"].isNull())
|
||||
executionsObject.status = valueExecutionsExecution["Status"].asString();
|
||||
if(!valueExecutionsExecution["StatusMessage"].isNull())
|
||||
executionsObject.statusMessage = valueExecutionsExecution["StatusMessage"].asString();
|
||||
if(!valueExecutionsExecution["StatusReason"].isNull())
|
||||
executionsObject.statusReason = valueExecutionsExecution["StatusReason"].asString();
|
||||
if(!valueExecutionsExecution["WaitingStatus"].isNull())
|
||||
executionsObject.waitingStatus = valueExecutionsExecution["WaitingStatus"].asString();
|
||||
if(!valueExecutionsExecution["ParentExecutionId"].isNull())
|
||||
executionsObject.parentExecutionId = valueExecutionsExecution["ParentExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["Parameters"].isNull())
|
||||
executionsObject.parameters = valueExecutionsExecution["Parameters"].asString();
|
||||
if(!valueExecutionsExecution["Outputs"].isNull())
|
||||
executionsObject.outputs = valueExecutionsExecution["Outputs"].asString();
|
||||
if(!valueExecutionsExecution["SafetyCheck"].isNull())
|
||||
executionsObject.safetyCheck = valueExecutionsExecution["SafetyCheck"].asString();
|
||||
if(!valueExecutionsExecution["IsParent"].isNull())
|
||||
executionsObject.isParent = valueExecutionsExecution["IsParent"].asString() == "true";
|
||||
if(!valueExecutionsExecution["RamRole"].isNull())
|
||||
executionsObject.ramRole = valueExecutionsExecution["RamRole"].asString();
|
||||
if(!valueExecutionsExecution["Counters"].isNull())
|
||||
executionsObject.counters = valueExecutionsExecution["Counters"].asString();
|
||||
if(!valueExecutionsExecution["Category"].isNull())
|
||||
executionsObject.category = valueExecutionsExecution["Category"].asString();
|
||||
if(!valueExecutionsExecution["Tags"].isNull())
|
||||
executionsObject.tags = valueExecutionsExecution["Tags"].asString();
|
||||
if(!valueExecutionsExecution["Description"].isNull())
|
||||
executionsObject.description = valueExecutionsExecution["Description"].asString();
|
||||
if(!valueExecutionsExecution["Targets"].isNull())
|
||||
executionsObject.targets = valueExecutionsExecution["Targets"].asString();
|
||||
if(!valueExecutionsExecution["LastTriggerTime"].isNull())
|
||||
executionsObject.lastTriggerTime = valueExecutionsExecution["LastTriggerTime"].asString();
|
||||
if(!valueExecutionsExecution["ParentExecutionId"].isNull())
|
||||
executionsObject.parentExecutionId = valueExecutionsExecution["ParentExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["LastTriggerStatus"].isNull())
|
||||
executionsObject.lastTriggerStatus = valueExecutionsExecution["LastTriggerStatus"].asString();
|
||||
if(!valueExecutionsExecution["LastSuccessfulTriggerTime"].isNull())
|
||||
executionsObject.lastSuccessfulTriggerTime = valueExecutionsExecution["LastSuccessfulTriggerTime"].asString();
|
||||
if(!valueExecutionsExecution["StatusMessage"].isNull())
|
||||
executionsObject.statusMessage = valueExecutionsExecution["StatusMessage"].asString();
|
||||
if(!valueExecutionsExecution["Outputs"].isNull())
|
||||
executionsObject.outputs = valueExecutionsExecution["Outputs"].asString();
|
||||
if(!valueExecutionsExecution["ExecutedBy"].isNull())
|
||||
executionsObject.executedBy = valueExecutionsExecution["ExecutedBy"].asString();
|
||||
if(!valueExecutionsExecution["EndDate"].isNull())
|
||||
executionsObject.endDate = valueExecutionsExecution["EndDate"].asString();
|
||||
if(!valueExecutionsExecution["IsParent"].isNull())
|
||||
executionsObject.isParent = valueExecutionsExecution["IsParent"].asString() == "true";
|
||||
if(!valueExecutionsExecution["StartDate"].isNull())
|
||||
executionsObject.startDate = valueExecutionsExecution["StartDate"].asString();
|
||||
if(!valueExecutionsExecution["ExecutionId"].isNull())
|
||||
executionsObject.executionId = valueExecutionsExecution["ExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["Parameters"].isNull())
|
||||
executionsObject.parameters = valueExecutionsExecution["Parameters"].asString();
|
||||
if(!valueExecutionsExecution["Counters"].isNull())
|
||||
executionsObject.counters = valueExecutionsExecution["Counters"].asString();
|
||||
if(!valueExecutionsExecution["ResourceGroupId"].isNull())
|
||||
executionsObject.resourceGroupId = valueExecutionsExecution["ResourceGroupId"].asString();
|
||||
if(!valueExecutionsExecution["Category"].isNull())
|
||||
executionsObject.category = valueExecutionsExecution["Category"].asString();
|
||||
if(!valueExecutionsExecution["TemplateId"].isNull())
|
||||
executionsObject.templateId = valueExecutionsExecution["TemplateId"].asString();
|
||||
if(!valueExecutionsExecution["RamRole"].isNull())
|
||||
executionsObject.ramRole = valueExecutionsExecution["RamRole"].asString();
|
||||
if(!valueExecutionsExecution["ResourceStatus"].isNull())
|
||||
executionsObject.resourceStatus = valueExecutionsExecution["ResourceStatus"].asString();
|
||||
auto allCurrentTasksNode = valueExecutionsExecution["CurrentTasks"]["CurrentTask"];
|
||||
@@ -115,10 +117,10 @@ void ListExecutionsResult::parse(const std::string &payload)
|
||||
}
|
||||
executions_.push_back(executionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInstancePatchStatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInstancePatchStatesRequest;
|
||||
|
||||
ListInstancePatchStatesRequest::ListInstancePatchStatesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListInstancePatchStates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstancePatchStatesRequest::~ListInstancePatchStatesRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstancePatchStatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInstancePatchStatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInstancePatchStatesRequest;
|
||||
|
||||
ListInstancePatchStatesRequest::ListInstancePatchStatesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListInstancePatchStates") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListInstancePatchStatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
ListInstancePatchStatesRequest::~ListInstancePatchStatesRequest() {}
|
||||
|
||||
std::string ListInstancePatchStatesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListInstancePatchStatesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListInstancePatchStatesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListInstancePatchStatesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListInstancePatchStatesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListInstancePatchStatesRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
void ListInstancePatchStatesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListInstancePatchStatesRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
std::string ListInstancePatchStatesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
int ListInstancePatchStatesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListInstancePatchStatesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
void ListInstancePatchStatesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListInstancePatchStatesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListInstancePatchStatesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,38 +43,38 @@ void ListInstancePatchStatesResult::parse(const std::string &payload)
|
||||
for (auto valueInstancePatchStatesInstancePatchState : allInstancePatchStatesNode)
|
||||
{
|
||||
InstancePatchState instancePatchStatesObject;
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstanceId"].isNull())
|
||||
instancePatchStatesObject.instanceId = valueInstancePatchStatesInstancePatchState["InstanceId"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["PatchGroup"].isNull())
|
||||
instancePatchStatesObject.patchGroup = valueInstancePatchStatesInstancePatchState["PatchGroup"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["BaselineId"].isNull())
|
||||
instancePatchStatesObject.baselineId = valueInstancePatchStatesInstancePatchState["BaselineId"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OwnerInformation"].isNull())
|
||||
instancePatchStatesObject.ownerInformation = valueInstancePatchStatesInstancePatchState["OwnerInformation"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledCount"].isNull())
|
||||
instancePatchStatesObject.installedCount = valueInstancePatchStatesInstancePatchState["InstalledCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].isNull())
|
||||
instancePatchStatesObject.installedOtherCount = valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].isNull())
|
||||
instancePatchStatesObject.installedPendingRebootCount = valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].isNull())
|
||||
instancePatchStatesObject.installedRejectedCount = valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["MissingCount"].isNull())
|
||||
instancePatchStatesObject.missingCount = valueInstancePatchStatesInstancePatchState["MissingCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["FailedCount"].isNull())
|
||||
instancePatchStatesObject.failedCount = valueInstancePatchStatesInstancePatchState["FailedCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OperationEndTime"].isNull())
|
||||
instancePatchStatesObject.operationEndTime = valueInstancePatchStatesInstancePatchState["OperationEndTime"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OwnerInformation"].isNull())
|
||||
instancePatchStatesObject.ownerInformation = valueInstancePatchStatesInstancePatchState["OwnerInformation"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].isNull())
|
||||
instancePatchStatesObject.installedOtherCount = valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstanceId"].isNull())
|
||||
instancePatchStatesObject.instanceId = valueInstancePatchStatesInstancePatchState["InstanceId"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OperationType"].isNull())
|
||||
instancePatchStatesObject.operationType = valueInstancePatchStatesInstancePatchState["OperationType"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OperationStartTime"].isNull())
|
||||
instancePatchStatesObject.operationStartTime = valueInstancePatchStatesInstancePatchState["OperationStartTime"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["OperationEndTime"].isNull())
|
||||
instancePatchStatesObject.operationEndTime = valueInstancePatchStatesInstancePatchState["OperationEndTime"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["FailedCount"].isNull())
|
||||
instancePatchStatesObject.failedCount = valueInstancePatchStatesInstancePatchState["FailedCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["BaselineId"].isNull())
|
||||
instancePatchStatesObject.baselineId = valueInstancePatchStatesInstancePatchState["BaselineId"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].isNull())
|
||||
instancePatchStatesObject.installedPendingRebootCount = valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].isNull())
|
||||
instancePatchStatesObject.installedRejectedCount = valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["PatchGroup"].isNull())
|
||||
instancePatchStatesObject.patchGroup = valueInstancePatchStatesInstancePatchState["PatchGroup"].asString();
|
||||
if(!valueInstancePatchStatesInstancePatchState["InstalledCount"].isNull())
|
||||
instancePatchStatesObject.installedCount = valueInstancePatchStatesInstancePatchState["InstalledCount"].asString();
|
||||
instancePatchStates_.push_back(instancePatchStatesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/oos/model/ListInstancePatchesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInstancePatchesRequest;
|
||||
|
||||
ListInstancePatchesRequest::ListInstancePatchesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListInstancePatches")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstancePatchesRequest::~ListInstancePatchesRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstancePatchesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInstancePatchesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInstancePatchesRequest;
|
||||
|
||||
ListInstancePatchesRequest::ListInstancePatchesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListInstancePatches") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ListInstancePatchesRequest::~ListInstancePatchesRequest() {}
|
||||
|
||||
std::string ListInstancePatchesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListInstancePatchesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListInstancePatchesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListInstancePatchesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListInstancePatchesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListInstancePatchesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListInstancePatchesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListInstancePatchesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListInstancePatchesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListInstancePatchesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListInstancePatchesRequest::getPatchStatuses() const {
|
||||
return patchStatuses_;
|
||||
}
|
||||
|
||||
void ListInstancePatchesRequest::setPatchStatuses(const std::string &patchStatuses) {
|
||||
patchStatuses_ = patchStatuses;
|
||||
setParameter(std::string("PatchStatuses"), patchStatuses);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void ListInstancePatchesResult::parse(const std::string &payload)
|
||||
for (auto valuePatchesPatch : allPatchesNode)
|
||||
{
|
||||
Patch patchesObject;
|
||||
if(!valuePatchesPatch["Classification"].isNull())
|
||||
patchesObject.classification = valuePatchesPatch["Classification"].asString();
|
||||
if(!valuePatchesPatch["InstalledTime"].isNull())
|
||||
patchesObject.installedTime = valuePatchesPatch["InstalledTime"].asString();
|
||||
if(!valuePatchesPatch["KBId"].isNull())
|
||||
patchesObject.kBId = valuePatchesPatch["KBId"].asString();
|
||||
if(!valuePatchesPatch["Severity"].isNull())
|
||||
patchesObject.severity = valuePatchesPatch["Severity"].asString();
|
||||
if(!valuePatchesPatch["Status"].isNull())
|
||||
patchesObject.status = valuePatchesPatch["Status"].asString();
|
||||
if(!valuePatchesPatch["InstalledTime"].isNull())
|
||||
patchesObject.installedTime = valuePatchesPatch["InstalledTime"].asString();
|
||||
if(!valuePatchesPatch["KBId"].isNull())
|
||||
patchesObject.kBId = valuePatchesPatch["KBId"].asString();
|
||||
if(!valuePatchesPatch["Title"].isNull())
|
||||
patchesObject.title = valuePatchesPatch["Title"].asString();
|
||||
if(!valuePatchesPatch["Classification"].isNull())
|
||||
patchesObject.classification = valuePatchesPatch["Classification"].asString();
|
||||
patches_.push_back(patchesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInstanceStateReportsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInstanceStateReportsRequest;
|
||||
|
||||
ListInstanceStateReportsRequest::ListInstanceStateReportsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListInstanceStateReports")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstanceStateReportsRequest::~ListInstanceStateReportsRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstanceStateReportsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListInstanceStateReportsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListInstanceStateReportsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListInstanceStateReportsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListInstanceStateReportsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListInstanceStateReportsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListInstanceStateReportsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListInstanceStateReportsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListInstanceStateReportsRequest::getStateConfigurationId()const
|
||||
{
|
||||
return stateConfigurationId_;
|
||||
}
|
||||
|
||||
void ListInstanceStateReportsRequest::setStateConfigurationId(const std::string& stateConfigurationId)
|
||||
{
|
||||
stateConfigurationId_ = stateConfigurationId;
|
||||
setParameter("StateConfigurationId", stateConfigurationId);
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInstanceStateReportsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListInstanceStateReportsResult::ListInstanceStateReportsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstanceStateReportsResult::ListInstanceStateReportsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstanceStateReportsResult::~ListInstanceStateReportsResult()
|
||||
{}
|
||||
|
||||
void ListInstanceStateReportsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStateReportsNode = value["StateReports"]["StateReport"];
|
||||
for (auto valueStateReportsStateReport : allStateReportsNode)
|
||||
{
|
||||
StateReport stateReportsObject;
|
||||
if(!valueStateReportsStateReport["ReportTime"].isNull())
|
||||
stateReportsObject.reportTime = valueStateReportsStateReport["ReportTime"].asString();
|
||||
if(!valueStateReportsStateReport["InstanceId"].isNull())
|
||||
stateReportsObject.instanceId = valueStateReportsStateReport["InstanceId"].asString();
|
||||
if(!valueStateReportsStateReport["StateConfigurationId"].isNull())
|
||||
stateReportsObject.stateConfigurationId = valueStateReportsStateReport["StateConfigurationId"].asString();
|
||||
if(!valueStateReportsStateReport["Mode"].isNull())
|
||||
stateReportsObject.mode = valueStateReportsStateReport["Mode"].asString();
|
||||
if(!valueStateReportsStateReport["ReportStatus"].isNull())
|
||||
stateReportsObject.reportStatus = valueStateReportsStateReport["ReportStatus"].asString();
|
||||
if(!valueStateReportsStateReport["SuccessApplyTime"].isNull())
|
||||
stateReportsObject.successApplyTime = valueStateReportsStateReport["SuccessApplyTime"].asString();
|
||||
if(!valueStateReportsStateReport["ReportInfo"].isNull())
|
||||
stateReportsObject.reportInfo = valueStateReportsStateReport["ReportInfo"].asString();
|
||||
stateReports_.push_back(stateReportsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListInstanceStateReportsResult::StateReport> ListInstanceStateReportsResult::getStateReports()const
|
||||
{
|
||||
return stateReports_;
|
||||
}
|
||||
|
||||
std::string ListInstanceStateReportsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListInstanceStateReportsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -1,92 +1,86 @@
|
||||
/*
|
||||
* 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/oos/model/ListInventoryEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInventoryEntriesRequest;
|
||||
|
||||
ListInventoryEntriesRequest::ListInventoryEntriesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListInventoryEntries")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInventoryEntriesRequest::~ListInventoryEntriesRequest()
|
||||
{}
|
||||
|
||||
std::vector<ListInventoryEntriesRequest::Filter> ListInventoryEntriesRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListInventoryEntriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListInventoryEntriesRequest;
|
||||
|
||||
ListInventoryEntriesRequest::ListInventoryEntriesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListInventoryEntries") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setFilter(const std::vector<Filter>& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
for(int dep1 = 0; dep1!= filter.size(); dep1++) {
|
||||
auto filterObj = filter.at(dep1);
|
||||
std::string filterObjStr = "Filter." + std::to_string(dep1 + 1);
|
||||
setParameter(filterObjStr + ".Name", filterObj.name);
|
||||
for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) {
|
||||
setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2));
|
||||
}
|
||||
setParameter(filterObjStr + "._Operator", filterObj._operator);
|
||||
}
|
||||
ListInventoryEntriesRequest::~ListInventoryEntriesRequest() {}
|
||||
|
||||
std::vector<ListInventoryEntriesRequest::Filter> ListInventoryEntriesRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
std::string ListInventoryEntriesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListInventoryEntriesRequest::setFilter(const std::vector<ListInventoryEntriesRequest::Filter> &filter) {
|
||||
filter_ = filter;
|
||||
for(int dep1 = 0; dep1 != filter.size(); dep1++) {
|
||||
auto filterObj = filter.at(dep1);
|
||||
std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filterObjStr + ".Name", filterObj.name);
|
||||
setParameter(filterObjStr + ".Operator", filterObj._operator);
|
||||
}
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListInventoryEntriesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ListInventoryEntriesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListInventoryEntriesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListInventoryEntriesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListInventoryEntriesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListInventoryEntriesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
std::string ListInventoryEntriesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListInventoryEntriesRequest::getTypeName()const
|
||||
{
|
||||
return typeName_;
|
||||
void ListInventoryEntriesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setTypeName(const std::string& typeName)
|
||||
{
|
||||
typeName_ = typeName;
|
||||
setParameter("TypeName", typeName);
|
||||
int ListInventoryEntriesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListInventoryEntriesRequest::getTypeName() const {
|
||||
return typeName_;
|
||||
}
|
||||
|
||||
void ListInventoryEntriesRequest::setTypeName(const std::string &typeName) {
|
||||
typeName_ = typeName;
|
||||
setParameter(std::string("TypeName"), typeName);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,16 +44,16 @@ void ListInventoryEntriesResult::parse(const std::string &payload)
|
||||
entries_.push_back(item.asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["CaptureTime"].isNull())
|
||||
captureTime_ = value["CaptureTime"].asString();
|
||||
if(!value["TypeName"].isNull())
|
||||
typeName_ = value["TypeName"].asString();
|
||||
if(!value["SchemaVersion"].isNull())
|
||||
schemaVersion_ = value["SchemaVersion"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["CaptureTime"].isNull())
|
||||
captureTime_ = value["CaptureTime"].asString();
|
||||
if(!value["TypeName"].isNull())
|
||||
typeName_ = value["TypeName"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/oos/model/ListParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParameterVersionsRequest;
|
||||
|
||||
ListParameterVersionsRequest::ListParameterVersionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListParameterVersions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListParameterVersionsRequest::~ListParameterVersionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListParameterVersionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParameterVersionsRequest;
|
||||
|
||||
ListParameterVersionsRequest::ListParameterVersionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListParameterVersions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
ListParameterVersionsRequest::~ListParameterVersionsRequest() {}
|
||||
|
||||
std::string ListParameterVersionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListParameterVersionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListParameterVersionsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ListParameterVersionsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ListParameterVersionsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
int ListParameterVersionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListParameterVersionsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListParameterVersionsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
void ListParameterVersionsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
std::string ListParameterVersionsRequest::getShareType() const {
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,34 @@ void ListParameterVersionsResult::parse(const std::string &payload)
|
||||
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
|
||||
{
|
||||
ParameterVersion parameterVersionsObject;
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
|
||||
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
|
||||
if(!valueParameterVersionsParameterVersion["Value"].isNull())
|
||||
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
parameterVersions_.push_back(parameterVersionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["CreatedBy"].isNull())
|
||||
createdBy_ = value["CreatedBy"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -79,16 +79,16 @@ std::vector<ListParameterVersionsResult::ParameterVersion> ListParameterVersions
|
||||
return parameterVersions_;
|
||||
}
|
||||
|
||||
int ListParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
int ListParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
|
||||
@@ -1,139 +1,126 @@
|
||||
/*
|
||||
* 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/oos/model/ListParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParametersRequest;
|
||||
|
||||
ListParametersRequest::ListParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListParametersRequest::~ListParametersRequest()
|
||||
{}
|
||||
|
||||
std::string ListParametersRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParametersRequest;
|
||||
|
||||
ListParametersRequest::ListParametersRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListParameters") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
ListParametersRequest::~ListParametersRequest() {}
|
||||
|
||||
std::string ListParametersRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
bool ListParametersRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
void ListParametersRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
bool ListParametersRequest::getRecursive() const {
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void ListParametersRequest::setRecursive(bool recursive) {
|
||||
recursive_ = recursive;
|
||||
setParameter(std::string("Recursive"), recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListParametersRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string ListParametersRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListParametersRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListParametersRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListParametersRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListParametersRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
void ListParametersRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
std::string ListParametersRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListParametersRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string ListParametersRequest::getSortOrder() const {
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ListParametersRequest::setSortOrder(const std::string &sortOrder) {
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ListParametersRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
int ListParametersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListParametersRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
std::string ListParametersRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
void ListParametersRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ListParametersRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
int ListParametersRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getSortField() const {
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setSortField(const std::string &sortField) {
|
||||
sortField_ = sortField;
|
||||
setParameter(std::string("SortField"), sortField);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,36 +43,38 @@ void ListParametersResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["Tags"].isNull())
|
||||
parametersObject.tags = valueParametersParameter["Tags"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["ResourceGroupId"].isNull())
|
||||
parametersObject.resourceGroupId = valueParametersParameter["ResourceGroupId"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/ListPatchBaselinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListPatchBaselinesRequest;
|
||||
|
||||
ListPatchBaselinesRequest::ListPatchBaselinesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListPatchBaselines")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPatchBaselinesRequest::~ListPatchBaselinesRequest()
|
||||
{}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getOperationSystem()const
|
||||
{
|
||||
return operationSystem_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListPatchBaselinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListPatchBaselinesRequest;
|
||||
|
||||
ListPatchBaselinesRequest::ListPatchBaselinesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListPatchBaselines") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setOperationSystem(const std::string& operationSystem)
|
||||
{
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter("OperationSystem", operationSystem);
|
||||
ListPatchBaselinesRequest::~ListPatchBaselinesRequest() {}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getOperationSystem() const {
|
||||
return operationSystem_;
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListPatchBaselinesRequest::setOperationSystem(const std::string &operationSystem) {
|
||||
operationSystem_ = operationSystem;
|
||||
setParameter(std::string("OperationSystem"), operationSystem);
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListPatchBaselinesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListPatchBaselinesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListPatchBaselinesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ListPatchBaselinesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ListPatchBaselinesRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
int ListPatchBaselinesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListPatchBaselinesRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListPatchBaselinesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListPatchBaselinesRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
void ListPatchBaselinesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
std::string ListPatchBaselinesRequest::getShareType() const {
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListPatchBaselinesRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void ListPatchBaselinesResult::parse(const std::string &payload)
|
||||
for (auto valuePatchBaselinesPatchBaseline : allPatchBaselinesNode)
|
||||
{
|
||||
PatchBaseline patchBaselinesObject;
|
||||
if(!valuePatchBaselinesPatchBaseline["Id"].isNull())
|
||||
patchBaselinesObject.id = valuePatchBaselinesPatchBaseline["Id"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["Name"].isNull())
|
||||
patchBaselinesObject.name = valuePatchBaselinesPatchBaseline["Name"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["CreatedDate"].isNull())
|
||||
patchBaselinesObject.createdDate = valuePatchBaselinesPatchBaseline["CreatedDate"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["CreatedBy"].isNull())
|
||||
patchBaselinesObject.createdBy = valuePatchBaselinesPatchBaseline["CreatedBy"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["UpdatedDate"].isNull())
|
||||
patchBaselinesObject.updatedDate = valuePatchBaselinesPatchBaseline["UpdatedDate"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["UpdatedBy"].isNull())
|
||||
patchBaselinesObject.updatedBy = valuePatchBaselinesPatchBaseline["UpdatedBy"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["Description"].isNull())
|
||||
patchBaselinesObject.description = valuePatchBaselinesPatchBaseline["Description"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
|
||||
patchBaselinesObject.shareType = valuePatchBaselinesPatchBaseline["ShareType"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["OperationSystem"].isNull())
|
||||
patchBaselinesObject.operationSystem = valuePatchBaselinesPatchBaseline["OperationSystem"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["IsDefault"].isNull())
|
||||
patchBaselinesObject.isDefault = valuePatchBaselinesPatchBaseline["IsDefault"].asString() == "true";
|
||||
if(!valuePatchBaselinesPatchBaseline["Description"].isNull())
|
||||
patchBaselinesObject.description = valuePatchBaselinesPatchBaseline["Description"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["UpdatedDate"].isNull())
|
||||
patchBaselinesObject.updatedDate = valuePatchBaselinesPatchBaseline["UpdatedDate"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["UpdatedBy"].isNull())
|
||||
patchBaselinesObject.updatedBy = valuePatchBaselinesPatchBaseline["UpdatedBy"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["CreatedBy"].isNull())
|
||||
patchBaselinesObject.createdBy = valuePatchBaselinesPatchBaseline["CreatedBy"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["CreatedDate"].isNull())
|
||||
patchBaselinesObject.createdDate = valuePatchBaselinesPatchBaseline["CreatedDate"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["Name"].isNull())
|
||||
patchBaselinesObject.name = valuePatchBaselinesPatchBaseline["Name"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["Id"].isNull())
|
||||
patchBaselinesObject.id = valuePatchBaselinesPatchBaseline["Id"].asString();
|
||||
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
|
||||
patchBaselinesObject.shareType = valuePatchBaselinesPatchBaseline["ShareType"].asString();
|
||||
patchBaselines_.push_back(patchBaselinesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListResourceExecutionStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListResourceExecutionStatusRequest;
|
||||
|
||||
ListResourceExecutionStatusRequest::ListResourceExecutionStatusRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListResourceExecutionStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListResourceExecutionStatusRequest::~ListResourceExecutionStatusRequest()
|
||||
{}
|
||||
|
||||
std::string ListResourceExecutionStatusRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListResourceExecutionStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListResourceExecutionStatusRequest;
|
||||
|
||||
ListResourceExecutionStatusRequest::ListResourceExecutionStatusRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListResourceExecutionStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListResourceExecutionStatusRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
ListResourceExecutionStatusRequest::~ListResourceExecutionStatusRequest() {}
|
||||
|
||||
std::string ListResourceExecutionStatusRequest::getExecutionId() const {
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
std::string ListResourceExecutionStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListResourceExecutionStatusRequest::setExecutionId(const std::string &executionId) {
|
||||
executionId_ = executionId;
|
||||
setParameter(std::string("ExecutionId"), executionId);
|
||||
}
|
||||
|
||||
void ListResourceExecutionStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListResourceExecutionStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListResourceExecutionStatusRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListResourceExecutionStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListResourceExecutionStatusRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListResourceExecutionStatusRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListResourceExecutionStatusRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListResourceExecutionStatusRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListResourceExecutionStatusRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListResourceExecutionStatusRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListResourceExecutionStatusRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,22 +43,22 @@ void ListResourceExecutionStatusResult::parse(const std::string &payload)
|
||||
for (auto valueResourceExecutionStatusStatus : allResourceExecutionStatusNode)
|
||||
{
|
||||
Status resourceExecutionStatusObject;
|
||||
if(!valueResourceExecutionStatusStatus["ResourceId"].isNull())
|
||||
resourceExecutionStatusObject.resourceId = valueResourceExecutionStatusStatus["ResourceId"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["ExecutionTime"].isNull())
|
||||
resourceExecutionStatusObject.executionTime = valueResourceExecutionStatusStatus["ExecutionTime"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["Status"].isNull())
|
||||
resourceExecutionStatusObject.status = valueResourceExecutionStatusStatus["Status"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["Outputs"].isNull())
|
||||
resourceExecutionStatusObject.outputs = valueResourceExecutionStatusStatus["Outputs"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["Status"].isNull())
|
||||
resourceExecutionStatusObject.status = valueResourceExecutionStatusStatus["Status"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["ExecutionTime"].isNull())
|
||||
resourceExecutionStatusObject.executionTime = valueResourceExecutionStatusStatus["ExecutionTime"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["ResourceId"].isNull())
|
||||
resourceExecutionStatusObject.resourceId = valueResourceExecutionStatusStatus["ResourceId"].asString();
|
||||
if(!valueResourceExecutionStatusStatus["ExecutionId"].isNull())
|
||||
resourceExecutionStatusObject.executionId = valueResourceExecutionStatusStatus["ExecutionId"].asString();
|
||||
resourceExecutionStatus_.push_back(resourceExecutionStatusObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/oos/model/ListSecretParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParameterVersionsRequest;
|
||||
|
||||
ListSecretParameterVersionsRequest::ListSecretParameterVersionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameterVersions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSecretParameterVersionsRequest::~ListSecretParameterVersionsRequest()
|
||||
{}
|
||||
|
||||
bool ListSecretParameterVersionsRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListSecretParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParameterVersionsRequest;
|
||||
|
||||
ListSecretParameterVersionsRequest::ListSecretParameterVersionsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListSecretParameterVersions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
ListSecretParameterVersionsRequest::~ListSecretParameterVersionsRequest() {}
|
||||
|
||||
bool ListSecretParameterVersionsRequest::getWithDecryption() const {
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListSecretParameterVersionsRequest::setWithDecryption(bool withDecryption) {
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter(std::string("WithDecryption"), withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListSecretParameterVersionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListSecretParameterVersionsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListSecretParameterVersionsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ListSecretParameterVersionsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ListSecretParameterVersionsRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListSecretParameterVersionsRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListSecretParameterVersionsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
void ListSecretParameterVersionsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
std::string ListSecretParameterVersionsRequest::getShareType() const {
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setShareType(const std::string &shareType) {
|
||||
shareType_ = shareType;
|
||||
setParameter(std::string("ShareType"), shareType);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,34 @@ void ListSecretParameterVersionsResult::parse(const std::string &payload)
|
||||
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
|
||||
{
|
||||
ParameterVersion parameterVersionsObject;
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
|
||||
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
|
||||
if(!valueParameterVersionsParameterVersion["Value"].isNull())
|
||||
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
parameterVersions_.push_back(parameterVersionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["CreatedBy"].isNull())
|
||||
createdBy_ = value["CreatedBy"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -79,16 +79,16 @@ std::vector<ListSecretParameterVersionsResult::ParameterVersion> ListSecretParam
|
||||
return parameterVersions_;
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
|
||||
@@ -1,128 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListSecretParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParametersRequest;
|
||||
|
||||
ListSecretParametersRequest::ListSecretParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSecretParametersRequest::~ListSecretParametersRequest()
|
||||
{}
|
||||
|
||||
bool ListSecretParametersRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListSecretParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParametersRequest;
|
||||
|
||||
ListSecretParametersRequest::ListSecretParametersRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListSecretParameters") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
ListSecretParametersRequest::~ListSecretParametersRequest() {}
|
||||
|
||||
bool ListSecretParametersRequest::getRecursive() const {
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListSecretParametersRequest::setRecursive(bool recursive) {
|
||||
recursive_ = recursive;
|
||||
setParameter(std::string("Recursive"), recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string ListSecretParametersRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
void ListSecretParametersRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
std::string ListSecretParametersRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListSecretParametersRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListSecretParametersRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListSecretParametersRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListSecretParametersRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void ListSecretParametersRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string ListSecretParametersRequest::getSortOrder() const {
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
int ListSecretParametersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListSecretParametersRequest::setSortOrder(const std::string &sortOrder) {
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter(std::string("SortOrder"), sortOrder);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
std::string ListSecretParametersRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
void ListSecretParametersRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
std::string ListSecretParametersRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
void ListSecretParametersRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
int ListSecretParametersRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getSortField() const {
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setSortField(const std::string &sortField) {
|
||||
sortField_ = sortField;
|
||||
setParameter(std::string("SortField"), sortField);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,36 +43,38 @@ void ListSecretParametersResult::parse(const std::string &payload)
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
if(!valueParametersParameter["KeyId"].isNull())
|
||||
parametersObject.keyId = valueParametersParameter["KeyId"].asString();
|
||||
if(!valueParametersParameter["Tags"].isNull())
|
||||
parametersObject.tags = valueParametersParameter["Tags"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ResourceGroupId"].isNull())
|
||||
parametersObject.resourceGroupId = valueParametersParameter["ResourceGroupId"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,99 @@
|
||||
/*
|
||||
* 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/oos/model/ListStateConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListStateConfigurationsRequest;
|
||||
|
||||
ListStateConfigurationsRequest::ListStateConfigurationsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListStateConfigurations")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListStateConfigurationsRequest::~ListStateConfigurationsRequest()
|
||||
{}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getStateConfigurationIds()const
|
||||
{
|
||||
return stateConfigurationIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListStateConfigurationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListStateConfigurationsRequest;
|
||||
|
||||
ListStateConfigurationsRequest::ListStateConfigurationsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListStateConfigurations") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setStateConfigurationIds(const std::string& stateConfigurationIds)
|
||||
{
|
||||
stateConfigurationIds_ = stateConfigurationIds;
|
||||
setParameter("StateConfigurationIds", stateConfigurationIds);
|
||||
ListStateConfigurationsRequest::~ListStateConfigurationsRequest() {}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getStateConfigurationIds() const {
|
||||
return stateConfigurationIds_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListStateConfigurationsRequest::setStateConfigurationIds(const std::string &stateConfigurationIds) {
|
||||
stateConfigurationIds_ = stateConfigurationIds;
|
||||
setParameter(std::string("StateConfigurationIds"), stateConfigurationIds);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string ListStateConfigurationsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
void ListStateConfigurationsRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
std::string ListStateConfigurationsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListStateConfigurationsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListStateConfigurationsRequest::getTemplateVersion() const {
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListStateConfigurationsRequest::setTemplateVersion(const std::string &templateVersion) {
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter(std::string("TemplateVersion"), templateVersion);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListStateConfigurationsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListStateConfigurationsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setMaxResults(const std::string& maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", maxResults);
|
||||
std::string ListStateConfigurationsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
void ListStateConfigurationsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
int ListStateConfigurationsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsRequest::getTemplateName() const {
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ListStateConfigurationsRequest::setTemplateName(const std::string &templateName) {
|
||||
templateName_ = templateName;
|
||||
setParameter(std::string("TemplateName"), templateName);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,34 @@ void ListStateConfigurationsResult::parse(const std::string &payload)
|
||||
for (auto valueStateConfigurationsStateConfiguration : allStateConfigurationsNode)
|
||||
{
|
||||
StateConfiguration stateConfigurationsObject;
|
||||
if(!valueStateConfigurationsStateConfiguration["UpdateTime"].isNull())
|
||||
stateConfigurationsObject.updateTime = valueStateConfigurationsStateConfiguration["UpdateTime"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["CreateTime"].isNull())
|
||||
stateConfigurationsObject.createTime = valueStateConfigurationsStateConfiguration["CreateTime"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Description"].isNull())
|
||||
stateConfigurationsObject.description = valueStateConfigurationsStateConfiguration["Description"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Targets"].isNull())
|
||||
stateConfigurationsObject.targets = valueStateConfigurationsStateConfiguration["Targets"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Tags"].isNull())
|
||||
stateConfigurationsObject.tags = valueStateConfigurationsStateConfiguration["Tags"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["StateConfigurationId"].isNull())
|
||||
stateConfigurationsObject.stateConfigurationId = valueStateConfigurationsStateConfiguration["StateConfigurationId"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["TemplateId"].isNull())
|
||||
stateConfigurationsObject.templateId = valueStateConfigurationsStateConfiguration["TemplateId"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["ScheduleExpression"].isNull())
|
||||
stateConfigurationsObject.scheduleExpression = valueStateConfigurationsStateConfiguration["ScheduleExpression"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["TemplateName"].isNull())
|
||||
stateConfigurationsObject.templateName = valueStateConfigurationsStateConfiguration["TemplateName"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["TemplateVersion"].isNull())
|
||||
stateConfigurationsObject.templateVersion = valueStateConfigurationsStateConfiguration["TemplateVersion"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Parameters"].isNull())
|
||||
stateConfigurationsObject.parameters = valueStateConfigurationsStateConfiguration["Parameters"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["ConfigureMode"].isNull())
|
||||
stateConfigurationsObject.configureMode = valueStateConfigurationsStateConfiguration["ConfigureMode"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["ScheduleType"].isNull())
|
||||
stateConfigurationsObject.scheduleType = valueStateConfigurationsStateConfiguration["ScheduleType"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["ScheduleExpression"].isNull())
|
||||
stateConfigurationsObject.scheduleExpression = valueStateConfigurationsStateConfiguration["ScheduleExpression"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Targets"].isNull())
|
||||
stateConfigurationsObject.targets = valueStateConfigurationsStateConfiguration["Targets"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["UpdateTime"].isNull())
|
||||
stateConfigurationsObject.updateTime = valueStateConfigurationsStateConfiguration["UpdateTime"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Tags"].isNull())
|
||||
stateConfigurationsObject.tags = valueStateConfigurationsStateConfiguration["Tags"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Parameters"].isNull())
|
||||
stateConfigurationsObject.parameters = valueStateConfigurationsStateConfiguration["Parameters"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["Description"].isNull())
|
||||
stateConfigurationsObject.description = valueStateConfigurationsStateConfiguration["Description"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["ResourceGroupId"].isNull())
|
||||
stateConfigurationsObject.resourceGroupId = valueStateConfigurationsStateConfiguration["ResourceGroupId"].asString();
|
||||
if(!valueStateConfigurationsStateConfiguration["TemplateId"].isNull())
|
||||
stateConfigurationsObject.templateId = valueStateConfigurationsStateConfiguration["TemplateId"].asString();
|
||||
stateConfigurations_.push_back(stateConfigurationsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagKeysRequest;
|
||||
|
||||
ListTagKeysRequest::ListTagKeysRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagKeys")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagKeysRequest::~ListTagKeysRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagKeysRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagKeysRequest;
|
||||
|
||||
ListTagKeysRequest::ListTagKeysRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListTagKeys") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
ListTagKeysRequest::~ListTagKeysRequest() {}
|
||||
|
||||
std::string ListTagKeysRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string ListTagKeysRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListTagKeysRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListTagKeysRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListTagKeysRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListTagKeysRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListTagKeysRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTagKeysRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListTagKeysRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListTagKeysRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void ListTagKeysResult::parse(const std::string &payload)
|
||||
auto allKeys = value["Keys"]["Key"];
|
||||
for (const auto &item : allKeys)
|
||||
keys_.push_back(item.asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/oos/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListTagResources") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListTagResourcesRequest::setTags(std::map<std::string, std::string> tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListTagResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListTagResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(const std::map<std::string, std::string>& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setJsonParameters("ResourceIds", resourceIds);
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getResourceIds() const {
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(std::map<std::string, std::string> resourceIds) {
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter(std::string("ResourceIds"), resourceIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,14 +43,14 @@ void ListTagResourcesResult::parse(const std::string &payload)
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -1,84 +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/oos/model/ListTagValuesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagValuesRequest;
|
||||
|
||||
ListTagValuesRequest::ListTagValuesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagValues")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagValuesRequest::~ListTagValuesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagValuesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagValuesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagValuesRequest;
|
||||
|
||||
ListTagValuesRequest::ListTagValuesRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListTagValues") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
ListTagValuesRequest::~ListTagValuesRequest() {}
|
||||
|
||||
std::string ListTagValuesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
void ListTagValuesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
std::string ListTagValuesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListTagValuesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListTagValuesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTagValuesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
void ListTagValuesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
int ListTagValuesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
void ListTagValuesRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
std::string ListTagValuesRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user