From 5f2a993b52b36031924fab315e24f1293f546a91 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 28 Oct 2020 09:50:13 +0000 Subject: [PATCH] Support GetParameters, GetParametersByPath, GetSecretParameters, GetSecretParametersByPath. --- CHANGELOG | 3 + oos/CMakeLists.txt | 36 ++ oos/include/alibabacloud/oos/OosClient.h | 72 ++++ .../oos/model/CreateParameterRequest.h | 3 + .../oos/model/CreateParameterResult.h | 1 + .../oos/model/CreateSecretParameterRequest.h | 3 + .../oos/model/CreateSecretParameterResult.h | 2 + .../oos/model/GetInventorySchemaRequest.h | 60 ++++ .../oos/model/GetInventorySchemaResult.h | 64 ++++ .../oos/model/GetParameterResult.h | 1 + .../oos/model/GetParametersByPathRequest.h | 60 ++++ .../oos/model/GetParametersByPathResult.h | 72 ++++ .../oos/model/GetParametersRequest.h | 51 +++ .../oos/model/GetParametersResult.h | 68 ++++ .../oos/model/GetSecretParameterResult.h | 8 +- .../model/GetSecretParametersByPathRequest.h | 63 ++++ .../model/GetSecretParametersByPathResult.h | 73 ++++ .../oos/model/GetSecretParametersRequest.h | 54 +++ .../oos/model/GetSecretParametersResult.h | 69 ++++ .../oos/model/ListInventoryEntriesRequest.h | 67 ++++ .../oos/model/ListInventoryEntriesResult.h | 63 ++++ .../oos/model/ListSecretParametersResult.h | 1 + .../oos/model/SearchInventoryRequest.h | 67 ++++ .../oos/model/SearchInventoryResult.h | 55 +++ .../oos/model/UpdateExecutionRequest.h | 57 +++ .../oos/model/UpdateExecutionResult.h | 49 +++ .../model/UpdateInstanceInformationRequest.h | 72 ++++ .../model/UpdateInstanceInformationResult.h | 49 +++ .../oos/model/UpdateParameterResult.h | 1 + .../oos/model/UpdateSecretParameterResult.h | 2 + oos/src/OosClient.cc | 324 ++++++++++++++++++ oos/src/model/CreateParameterRequest.cc | 11 + oos/src/model/CreateParameterResult.cc | 2 + oos/src/model/CreateSecretParameterRequest.cc | 11 + oos/src/model/CreateSecretParameterResult.cc | 4 + oos/src/model/GetInventorySchemaRequest.cc | 84 +++++ oos/src/model/GetInventorySchemaResult.cc | 76 ++++ oos/src/model/GetParameterResult.cc | 2 + oos/src/model/GetParametersByPathRequest.cc | 84 +++++ oos/src/model/GetParametersByPathResult.cc | 100 ++++++ oos/src/model/GetParametersRequest.cc | 51 +++ oos/src/model/GetParametersResult.cc | 87 +++++ oos/src/model/GetSecretParameterResult.cc | 4 + .../model/GetSecretParametersByPathRequest.cc | 95 +++++ .../model/GetSecretParametersByPathResult.cc | 102 ++++++ oos/src/model/GetSecretParametersRequest.cc | 62 ++++ oos/src/model/GetSecretParametersResult.cc | 89 +++++ oos/src/model/ListInventoryEntriesRequest.cc | 92 +++++ oos/src/model/ListInventoryEntriesResult.cc | 94 +++++ oos/src/model/ListSecretParametersResult.cc | 2 + oos/src/model/SearchInventoryRequest.cc | 94 +++++ oos/src/model/SearchInventoryResult.cc | 66 ++++ oos/src/model/UpdateExecutionRequest.cc | 73 ++++ oos/src/model/UpdateExecutionResult.cc | 44 +++ .../model/UpdateInstanceInformationRequest.cc | 128 +++++++ .../model/UpdateInstanceInformationResult.cc | 44 +++ oos/src/model/UpdateParameterResult.cc | 2 + oos/src/model/UpdateSecretParameterResult.cc | 4 + 58 files changed, 3074 insertions(+), 3 deletions(-) create mode 100644 oos/include/alibabacloud/oos/model/GetInventorySchemaRequest.h create mode 100644 oos/include/alibabacloud/oos/model/GetInventorySchemaResult.h create mode 100644 oos/include/alibabacloud/oos/model/GetParametersByPathRequest.h create mode 100644 oos/include/alibabacloud/oos/model/GetParametersByPathResult.h create mode 100644 oos/include/alibabacloud/oos/model/GetParametersRequest.h create mode 100644 oos/include/alibabacloud/oos/model/GetParametersResult.h create mode 100644 oos/include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h create mode 100644 oos/include/alibabacloud/oos/model/GetSecretParametersByPathResult.h create mode 100644 oos/include/alibabacloud/oos/model/GetSecretParametersRequest.h create mode 100644 oos/include/alibabacloud/oos/model/GetSecretParametersResult.h create mode 100644 oos/include/alibabacloud/oos/model/ListInventoryEntriesRequest.h create mode 100644 oos/include/alibabacloud/oos/model/ListInventoryEntriesResult.h create mode 100644 oos/include/alibabacloud/oos/model/SearchInventoryRequest.h create mode 100644 oos/include/alibabacloud/oos/model/SearchInventoryResult.h create mode 100644 oos/include/alibabacloud/oos/model/UpdateExecutionRequest.h create mode 100644 oos/include/alibabacloud/oos/model/UpdateExecutionResult.h create mode 100644 oos/include/alibabacloud/oos/model/UpdateInstanceInformationRequest.h create mode 100644 oos/include/alibabacloud/oos/model/UpdateInstanceInformationResult.h create mode 100644 oos/src/model/GetInventorySchemaRequest.cc create mode 100644 oos/src/model/GetInventorySchemaResult.cc create mode 100644 oos/src/model/GetParametersByPathRequest.cc create mode 100644 oos/src/model/GetParametersByPathResult.cc create mode 100644 oos/src/model/GetParametersRequest.cc create mode 100644 oos/src/model/GetParametersResult.cc create mode 100644 oos/src/model/GetSecretParametersByPathRequest.cc create mode 100644 oos/src/model/GetSecretParametersByPathResult.cc create mode 100644 oos/src/model/GetSecretParametersRequest.cc create mode 100644 oos/src/model/GetSecretParametersResult.cc create mode 100644 oos/src/model/ListInventoryEntriesRequest.cc create mode 100644 oos/src/model/ListInventoryEntriesResult.cc create mode 100644 oos/src/model/SearchInventoryRequest.cc create mode 100644 oos/src/model/SearchInventoryResult.cc create mode 100644 oos/src/model/UpdateExecutionRequest.cc create mode 100644 oos/src/model/UpdateExecutionResult.cc create mode 100644 oos/src/model/UpdateInstanceInformationRequest.cc create mode 100644 oos/src/model/UpdateInstanceInformationResult.cc diff --git a/CHANGELOG b/CHANGELOG index faff07302..52c4f8f5e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-28 Version: patch +- Support GetParameters, GetParametersByPath, GetSecretParameters, GetSecretParametersByPath. + 2020-10-28 Version: patch - Supported all language sdk. - Fixed some bugs for polardbx. diff --git a/oos/CMakeLists.txt b/oos/CMakeLists.txt index 7d78eca61..fda65d820 100644 --- a/oos/CMakeLists.txt +++ b/oos/CMakeLists.txt @@ -45,10 +45,20 @@ set(oos_public_header_model include/alibabacloud/oos/model/GenerateExecutionPolicyResult.h include/alibabacloud/oos/model/GetExecutionTemplateRequest.h include/alibabacloud/oos/model/GetExecutionTemplateResult.h + include/alibabacloud/oos/model/GetInventorySchemaRequest.h + include/alibabacloud/oos/model/GetInventorySchemaResult.h include/alibabacloud/oos/model/GetParameterRequest.h include/alibabacloud/oos/model/GetParameterResult.h + include/alibabacloud/oos/model/GetParametersRequest.h + include/alibabacloud/oos/model/GetParametersResult.h + include/alibabacloud/oos/model/GetParametersByPathRequest.h + include/alibabacloud/oos/model/GetParametersByPathResult.h include/alibabacloud/oos/model/GetSecretParameterRequest.h include/alibabacloud/oos/model/GetSecretParameterResult.h + include/alibabacloud/oos/model/GetSecretParametersRequest.h + include/alibabacloud/oos/model/GetSecretParametersResult.h + include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h + include/alibabacloud/oos/model/GetSecretParametersByPathResult.h include/alibabacloud/oos/model/GetTemplateRequest.h include/alibabacloud/oos/model/GetTemplateResult.h include/alibabacloud/oos/model/ListActionsRequest.h @@ -59,6 +69,8 @@ set(oos_public_header_model include/alibabacloud/oos/model/ListExecutionRiskyTasksResult.h include/alibabacloud/oos/model/ListExecutionsRequest.h include/alibabacloud/oos/model/ListExecutionsResult.h + include/alibabacloud/oos/model/ListInventoryEntriesRequest.h + include/alibabacloud/oos/model/ListInventoryEntriesResult.h include/alibabacloud/oos/model/ListParameterVersionsRequest.h include/alibabacloud/oos/model/ListParameterVersionsResult.h include/alibabacloud/oos/model/ListParametersRequest.h @@ -83,6 +95,8 @@ set(oos_public_header_model include/alibabacloud/oos/model/ListTemplatesResult.h include/alibabacloud/oos/model/NotifyExecutionRequest.h include/alibabacloud/oos/model/NotifyExecutionResult.h + include/alibabacloud/oos/model/SearchInventoryRequest.h + include/alibabacloud/oos/model/SearchInventoryResult.h include/alibabacloud/oos/model/StartExecutionRequest.h include/alibabacloud/oos/model/StartExecutionResult.h include/alibabacloud/oos/model/TagResourcesRequest.h @@ -91,6 +105,10 @@ set(oos_public_header_model include/alibabacloud/oos/model/TriggerExecutionResult.h include/alibabacloud/oos/model/UntagResourcesRequest.h include/alibabacloud/oos/model/UntagResourcesResult.h + include/alibabacloud/oos/model/UpdateExecutionRequest.h + include/alibabacloud/oos/model/UpdateExecutionResult.h + include/alibabacloud/oos/model/UpdateInstanceInformationRequest.h + include/alibabacloud/oos/model/UpdateInstanceInformationResult.h include/alibabacloud/oos/model/UpdateParameterRequest.h include/alibabacloud/oos/model/UpdateParameterResult.h include/alibabacloud/oos/model/UpdateSecretParameterRequest.h @@ -126,10 +144,20 @@ set(oos_src src/model/GenerateExecutionPolicyResult.cc src/model/GetExecutionTemplateRequest.cc src/model/GetExecutionTemplateResult.cc + src/model/GetInventorySchemaRequest.cc + src/model/GetInventorySchemaResult.cc src/model/GetParameterRequest.cc src/model/GetParameterResult.cc + src/model/GetParametersRequest.cc + src/model/GetParametersResult.cc + src/model/GetParametersByPathRequest.cc + src/model/GetParametersByPathResult.cc src/model/GetSecretParameterRequest.cc src/model/GetSecretParameterResult.cc + src/model/GetSecretParametersRequest.cc + src/model/GetSecretParametersResult.cc + src/model/GetSecretParametersByPathRequest.cc + src/model/GetSecretParametersByPathResult.cc src/model/GetTemplateRequest.cc src/model/GetTemplateResult.cc src/model/ListActionsRequest.cc @@ -140,6 +168,8 @@ set(oos_src src/model/ListExecutionRiskyTasksResult.cc src/model/ListExecutionsRequest.cc src/model/ListExecutionsResult.cc + src/model/ListInventoryEntriesRequest.cc + src/model/ListInventoryEntriesResult.cc src/model/ListParameterVersionsRequest.cc src/model/ListParameterVersionsResult.cc src/model/ListParametersRequest.cc @@ -164,6 +194,8 @@ set(oos_src src/model/ListTemplatesResult.cc src/model/NotifyExecutionRequest.cc src/model/NotifyExecutionResult.cc + src/model/SearchInventoryRequest.cc + src/model/SearchInventoryResult.cc src/model/StartExecutionRequest.cc src/model/StartExecutionResult.cc src/model/TagResourcesRequest.cc @@ -172,6 +204,10 @@ set(oos_src src/model/TriggerExecutionResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc + src/model/UpdateExecutionRequest.cc + src/model/UpdateExecutionResult.cc + src/model/UpdateInstanceInformationRequest.cc + src/model/UpdateInstanceInformationResult.cc src/model/UpdateParameterRequest.cc src/model/UpdateParameterResult.cc src/model/UpdateSecretParameterRequest.cc diff --git a/oos/include/alibabacloud/oos/OosClient.h b/oos/include/alibabacloud/oos/OosClient.h index 61195bece..f84b638d0 100644 --- a/oos/include/alibabacloud/oos/OosClient.h +++ b/oos/include/alibabacloud/oos/OosClient.h @@ -46,10 +46,20 @@ #include "model/GenerateExecutionPolicyResult.h" #include "model/GetExecutionTemplateRequest.h" #include "model/GetExecutionTemplateResult.h" +#include "model/GetInventorySchemaRequest.h" +#include "model/GetInventorySchemaResult.h" #include "model/GetParameterRequest.h" #include "model/GetParameterResult.h" +#include "model/GetParametersRequest.h" +#include "model/GetParametersResult.h" +#include "model/GetParametersByPathRequest.h" +#include "model/GetParametersByPathResult.h" #include "model/GetSecretParameterRequest.h" #include "model/GetSecretParameterResult.h" +#include "model/GetSecretParametersRequest.h" +#include "model/GetSecretParametersResult.h" +#include "model/GetSecretParametersByPathRequest.h" +#include "model/GetSecretParametersByPathResult.h" #include "model/GetTemplateRequest.h" #include "model/GetTemplateResult.h" #include "model/ListActionsRequest.h" @@ -60,6 +70,8 @@ #include "model/ListExecutionRiskyTasksResult.h" #include "model/ListExecutionsRequest.h" #include "model/ListExecutionsResult.h" +#include "model/ListInventoryEntriesRequest.h" +#include "model/ListInventoryEntriesResult.h" #include "model/ListParameterVersionsRequest.h" #include "model/ListParameterVersionsResult.h" #include "model/ListParametersRequest.h" @@ -84,6 +96,8 @@ #include "model/ListTemplatesResult.h" #include "model/NotifyExecutionRequest.h" #include "model/NotifyExecutionResult.h" +#include "model/SearchInventoryRequest.h" +#include "model/SearchInventoryResult.h" #include "model/StartExecutionRequest.h" #include "model/StartExecutionResult.h" #include "model/TagResourcesRequest.h" @@ -92,6 +106,10 @@ #include "model/TriggerExecutionResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/UpdateExecutionRequest.h" +#include "model/UpdateExecutionResult.h" +#include "model/UpdateInstanceInformationRequest.h" +#include "model/UpdateInstanceInformationResult.h" #include "model/UpdateParameterRequest.h" #include "model/UpdateParameterResult.h" #include "model/UpdateSecretParameterRequest.h" @@ -145,12 +163,27 @@ namespace AlibabaCloud typedef Outcome GetExecutionTemplateOutcome; typedef std::future GetExecutionTemplateOutcomeCallable; typedef std::function&)> GetExecutionTemplateAsyncHandler; + typedef Outcome GetInventorySchemaOutcome; + typedef std::future GetInventorySchemaOutcomeCallable; + typedef std::function&)> GetInventorySchemaAsyncHandler; typedef Outcome GetParameterOutcome; typedef std::future GetParameterOutcomeCallable; typedef std::function&)> GetParameterAsyncHandler; + typedef Outcome GetParametersOutcome; + typedef std::future GetParametersOutcomeCallable; + typedef std::function&)> GetParametersAsyncHandler; + typedef Outcome GetParametersByPathOutcome; + typedef std::future GetParametersByPathOutcomeCallable; + typedef std::function&)> GetParametersByPathAsyncHandler; typedef Outcome GetSecretParameterOutcome; typedef std::future GetSecretParameterOutcomeCallable; typedef std::function&)> GetSecretParameterAsyncHandler; + typedef Outcome GetSecretParametersOutcome; + typedef std::future GetSecretParametersOutcomeCallable; + typedef std::function&)> GetSecretParametersAsyncHandler; + typedef Outcome GetSecretParametersByPathOutcome; + typedef std::future GetSecretParametersByPathOutcomeCallable; + typedef std::function&)> GetSecretParametersByPathAsyncHandler; typedef Outcome GetTemplateOutcome; typedef std::future GetTemplateOutcomeCallable; typedef std::function&)> GetTemplateAsyncHandler; @@ -166,6 +199,9 @@ namespace AlibabaCloud typedef Outcome ListExecutionsOutcome; typedef std::future ListExecutionsOutcomeCallable; typedef std::function&)> ListExecutionsAsyncHandler; + typedef Outcome ListInventoryEntriesOutcome; + typedef std::future ListInventoryEntriesOutcomeCallable; + typedef std::function&)> ListInventoryEntriesAsyncHandler; typedef Outcome ListParameterVersionsOutcome; typedef std::future ListParameterVersionsOutcomeCallable; typedef std::function&)> ListParameterVersionsAsyncHandler; @@ -202,6 +238,9 @@ namespace AlibabaCloud typedef Outcome NotifyExecutionOutcome; typedef std::future NotifyExecutionOutcomeCallable; typedef std::function&)> NotifyExecutionAsyncHandler; + typedef Outcome SearchInventoryOutcome; + typedef std::future SearchInventoryOutcomeCallable; + typedef std::function&)> SearchInventoryAsyncHandler; typedef Outcome StartExecutionOutcome; typedef std::future StartExecutionOutcomeCallable; typedef std::function&)> StartExecutionAsyncHandler; @@ -214,6 +253,12 @@ namespace AlibabaCloud typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateExecutionOutcome; + typedef std::future UpdateExecutionOutcomeCallable; + typedef std::function&)> UpdateExecutionAsyncHandler; + typedef Outcome UpdateInstanceInformationOutcome; + typedef std::future UpdateInstanceInformationOutcomeCallable; + typedef std::function&)> UpdateInstanceInformationAsyncHandler; typedef Outcome UpdateParameterOutcome; typedef std::future UpdateParameterOutcomeCallable; typedef std::function&)> UpdateParameterAsyncHandler; @@ -267,12 +312,27 @@ namespace AlibabaCloud GetExecutionTemplateOutcome getExecutionTemplate(const Model::GetExecutionTemplateRequest &request)const; void getExecutionTemplateAsync(const Model::GetExecutionTemplateRequest& request, const GetExecutionTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetExecutionTemplateOutcomeCallable getExecutionTemplateCallable(const Model::GetExecutionTemplateRequest& request) const; + GetInventorySchemaOutcome getInventorySchema(const Model::GetInventorySchemaRequest &request)const; + void getInventorySchemaAsync(const Model::GetInventorySchemaRequest& request, const GetInventorySchemaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInventorySchemaOutcomeCallable getInventorySchemaCallable(const Model::GetInventorySchemaRequest& request) const; GetParameterOutcome getParameter(const Model::GetParameterRequest &request)const; void getParameterAsync(const Model::GetParameterRequest& request, const GetParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetParameterOutcomeCallable getParameterCallable(const Model::GetParameterRequest& request) const; + GetParametersOutcome getParameters(const Model::GetParametersRequest &request)const; + void getParametersAsync(const Model::GetParametersRequest& request, const GetParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetParametersOutcomeCallable getParametersCallable(const Model::GetParametersRequest& request) const; + GetParametersByPathOutcome getParametersByPath(const Model::GetParametersByPathRequest &request)const; + void getParametersByPathAsync(const Model::GetParametersByPathRequest& request, const GetParametersByPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetParametersByPathOutcomeCallable getParametersByPathCallable(const Model::GetParametersByPathRequest& request) const; GetSecretParameterOutcome getSecretParameter(const Model::GetSecretParameterRequest &request)const; void getSecretParameterAsync(const Model::GetSecretParameterRequest& request, const GetSecretParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSecretParameterOutcomeCallable getSecretParameterCallable(const Model::GetSecretParameterRequest& request) const; + GetSecretParametersOutcome getSecretParameters(const Model::GetSecretParametersRequest &request)const; + void getSecretParametersAsync(const Model::GetSecretParametersRequest& request, const GetSecretParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSecretParametersOutcomeCallable getSecretParametersCallable(const Model::GetSecretParametersRequest& request) const; + GetSecretParametersByPathOutcome getSecretParametersByPath(const Model::GetSecretParametersByPathRequest &request)const; + void getSecretParametersByPathAsync(const Model::GetSecretParametersByPathRequest& request, const GetSecretParametersByPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSecretParametersByPathOutcomeCallable getSecretParametersByPathCallable(const Model::GetSecretParametersByPathRequest& request) const; GetTemplateOutcome getTemplate(const Model::GetTemplateRequest &request)const; void getTemplateAsync(const Model::GetTemplateRequest& request, const GetTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTemplateOutcomeCallable getTemplateCallable(const Model::GetTemplateRequest& request) const; @@ -288,6 +348,9 @@ namespace AlibabaCloud ListExecutionsOutcome listExecutions(const Model::ListExecutionsRequest &request)const; void listExecutionsAsync(const Model::ListExecutionsRequest& request, const ListExecutionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListExecutionsOutcomeCallable listExecutionsCallable(const Model::ListExecutionsRequest& request) const; + ListInventoryEntriesOutcome listInventoryEntries(const Model::ListInventoryEntriesRequest &request)const; + void listInventoryEntriesAsync(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInventoryEntriesOutcomeCallable listInventoryEntriesCallable(const Model::ListInventoryEntriesRequest& request) const; ListParameterVersionsOutcome listParameterVersions(const Model::ListParameterVersionsRequest &request)const; void listParameterVersionsAsync(const Model::ListParameterVersionsRequest& request, const ListParameterVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListParameterVersionsOutcomeCallable listParameterVersionsCallable(const Model::ListParameterVersionsRequest& request) const; @@ -324,6 +387,9 @@ namespace AlibabaCloud NotifyExecutionOutcome notifyExecution(const Model::NotifyExecutionRequest &request)const; void notifyExecutionAsync(const Model::NotifyExecutionRequest& request, const NotifyExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; NotifyExecutionOutcomeCallable notifyExecutionCallable(const Model::NotifyExecutionRequest& request) const; + SearchInventoryOutcome searchInventory(const Model::SearchInventoryRequest &request)const; + void searchInventoryAsync(const Model::SearchInventoryRequest& request, const SearchInventoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchInventoryOutcomeCallable searchInventoryCallable(const Model::SearchInventoryRequest& request) const; StartExecutionOutcome startExecution(const Model::StartExecutionRequest &request)const; void startExecutionAsync(const Model::StartExecutionRequest& request, const StartExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartExecutionOutcomeCallable startExecutionCallable(const Model::StartExecutionRequest& request) const; @@ -336,6 +402,12 @@ namespace AlibabaCloud UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UpdateExecutionOutcome updateExecution(const Model::UpdateExecutionRequest &request)const; + void updateExecutionAsync(const Model::UpdateExecutionRequest& request, const UpdateExecutionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateExecutionOutcomeCallable updateExecutionCallable(const Model::UpdateExecutionRequest& request) const; + UpdateInstanceInformationOutcome updateInstanceInformation(const Model::UpdateInstanceInformationRequest &request)const; + void updateInstanceInformationAsync(const Model::UpdateInstanceInformationRequest& request, const UpdateInstanceInformationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateInstanceInformationOutcomeCallable updateInstanceInformationCallable(const Model::UpdateInstanceInformationRequest& request) const; UpdateParameterOutcome updateParameter(const Model::UpdateParameterRequest &request)const; void updateParameterAsync(const Model::UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateParameterOutcomeCallable updateParameterCallable(const Model::UpdateParameterRequest& request) const; diff --git a/oos/include/alibabacloud/oos/model/CreateParameterRequest.h b/oos/include/alibabacloud/oos/model/CreateParameterRequest.h index 2e3676bb4..d5212f25a 100644 --- a/oos/include/alibabacloud/oos/model/CreateParameterRequest.h +++ b/oos/include/alibabacloud/oos/model/CreateParameterRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setDescription(const std::string& description); std::string getType()const; void setType(const std::string& type); + std::string getConstraints()const; + void setConstraints(const std::string& constraints); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getName()const; @@ -52,6 +54,7 @@ namespace AlibabaCloud std::string clientToken_; std::string description_; std::string type_; + std::string constraints_; std::string regionId_; std::string name_; std::string value_; diff --git a/oos/include/alibabacloud/oos/model/CreateParameterResult.h b/oos/include/alibabacloud/oos/model/CreateParameterResult.h index a5f796a70..abde89273 100644 --- a/oos/include/alibabacloud/oos/model/CreateParameterResult.h +++ b/oos/include/alibabacloud/oos/model/CreateParameterResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string type; std::string createdBy; std::string description; + std::string constraints; std::string updatedDate; int parameterVersion; std::string createdDate; diff --git a/oos/include/alibabacloud/oos/model/CreateSecretParameterRequest.h b/oos/include/alibabacloud/oos/model/CreateSecretParameterRequest.h index 1e059cdac..d995ffcf3 100644 --- a/oos/include/alibabacloud/oos/model/CreateSecretParameterRequest.h +++ b/oos/include/alibabacloud/oos/model/CreateSecretParameterRequest.h @@ -43,6 +43,8 @@ namespace AlibabaCloud void setKeyId(const std::string& keyId); std::string getType()const; void setType(const std::string& type); + std::string getConstraints()const; + void setConstraints(const std::string& constraints); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getName()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud std::string description_; std::string keyId_; std::string type_; + std::string constraints_; std::string regionId_; std::string name_; std::string value_; diff --git a/oos/include/alibabacloud/oos/model/CreateSecretParameterResult.h b/oos/include/alibabacloud/oos/model/CreateSecretParameterResult.h index 151476f75..cf78a6c8e 100644 --- a/oos/include/alibabacloud/oos/model/CreateSecretParameterResult.h +++ b/oos/include/alibabacloud/oos/model/CreateSecretParameterResult.h @@ -38,9 +38,11 @@ namespace AlibabaCloud std::string type; std::string createdBy; std::string description; + std::string constraints; std::string updatedDate; int parameterVersion; std::string createdDate; + std::string keyId; std::string id; std::string name; std::string shareType; diff --git a/oos/include/alibabacloud/oos/model/GetInventorySchemaRequest.h b/oos/include/alibabacloud/oos/model/GetInventorySchemaRequest.h new file mode 100644 index 000000000..a55a800b8 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetInventorySchemaRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMAREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetInventorySchemaRequest : public RpcServiceRequest + { + + public: + GetInventorySchemaRequest(); + ~GetInventorySchemaRequest(); + + bool getAggregator()const; + void setAggregator(bool aggregator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + std::string getTypeName()const; + void setTypeName(const std::string& typeName); + + private: + bool aggregator_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + std::string typeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMAREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetInventorySchemaResult.h b/oos/include/alibabacloud/oos/model/GetInventorySchemaResult.h new file mode 100644 index 000000000..5e58d1669 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetInventorySchemaResult.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMARESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetInventorySchemaResult : public ServiceResult + { + public: + struct Schema + { + struct Attribute + { + std::string dataType; + std::string name; + }; + std::string typeName; + std::string version; + std::vector attributes; + }; + + + GetInventorySchemaResult(); + explicit GetInventorySchemaResult(const std::string &payload); + ~GetInventorySchemaResult(); + std::string getNextToken()const; + std::vector getSchemas()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector schemas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETINVENTORYSCHEMARESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetParameterResult.h b/oos/include/alibabacloud/oos/model/GetParameterResult.h index 7dec9e03a..9da34f66c 100644 --- a/oos/include/alibabacloud/oos/model/GetParameterResult.h +++ b/oos/include/alibabacloud/oos/model/GetParameterResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string type; std::string createdBy; std::string description; + std::string constraints; std::string updatedDate; int parameterVersion; std::string createdDate; diff --git a/oos/include/alibabacloud/oos/model/GetParametersByPathRequest.h b/oos/include/alibabacloud/oos/model/GetParametersByPathRequest.h new file mode 100644 index 000000000..451d84a74 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetParametersByPathRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetParametersByPathRequest : public RpcServiceRequest + { + + public: + GetParametersByPathRequest(); + ~GetParametersByPathRequest(); + + bool getRecursive()const; + void setRecursive(bool recursive); + std::string getPath()const; + void setPath(const std::string& path); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + bool recursive_; + std::string path_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetParametersByPathResult.h b/oos/include/alibabacloud/oos/model/GetParametersByPathResult.h new file mode 100644 index 000000000..ffe86e653 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetParametersByPathResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetParametersByPathResult : public ServiceResult + { + public: + struct _Parameter + { + std::string updatedBy; + std::string type; + std::string createdBy; + std::string description; + std::string constraints; + std::string updatedDate; + int parameterVersion; + std::string createdDate; + std::string value; + std::string id; + std::string name; + std::string shareType; + }; + + + GetParametersByPathResult(); + explicit GetParametersByPathResult(const std::string &payload); + ~GetParametersByPathResult(); + int getTotalCount()const; + std::vector<_Parameter> getParameters()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector<_Parameter> parameters_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERSBYPATHRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetParametersRequest.h b/oos/include/alibabacloud/oos/model/GetParametersRequest.h new file mode 100644 index 000000000..2bf47829b --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetParametersRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetParametersRequest : public RpcServiceRequest + { + + public: + GetParametersRequest(); + ~GetParametersRequest(); + + std::string getNames()const; + void setNames(const std::string& names); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string names_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetParametersResult.h b/oos/include/alibabacloud/oos/model/GetParametersResult.h new file mode 100644 index 000000000..0fcf63efd --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetParametersResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETPARAMETERSRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetParametersResult : public ServiceResult + { + public: + struct _Parameter + { + std::string updatedBy; + std::string type; + std::string createdBy; + std::string description; + std::string constraints; + std::string updatedDate; + int parameterVersion; + std::string createdDate; + std::string value; + std::string id; + std::string name; + std::string shareType; + }; + + + GetParametersResult(); + explicit GetParametersResult(const std::string &payload); + ~GetParametersResult(); + std::vector<_Parameter> getParameters()const; + std::vector getInvalidParameters()const; + + protected: + void parse(const std::string &payload); + private: + std::vector<_Parameter> parameters_; + std::vector invalidParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetSecretParameterResult.h b/oos/include/alibabacloud/oos/model/GetSecretParameterResult.h index 2ae966297..8a32f3050 100644 --- a/oos/include/alibabacloud/oos/model/GetSecretParameterResult.h +++ b/oos/include/alibabacloud/oos/model/GetSecretParameterResult.h @@ -34,16 +34,18 @@ namespace AlibabaCloud public: struct _Parameter { - std::string updatedBy; - std::string type; std::string createdBy; std::string description; std::string updatedDate; + std::string keyId; + std::string name; + std::string updatedBy; + std::string type; + std::string constraints; int parameterVersion; std::string createdDate; std::string value; std::string id; - std::string name; std::string shareType; }; diff --git a/oos/include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h b/oos/include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h new file mode 100644 index 000000000..e7ae98d19 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetSecretParametersByPathRequest : public RpcServiceRequest + { + + public: + GetSecretParametersByPathRequest(); + ~GetSecretParametersByPathRequest(); + + bool getWithDecryption()const; + void setWithDecryption(bool withDecryption); + bool getRecursive()const; + void setRecursive(bool recursive); + std::string getPath()const; + void setPath(const std::string& path); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + bool withDecryption_; + bool recursive_; + std::string path_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetSecretParametersByPathResult.h b/oos/include/alibabacloud/oos/model/GetSecretParametersByPathResult.h new file mode 100644 index 000000000..79df2cb64 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetSecretParametersByPathResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetSecretParametersByPathResult : public ServiceResult + { + public: + struct _Parameter + { + std::string createdBy; + std::string description; + std::string updatedDate; + std::string keyId; + std::string name; + std::string updatedBy; + std::string type; + std::string constraints; + int parameterVersion; + std::string createdDate; + std::string value; + std::string id; + std::string shareType; + }; + + + GetSecretParametersByPathResult(); + explicit GetSecretParametersByPathResult(const std::string &payload); + ~GetSecretParametersByPathResult(); + int getTotalCount()const; + std::vector<_Parameter> getParameters()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector<_Parameter> parameters_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSBYPATHRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetSecretParametersRequest.h b/oos/include/alibabacloud/oos/model/GetSecretParametersRequest.h new file mode 100644 index 000000000..0718002ad --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetSecretParametersRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetSecretParametersRequest : public RpcServiceRequest + { + + public: + GetSecretParametersRequest(); + ~GetSecretParametersRequest(); + + bool getWithDecryption()const; + void setWithDecryption(bool withDecryption); + std::string getNames()const; + void setNames(const std::string& names); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + bool withDecryption_; + std::string names_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/GetSecretParametersResult.h b/oos/include/alibabacloud/oos/model/GetSecretParametersResult.h new file mode 100644 index 000000000..83d8da66d --- /dev/null +++ b/oos/include/alibabacloud/oos/model/GetSecretParametersResult.h @@ -0,0 +1,69 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT GetSecretParametersResult : public ServiceResult + { + public: + struct _Parameter + { + std::string createdBy; + std::string description; + std::string updatedDate; + std::string keyId; + std::string name; + std::string updatedBy; + std::string type; + std::string constraints; + int parameterVersion; + std::string createdDate; + std::string value; + std::string id; + std::string shareType; + }; + + + GetSecretParametersResult(); + explicit GetSecretParametersResult(const std::string &payload); + ~GetSecretParametersResult(); + std::vector<_Parameter> getParameters()const; + std::vector getInvalidParameters()const; + + protected: + void parse(const std::string &payload); + private: + std::vector<_Parameter> parameters_; + std::vector invalidParameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/ListInventoryEntriesRequest.h b/oos/include/alibabacloud/oos/model/ListInventoryEntriesRequest.h new file mode 100644 index 000000000..ecc465300 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/ListInventoryEntriesRequest.h @@ -0,0 +1,67 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT ListInventoryEntriesRequest : public RpcServiceRequest + { + public: + struct Filter + { + std::string name; + std::vector value; + std::string _operator; + }; + + public: + ListInventoryEntriesRequest(); + ~ListInventoryEntriesRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + std::string getTypeName()const; + void setTypeName(const std::string& typeName); + + private: + std::vector filter_; + std::string instanceId_; + std::string nextToken_; + int maxResults_; + std::string typeName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/ListInventoryEntriesResult.h b/oos/include/alibabacloud/oos/model/ListInventoryEntriesResult.h new file mode 100644 index 000000000..87d834d3b --- /dev/null +++ b/oos/include/alibabacloud/oos/model/ListInventoryEntriesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT ListInventoryEntriesResult : public ServiceResult + { + public: + + + ListInventoryEntriesResult(); + explicit ListInventoryEntriesResult(const std::string &payload); + ~ListInventoryEntriesResult(); + std::string getTypeName()const; + std::string getCaptureTime()const; + std::string getNextToken()const; + std::string getSchemaVersion()const; + std::string getInstanceId()const; + int getMaxResults()const; + std::vector getEntries()const; + + protected: + void parse(const std::string &payload); + private: + std::string typeName_; + std::string captureTime_; + std::string nextToken_; + std::string schemaVersion_; + std::string instanceId_; + int maxResults_; + std::vector entries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_LISTINVENTORYENTRIESRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/ListSecretParametersResult.h b/oos/include/alibabacloud/oos/model/ListSecretParametersResult.h index 148c17e85..296d1920c 100644 --- a/oos/include/alibabacloud/oos/model/ListSecretParametersResult.h +++ b/oos/include/alibabacloud/oos/model/ListSecretParametersResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string updatedDate; std::string parameterVersion; std::string createdDate; + std::string keyId; std::string id; std::string name; std::string shareType; diff --git a/oos/include/alibabacloud/oos/model/SearchInventoryRequest.h b/oos/include/alibabacloud/oos/model/SearchInventoryRequest.h new file mode 100644 index 000000000..fb9789734 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/SearchInventoryRequest.h @@ -0,0 +1,67 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT SearchInventoryRequest : public RpcServiceRequest + { + public: + struct Filter + { + std::string name; + std::vector value; + std::string _operator; + }; + + public: + SearchInventoryRequest(); + ~SearchInventoryRequest(); + + std::vector getAggregator()const; + void setAggregator(const std::vector& aggregator); + std::vector getFilter()const; + void setFilter(const std::vector& filter); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + int getMaxResults()const; + void setMaxResults(int maxResults); + + private: + std::vector aggregator_; + std::vector filter_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/SearchInventoryResult.h b/oos/include/alibabacloud/oos/model/SearchInventoryResult.h new file mode 100644 index 000000000..a67155a56 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/SearchInventoryResult.h @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT SearchInventoryResult : public ServiceResult + { + public: + + + SearchInventoryResult(); + explicit SearchInventoryResult(const std::string &payload); + ~SearchInventoryResult(); + std::string getNextToken()const; + int getMaxResults()const; + std::vector getEntities()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + int maxResults_; + std::vector entities_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_SEARCHINVENTORYRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/UpdateExecutionRequest.h b/oos/include/alibabacloud/oos/model/UpdateExecutionRequest.h new file mode 100644 index 000000000..55471af92 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/UpdateExecutionRequest.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT UpdateExecutionRequest : public RpcServiceRequest + { + + public: + UpdateExecutionRequest(); + ~UpdateExecutionRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getExecutionId()const; + void setExecutionId(const std::string& executionId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getParameters()const; + void setParameters(const std::string& parameters); + + private: + std::string clientToken_; + std::string executionId_; + std::string regionId_; + std::string parameters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/UpdateExecutionResult.h b/oos/include/alibabacloud/oos/model/UpdateExecutionResult.h new file mode 100644 index 000000000..0d1d7efda --- /dev/null +++ b/oos/include/alibabacloud/oos/model/UpdateExecutionResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT UpdateExecutionResult : public ServiceResult + { + public: + + + UpdateExecutionResult(); + explicit UpdateExecutionResult(const std::string &payload); + ~UpdateExecutionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEEXECUTIONRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/UpdateInstanceInformationRequest.h b/oos/include/alibabacloud/oos/model/UpdateInstanceInformationRequest.h new file mode 100644 index 000000000..9badc3a05 --- /dev/null +++ b/oos/include/alibabacloud/oos/model/UpdateInstanceInformationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONREQUEST_H_ +#define ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT UpdateInstanceInformationRequest : public RpcServiceRequest + { + + public: + UpdateInstanceInformationRequest(); + ~UpdateInstanceInformationRequest(); + + std::string getAgentVersion()const; + void setAgentVersion(const std::string& agentVersion); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + std::string getComputerName()const; + void setComputerName(const std::string& computerName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPlatformName()const; + void setPlatformName(const std::string& platformName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getAgentName()const; + void setAgentName(const std::string& agentName); + std::string getPlatformType()const; + void setPlatformType(const std::string& platformType); + std::string getPlatformVersion()const; + void setPlatformVersion(const std::string& platformVersion); + + private: + std::string agentVersion_; + std::string ipAddress_; + std::string computerName_; + std::string regionId_; + std::string platformName_; + std::string instanceId_; + std::string agentName_; + std::string platformType_; + std::string platformVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONREQUEST_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/UpdateInstanceInformationResult.h b/oos/include/alibabacloud/oos/model/UpdateInstanceInformationResult.h new file mode 100644 index 000000000..12f5276fb --- /dev/null +++ b/oos/include/alibabacloud/oos/model/UpdateInstanceInformationResult.h @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONRESULT_H_ +#define ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Oos + { + namespace Model + { + class ALIBABACLOUD_OOS_EXPORT UpdateInstanceInformationResult : public ServiceResult + { + public: + + + UpdateInstanceInformationResult(); + explicit UpdateInstanceInformationResult(const std::string &payload); + ~UpdateInstanceInformationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEINSTANCEINFORMATIONRESULT_H_ \ No newline at end of file diff --git a/oos/include/alibabacloud/oos/model/UpdateParameterResult.h b/oos/include/alibabacloud/oos/model/UpdateParameterResult.h index 99c968f69..3b66cc1d1 100644 --- a/oos/include/alibabacloud/oos/model/UpdateParameterResult.h +++ b/oos/include/alibabacloud/oos/model/UpdateParameterResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string type; std::string createdBy; std::string description; + std::string constraints; std::string updatedDate; int parameterVersion; std::string createdDate; diff --git a/oos/include/alibabacloud/oos/model/UpdateSecretParameterResult.h b/oos/include/alibabacloud/oos/model/UpdateSecretParameterResult.h index f737a41e6..c6e40cb57 100644 --- a/oos/include/alibabacloud/oos/model/UpdateSecretParameterResult.h +++ b/oos/include/alibabacloud/oos/model/UpdateSecretParameterResult.h @@ -38,9 +38,11 @@ namespace AlibabaCloud std::string type; std::string createdBy; std::string description; + std::string constraints; std::string updatedDate; int parameterVersion; std::string createdDate; + std::string keyId; std::string id; std::string name; std::string shareType; diff --git a/oos/src/OosClient.cc b/oos/src/OosClient.cc index 35cee4e23..5b34ab932 100644 --- a/oos/src/OosClient.cc +++ b/oos/src/OosClient.cc @@ -483,6 +483,42 @@ OosClient::GetExecutionTemplateOutcomeCallable OosClient::getExecutionTemplateCa return task->get_future(); } +OosClient::GetInventorySchemaOutcome OosClient::getInventorySchema(const GetInventorySchemaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInventorySchemaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInventorySchemaOutcome(GetInventorySchemaResult(outcome.result())); + else + return GetInventorySchemaOutcome(outcome.error()); +} + +void OosClient::getInventorySchemaAsync(const GetInventorySchemaRequest& request, const GetInventorySchemaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInventorySchema(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::GetInventorySchemaOutcomeCallable OosClient::getInventorySchemaCallable(const GetInventorySchemaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInventorySchema(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OosClient::GetParameterOutcome OosClient::getParameter(const GetParameterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +555,78 @@ OosClient::GetParameterOutcomeCallable OosClient::getParameterCallable(const Get return task->get_future(); } +OosClient::GetParametersOutcome OosClient::getParameters(const GetParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetParametersOutcome(GetParametersResult(outcome.result())); + else + return GetParametersOutcome(outcome.error()); +} + +void OosClient::getParametersAsync(const GetParametersRequest& request, const GetParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::GetParametersOutcomeCallable OosClient::getParametersCallable(const GetParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OosClient::GetParametersByPathOutcome OosClient::getParametersByPath(const GetParametersByPathRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetParametersByPathOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetParametersByPathOutcome(GetParametersByPathResult(outcome.result())); + else + return GetParametersByPathOutcome(outcome.error()); +} + +void OosClient::getParametersByPathAsync(const GetParametersByPathRequest& request, const GetParametersByPathAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getParametersByPath(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::GetParametersByPathOutcomeCallable OosClient::getParametersByPathCallable(const GetParametersByPathRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getParametersByPath(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OosClient::GetSecretParameterOutcome OosClient::getSecretParameter(const GetSecretParameterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +663,78 @@ OosClient::GetSecretParameterOutcomeCallable OosClient::getSecretParameterCallab return task->get_future(); } +OosClient::GetSecretParametersOutcome OosClient::getSecretParameters(const GetSecretParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSecretParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSecretParametersOutcome(GetSecretParametersResult(outcome.result())); + else + return GetSecretParametersOutcome(outcome.error()); +} + +void OosClient::getSecretParametersAsync(const GetSecretParametersRequest& request, const GetSecretParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSecretParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::GetSecretParametersOutcomeCallable OosClient::getSecretParametersCallable(const GetSecretParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSecretParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OosClient::GetSecretParametersByPathOutcome OosClient::getSecretParametersByPath(const GetSecretParametersByPathRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSecretParametersByPathOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSecretParametersByPathOutcome(GetSecretParametersByPathResult(outcome.result())); + else + return GetSecretParametersByPathOutcome(outcome.error()); +} + +void OosClient::getSecretParametersByPathAsync(const GetSecretParametersByPathRequest& request, const GetSecretParametersByPathAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSecretParametersByPath(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::GetSecretParametersByPathOutcomeCallable OosClient::getSecretParametersByPathCallable(const GetSecretParametersByPathRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSecretParametersByPath(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OosClient::GetTemplateOutcome OosClient::getTemplate(const GetTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +915,42 @@ OosClient::ListExecutionsOutcomeCallable OosClient::listExecutionsCallable(const return task->get_future(); } +OosClient::ListInventoryEntriesOutcome OosClient::listInventoryEntries(const ListInventoryEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInventoryEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInventoryEntriesOutcome(ListInventoryEntriesResult(outcome.result())); + else + return ListInventoryEntriesOutcome(outcome.error()); +} + +void OosClient::listInventoryEntriesAsync(const ListInventoryEntriesRequest& request, const ListInventoryEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInventoryEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::ListInventoryEntriesOutcomeCallable OosClient::listInventoryEntriesCallable(const ListInventoryEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInventoryEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OosClient::ListParameterVersionsOutcome OosClient::listParameterVersions(const ListParameterVersionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1383,42 @@ OosClient::NotifyExecutionOutcomeCallable OosClient::notifyExecutionCallable(con return task->get_future(); } +OosClient::SearchInventoryOutcome OosClient::searchInventory(const SearchInventoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchInventoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchInventoryOutcome(SearchInventoryResult(outcome.result())); + else + return SearchInventoryOutcome(outcome.error()); +} + +void OosClient::searchInventoryAsync(const SearchInventoryRequest& request, const SearchInventoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchInventory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::SearchInventoryOutcomeCallable OosClient::searchInventoryCallable(const SearchInventoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchInventory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OosClient::StartExecutionOutcome OosClient::startExecution(const StartExecutionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1563,78 @@ OosClient::UntagResourcesOutcomeCallable OosClient::untagResourcesCallable(const return task->get_future(); } +OosClient::UpdateExecutionOutcome OosClient::updateExecution(const UpdateExecutionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateExecutionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateExecutionOutcome(UpdateExecutionResult(outcome.result())); + else + return UpdateExecutionOutcome(outcome.error()); +} + +void OosClient::updateExecutionAsync(const UpdateExecutionRequest& request, const UpdateExecutionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateExecution(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OosClient::UpdateExecutionOutcomeCallable OosClient::updateExecutionCallable(const UpdateExecutionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateExecution(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + 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& 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>( + [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(); diff --git a/oos/src/model/CreateParameterRequest.cc b/oos/src/model/CreateParameterRequest.cc index 35f797853..fa4e9e4c9 100644 --- a/oos/src/model/CreateParameterRequest.cc +++ b/oos/src/model/CreateParameterRequest.cc @@ -60,6 +60,17 @@ void CreateParameterRequest::setType(const std::string& type) setParameter("Type", type); } +std::string CreateParameterRequest::getConstraints()const +{ + return constraints_; +} + +void CreateParameterRequest::setConstraints(const std::string& constraints) +{ + constraints_ = constraints; + setParameter("Constraints", constraints); +} + std::string CreateParameterRequest::getRegionId()const { return regionId_; diff --git a/oos/src/model/CreateParameterResult.cc b/oos/src/model/CreateParameterResult.cc index 1a14b5153..1a5ed7a94 100644 --- a/oos/src/model/CreateParameterResult.cc +++ b/oos/src/model/CreateParameterResult.cc @@ -60,6 +60,8 @@ void CreateParameterResult::parse(const std::string &payload) _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(); } diff --git a/oos/src/model/CreateSecretParameterRequest.cc b/oos/src/model/CreateSecretParameterRequest.cc index a160df0dd..ea0efe136 100644 --- a/oos/src/model/CreateSecretParameterRequest.cc +++ b/oos/src/model/CreateSecretParameterRequest.cc @@ -71,6 +71,17 @@ void CreateSecretParameterRequest::setType(const std::string& type) setParameter("Type", type); } +std::string CreateSecretParameterRequest::getConstraints()const +{ + return constraints_; +} + +void CreateSecretParameterRequest::setConstraints(const std::string& constraints) +{ + constraints_ = constraints; + setParameter("Constraints", constraints); +} + std::string CreateSecretParameterRequest::getRegionId()const { return regionId_; diff --git a/oos/src/model/CreateSecretParameterResult.cc b/oos/src/model/CreateSecretParameterResult.cc index 2b1e134ec..473f4949b 100644 --- a/oos/src/model/CreateSecretParameterResult.cc +++ b/oos/src/model/CreateSecretParameterResult.cc @@ -60,6 +60,10 @@ void CreateSecretParameterResult::parse(const std::string &payload) _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(); } diff --git a/oos/src/model/GetInventorySchemaRequest.cc b/oos/src/model/GetInventorySchemaRequest.cc new file mode 100644 index 000000000..1986e64e2 --- /dev/null +++ b/oos/src/model/GetInventorySchemaRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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_; +} + +void GetInventorySchemaRequest::setAggregator(bool aggregator) +{ + aggregator_ = aggregator; + setParameter("Aggregator", aggregator ? "true" : "false"); +} + +std::string GetInventorySchemaRequest::getRegionId()const +{ + return regionId_; +} + +void GetInventorySchemaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetInventorySchemaRequest::getNextToken()const +{ + return nextToken_; +} + +void GetInventorySchemaRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int GetInventorySchemaRequest::getMaxResults()const +{ + return maxResults_; +} + +void GetInventorySchemaRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::string GetInventorySchemaRequest::getTypeName()const +{ + return typeName_; +} + +void GetInventorySchemaRequest::setTypeName(const std::string& typeName) +{ + typeName_ = typeName; + setParameter("TypeName", typeName); +} + diff --git a/oos/src/model/GetInventorySchemaResult.cc b/oos/src/model/GetInventorySchemaResult.cc new file mode 100644 index 000000000..2cb37370e --- /dev/null +++ b/oos/src/model/GetInventorySchemaResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +GetInventorySchemaResult::GetInventorySchemaResult() : + ServiceResult() +{} + +GetInventorySchemaResult::GetInventorySchemaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInventorySchemaResult::~GetInventorySchemaResult() +{} + +void GetInventorySchemaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSchemasNode = value["Schemas"]["Schema"]; + for (auto valueSchemasSchema : allSchemasNode) + { + Schema schemasObject; + if(!valueSchemasSchema["TypeName"].isNull()) + schemasObject.typeName = valueSchemasSchema["TypeName"].asString(); + if(!valueSchemasSchema["Version"].isNull()) + schemasObject.version = valueSchemasSchema["Version"].asString(); + auto allAttributesNode = allSchemasNode["Attributes"]["Attribute"]; + for (auto allSchemasNodeAttributesAttribute : allAttributesNode) + { + Schema::Attribute attributesObject; + if(!allSchemasNodeAttributesAttribute["Name"].isNull()) + attributesObject.name = allSchemasNodeAttributesAttribute["Name"].asString(); + if(!allSchemasNodeAttributesAttribute["DataType"].isNull()) + attributesObject.dataType = allSchemasNodeAttributesAttribute["DataType"].asString(); + schemasObject.attributes.push_back(attributesObject); + } + schemas_.push_back(schemasObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string GetInventorySchemaResult::getNextToken()const +{ + return nextToken_; +} + +std::vector GetInventorySchemaResult::getSchemas()const +{ + return schemas_; +} + diff --git a/oos/src/model/GetParameterResult.cc b/oos/src/model/GetParameterResult.cc index c2855ef8b..6a5fa6f53 100644 --- a/oos/src/model/GetParameterResult.cc +++ b/oos/src/model/GetParameterResult.cc @@ -62,6 +62,8 @@ void GetParameterResult::parse(const std::string &payload) _parameter_.type = _parameterNode["Type"].asString(); if(!_parameterNode["Value"].isNull()) _parameter_.value = _parameterNode["Value"].asString(); + if(!_parameterNode["Constraints"].isNull()) + _parameter_.constraints = _parameterNode["Constraints"].asString(); } diff --git a/oos/src/model/GetParametersByPathRequest.cc b/oos/src/model/GetParametersByPathRequest.cc new file mode 100644 index 000000000..be623ca16 --- /dev/null +++ b/oos/src/model/GetParametersByPathRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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_; +} + +void GetParametersByPathRequest::setRecursive(bool recursive) +{ + recursive_ = recursive; + setParameter("Recursive", recursive ? "true" : "false"); +} + +std::string GetParametersByPathRequest::getPath()const +{ + return path_; +} + +void GetParametersByPathRequest::setPath(const std::string& path) +{ + path_ = path; + setParameter("Path", path); +} + +std::string GetParametersByPathRequest::getRegionId()const +{ + return regionId_; +} + +void GetParametersByPathRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetParametersByPathRequest::getNextToken()const +{ + return nextToken_; +} + +void GetParametersByPathRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int GetParametersByPathRequest::getMaxResults()const +{ + return maxResults_; +} + +void GetParametersByPathRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/oos/src/model/GetParametersByPathResult.cc b/oos/src/model/GetParametersByPathResult.cc new file mode 100644 index 000000000..d4b3882b4 --- /dev/null +++ b/oos/src/model/GetParametersByPathResult.cc @@ -0,0 +1,100 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +GetParametersByPathResult::GetParametersByPathResult() : + ServiceResult() +{} + +GetParametersByPathResult::GetParametersByPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetParametersByPathResult::~GetParametersByPathResult() +{} + +void GetParametersByPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParametersNode = value["Parameters"]["Parameter"]; + 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["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(); + 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()); + +} + +int GetParametersByPathResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector GetParametersByPathResult::getParameters()const +{ + return parameters_; +} + +std::string GetParametersByPathResult::getNextToken()const +{ + return nextToken_; +} + +int GetParametersByPathResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/oos/src/model/GetParametersRequest.cc b/oos/src/model/GetParametersRequest.cc new file mode 100644 index 000000000..d4e82d9cd --- /dev/null +++ b/oos/src/model/GetParametersRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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_; +} + +void GetParametersRequest::setNames(const std::string& names) +{ + names_ = names; + setParameter("Names", names); +} + +std::string GetParametersRequest::getRegionId()const +{ + return regionId_; +} + +void GetParametersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/oos/src/model/GetParametersResult.cc b/oos/src/model/GetParametersResult.cc new file mode 100644 index 000000000..517572797 --- /dev/null +++ b/oos/src/model/GetParametersResult.cc @@ -0,0 +1,87 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +GetParametersResult::GetParametersResult() : + ServiceResult() +{} + +GetParametersResult::GetParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetParametersResult::~GetParametersResult() +{} + +void GetParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParametersNode = value["Parameters"]["Parameter"]; + 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["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(); + parameters_.push_back(parametersObject); + } + auto allInvalidParameters = value["InvalidParameters"]["InvalidParameter"]; + for (const auto &item : allInvalidParameters) + invalidParameters_.push_back(item.asString()); + +} + +std::vector GetParametersResult::getParameters()const +{ + return parameters_; +} + +std::vector GetParametersResult::getInvalidParameters()const +{ + return invalidParameters_; +} + diff --git a/oos/src/model/GetSecretParameterResult.cc b/oos/src/model/GetSecretParameterResult.cc index 272a9f86c..44a7defaa 100644 --- a/oos/src/model/GetSecretParameterResult.cc +++ b/oos/src/model/GetSecretParameterResult.cc @@ -62,6 +62,10 @@ void GetSecretParameterResult::parse(const std::string &payload) _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(); } diff --git a/oos/src/model/GetSecretParametersByPathRequest.cc b/oos/src/model/GetSecretParametersByPathRequest.cc new file mode 100644 index 000000000..06855439e --- /dev/null +++ b/oos/src/model/GetSecretParametersByPathRequest.cc @@ -0,0 +1,95 @@ +/* + * 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 + +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_; +} + +void GetSecretParametersByPathRequest::setWithDecryption(bool withDecryption) +{ + withDecryption_ = withDecryption; + setParameter("WithDecryption", withDecryption ? "true" : "false"); +} + +bool GetSecretParametersByPathRequest::getRecursive()const +{ + return recursive_; +} + +void GetSecretParametersByPathRequest::setRecursive(bool recursive) +{ + recursive_ = recursive; + setParameter("Recursive", recursive ? "true" : "false"); +} + +std::string GetSecretParametersByPathRequest::getPath()const +{ + return path_; +} + +void GetSecretParametersByPathRequest::setPath(const std::string& path) +{ + path_ = path; + setParameter("Path", path); +} + +std::string GetSecretParametersByPathRequest::getRegionId()const +{ + return regionId_; +} + +void GetSecretParametersByPathRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetSecretParametersByPathRequest::getNextToken()const +{ + return nextToken_; +} + +void GetSecretParametersByPathRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int GetSecretParametersByPathRequest::getMaxResults()const +{ + return maxResults_; +} + +void GetSecretParametersByPathRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/oos/src/model/GetSecretParametersByPathResult.cc b/oos/src/model/GetSecretParametersByPathResult.cc new file mode 100644 index 000000000..fd2be54d5 --- /dev/null +++ b/oos/src/model/GetSecretParametersByPathResult.cc @@ -0,0 +1,102 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +GetSecretParametersByPathResult::GetSecretParametersByPathResult() : + ServiceResult() +{} + +GetSecretParametersByPathResult::GetSecretParametersByPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSecretParametersByPathResult::~GetSecretParametersByPathResult() +{} + +void GetSecretParametersByPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParametersNode = value["Parameters"]["Parameter"]; + 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["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(); + 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()); + +} + +int GetSecretParametersByPathResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector GetSecretParametersByPathResult::getParameters()const +{ + return parameters_; +} + +std::string GetSecretParametersByPathResult::getNextToken()const +{ + return nextToken_; +} + +int GetSecretParametersByPathResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/oos/src/model/GetSecretParametersRequest.cc b/oos/src/model/GetSecretParametersRequest.cc new file mode 100644 index 000000000..8e28b94a8 --- /dev/null +++ b/oos/src/model/GetSecretParametersRequest.cc @@ -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 + +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_; +} + +void GetSecretParametersRequest::setWithDecryption(bool withDecryption) +{ + withDecryption_ = withDecryption; + setParameter("WithDecryption", withDecryption ? "true" : "false"); +} + +std::string GetSecretParametersRequest::getNames()const +{ + return names_; +} + +void GetSecretParametersRequest::setNames(const std::string& names) +{ + names_ = names; + setParameter("Names", names); +} + +std::string GetSecretParametersRequest::getRegionId()const +{ + return regionId_; +} + +void GetSecretParametersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/oos/src/model/GetSecretParametersResult.cc b/oos/src/model/GetSecretParametersResult.cc new file mode 100644 index 000000000..a88ce01a6 --- /dev/null +++ b/oos/src/model/GetSecretParametersResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +GetSecretParametersResult::GetSecretParametersResult() : + ServiceResult() +{} + +GetSecretParametersResult::GetSecretParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSecretParametersResult::~GetSecretParametersResult() +{} + +void GetSecretParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParametersNode = value["Parameters"]["Parameter"]; + 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["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(); + parameters_.push_back(parametersObject); + } + auto allInvalidParameters = value["InvalidParameters"]["InvalidParameter"]; + for (const auto &item : allInvalidParameters) + invalidParameters_.push_back(item.asString()); + +} + +std::vector GetSecretParametersResult::getParameters()const +{ + return parameters_; +} + +std::vector GetSecretParametersResult::getInvalidParameters()const +{ + return invalidParameters_; +} + diff --git a/oos/src/model/ListInventoryEntriesRequest.cc b/oos/src/model/ListInventoryEntriesRequest.cc new file mode 100644 index 000000000..0e90d77fa --- /dev/null +++ b/oos/src/model/ListInventoryEntriesRequest.cc @@ -0,0 +1,92 @@ +/* + * 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 + +using AlibabaCloud::Oos::Model::ListInventoryEntriesRequest; + +ListInventoryEntriesRequest::ListInventoryEntriesRequest() : + RpcServiceRequest("oos", "2019-06-01", "ListInventoryEntries") +{ + setMethod(HttpRequest::Method::Post); +} + +ListInventoryEntriesRequest::~ListInventoryEntriesRequest() +{} + +std::vector ListInventoryEntriesRequest::getFilter()const +{ + return filter_; +} + +void ListInventoryEntriesRequest::setFilter(const std::vector& 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); + } +} + +std::string ListInventoryEntriesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ListInventoryEntriesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ListInventoryEntriesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListInventoryEntriesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int ListInventoryEntriesRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListInventoryEntriesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::string ListInventoryEntriesRequest::getTypeName()const +{ + return typeName_; +} + +void ListInventoryEntriesRequest::setTypeName(const std::string& typeName) +{ + typeName_ = typeName; + setParameter("TypeName", typeName); +} + diff --git a/oos/src/model/ListInventoryEntriesResult.cc b/oos/src/model/ListInventoryEntriesResult.cc new file mode 100644 index 000000000..2983f015e --- /dev/null +++ b/oos/src/model/ListInventoryEntriesResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +ListInventoryEntriesResult::ListInventoryEntriesResult() : + ServiceResult() +{} + +ListInventoryEntriesResult::ListInventoryEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInventoryEntriesResult::~ListInventoryEntriesResult() +{} + +void ListInventoryEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEntries = value["Entries"]["Entries"]; + for (const auto &item : allEntries) + 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()); + +} + +std::string ListInventoryEntriesResult::getTypeName()const +{ + return typeName_; +} + +std::string ListInventoryEntriesResult::getCaptureTime()const +{ + return captureTime_; +} + +std::string ListInventoryEntriesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListInventoryEntriesResult::getSchemaVersion()const +{ + return schemaVersion_; +} + +std::string ListInventoryEntriesResult::getInstanceId()const +{ + return instanceId_; +} + +int ListInventoryEntriesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListInventoryEntriesResult::getEntries()const +{ + return entries_; +} + diff --git a/oos/src/model/ListSecretParametersResult.cc b/oos/src/model/ListSecretParametersResult.cc index 8c04e65d6..936104a4e 100644 --- a/oos/src/model/ListSecretParametersResult.cc +++ b/oos/src/model/ListSecretParametersResult.cc @@ -63,6 +63,8 @@ void ListSecretParametersResult::parse(const std::string &payload) parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString(); if(!valueParametersParameter["Type"].isNull()) parametersObject.type = valueParametersParameter["Type"].asString(); + if(!valueParametersParameter["KeyId"].isNull()) + parametersObject.keyId = valueParametersParameter["KeyId"].asString(); parameters_.push_back(parametersObject); } if(!value["MaxResults"].isNull()) diff --git a/oos/src/model/SearchInventoryRequest.cc b/oos/src/model/SearchInventoryRequest.cc new file mode 100644 index 000000000..43091ca9c --- /dev/null +++ b/oos/src/model/SearchInventoryRequest.cc @@ -0,0 +1,94 @@ +/* + * 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 + +using AlibabaCloud::Oos::Model::SearchInventoryRequest; + +SearchInventoryRequest::SearchInventoryRequest() : + RpcServiceRequest("oos", "2019-06-01", "SearchInventory") +{ + setMethod(HttpRequest::Method::Post); +} + +SearchInventoryRequest::~SearchInventoryRequest() +{} + +std::vector SearchInventoryRequest::getAggregator()const +{ + return aggregator_; +} + +void SearchInventoryRequest::setAggregator(const std::vector& aggregator) +{ + aggregator_ = aggregator; + for(int dep1 = 0; dep1!= aggregator.size(); dep1++) { + setParameter("Aggregator."+ std::to_string(dep1), aggregator.at(dep1)); + } +} + +std::vector SearchInventoryRequest::getFilter()const +{ + return filter_; +} + +void SearchInventoryRequest::setFilter(const std::vector& 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); + } +} + +std::string SearchInventoryRequest::getRegionId()const +{ + return regionId_; +} + +void SearchInventoryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SearchInventoryRequest::getNextToken()const +{ + return nextToken_; +} + +void SearchInventoryRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int SearchInventoryRequest::getMaxResults()const +{ + return maxResults_; +} + +void SearchInventoryRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/oos/src/model/SearchInventoryResult.cc b/oos/src/model/SearchInventoryResult.cc new file mode 100644 index 000000000..fae9f62df --- /dev/null +++ b/oos/src/model/SearchInventoryResult.cc @@ -0,0 +1,66 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +SearchInventoryResult::SearchInventoryResult() : + ServiceResult() +{} + +SearchInventoryResult::SearchInventoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchInventoryResult::~SearchInventoryResult() +{} + +void SearchInventoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEntities = value["Entities"]["Entity"]; + for (const auto &item : allEntities) + entities_.push_back(item.asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string SearchInventoryResult::getNextToken()const +{ + return nextToken_; +} + +int SearchInventoryResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector SearchInventoryResult::getEntities()const +{ + return entities_; +} + diff --git a/oos/src/model/UpdateExecutionRequest.cc b/oos/src/model/UpdateExecutionRequest.cc new file mode 100644 index 000000000..4a92a5220 --- /dev/null +++ b/oos/src/model/UpdateExecutionRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Oos::Model::UpdateExecutionRequest; + +UpdateExecutionRequest::UpdateExecutionRequest() : + RpcServiceRequest("oos", "2019-06-01", "UpdateExecution") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateExecutionRequest::~UpdateExecutionRequest() +{} + +std::string UpdateExecutionRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateExecutionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateExecutionRequest::getExecutionId()const +{ + return executionId_; +} + +void UpdateExecutionRequest::setExecutionId(const std::string& executionId) +{ + executionId_ = executionId; + setParameter("ExecutionId", executionId); +} + +std::string UpdateExecutionRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateExecutionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateExecutionRequest::getParameters()const +{ + return parameters_; +} + +void UpdateExecutionRequest::setParameters(const std::string& parameters) +{ + parameters_ = parameters; + setParameter("Parameters", parameters); +} + diff --git a/oos/src/model/UpdateExecutionResult.cc b/oos/src/model/UpdateExecutionResult.cc new file mode 100644 index 000000000..61c11fcc0 --- /dev/null +++ b/oos/src/model/UpdateExecutionResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +UpdateExecutionResult::UpdateExecutionResult() : + ServiceResult() +{} + +UpdateExecutionResult::UpdateExecutionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateExecutionResult::~UpdateExecutionResult() +{} + +void UpdateExecutionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/oos/src/model/UpdateInstanceInformationRequest.cc b/oos/src/model/UpdateInstanceInformationRequest.cc new file mode 100644 index 000000000..89b6fe19a --- /dev/null +++ b/oos/src/model/UpdateInstanceInformationRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Oos::Model::UpdateInstanceInformationRequest; + +UpdateInstanceInformationRequest::UpdateInstanceInformationRequest() : + RpcServiceRequest("oos", "2019-06-01", "UpdateInstanceInformation") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateInstanceInformationRequest::~UpdateInstanceInformationRequest() +{} + +std::string UpdateInstanceInformationRequest::getAgentVersion()const +{ + return agentVersion_; +} + +void UpdateInstanceInformationRequest::setAgentVersion(const std::string& agentVersion) +{ + agentVersion_ = agentVersion; + setParameter("AgentVersion", agentVersion); +} + +std::string UpdateInstanceInformationRequest::getIpAddress()const +{ + return ipAddress_; +} + +void UpdateInstanceInformationRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +std::string UpdateInstanceInformationRequest::getComputerName()const +{ + return computerName_; +} + +void UpdateInstanceInformationRequest::setComputerName(const std::string& computerName) +{ + computerName_ = computerName; + setParameter("ComputerName", computerName); +} + +std::string UpdateInstanceInformationRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateInstanceInformationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateInstanceInformationRequest::getPlatformName()const +{ + return platformName_; +} + +void UpdateInstanceInformationRequest::setPlatformName(const std::string& platformName) +{ + platformName_ = platformName; + setParameter("PlatformName", platformName); +} + +std::string UpdateInstanceInformationRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateInstanceInformationRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateInstanceInformationRequest::getAgentName()const +{ + return agentName_; +} + +void UpdateInstanceInformationRequest::setAgentName(const std::string& agentName) +{ + agentName_ = agentName; + setParameter("AgentName", agentName); +} + +std::string UpdateInstanceInformationRequest::getPlatformType()const +{ + return platformType_; +} + +void UpdateInstanceInformationRequest::setPlatformType(const std::string& platformType) +{ + platformType_ = platformType; + setParameter("PlatformType", platformType); +} + +std::string UpdateInstanceInformationRequest::getPlatformVersion()const +{ + return platformVersion_; +} + +void UpdateInstanceInformationRequest::setPlatformVersion(const std::string& platformVersion) +{ + platformVersion_ = platformVersion; + setParameter("PlatformVersion", platformVersion); +} + diff --git a/oos/src/model/UpdateInstanceInformationResult.cc b/oos/src/model/UpdateInstanceInformationResult.cc new file mode 100644 index 000000000..ef1cdbdf8 --- /dev/null +++ b/oos/src/model/UpdateInstanceInformationResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Oos; +using namespace AlibabaCloud::Oos::Model; + +UpdateInstanceInformationResult::UpdateInstanceInformationResult() : + ServiceResult() +{} + +UpdateInstanceInformationResult::UpdateInstanceInformationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateInstanceInformationResult::~UpdateInstanceInformationResult() +{} + +void UpdateInstanceInformationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/oos/src/model/UpdateParameterResult.cc b/oos/src/model/UpdateParameterResult.cc index 805f160d0..981d6e4c7 100644 --- a/oos/src/model/UpdateParameterResult.cc +++ b/oos/src/model/UpdateParameterResult.cc @@ -60,6 +60,8 @@ void UpdateParameterResult::parse(const std::string &payload) _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(); } diff --git a/oos/src/model/UpdateSecretParameterResult.cc b/oos/src/model/UpdateSecretParameterResult.cc index 043e3ac9a..4eb0c2984 100644 --- a/oos/src/model/UpdateSecretParameterResult.cc +++ b/oos/src/model/UpdateSecretParameterResult.cc @@ -60,6 +60,10 @@ void UpdateSecretParameterResult::parse(const std::string &payload) _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(); }