Support patch manager apis.

This commit is contained in:
sdk-team
2021-02-07 10:02:16 +00:00
parent 4899593377
commit 38db21928a
60 changed files with 4334 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
2021-02-07 Version: patch
- Support patch manager apis.
2021-02-07 Version: patch
- Support some MergeRequest API.

View File

@@ -25,16 +25,24 @@ set(oos_public_header_model
include/alibabacloud/oos/model/CancelExecutionResult.h
include/alibabacloud/oos/model/CreateParameterRequest.h
include/alibabacloud/oos/model/CreateParameterResult.h
include/alibabacloud/oos/model/CreatePatchBaselineRequest.h
include/alibabacloud/oos/model/CreatePatchBaselineResult.h
include/alibabacloud/oos/model/CreateSecretParameterRequest.h
include/alibabacloud/oos/model/CreateSecretParameterResult.h
include/alibabacloud/oos/model/CreateStateConfigurationRequest.h
include/alibabacloud/oos/model/CreateStateConfigurationResult.h
include/alibabacloud/oos/model/CreateTemplateRequest.h
include/alibabacloud/oos/model/CreateTemplateResult.h
include/alibabacloud/oos/model/DeleteExecutionsRequest.h
include/alibabacloud/oos/model/DeleteExecutionsResult.h
include/alibabacloud/oos/model/DeleteParameterRequest.h
include/alibabacloud/oos/model/DeleteParameterResult.h
include/alibabacloud/oos/model/DeletePatchBaselineRequest.h
include/alibabacloud/oos/model/DeletePatchBaselineResult.h
include/alibabacloud/oos/model/DeleteSecretParameterRequest.h
include/alibabacloud/oos/model/DeleteSecretParameterResult.h
include/alibabacloud/oos/model/DeleteStateConfigurationsRequest.h
include/alibabacloud/oos/model/DeleteStateConfigurationsResult.h
include/alibabacloud/oos/model/DeleteTemplateRequest.h
include/alibabacloud/oos/model/DeleteTemplateResult.h
include/alibabacloud/oos/model/DeleteTemplatesRequest.h
@@ -53,6 +61,8 @@ set(oos_public_header_model
include/alibabacloud/oos/model/GetParametersResult.h
include/alibabacloud/oos/model/GetParametersByPathRequest.h
include/alibabacloud/oos/model/GetParametersByPathResult.h
include/alibabacloud/oos/model/GetPatchBaselineRequest.h
include/alibabacloud/oos/model/GetPatchBaselineResult.h
include/alibabacloud/oos/model/GetSecretParameterRequest.h
include/alibabacloud/oos/model/GetSecretParameterResult.h
include/alibabacloud/oos/model/GetSecretParametersRequest.h
@@ -71,18 +81,28 @@ 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/ListInstancePatchStatesRequest.h
include/alibabacloud/oos/model/ListInstancePatchStatesResult.h
include/alibabacloud/oos/model/ListInstancePatchesRequest.h
include/alibabacloud/oos/model/ListInstancePatchesResult.h
include/alibabacloud/oos/model/ListInstanceStateReportsRequest.h
include/alibabacloud/oos/model/ListInstanceStateReportsResult.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
include/alibabacloud/oos/model/ListParametersResult.h
include/alibabacloud/oos/model/ListPatchBaselinesRequest.h
include/alibabacloud/oos/model/ListPatchBaselinesResult.h
include/alibabacloud/oos/model/ListResourceExecutionStatusRequest.h
include/alibabacloud/oos/model/ListResourceExecutionStatusResult.h
include/alibabacloud/oos/model/ListSecretParameterVersionsRequest.h
include/alibabacloud/oos/model/ListSecretParameterVersionsResult.h
include/alibabacloud/oos/model/ListSecretParametersRequest.h
include/alibabacloud/oos/model/ListSecretParametersResult.h
include/alibabacloud/oos/model/ListStateConfigurationsRequest.h
include/alibabacloud/oos/model/ListStateConfigurationsResult.h
include/alibabacloud/oos/model/ListTagKeysRequest.h
include/alibabacloud/oos/model/ListTagKeysResult.h
include/alibabacloud/oos/model/ListTagResourcesRequest.h
@@ -97,6 +117,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/RegisterDefaultPatchBaselineRequest.h
include/alibabacloud/oos/model/RegisterDefaultPatchBaselineResult.h
include/alibabacloud/oos/model/SearchInventoryRequest.h
include/alibabacloud/oos/model/SearchInventoryResult.h
include/alibabacloud/oos/model/SetServiceSettingsRequest.h
@@ -115,8 +137,12 @@ set(oos_public_header_model
include/alibabacloud/oos/model/UpdateInstanceInformationResult.h
include/alibabacloud/oos/model/UpdateParameterRequest.h
include/alibabacloud/oos/model/UpdateParameterResult.h
include/alibabacloud/oos/model/UpdatePatchBaselineRequest.h
include/alibabacloud/oos/model/UpdatePatchBaselineResult.h
include/alibabacloud/oos/model/UpdateSecretParameterRequest.h
include/alibabacloud/oos/model/UpdateSecretParameterResult.h
include/alibabacloud/oos/model/UpdateStateConfigurationRequest.h
include/alibabacloud/oos/model/UpdateStateConfigurationResult.h
include/alibabacloud/oos/model/UpdateTemplateRequest.h
include/alibabacloud/oos/model/UpdateTemplateResult.h
include/alibabacloud/oos/model/ValidateTemplateContentRequest.h
@@ -128,16 +154,24 @@ set(oos_src
src/model/CancelExecutionResult.cc
src/model/CreateParameterRequest.cc
src/model/CreateParameterResult.cc
src/model/CreatePatchBaselineRequest.cc
src/model/CreatePatchBaselineResult.cc
src/model/CreateSecretParameterRequest.cc
src/model/CreateSecretParameterResult.cc
src/model/CreateStateConfigurationRequest.cc
src/model/CreateStateConfigurationResult.cc
src/model/CreateTemplateRequest.cc
src/model/CreateTemplateResult.cc
src/model/DeleteExecutionsRequest.cc
src/model/DeleteExecutionsResult.cc
src/model/DeleteParameterRequest.cc
src/model/DeleteParameterResult.cc
src/model/DeletePatchBaselineRequest.cc
src/model/DeletePatchBaselineResult.cc
src/model/DeleteSecretParameterRequest.cc
src/model/DeleteSecretParameterResult.cc
src/model/DeleteStateConfigurationsRequest.cc
src/model/DeleteStateConfigurationsResult.cc
src/model/DeleteTemplateRequest.cc
src/model/DeleteTemplateResult.cc
src/model/DeleteTemplatesRequest.cc
@@ -156,6 +190,8 @@ set(oos_src
src/model/GetParametersResult.cc
src/model/GetParametersByPathRequest.cc
src/model/GetParametersByPathResult.cc
src/model/GetPatchBaselineRequest.cc
src/model/GetPatchBaselineResult.cc
src/model/GetSecretParameterRequest.cc
src/model/GetSecretParameterResult.cc
src/model/GetSecretParametersRequest.cc
@@ -174,18 +210,28 @@ set(oos_src
src/model/ListExecutionRiskyTasksResult.cc
src/model/ListExecutionsRequest.cc
src/model/ListExecutionsResult.cc
src/model/ListInstancePatchStatesRequest.cc
src/model/ListInstancePatchStatesResult.cc
src/model/ListInstancePatchesRequest.cc
src/model/ListInstancePatchesResult.cc
src/model/ListInstanceStateReportsRequest.cc
src/model/ListInstanceStateReportsResult.cc
src/model/ListInventoryEntriesRequest.cc
src/model/ListInventoryEntriesResult.cc
src/model/ListParameterVersionsRequest.cc
src/model/ListParameterVersionsResult.cc
src/model/ListParametersRequest.cc
src/model/ListParametersResult.cc
src/model/ListPatchBaselinesRequest.cc
src/model/ListPatchBaselinesResult.cc
src/model/ListResourceExecutionStatusRequest.cc
src/model/ListResourceExecutionStatusResult.cc
src/model/ListSecretParameterVersionsRequest.cc
src/model/ListSecretParameterVersionsResult.cc
src/model/ListSecretParametersRequest.cc
src/model/ListSecretParametersResult.cc
src/model/ListStateConfigurationsRequest.cc
src/model/ListStateConfigurationsResult.cc
src/model/ListTagKeysRequest.cc
src/model/ListTagKeysResult.cc
src/model/ListTagResourcesRequest.cc
@@ -200,6 +246,8 @@ set(oos_src
src/model/ListTemplatesResult.cc
src/model/NotifyExecutionRequest.cc
src/model/NotifyExecutionResult.cc
src/model/RegisterDefaultPatchBaselineRequest.cc
src/model/RegisterDefaultPatchBaselineResult.cc
src/model/SearchInventoryRequest.cc
src/model/SearchInventoryResult.cc
src/model/SetServiceSettingsRequest.cc
@@ -218,8 +266,12 @@ set(oos_src
src/model/UpdateInstanceInformationResult.cc
src/model/UpdateParameterRequest.cc
src/model/UpdateParameterResult.cc
src/model/UpdatePatchBaselineRequest.cc
src/model/UpdatePatchBaselineResult.cc
src/model/UpdateSecretParameterRequest.cc
src/model/UpdateSecretParameterResult.cc
src/model/UpdateStateConfigurationRequest.cc
src/model/UpdateStateConfigurationResult.cc
src/model/UpdateTemplateRequest.cc
src/model/UpdateTemplateResult.cc
src/model/ValidateTemplateContentRequest.cc

View File

@@ -26,16 +26,24 @@
#include "model/CancelExecutionResult.h"
#include "model/CreateParameterRequest.h"
#include "model/CreateParameterResult.h"
#include "model/CreatePatchBaselineRequest.h"
#include "model/CreatePatchBaselineResult.h"
#include "model/CreateSecretParameterRequest.h"
#include "model/CreateSecretParameterResult.h"
#include "model/CreateStateConfigurationRequest.h"
#include "model/CreateStateConfigurationResult.h"
#include "model/CreateTemplateRequest.h"
#include "model/CreateTemplateResult.h"
#include "model/DeleteExecutionsRequest.h"
#include "model/DeleteExecutionsResult.h"
#include "model/DeleteParameterRequest.h"
#include "model/DeleteParameterResult.h"
#include "model/DeletePatchBaselineRequest.h"
#include "model/DeletePatchBaselineResult.h"
#include "model/DeleteSecretParameterRequest.h"
#include "model/DeleteSecretParameterResult.h"
#include "model/DeleteStateConfigurationsRequest.h"
#include "model/DeleteStateConfigurationsResult.h"
#include "model/DeleteTemplateRequest.h"
#include "model/DeleteTemplateResult.h"
#include "model/DeleteTemplatesRequest.h"
@@ -54,6 +62,8 @@
#include "model/GetParametersResult.h"
#include "model/GetParametersByPathRequest.h"
#include "model/GetParametersByPathResult.h"
#include "model/GetPatchBaselineRequest.h"
#include "model/GetPatchBaselineResult.h"
#include "model/GetSecretParameterRequest.h"
#include "model/GetSecretParameterResult.h"
#include "model/GetSecretParametersRequest.h"
@@ -72,18 +82,28 @@
#include "model/ListExecutionRiskyTasksResult.h"
#include "model/ListExecutionsRequest.h"
#include "model/ListExecutionsResult.h"
#include "model/ListInstancePatchStatesRequest.h"
#include "model/ListInstancePatchStatesResult.h"
#include "model/ListInstancePatchesRequest.h"
#include "model/ListInstancePatchesResult.h"
#include "model/ListInstanceStateReportsRequest.h"
#include "model/ListInstanceStateReportsResult.h"
#include "model/ListInventoryEntriesRequest.h"
#include "model/ListInventoryEntriesResult.h"
#include "model/ListParameterVersionsRequest.h"
#include "model/ListParameterVersionsResult.h"
#include "model/ListParametersRequest.h"
#include "model/ListParametersResult.h"
#include "model/ListPatchBaselinesRequest.h"
#include "model/ListPatchBaselinesResult.h"
#include "model/ListResourceExecutionStatusRequest.h"
#include "model/ListResourceExecutionStatusResult.h"
#include "model/ListSecretParameterVersionsRequest.h"
#include "model/ListSecretParameterVersionsResult.h"
#include "model/ListSecretParametersRequest.h"
#include "model/ListSecretParametersResult.h"
#include "model/ListStateConfigurationsRequest.h"
#include "model/ListStateConfigurationsResult.h"
#include "model/ListTagKeysRequest.h"
#include "model/ListTagKeysResult.h"
#include "model/ListTagResourcesRequest.h"
@@ -98,6 +118,8 @@
#include "model/ListTemplatesResult.h"
#include "model/NotifyExecutionRequest.h"
#include "model/NotifyExecutionResult.h"
#include "model/RegisterDefaultPatchBaselineRequest.h"
#include "model/RegisterDefaultPatchBaselineResult.h"
#include "model/SearchInventoryRequest.h"
#include "model/SearchInventoryResult.h"
#include "model/SetServiceSettingsRequest.h"
@@ -116,8 +138,12 @@
#include "model/UpdateInstanceInformationResult.h"
#include "model/UpdateParameterRequest.h"
#include "model/UpdateParameterResult.h"
#include "model/UpdatePatchBaselineRequest.h"
#include "model/UpdatePatchBaselineResult.h"
#include "model/UpdateSecretParameterRequest.h"
#include "model/UpdateSecretParameterResult.h"
#include "model/UpdateStateConfigurationRequest.h"
#include "model/UpdateStateConfigurationResult.h"
#include "model/UpdateTemplateRequest.h"
#include "model/UpdateTemplateResult.h"
#include "model/ValidateTemplateContentRequest.h"
@@ -137,9 +163,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateParameterResult> CreateParameterOutcome;
typedef std::future<CreateParameterOutcome> CreateParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateParameterRequest&, const CreateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParameterAsyncHandler;
typedef Outcome<Error, Model::CreatePatchBaselineResult> CreatePatchBaselineOutcome;
typedef std::future<CreatePatchBaselineOutcome> CreatePatchBaselineOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreatePatchBaselineRequest&, const CreatePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePatchBaselineAsyncHandler;
typedef Outcome<Error, Model::CreateSecretParameterResult> CreateSecretParameterOutcome;
typedef std::future<CreateSecretParameterOutcome> CreateSecretParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateSecretParameterRequest&, const CreateSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSecretParameterAsyncHandler;
typedef Outcome<Error, Model::CreateStateConfigurationResult> CreateStateConfigurationOutcome;
typedef std::future<CreateStateConfigurationOutcome> CreateStateConfigurationOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateStateConfigurationRequest&, const CreateStateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStateConfigurationAsyncHandler;
typedef Outcome<Error, Model::CreateTemplateResult> CreateTemplateOutcome;
typedef std::future<CreateTemplateOutcome> CreateTemplateOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::CreateTemplateRequest&, const CreateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTemplateAsyncHandler;
@@ -149,9 +181,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteParameterResult> DeleteParameterOutcome;
typedef std::future<DeleteParameterOutcome> DeleteParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::DeleteParameterRequest&, const DeleteParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParameterAsyncHandler;
typedef Outcome<Error, Model::DeletePatchBaselineResult> DeletePatchBaselineOutcome;
typedef std::future<DeletePatchBaselineOutcome> DeletePatchBaselineOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::DeletePatchBaselineRequest&, const DeletePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePatchBaselineAsyncHandler;
typedef Outcome<Error, Model::DeleteSecretParameterResult> DeleteSecretParameterOutcome;
typedef std::future<DeleteSecretParameterOutcome> DeleteSecretParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::DeleteSecretParameterRequest&, const DeleteSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecretParameterAsyncHandler;
typedef Outcome<Error, Model::DeleteStateConfigurationsResult> DeleteStateConfigurationsOutcome;
typedef std::future<DeleteStateConfigurationsOutcome> DeleteStateConfigurationsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::DeleteStateConfigurationsRequest&, const DeleteStateConfigurationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStateConfigurationsAsyncHandler;
typedef Outcome<Error, Model::DeleteTemplateResult> DeleteTemplateOutcome;
typedef std::future<DeleteTemplateOutcome> DeleteTemplateOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::DeleteTemplateRequest&, const DeleteTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTemplateAsyncHandler;
@@ -179,6 +217,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetParametersByPathResult> GetParametersByPathOutcome;
typedef std::future<GetParametersByPathOutcome> GetParametersByPathOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetParametersByPathRequest&, const GetParametersByPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParametersByPathAsyncHandler;
typedef Outcome<Error, Model::GetPatchBaselineResult> GetPatchBaselineOutcome;
typedef std::future<GetPatchBaselineOutcome> GetPatchBaselineOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetPatchBaselineRequest&, const GetPatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPatchBaselineAsyncHandler;
typedef Outcome<Error, Model::GetSecretParameterResult> GetSecretParameterOutcome;
typedef std::future<GetSecretParameterOutcome> GetSecretParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::GetSecretParameterRequest&, const GetSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSecretParameterAsyncHandler;
@@ -206,6 +247,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListExecutionsResult> ListExecutionsOutcome;
typedef std::future<ListExecutionsOutcome> ListExecutionsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListExecutionsRequest&, const ListExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExecutionsAsyncHandler;
typedef Outcome<Error, Model::ListInstancePatchStatesResult> ListInstancePatchStatesOutcome;
typedef std::future<ListInstancePatchStatesOutcome> ListInstancePatchStatesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListInstancePatchStatesRequest&, const ListInstancePatchStatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancePatchStatesAsyncHandler;
typedef Outcome<Error, Model::ListInstancePatchesResult> ListInstancePatchesOutcome;
typedef std::future<ListInstancePatchesOutcome> ListInstancePatchesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListInstancePatchesRequest&, const ListInstancePatchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancePatchesAsyncHandler;
typedef Outcome<Error, Model::ListInstanceStateReportsResult> ListInstanceStateReportsOutcome;
typedef std::future<ListInstanceStateReportsOutcome> ListInstanceStateReportsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListInstanceStateReportsRequest&, const ListInstanceStateReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstanceStateReportsAsyncHandler;
typedef Outcome<Error, Model::ListInventoryEntriesResult> ListInventoryEntriesOutcome;
typedef std::future<ListInventoryEntriesOutcome> ListInventoryEntriesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListInventoryEntriesRequest&, const ListInventoryEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInventoryEntriesAsyncHandler;
@@ -215,6 +265,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListParametersResult> ListParametersOutcome;
typedef std::future<ListParametersOutcome> ListParametersOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListParametersRequest&, const ListParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParametersAsyncHandler;
typedef Outcome<Error, Model::ListPatchBaselinesResult> ListPatchBaselinesOutcome;
typedef std::future<ListPatchBaselinesOutcome> ListPatchBaselinesOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListPatchBaselinesRequest&, const ListPatchBaselinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPatchBaselinesAsyncHandler;
typedef Outcome<Error, Model::ListResourceExecutionStatusResult> ListResourceExecutionStatusOutcome;
typedef std::future<ListResourceExecutionStatusOutcome> ListResourceExecutionStatusOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListResourceExecutionStatusRequest&, const ListResourceExecutionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceExecutionStatusAsyncHandler;
@@ -224,6 +277,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListSecretParametersResult> ListSecretParametersOutcome;
typedef std::future<ListSecretParametersOutcome> ListSecretParametersOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListSecretParametersRequest&, const ListSecretParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSecretParametersAsyncHandler;
typedef Outcome<Error, Model::ListStateConfigurationsResult> ListStateConfigurationsOutcome;
typedef std::future<ListStateConfigurationsOutcome> ListStateConfigurationsOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListStateConfigurationsRequest&, const ListStateConfigurationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStateConfigurationsAsyncHandler;
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
@@ -245,6 +301,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::NotifyExecutionResult> NotifyExecutionOutcome;
typedef std::future<NotifyExecutionOutcome> NotifyExecutionOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::NotifyExecutionRequest&, const NotifyExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NotifyExecutionAsyncHandler;
typedef Outcome<Error, Model::RegisterDefaultPatchBaselineResult> RegisterDefaultPatchBaselineOutcome;
typedef std::future<RegisterDefaultPatchBaselineOutcome> RegisterDefaultPatchBaselineOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::RegisterDefaultPatchBaselineRequest&, const RegisterDefaultPatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDefaultPatchBaselineAsyncHandler;
typedef Outcome<Error, Model::SearchInventoryResult> SearchInventoryOutcome;
typedef std::future<SearchInventoryOutcome> SearchInventoryOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::SearchInventoryRequest&, const SearchInventoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchInventoryAsyncHandler;
@@ -272,9 +331,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateParameterResult> UpdateParameterOutcome;
typedef std::future<UpdateParameterOutcome> UpdateParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateParameterRequest&, const UpdateParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateParameterAsyncHandler;
typedef Outcome<Error, Model::UpdatePatchBaselineResult> UpdatePatchBaselineOutcome;
typedef std::future<UpdatePatchBaselineOutcome> UpdatePatchBaselineOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdatePatchBaselineRequest&, const UpdatePatchBaselineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePatchBaselineAsyncHandler;
typedef Outcome<Error, Model::UpdateSecretParameterResult> UpdateSecretParameterOutcome;
typedef std::future<UpdateSecretParameterOutcome> UpdateSecretParameterOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateSecretParameterRequest&, const UpdateSecretParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSecretParameterAsyncHandler;
typedef Outcome<Error, Model::UpdateStateConfigurationResult> UpdateStateConfigurationOutcome;
typedef std::future<UpdateStateConfigurationOutcome> UpdateStateConfigurationOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateStateConfigurationRequest&, const UpdateStateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateStateConfigurationAsyncHandler;
typedef Outcome<Error, Model::UpdateTemplateResult> UpdateTemplateOutcome;
typedef std::future<UpdateTemplateOutcome> UpdateTemplateOutcomeCallable;
typedef std::function<void(const OosClient*, const Model::UpdateTemplateRequest&, const UpdateTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTemplateAsyncHandler;
@@ -292,9 +357,15 @@ namespace AlibabaCloud
CreateParameterOutcome createParameter(const Model::CreateParameterRequest &request)const;
void createParameterAsync(const Model::CreateParameterRequest& request, const CreateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateParameterOutcomeCallable createParameterCallable(const Model::CreateParameterRequest& request) const;
CreatePatchBaselineOutcome createPatchBaseline(const Model::CreatePatchBaselineRequest &request)const;
void createPatchBaselineAsync(const Model::CreatePatchBaselineRequest& request, const CreatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePatchBaselineOutcomeCallable createPatchBaselineCallable(const Model::CreatePatchBaselineRequest& request) const;
CreateSecretParameterOutcome createSecretParameter(const Model::CreateSecretParameterRequest &request)const;
void createSecretParameterAsync(const Model::CreateSecretParameterRequest& request, const CreateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSecretParameterOutcomeCallable createSecretParameterCallable(const Model::CreateSecretParameterRequest& request) const;
CreateStateConfigurationOutcome createStateConfiguration(const Model::CreateStateConfigurationRequest &request)const;
void createStateConfigurationAsync(const Model::CreateStateConfigurationRequest& request, const CreateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateStateConfigurationOutcomeCallable createStateConfigurationCallable(const Model::CreateStateConfigurationRequest& request) const;
CreateTemplateOutcome createTemplate(const Model::CreateTemplateRequest &request)const;
void createTemplateAsync(const Model::CreateTemplateRequest& request, const CreateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTemplateOutcomeCallable createTemplateCallable(const Model::CreateTemplateRequest& request) const;
@@ -304,9 +375,15 @@ namespace AlibabaCloud
DeleteParameterOutcome deleteParameter(const Model::DeleteParameterRequest &request)const;
void deleteParameterAsync(const Model::DeleteParameterRequest& request, const DeleteParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteParameterOutcomeCallable deleteParameterCallable(const Model::DeleteParameterRequest& request) const;
DeletePatchBaselineOutcome deletePatchBaseline(const Model::DeletePatchBaselineRequest &request)const;
void deletePatchBaselineAsync(const Model::DeletePatchBaselineRequest& request, const DeletePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePatchBaselineOutcomeCallable deletePatchBaselineCallable(const Model::DeletePatchBaselineRequest& request) const;
DeleteSecretParameterOutcome deleteSecretParameter(const Model::DeleteSecretParameterRequest &request)const;
void deleteSecretParameterAsync(const Model::DeleteSecretParameterRequest& request, const DeleteSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSecretParameterOutcomeCallable deleteSecretParameterCallable(const Model::DeleteSecretParameterRequest& request) const;
DeleteStateConfigurationsOutcome deleteStateConfigurations(const Model::DeleteStateConfigurationsRequest &request)const;
void deleteStateConfigurationsAsync(const Model::DeleteStateConfigurationsRequest& request, const DeleteStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteStateConfigurationsOutcomeCallable deleteStateConfigurationsCallable(const Model::DeleteStateConfigurationsRequest& request) const;
DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const;
void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const;
@@ -334,6 +411,9 @@ namespace AlibabaCloud
GetParametersByPathOutcome getParametersByPath(const Model::GetParametersByPathRequest &request)const;
void getParametersByPathAsync(const Model::GetParametersByPathRequest& request, const GetParametersByPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetParametersByPathOutcomeCallable getParametersByPathCallable(const Model::GetParametersByPathRequest& request) const;
GetPatchBaselineOutcome getPatchBaseline(const Model::GetPatchBaselineRequest &request)const;
void getPatchBaselineAsync(const Model::GetPatchBaselineRequest& request, const GetPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPatchBaselineOutcomeCallable getPatchBaselineCallable(const Model::GetPatchBaselineRequest& request) const;
GetSecretParameterOutcome getSecretParameter(const Model::GetSecretParameterRequest &request)const;
void getSecretParameterAsync(const Model::GetSecretParameterRequest& request, const GetSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSecretParameterOutcomeCallable getSecretParameterCallable(const Model::GetSecretParameterRequest& request) const;
@@ -361,6 +441,15 @@ namespace AlibabaCloud
ListExecutionsOutcome listExecutions(const Model::ListExecutionsRequest &request)const;
void listExecutionsAsync(const Model::ListExecutionsRequest& request, const ListExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListExecutionsOutcomeCallable listExecutionsCallable(const Model::ListExecutionsRequest& request) const;
ListInstancePatchStatesOutcome listInstancePatchStates(const Model::ListInstancePatchStatesRequest &request)const;
void listInstancePatchStatesAsync(const Model::ListInstancePatchStatesRequest& request, const ListInstancePatchStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancePatchStatesOutcomeCallable listInstancePatchStatesCallable(const Model::ListInstancePatchStatesRequest& request) const;
ListInstancePatchesOutcome listInstancePatches(const Model::ListInstancePatchesRequest &request)const;
void listInstancePatchesAsync(const Model::ListInstancePatchesRequest& request, const ListInstancePatchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancePatchesOutcomeCallable listInstancePatchesCallable(const Model::ListInstancePatchesRequest& request) const;
ListInstanceStateReportsOutcome listInstanceStateReports(const Model::ListInstanceStateReportsRequest &request)const;
void listInstanceStateReportsAsync(const Model::ListInstanceStateReportsRequest& request, const ListInstanceStateReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstanceStateReportsOutcomeCallable listInstanceStateReportsCallable(const Model::ListInstanceStateReportsRequest& request) const;
ListInventoryEntriesOutcome listInventoryEntries(const Model::ListInventoryEntriesRequest &request)const;
void listInventoryEntriesAsync(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInventoryEntriesOutcomeCallable listInventoryEntriesCallable(const Model::ListInventoryEntriesRequest& request) const;
@@ -370,6 +459,9 @@ namespace AlibabaCloud
ListParametersOutcome listParameters(const Model::ListParametersRequest &request)const;
void listParametersAsync(const Model::ListParametersRequest& request, const ListParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListParametersOutcomeCallable listParametersCallable(const Model::ListParametersRequest& request) const;
ListPatchBaselinesOutcome listPatchBaselines(const Model::ListPatchBaselinesRequest &request)const;
void listPatchBaselinesAsync(const Model::ListPatchBaselinesRequest& request, const ListPatchBaselinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPatchBaselinesOutcomeCallable listPatchBaselinesCallable(const Model::ListPatchBaselinesRequest& request) const;
ListResourceExecutionStatusOutcome listResourceExecutionStatus(const Model::ListResourceExecutionStatusRequest &request)const;
void listResourceExecutionStatusAsync(const Model::ListResourceExecutionStatusRequest& request, const ListResourceExecutionStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListResourceExecutionStatusOutcomeCallable listResourceExecutionStatusCallable(const Model::ListResourceExecutionStatusRequest& request) const;
@@ -379,6 +471,9 @@ namespace AlibabaCloud
ListSecretParametersOutcome listSecretParameters(const Model::ListSecretParametersRequest &request)const;
void listSecretParametersAsync(const Model::ListSecretParametersRequest& request, const ListSecretParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSecretParametersOutcomeCallable listSecretParametersCallable(const Model::ListSecretParametersRequest& request) const;
ListStateConfigurationsOutcome listStateConfigurations(const Model::ListStateConfigurationsRequest &request)const;
void listStateConfigurationsAsync(const Model::ListStateConfigurationsRequest& request, const ListStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListStateConfigurationsOutcomeCallable listStateConfigurationsCallable(const Model::ListStateConfigurationsRequest& request) const;
ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const;
void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const;
@@ -400,6 +495,9 @@ namespace AlibabaCloud
NotifyExecutionOutcome notifyExecution(const Model::NotifyExecutionRequest &request)const;
void notifyExecutionAsync(const Model::NotifyExecutionRequest& request, const NotifyExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
NotifyExecutionOutcomeCallable notifyExecutionCallable(const Model::NotifyExecutionRequest& request) const;
RegisterDefaultPatchBaselineOutcome registerDefaultPatchBaseline(const Model::RegisterDefaultPatchBaselineRequest &request)const;
void registerDefaultPatchBaselineAsync(const Model::RegisterDefaultPatchBaselineRequest& request, const RegisterDefaultPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterDefaultPatchBaselineOutcomeCallable registerDefaultPatchBaselineCallable(const Model::RegisterDefaultPatchBaselineRequest& request) const;
SearchInventoryOutcome searchInventory(const Model::SearchInventoryRequest &request)const;
void searchInventoryAsync(const Model::SearchInventoryRequest& request, const SearchInventoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchInventoryOutcomeCallable searchInventoryCallable(const Model::SearchInventoryRequest& request) const;
@@ -427,9 +525,15 @@ namespace AlibabaCloud
UpdateParameterOutcome updateParameter(const Model::UpdateParameterRequest &request)const;
void updateParameterAsync(const Model::UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateParameterOutcomeCallable updateParameterCallable(const Model::UpdateParameterRequest& request) const;
UpdatePatchBaselineOutcome updatePatchBaseline(const Model::UpdatePatchBaselineRequest &request)const;
void updatePatchBaselineAsync(const Model::UpdatePatchBaselineRequest& request, const UpdatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePatchBaselineOutcomeCallable updatePatchBaselineCallable(const Model::UpdatePatchBaselineRequest& request) const;
UpdateSecretParameterOutcome updateSecretParameter(const Model::UpdateSecretParameterRequest &request)const;
void updateSecretParameterAsync(const Model::UpdateSecretParameterRequest& request, const UpdateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateSecretParameterOutcomeCallable updateSecretParameterCallable(const Model::UpdateSecretParameterRequest& request) const;
UpdateStateConfigurationOutcome updateStateConfiguration(const Model::UpdateStateConfigurationRequest &request)const;
void updateStateConfigurationAsync(const Model::UpdateStateConfigurationRequest& request, const UpdateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateStateConfigurationOutcomeCallable updateStateConfigurationCallable(const Model::UpdateStateConfigurationRequest& request) const;
UpdateTemplateOutcome updateTemplate(const Model::UpdateTemplateRequest &request)const;
void updateTemplateAsync(const Model::UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateTemplateOutcomeCallable updateTemplateCallable(const Model::UpdateTemplateRequest& request) const;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineRequest : public RpcServiceRequest
{
public:
CreatePatchBaselineRequest();
~CreatePatchBaselineRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getApprovalRules()const;
void setApprovalRules(const std::string& approvalRules);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getOperationSystem()const;
void setOperationSystem(const std::string& operationSystem);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string clientToken_;
std::string approvalRules_;
std::string description_;
std::string operationSystem_;
std::string regionId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINEREQUEST_H_

View File

@@ -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_CREATEPATCHBASELINERESULT_H_
#define ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT CreatePatchBaselineResult : public ServiceResult
{
public:
struct PatchBaseline
{
std::string updatedBy;
std::string createdBy;
std::string description;
std::string updatedDate;
std::string createdDate;
std::string id;
std::string operationSystem;
std::string approvalRules;
std::string name;
std::string shareType;
};
CreatePatchBaselineResult();
explicit CreatePatchBaselineResult(const std::string &payload);
~CreatePatchBaselineResult();
PatchBaseline getPatchBaseline()const;
protected:
void parse(const std::string &payload);
private:
PatchBaseline patchBaseline_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPATCHBASELINERESULT_H_

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT CreateStateConfigurationRequest : public RpcServiceRequest
{
public:
CreateStateConfigurationRequest();
~CreateStateConfigurationRequest();
std::string getScheduleType()const;
void setScheduleType(const std::string& scheduleType);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getTargets()const;
void setTargets(const std::string& targets);
std::string getTemplateVersion()const;
void setTemplateVersion(const std::string& templateVersion);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getScheduleExpression()const;
void setScheduleExpression(const std::string& scheduleExpression);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getConfigureMode()const;
void setConfigureMode(const std::string& configureMode);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getParameters()const;
void setParameters(const std::string& parameters);
private:
std::string scheduleType_;
std::string clientToken_;
std::string description_;
std::string targets_;
std::string templateVersion_;
std::string regionId_;
std::string scheduleExpression_;
std::string templateName_;
std::string configureMode_;
std::string tags_;
std::string parameters_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONREQUEST_H_

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT CreateStateConfigurationResult : public ServiceResult
{
public:
struct StateConfigurationItem
{
std::string configureMode;
std::string scheduleType;
std::string scheduleExpression;
std::string description;
std::string parameters;
std::string stateConfigurationId;
std::string createTime;
std::string templateName;
std::string templateVersion;
std::string targets;
std::string templateId;
std::string tags;
};
CreateStateConfigurationResult();
explicit CreateStateConfigurationResult(const std::string &payload);
~CreateStateConfigurationResult();
std::vector<StateConfigurationItem> getStateConfiguration()const;
protected:
void parse(const std::string &payload);
private:
std::vector<StateConfigurationItem> stateConfiguration_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESTATECONFIGURATIONRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT DeletePatchBaselineRequest : public RpcServiceRequest
{
public:
DeletePatchBaselineRequest();
~DeletePatchBaselineRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string regionId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINEREQUEST_H_

View File

@@ -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_DELETEPATCHBASELINERESULT_H_
#define ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT DeletePatchBaselineResult : public ServiceResult
{
public:
DeletePatchBaselineResult();
explicit DeletePatchBaselineResult(const std::string &payload);
~DeletePatchBaselineResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_DELETEPATCHBASELINERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT DeleteStateConfigurationsRequest : public RpcServiceRequest
{
public:
DeleteStateConfigurationsRequest();
~DeleteStateConfigurationsRequest();
std::string getStateConfigurationIds()const;
void setStateConfigurationIds(const std::string& stateConfigurationIds);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
private:
std::string stateConfigurationIds_;
std::string clientToken_;
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSREQUEST_H_

View File

@@ -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_DELETESTATECONFIGURATIONSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT DeleteStateConfigurationsResult : public ServiceResult
{
public:
DeleteStateConfigurationsResult();
explicit DeleteStateConfigurationsResult(const std::string &payload);
~DeleteStateConfigurationsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_DELETESTATECONFIGURATIONSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINEREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT GetPatchBaselineRequest : public RpcServiceRequest
{
public:
GetPatchBaselineRequest();
~GetPatchBaselineRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string regionId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINEREQUEST_H_

View File

@@ -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_GETPATCHBASELINERESULT_H_
#define ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT GetPatchBaselineResult : public ServiceResult
{
public:
struct PatchBaseline
{
std::string updatedBy;
std::string createdBy;
std::string description;
std::string updatedDate;
std::string createdDate;
std::string id;
std::string operationSystem;
std::string approvalRules;
std::string name;
std::string shareType;
};
GetPatchBaselineResult();
explicit GetPatchBaselineResult(const std::string &payload);
~GetPatchBaselineResult();
PatchBaseline getPatchBaseline()const;
protected:
void parse(const std::string &payload);
private:
PatchBaseline patchBaseline_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_GETPATCHBASELINERESULT_H_

View File

@@ -35,8 +35,11 @@ namespace AlibabaCloud
GetServiceSettingsRequest();
~GetServiceSettingsRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
private:
std::string regionId_;
};
}

View File

@@ -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_LISTINSTANCEPATCHSTATESREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchStatesRequest : public RpcServiceRequest
{
public:
ListInstancePatchStatesRequest();
~ListInstancePatchStatesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getInstanceIds()const;
void setInstanceIds(const std::string& instanceIds);
int getMaxResults()const;
void setMaxResults(int maxResults);
private:
std::string regionId_;
std::string nextToken_;
std::string instanceIds_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_LISTINSTANCEPATCHSTATESRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchStatesResult : public ServiceResult
{
public:
struct InstancePatchState
{
std::string baselineId;
std::string missingCount;
std::string ownerInformation;
std::string instanceId;
std::string installedOtherCount;
std::string operationEndTime;
std::string installedPendingRebootCount;
std::string operationStartTime;
std::string failedCount;
std::string operationType;
std::string installedCount;
std::string patchGroup;
std::string installedRejectedCount;
};
ListInstancePatchStatesResult();
explicit ListInstancePatchStatesResult(const std::string &payload);
~ListInstancePatchStatesResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<InstancePatchState> getInstancePatchStates()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<InstancePatchState> instancePatchStates_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHSTATESRESULT_H_

View File

@@ -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_LISTINSTANCEPATCHESREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchesRequest : public RpcServiceRequest
{
public:
ListInstancePatchesRequest();
~ListInstancePatchesRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
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::string instanceId_;
std::string regionId_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESREQUEST_H_

View File

@@ -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_LISTINSTANCEPATCHESRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstancePatchesResult : public ServiceResult
{
public:
struct Patch
{
std::string status;
std::string kBId;
std::string installedTime;
std::string classification;
std::string title;
std::string severity;
};
ListInstancePatchesResult();
explicit ListInstancePatchesResult(const std::string &payload);
~ListInstancePatchesResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<Patch> getPatches()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<Patch> patches_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCEPATCHESRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstanceStateReportsRequest : public RpcServiceRequest
{
public:
ListInstanceStateReportsRequest();
~ListInstanceStateReportsRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
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 getStateConfigurationId()const;
void setStateConfigurationId(const std::string& stateConfigurationId);
private:
std::string instanceId_;
std::string regionId_;
std::string nextToken_;
int maxResults_;
std::string stateConfigurationId_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_LISTINSTANCESTATEREPORTSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListInstanceStateReportsResult : public ServiceResult
{
public:
struct StateReport
{
std::string reportTime;
std::string instanceId;
std::string stateConfigurationId;
std::string successApplyTime;
std::string mode;
std::string reportInfo;
std::string reportStatus;
};
ListInstanceStateReportsResult();
explicit ListInstanceStateReportsResult(const std::string &payload);
~ListInstanceStateReportsResult();
std::vector<StateReport> getStateReports()const;
std::string getNextToken()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::vector<StateReport> stateReports_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTINSTANCESTATEREPORTSRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesRequest : public RpcServiceRequest
{
public:
ListPatchBaselinesRequest();
~ListPatchBaselinesRequest();
std::string getOperationSystem()const;
void setOperationSystem(const std::string& operationSystem);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getName()const;
void setName(const std::string& name);
int getMaxResults()const;
void setMaxResults(int maxResults);
std::string getShareType()const;
void setShareType(const std::string& shareType);
private:
std::string operationSystem_;
std::string regionId_;
std::string nextToken_;
std::string name_;
int maxResults_;
std::string shareType_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListPatchBaselinesResult : public ServiceResult
{
public:
struct PatchBaseline
{
bool isDefault;
std::string updatedBy;
std::string createdBy;
std::string description;
std::string updatedDate;
std::string createdDate;
std::string id;
std::string operationSystem;
std::string name;
std::string shareType;
};
ListPatchBaselinesResult();
explicit ListPatchBaselinesResult(const std::string &payload);
~ListPatchBaselinesResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<PatchBaseline> getPatchBaselines()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<PatchBaseline> patchBaselines_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPATCHBASELINESRESULT_H_

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListStateConfigurationsRequest : public RpcServiceRequest
{
public:
ListStateConfigurationsRequest();
~ListStateConfigurationsRequest();
std::string getStateConfigurationIds()const;
void setStateConfigurationIds(const std::string& stateConfigurationIds);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getTemplateVersion()const;
void setTemplateVersion(const std::string& templateVersion);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getMaxResults()const;
void setMaxResults(const std::string& maxResults);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
private:
std::string stateConfigurationIds_;
std::string tags_;
std::string templateVersion_;
std::string regionId_;
std::string nextToken_;
std::string maxResults_;
std::string templateName_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSREQUEST_H_

View File

@@ -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_LISTSTATECONFIGURATIONSRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT ListStateConfigurationsResult : public ServiceResult
{
public:
struct StateConfiguration
{
std::string scheduleType;
std::string scheduleExpression;
std::string description;
std::string parameters;
std::string createTime;
std::string templateVersion;
std::string targets;
std::string configureMode;
std::string stateConfigurationId;
std::string updateTime;
std::string templateName;
std::string templateId;
std::string tags;
};
ListStateConfigurationsResult();
explicit ListStateConfigurationsResult(const std::string &payload);
~ListStateConfigurationsResult();
std::vector<StateConfiguration> getStateConfigurations()const;
protected:
void parse(const std::string &payload);
private:
std::vector<StateConfiguration> stateConfigurations_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSTATECONFIGURATIONSRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT RegisterDefaultPatchBaselineRequest : public RpcServiceRequest
{
public:
RegisterDefaultPatchBaselineRequest();
~RegisterDefaultPatchBaselineRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string regionId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINEREQUEST_H_

View File

@@ -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_REGISTERDEFAULTPATCHBASELINERESULT_H_
#define ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT RegisterDefaultPatchBaselineResult : public ServiceResult
{
public:
struct PatchBaseline
{
std::string updatedBy;
std::string createdBy;
std::string description;
std::string updatedDate;
std::string createdDate;
std::string id;
std::string operationSystem;
std::string approvalRules;
std::string name;
std::string shareType;
};
RegisterDefaultPatchBaselineResult();
explicit RegisterDefaultPatchBaselineResult(const std::string &payload);
~RegisterDefaultPatchBaselineResult();
PatchBaseline getPatchBaseline()const;
protected:
void parse(const std::string &payload);
private:
PatchBaseline patchBaseline_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_REGISTERDEFAULTPATCHBASELINERESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setDeliveryOssKeyPrefix(const std::string& deliveryOssKeyPrefix);
bool getDeliveryOssEnabled()const;
void setDeliveryOssEnabled(bool deliveryOssEnabled);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDeliverySlsProjectName()const;
void setDeliverySlsProjectName(const std::string& deliverySlsProjectName);
std::string getDeliveryOssBucketName()const;
@@ -50,6 +52,7 @@ namespace AlibabaCloud
bool deliverySlsEnabled_;
std::string deliveryOssKeyPrefix_;
bool deliveryOssEnabled_;
std::string regionId_;
std::string deliverySlsProjectName_;
std::string deliveryOssBucketName_;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineRequest : public RpcServiceRequest
{
public:
UpdatePatchBaselineRequest();
~UpdatePatchBaselineRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getApprovalRules()const;
void setApprovalRules(const std::string& approvalRules);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
private:
std::string clientToken_;
std::string approvalRules_;
std::string description_;
std::string regionId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINEREQUEST_H_

View File

@@ -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_UPDATEPATCHBASELINERESULT_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT UpdatePatchBaselineResult : public ServiceResult
{
public:
struct PatchBaseline
{
std::string updatedBy;
std::string createdBy;
std::string description;
std::string updatedDate;
std::string createdDate;
std::string id;
std::string operationSystem;
std::string approvalRules;
std::string name;
std::string shareType;
};
UpdatePatchBaselineResult();
explicit UpdatePatchBaselineResult(const std::string &payload);
~UpdatePatchBaselineResult();
PatchBaseline getPatchBaseline()const;
protected:
void parse(const std::string &payload);
private:
PatchBaseline patchBaseline_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPATCHBASELINERESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_UPDATESTATECONFIGURATIONREQUEST_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT UpdateStateConfigurationRequest : public RpcServiceRequest
{
public:
UpdateStateConfigurationRequest();
~UpdateStateConfigurationRequest();
std::string getScheduleType()const;
void setScheduleType(const std::string& scheduleType);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getTargets()const;
void setTargets(const std::string& targets);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getScheduleExpression()const;
void setScheduleExpression(const std::string& scheduleExpression);
std::string getConfigureMode()const;
void setConfigureMode(const std::string& configureMode);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getParameters()const;
void setParameters(const std::string& parameters);
std::string getStateConfigurationId()const;
void setStateConfigurationId(const std::string& stateConfigurationId);
private:
std::string scheduleType_;
std::string clientToken_;
std::string description_;
std::string targets_;
std::string regionId_;
std::string scheduleExpression_;
std::string configureMode_;
std::string tags_;
std::string parameters_;
std::string stateConfigurationId_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONREQUEST_H_

View File

@@ -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_UPDATESTATECONFIGURATIONRESULT_H_
#define ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/oos/OosExport.h>
namespace AlibabaCloud
{
namespace Oos
{
namespace Model
{
class ALIBABACLOUD_OOS_EXPORT UpdateStateConfigurationResult : public ServiceResult
{
public:
struct StateConfigurationItem
{
std::string scheduleType;
std::string scheduleExpression;
std::string description;
std::string parameters;
std::string createTime;
std::string templateVersion;
std::string targets;
std::string configureMode;
std::string stateConfigurationId;
std::string updateTime;
std::string templateName;
std::string templateId;
std::string tags;
};
UpdateStateConfigurationResult();
explicit UpdateStateConfigurationResult(const std::string &payload);
~UpdateStateConfigurationResult();
std::vector<StateConfigurationItem> getStateConfiguration()const;
protected:
void parse(const std::string &payload);
private:
std::vector<StateConfigurationItem> stateConfiguration_;
};
}
}
}
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESTATECONFIGURATIONRESULT_H_

View File

@@ -123,6 +123,42 @@ OosClient::CreateParameterOutcomeCallable OosClient::createParameterCallable(con
return task->get_future();
}
OosClient::CreatePatchBaselineOutcome OosClient::createPatchBaseline(const CreatePatchBaselineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreatePatchBaselineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreatePatchBaselineOutcome(CreatePatchBaselineResult(outcome.result()));
else
return CreatePatchBaselineOutcome(outcome.error());
}
void OosClient::createPatchBaselineAsync(const CreatePatchBaselineRequest& request, const CreatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createPatchBaseline(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::CreatePatchBaselineOutcomeCallable OosClient::createPatchBaselineCallable(const CreatePatchBaselineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreatePatchBaselineOutcome()>>(
[this, request]()
{
return this->createPatchBaseline(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::CreateSecretParameterOutcome OosClient::createSecretParameter(const CreateSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -159,6 +195,42 @@ OosClient::CreateSecretParameterOutcomeCallable OosClient::createSecretParameter
return task->get_future();
}
OosClient::CreateStateConfigurationOutcome OosClient::createStateConfiguration(const CreateStateConfigurationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateStateConfigurationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateStateConfigurationOutcome(CreateStateConfigurationResult(outcome.result()));
else
return CreateStateConfigurationOutcome(outcome.error());
}
void OosClient::createStateConfigurationAsync(const CreateStateConfigurationRequest& request, const CreateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createStateConfiguration(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::CreateStateConfigurationOutcomeCallable OosClient::createStateConfigurationCallable(const CreateStateConfigurationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateStateConfigurationOutcome()>>(
[this, request]()
{
return this->createStateConfiguration(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::CreateTemplateOutcome OosClient::createTemplate(const CreateTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -267,6 +339,42 @@ OosClient::DeleteParameterOutcomeCallable OosClient::deleteParameterCallable(con
return task->get_future();
}
OosClient::DeletePatchBaselineOutcome OosClient::deletePatchBaseline(const DeletePatchBaselineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePatchBaselineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeletePatchBaselineOutcome(DeletePatchBaselineResult(outcome.result()));
else
return DeletePatchBaselineOutcome(outcome.error());
}
void OosClient::deletePatchBaselineAsync(const DeletePatchBaselineRequest& request, const DeletePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deletePatchBaseline(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::DeletePatchBaselineOutcomeCallable OosClient::deletePatchBaselineCallable(const DeletePatchBaselineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeletePatchBaselineOutcome()>>(
[this, request]()
{
return this->deletePatchBaseline(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::DeleteSecretParameterOutcome OosClient::deleteSecretParameter(const DeleteSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +411,42 @@ OosClient::DeleteSecretParameterOutcomeCallable OosClient::deleteSecretParameter
return task->get_future();
}
OosClient::DeleteStateConfigurationsOutcome OosClient::deleteStateConfigurations(const DeleteStateConfigurationsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteStateConfigurationsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteStateConfigurationsOutcome(DeleteStateConfigurationsResult(outcome.result()));
else
return DeleteStateConfigurationsOutcome(outcome.error());
}
void OosClient::deleteStateConfigurationsAsync(const DeleteStateConfigurationsRequest& request, const DeleteStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteStateConfigurations(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::DeleteStateConfigurationsOutcomeCallable OosClient::deleteStateConfigurationsCallable(const DeleteStateConfigurationsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteStateConfigurationsOutcome()>>(
[this, request]()
{
return this->deleteStateConfigurations(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::DeleteTemplateOutcome OosClient::deleteTemplate(const DeleteTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +771,42 @@ OosClient::GetParametersByPathOutcomeCallable OosClient::getParametersByPathCall
return task->get_future();
}
OosClient::GetPatchBaselineOutcome OosClient::getPatchBaseline(const GetPatchBaselineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPatchBaselineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetPatchBaselineOutcome(GetPatchBaselineResult(outcome.result()));
else
return GetPatchBaselineOutcome(outcome.error());
}
void OosClient::getPatchBaselineAsync(const GetPatchBaselineRequest& request, const GetPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getPatchBaseline(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::GetPatchBaselineOutcomeCallable OosClient::getPatchBaselineCallable(const GetPatchBaselineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetPatchBaselineOutcome()>>(
[this, request]()
{
return this->getPatchBaseline(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::GetSecretParameterOutcome OosClient::getSecretParameter(const GetSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,6 +1131,114 @@ OosClient::ListExecutionsOutcomeCallable OosClient::listExecutionsCallable(const
return task->get_future();
}
OosClient::ListInstancePatchStatesOutcome OosClient::listInstancePatchStates(const ListInstancePatchStatesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListInstancePatchStatesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListInstancePatchStatesOutcome(ListInstancePatchStatesResult(outcome.result()));
else
return ListInstancePatchStatesOutcome(outcome.error());
}
void OosClient::listInstancePatchStatesAsync(const ListInstancePatchStatesRequest& request, const ListInstancePatchStatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listInstancePatchStates(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListInstancePatchStatesOutcomeCallable OosClient::listInstancePatchStatesCallable(const ListInstancePatchStatesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListInstancePatchStatesOutcome()>>(
[this, request]()
{
return this->listInstancePatchStates(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListInstancePatchesOutcome OosClient::listInstancePatches(const ListInstancePatchesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListInstancePatchesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListInstancePatchesOutcome(ListInstancePatchesResult(outcome.result()));
else
return ListInstancePatchesOutcome(outcome.error());
}
void OosClient::listInstancePatchesAsync(const ListInstancePatchesRequest& request, const ListInstancePatchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listInstancePatches(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListInstancePatchesOutcomeCallable OosClient::listInstancePatchesCallable(const ListInstancePatchesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListInstancePatchesOutcome()>>(
[this, request]()
{
return this->listInstancePatches(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListInstanceStateReportsOutcome OosClient::listInstanceStateReports(const ListInstanceStateReportsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListInstanceStateReportsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListInstanceStateReportsOutcome(ListInstanceStateReportsResult(outcome.result()));
else
return ListInstanceStateReportsOutcome(outcome.error());
}
void OosClient::listInstanceStateReportsAsync(const ListInstanceStateReportsRequest& request, const ListInstanceStateReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listInstanceStateReports(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListInstanceStateReportsOutcomeCallable OosClient::listInstanceStateReportsCallable(const ListInstanceStateReportsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListInstanceStateReportsOutcome()>>(
[this, request]()
{
return this->listInstanceStateReports(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListInventoryEntriesOutcome OosClient::listInventoryEntries(const ListInventoryEntriesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1347,42 @@ OosClient::ListParametersOutcomeCallable OosClient::listParametersCallable(const
return task->get_future();
}
OosClient::ListPatchBaselinesOutcome OosClient::listPatchBaselines(const ListPatchBaselinesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPatchBaselinesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPatchBaselinesOutcome(ListPatchBaselinesResult(outcome.result()));
else
return ListPatchBaselinesOutcome(outcome.error());
}
void OosClient::listPatchBaselinesAsync(const ListPatchBaselinesRequest& request, const ListPatchBaselinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPatchBaselines(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListPatchBaselinesOutcomeCallable OosClient::listPatchBaselinesCallable(const ListPatchBaselinesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPatchBaselinesOutcome()>>(
[this, request]()
{
return this->listPatchBaselines(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListResourceExecutionStatusOutcome OosClient::listResourceExecutionStatus(const ListResourceExecutionStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1491,42 @@ OosClient::ListSecretParametersOutcomeCallable OosClient::listSecretParametersCa
return task->get_future();
}
OosClient::ListStateConfigurationsOutcome OosClient::listStateConfigurations(const ListStateConfigurationsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListStateConfigurationsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListStateConfigurationsOutcome(ListStateConfigurationsResult(outcome.result()));
else
return ListStateConfigurationsOutcome(outcome.error());
}
void OosClient::listStateConfigurationsAsync(const ListStateConfigurationsRequest& request, const ListStateConfigurationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listStateConfigurations(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListStateConfigurationsOutcomeCallable OosClient::listStateConfigurationsCallable(const ListStateConfigurationsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListStateConfigurationsOutcome()>>(
[this, request]()
{
return this->listStateConfigurations(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListTagKeysOutcome OosClient::listTagKeys(const ListTagKeysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1779,42 @@ OosClient::NotifyExecutionOutcomeCallable OosClient::notifyExecutionCallable(con
return task->get_future();
}
OosClient::RegisterDefaultPatchBaselineOutcome OosClient::registerDefaultPatchBaseline(const RegisterDefaultPatchBaselineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RegisterDefaultPatchBaselineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RegisterDefaultPatchBaselineOutcome(RegisterDefaultPatchBaselineResult(outcome.result()));
else
return RegisterDefaultPatchBaselineOutcome(outcome.error());
}
void OosClient::registerDefaultPatchBaselineAsync(const RegisterDefaultPatchBaselineRequest& request, const RegisterDefaultPatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, registerDefaultPatchBaseline(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::RegisterDefaultPatchBaselineOutcomeCallable OosClient::registerDefaultPatchBaselineCallable(const RegisterDefaultPatchBaselineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RegisterDefaultPatchBaselineOutcome()>>(
[this, request]()
{
return this->registerDefaultPatchBaseline(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::SearchInventoryOutcome OosClient::searchInventory(const SearchInventoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1743,6 +2139,42 @@ OosClient::UpdateParameterOutcomeCallable OosClient::updateParameterCallable(con
return task->get_future();
}
OosClient::UpdatePatchBaselineOutcome OosClient::updatePatchBaseline(const UpdatePatchBaselineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdatePatchBaselineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdatePatchBaselineOutcome(UpdatePatchBaselineResult(outcome.result()));
else
return UpdatePatchBaselineOutcome(outcome.error());
}
void OosClient::updatePatchBaselineAsync(const UpdatePatchBaselineRequest& request, const UpdatePatchBaselineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updatePatchBaseline(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::UpdatePatchBaselineOutcomeCallable OosClient::updatePatchBaselineCallable(const UpdatePatchBaselineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdatePatchBaselineOutcome()>>(
[this, request]()
{
return this->updatePatchBaseline(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::UpdateSecretParameterOutcome OosClient::updateSecretParameter(const UpdateSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1779,6 +2211,42 @@ OosClient::UpdateSecretParameterOutcomeCallable OosClient::updateSecretParameter
return task->get_future();
}
OosClient::UpdateStateConfigurationOutcome OosClient::updateStateConfiguration(const UpdateStateConfigurationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateStateConfigurationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateStateConfigurationOutcome(UpdateStateConfigurationResult(outcome.result()));
else
return UpdateStateConfigurationOutcome(outcome.error());
}
void OosClient::updateStateConfigurationAsync(const UpdateStateConfigurationRequest& request, const UpdateStateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateStateConfiguration(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::UpdateStateConfigurationOutcomeCallable OosClient::updateStateConfigurationCallable(const UpdateStateConfigurationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateStateConfigurationOutcome()>>(
[this, request]()
{
return this->updateStateConfiguration(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::UpdateTemplateOutcome OosClient::updateTemplate(const UpdateTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -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 <alibabacloud/oos/model/CreatePatchBaselineRequest.h>
using AlibabaCloud::Oos::Model::CreatePatchBaselineRequest;
CreatePatchBaselineRequest::CreatePatchBaselineRequest() :
RpcServiceRequest("oos", "2019-06-01", "CreatePatchBaseline")
{
setMethod(HttpRequest::Method::Post);
}
CreatePatchBaselineRequest::~CreatePatchBaselineRequest()
{}
std::string CreatePatchBaselineRequest::getClientToken()const
{
return clientToken_;
}
void CreatePatchBaselineRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreatePatchBaselineRequest::getApprovalRules()const
{
return approvalRules_;
}
void CreatePatchBaselineRequest::setApprovalRules(const std::string& approvalRules)
{
approvalRules_ = approvalRules;
setParameter("ApprovalRules", approvalRules);
}
std::string CreatePatchBaselineRequest::getDescription()const
{
return description_;
}
void CreatePatchBaselineRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreatePatchBaselineRequest::getOperationSystem()const
{
return operationSystem_;
}
void CreatePatchBaselineRequest::setOperationSystem(const std::string& operationSystem)
{
operationSystem_ = operationSystem;
setParameter("OperationSystem", operationSystem);
}
std::string CreatePatchBaselineRequest::getRegionId()const
{
return regionId_;
}
void CreatePatchBaselineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreatePatchBaselineRequest::getName()const
{
return name_;
}
void CreatePatchBaselineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/CreatePatchBaselineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
CreatePatchBaselineResult::CreatePatchBaselineResult() :
ServiceResult()
{}
CreatePatchBaselineResult::CreatePatchBaselineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePatchBaselineResult::~CreatePatchBaselineResult()
{}
void CreatePatchBaselineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto patchBaselineNode = value["PatchBaseline"];
if(!patchBaselineNode["Id"].isNull())
patchBaseline_.id = patchBaselineNode["Id"].asString();
if(!patchBaselineNode["Name"].isNull())
patchBaseline_.name = patchBaselineNode["Name"].asString();
if(!patchBaselineNode["CreatedDate"].isNull())
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
if(!patchBaselineNode["CreatedBy"].isNull())
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
if(!patchBaselineNode["UpdatedDate"].isNull())
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
if(!patchBaselineNode["UpdatedBy"].isNull())
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
if(!patchBaselineNode["Description"].isNull())
patchBaseline_.description = patchBaselineNode["Description"].asString();
if(!patchBaselineNode["ShareType"].isNull())
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
if(!patchBaselineNode["OperationSystem"].isNull())
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
if(!patchBaselineNode["ApprovalRules"].isNull())
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
}
CreatePatchBaselineResult::PatchBaseline CreatePatchBaselineResult::getPatchBaseline()const
{
return patchBaseline_;
}

View File

@@ -0,0 +1,150 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/CreateStateConfigurationRequest.h>
using AlibabaCloud::Oos::Model::CreateStateConfigurationRequest;
CreateStateConfigurationRequest::CreateStateConfigurationRequest() :
RpcServiceRequest("oos", "2019-06-01", "CreateStateConfiguration")
{
setMethod(HttpRequest::Method::Post);
}
CreateStateConfigurationRequest::~CreateStateConfigurationRequest()
{}
std::string CreateStateConfigurationRequest::getScheduleType()const
{
return scheduleType_;
}
void CreateStateConfigurationRequest::setScheduleType(const std::string& scheduleType)
{
scheduleType_ = scheduleType;
setParameter("ScheduleType", scheduleType);
}
std::string CreateStateConfigurationRequest::getClientToken()const
{
return clientToken_;
}
void CreateStateConfigurationRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateStateConfigurationRequest::getDescription()const
{
return description_;
}
void CreateStateConfigurationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateStateConfigurationRequest::getTargets()const
{
return targets_;
}
void CreateStateConfigurationRequest::setTargets(const std::string& targets)
{
targets_ = targets;
setParameter("Targets", targets);
}
std::string CreateStateConfigurationRequest::getTemplateVersion()const
{
return templateVersion_;
}
void CreateStateConfigurationRequest::setTemplateVersion(const std::string& templateVersion)
{
templateVersion_ = templateVersion;
setParameter("TemplateVersion", templateVersion);
}
std::string CreateStateConfigurationRequest::getRegionId()const
{
return regionId_;
}
void CreateStateConfigurationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateStateConfigurationRequest::getScheduleExpression()const
{
return scheduleExpression_;
}
void CreateStateConfigurationRequest::setScheduleExpression(const std::string& scheduleExpression)
{
scheduleExpression_ = scheduleExpression;
setParameter("ScheduleExpression", scheduleExpression);
}
std::string CreateStateConfigurationRequest::getTemplateName()const
{
return templateName_;
}
void CreateStateConfigurationRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
std::string CreateStateConfigurationRequest::getConfigureMode()const
{
return configureMode_;
}
void CreateStateConfigurationRequest::setConfigureMode(const std::string& configureMode)
{
configureMode_ = configureMode;
setParameter("ConfigureMode", configureMode);
}
std::string CreateStateConfigurationRequest::getTags()const
{
return tags_;
}
void CreateStateConfigurationRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string CreateStateConfigurationRequest::getParameters()const
{
return parameters_;
}
void CreateStateConfigurationRequest::setParameters(const std::string& parameters)
{
parameters_ = parameters;
setParameter("Parameters", parameters);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/CreateStateConfigurationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
CreateStateConfigurationResult::CreateStateConfigurationResult() :
ServiceResult()
{}
CreateStateConfigurationResult::CreateStateConfigurationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateStateConfigurationResult::~CreateStateConfigurationResult()
{}
void CreateStateConfigurationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStateConfigurationNode = value["StateConfiguration"]["StateConfigurationItem"];
for (auto valueStateConfigurationStateConfigurationItem : allStateConfigurationNode)
{
StateConfigurationItem stateConfigurationObject;
if(!valueStateConfigurationStateConfigurationItem["CreateTime"].isNull())
stateConfigurationObject.createTime = valueStateConfigurationStateConfigurationItem["CreateTime"].asString();
if(!valueStateConfigurationStateConfigurationItem["Description"].isNull())
stateConfigurationObject.description = valueStateConfigurationStateConfigurationItem["Description"].asString();
if(!valueStateConfigurationStateConfigurationItem["StateConfigurationId"].isNull())
stateConfigurationObject.stateConfigurationId = valueStateConfigurationStateConfigurationItem["StateConfigurationId"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateId"].isNull())
stateConfigurationObject.templateId = valueStateConfigurationStateConfigurationItem["TemplateId"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateName"].isNull())
stateConfigurationObject.templateName = valueStateConfigurationStateConfigurationItem["TemplateName"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateVersion"].isNull())
stateConfigurationObject.templateVersion = valueStateConfigurationStateConfigurationItem["TemplateVersion"].asString();
if(!valueStateConfigurationStateConfigurationItem["Parameters"].isNull())
stateConfigurationObject.parameters = valueStateConfigurationStateConfigurationItem["Parameters"].asString();
if(!valueStateConfigurationStateConfigurationItem["ConfigureMode"].isNull())
stateConfigurationObject.configureMode = valueStateConfigurationStateConfigurationItem["ConfigureMode"].asString();
if(!valueStateConfigurationStateConfigurationItem["ScheduleType"].isNull())
stateConfigurationObject.scheduleType = valueStateConfigurationStateConfigurationItem["ScheduleType"].asString();
if(!valueStateConfigurationStateConfigurationItem["ScheduleExpression"].isNull())
stateConfigurationObject.scheduleExpression = valueStateConfigurationStateConfigurationItem["ScheduleExpression"].asString();
if(!valueStateConfigurationStateConfigurationItem["Targets"].isNull())
stateConfigurationObject.targets = valueStateConfigurationStateConfigurationItem["Targets"].asString();
if(!valueStateConfigurationStateConfigurationItem["Tags"].isNull())
stateConfigurationObject.tags = valueStateConfigurationStateConfigurationItem["Tags"].asString();
stateConfiguration_.push_back(stateConfigurationObject);
}
}
std::vector<CreateStateConfigurationResult::StateConfigurationItem> CreateStateConfigurationResult::getStateConfiguration()const
{
return stateConfiguration_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeletePatchBaselineRequest.h>
using AlibabaCloud::Oos::Model::DeletePatchBaselineRequest;
DeletePatchBaselineRequest::DeletePatchBaselineRequest() :
RpcServiceRequest("oos", "2019-06-01", "DeletePatchBaseline")
{
setMethod(HttpRequest::Method::Post);
}
DeletePatchBaselineRequest::~DeletePatchBaselineRequest()
{}
std::string DeletePatchBaselineRequest::getRegionId()const
{
return regionId_;
}
void DeletePatchBaselineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeletePatchBaselineRequest::getName()const
{
return name_;
}
void DeletePatchBaselineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeletePatchBaselineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
DeletePatchBaselineResult::DeletePatchBaselineResult() :
ServiceResult()
{}
DeletePatchBaselineResult::DeletePatchBaselineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePatchBaselineResult::~DeletePatchBaselineResult()
{}
void DeletePatchBaselineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteStateConfigurationsRequest.h>
using AlibabaCloud::Oos::Model::DeleteStateConfigurationsRequest;
DeleteStateConfigurationsRequest::DeleteStateConfigurationsRequest() :
RpcServiceRequest("oos", "2019-06-01", "DeleteStateConfigurations")
{
setMethod(HttpRequest::Method::Post);
}
DeleteStateConfigurationsRequest::~DeleteStateConfigurationsRequest()
{}
std::string DeleteStateConfigurationsRequest::getStateConfigurationIds()const
{
return stateConfigurationIds_;
}
void DeleteStateConfigurationsRequest::setStateConfigurationIds(const std::string& stateConfigurationIds)
{
stateConfigurationIds_ = stateConfigurationIds;
setParameter("StateConfigurationIds", stateConfigurationIds);
}
std::string DeleteStateConfigurationsRequest::getClientToken()const
{
return clientToken_;
}
void DeleteStateConfigurationsRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string DeleteStateConfigurationsRequest::getRegionId()const
{
return regionId_;
}
void DeleteStateConfigurationsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteStateConfigurationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
DeleteStateConfigurationsResult::DeleteStateConfigurationsResult() :
ServiceResult()
{}
DeleteStateConfigurationsResult::DeleteStateConfigurationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteStateConfigurationsResult::~DeleteStateConfigurationsResult()
{}
void DeleteStateConfigurationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/GetPatchBaselineRequest.h>
using AlibabaCloud::Oos::Model::GetPatchBaselineRequest;
GetPatchBaselineRequest::GetPatchBaselineRequest() :
RpcServiceRequest("oos", "2019-06-01", "GetPatchBaseline")
{
setMethod(HttpRequest::Method::Post);
}
GetPatchBaselineRequest::~GetPatchBaselineRequest()
{}
std::string GetPatchBaselineRequest::getRegionId()const
{
return regionId_;
}
void GetPatchBaselineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetPatchBaselineRequest::getName()const
{
return name_;
}
void GetPatchBaselineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/GetPatchBaselineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
GetPatchBaselineResult::GetPatchBaselineResult() :
ServiceResult()
{}
GetPatchBaselineResult::GetPatchBaselineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPatchBaselineResult::~GetPatchBaselineResult()
{}
void GetPatchBaselineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto patchBaselineNode = value["PatchBaseline"];
if(!patchBaselineNode["Id"].isNull())
patchBaseline_.id = patchBaselineNode["Id"].asString();
if(!patchBaselineNode["Name"].isNull())
patchBaseline_.name = patchBaselineNode["Name"].asString();
if(!patchBaselineNode["CreatedDate"].isNull())
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
if(!patchBaselineNode["CreatedBy"].isNull())
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
if(!patchBaselineNode["UpdatedDate"].isNull())
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
if(!patchBaselineNode["UpdatedBy"].isNull())
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
if(!patchBaselineNode["Description"].isNull())
patchBaseline_.description = patchBaselineNode["Description"].asString();
if(!patchBaselineNode["ShareType"].isNull())
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
if(!patchBaselineNode["OperationSystem"].isNull())
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
if(!patchBaselineNode["ApprovalRules"].isNull())
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
}
GetPatchBaselineResult::PatchBaseline GetPatchBaselineResult::getPatchBaseline()const
{
return patchBaseline_;
}

View File

@@ -27,3 +27,14 @@ GetServiceSettingsRequest::GetServiceSettingsRequest() :
GetServiceSettingsRequest::~GetServiceSettingsRequest()
{}
std::string GetServiceSettingsRequest::getRegionId()const
{
return regionId_;
}
void GetServiceSettingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -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 <alibabacloud/oos/model/ListInstancePatchStatesRequest.h>
using AlibabaCloud::Oos::Model::ListInstancePatchStatesRequest;
ListInstancePatchStatesRequest::ListInstancePatchStatesRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListInstancePatchStates")
{
setMethod(HttpRequest::Method::Post);
}
ListInstancePatchStatesRequest::~ListInstancePatchStatesRequest()
{}
std::string ListInstancePatchStatesRequest::getRegionId()const
{
return regionId_;
}
void ListInstancePatchStatesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListInstancePatchStatesRequest::getNextToken()const
{
return nextToken_;
}
void ListInstancePatchStatesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListInstancePatchStatesRequest::getInstanceIds()const
{
return instanceIds_;
}
void ListInstancePatchStatesRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setParameter("InstanceIds", instanceIds);
}
int ListInstancePatchStatesRequest::getMaxResults()const
{
return maxResults_;
}
void ListInstancePatchStatesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}

View File

@@ -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 <alibabacloud/oos/model/ListInstancePatchStatesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListInstancePatchStatesResult::ListInstancePatchStatesResult() :
ServiceResult()
{}
ListInstancePatchStatesResult::ListInstancePatchStatesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancePatchStatesResult::~ListInstancePatchStatesResult()
{}
void ListInstancePatchStatesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancePatchStatesNode = value["InstancePatchStates"]["InstancePatchState"];
for (auto valueInstancePatchStatesInstancePatchState : allInstancePatchStatesNode)
{
InstancePatchState instancePatchStatesObject;
if(!valueInstancePatchStatesInstancePatchState["InstanceId"].isNull())
instancePatchStatesObject.instanceId = valueInstancePatchStatesInstancePatchState["InstanceId"].asString();
if(!valueInstancePatchStatesInstancePatchState["PatchGroup"].isNull())
instancePatchStatesObject.patchGroup = valueInstancePatchStatesInstancePatchState["PatchGroup"].asString();
if(!valueInstancePatchStatesInstancePatchState["BaselineId"].isNull())
instancePatchStatesObject.baselineId = valueInstancePatchStatesInstancePatchState["BaselineId"].asString();
if(!valueInstancePatchStatesInstancePatchState["OwnerInformation"].isNull())
instancePatchStatesObject.ownerInformation = valueInstancePatchStatesInstancePatchState["OwnerInformation"].asString();
if(!valueInstancePatchStatesInstancePatchState["InstalledCount"].isNull())
instancePatchStatesObject.installedCount = valueInstancePatchStatesInstancePatchState["InstalledCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].isNull())
instancePatchStatesObject.installedOtherCount = valueInstancePatchStatesInstancePatchState["InstalledOtherCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].isNull())
instancePatchStatesObject.installedPendingRebootCount = valueInstancePatchStatesInstancePatchState["InstalledPendingRebootCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].isNull())
instancePatchStatesObject.installedRejectedCount = valueInstancePatchStatesInstancePatchState["InstalledRejectedCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["MissingCount"].isNull())
instancePatchStatesObject.missingCount = valueInstancePatchStatesInstancePatchState["MissingCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["FailedCount"].isNull())
instancePatchStatesObject.failedCount = valueInstancePatchStatesInstancePatchState["FailedCount"].asString();
if(!valueInstancePatchStatesInstancePatchState["OperationType"].isNull())
instancePatchStatesObject.operationType = valueInstancePatchStatesInstancePatchState["OperationType"].asString();
if(!valueInstancePatchStatesInstancePatchState["OperationStartTime"].isNull())
instancePatchStatesObject.operationStartTime = valueInstancePatchStatesInstancePatchState["OperationStartTime"].asString();
if(!valueInstancePatchStatesInstancePatchState["OperationEndTime"].isNull())
instancePatchStatesObject.operationEndTime = valueInstancePatchStatesInstancePatchState["OperationEndTime"].asString();
instancePatchStates_.push_back(instancePatchStatesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListInstancePatchStatesResult::getNextToken()const
{
return nextToken_;
}
int ListInstancePatchStatesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListInstancePatchStatesResult::InstancePatchState> ListInstancePatchStatesResult::getInstancePatchStates()const
{
return instancePatchStates_;
}

View File

@@ -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 <alibabacloud/oos/model/ListInstancePatchesRequest.h>
using AlibabaCloud::Oos::Model::ListInstancePatchesRequest;
ListInstancePatchesRequest::ListInstancePatchesRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListInstancePatches")
{
setMethod(HttpRequest::Method::Post);
}
ListInstancePatchesRequest::~ListInstancePatchesRequest()
{}
std::string ListInstancePatchesRequest::getInstanceId()const
{
return instanceId_;
}
void ListInstancePatchesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListInstancePatchesRequest::getRegionId()const
{
return regionId_;
}
void ListInstancePatchesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListInstancePatchesRequest::getNextToken()const
{
return nextToken_;
}
void ListInstancePatchesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
int ListInstancePatchesRequest::getMaxResults()const
{
return maxResults_;
}
void ListInstancePatchesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListInstancePatchesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListInstancePatchesResult::ListInstancePatchesResult() :
ServiceResult()
{}
ListInstancePatchesResult::ListInstancePatchesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstancePatchesResult::~ListInstancePatchesResult()
{}
void ListInstancePatchesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPatchesNode = value["Patches"]["Patch"];
for (auto valuePatchesPatch : allPatchesNode)
{
Patch patchesObject;
if(!valuePatchesPatch["Classification"].isNull())
patchesObject.classification = valuePatchesPatch["Classification"].asString();
if(!valuePatchesPatch["InstalledTime"].isNull())
patchesObject.installedTime = valuePatchesPatch["InstalledTime"].asString();
if(!valuePatchesPatch["KBId"].isNull())
patchesObject.kBId = valuePatchesPatch["KBId"].asString();
if(!valuePatchesPatch["Severity"].isNull())
patchesObject.severity = valuePatchesPatch["Severity"].asString();
if(!valuePatchesPatch["Status"].isNull())
patchesObject.status = valuePatchesPatch["Status"].asString();
if(!valuePatchesPatch["Title"].isNull())
patchesObject.title = valuePatchesPatch["Title"].asString();
patches_.push_back(patchesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListInstancePatchesResult::getNextToken()const
{
return nextToken_;
}
int ListInstancePatchesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListInstancePatchesResult::Patch> ListInstancePatchesResult::getPatches()const
{
return patches_;
}

View File

@@ -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 <alibabacloud/oos/model/ListInstanceStateReportsRequest.h>
using AlibabaCloud::Oos::Model::ListInstanceStateReportsRequest;
ListInstanceStateReportsRequest::ListInstanceStateReportsRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListInstanceStateReports")
{
setMethod(HttpRequest::Method::Post);
}
ListInstanceStateReportsRequest::~ListInstanceStateReportsRequest()
{}
std::string ListInstanceStateReportsRequest::getInstanceId()const
{
return instanceId_;
}
void ListInstanceStateReportsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListInstanceStateReportsRequest::getRegionId()const
{
return regionId_;
}
void ListInstanceStateReportsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListInstanceStateReportsRequest::getNextToken()const
{
return nextToken_;
}
void ListInstanceStateReportsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
int ListInstanceStateReportsRequest::getMaxResults()const
{
return maxResults_;
}
void ListInstanceStateReportsRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListInstanceStateReportsRequest::getStateConfigurationId()const
{
return stateConfigurationId_;
}
void ListInstanceStateReportsRequest::setStateConfigurationId(const std::string& stateConfigurationId)
{
stateConfigurationId_ = stateConfigurationId;
setParameter("StateConfigurationId", stateConfigurationId);
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListInstanceStateReportsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListInstanceStateReportsResult::ListInstanceStateReportsResult() :
ServiceResult()
{}
ListInstanceStateReportsResult::ListInstanceStateReportsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceStateReportsResult::~ListInstanceStateReportsResult()
{}
void ListInstanceStateReportsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStateReportsNode = value["StateReports"]["StateReport"];
for (auto valueStateReportsStateReport : allStateReportsNode)
{
StateReport stateReportsObject;
if(!valueStateReportsStateReport["ReportTime"].isNull())
stateReportsObject.reportTime = valueStateReportsStateReport["ReportTime"].asString();
if(!valueStateReportsStateReport["InstanceId"].isNull())
stateReportsObject.instanceId = valueStateReportsStateReport["InstanceId"].asString();
if(!valueStateReportsStateReport["StateConfigurationId"].isNull())
stateReportsObject.stateConfigurationId = valueStateReportsStateReport["StateConfigurationId"].asString();
if(!valueStateReportsStateReport["Mode"].isNull())
stateReportsObject.mode = valueStateReportsStateReport["Mode"].asString();
if(!valueStateReportsStateReport["ReportStatus"].isNull())
stateReportsObject.reportStatus = valueStateReportsStateReport["ReportStatus"].asString();
if(!valueStateReportsStateReport["SuccessApplyTime"].isNull())
stateReportsObject.successApplyTime = valueStateReportsStateReport["SuccessApplyTime"].asString();
if(!valueStateReportsStateReport["ReportInfo"].isNull())
stateReportsObject.reportInfo = valueStateReportsStateReport["ReportInfo"].asString();
stateReports_.push_back(stateReportsObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::vector<ListInstanceStateReportsResult::StateReport> ListInstanceStateReportsResult::getStateReports()const
{
return stateReports_;
}
std::string ListInstanceStateReportsResult::getNextToken()const
{
return nextToken_;
}
int ListInstanceStateReportsResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -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 <alibabacloud/oos/model/ListPatchBaselinesRequest.h>
using AlibabaCloud::Oos::Model::ListPatchBaselinesRequest;
ListPatchBaselinesRequest::ListPatchBaselinesRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListPatchBaselines")
{
setMethod(HttpRequest::Method::Post);
}
ListPatchBaselinesRequest::~ListPatchBaselinesRequest()
{}
std::string ListPatchBaselinesRequest::getOperationSystem()const
{
return operationSystem_;
}
void ListPatchBaselinesRequest::setOperationSystem(const std::string& operationSystem)
{
operationSystem_ = operationSystem;
setParameter("OperationSystem", operationSystem);
}
std::string ListPatchBaselinesRequest::getRegionId()const
{
return regionId_;
}
void ListPatchBaselinesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListPatchBaselinesRequest::getNextToken()const
{
return nextToken_;
}
void ListPatchBaselinesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListPatchBaselinesRequest::getName()const
{
return name_;
}
void ListPatchBaselinesRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int ListPatchBaselinesRequest::getMaxResults()const
{
return maxResults_;
}
void ListPatchBaselinesRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListPatchBaselinesRequest::getShareType()const
{
return shareType_;
}
void ListPatchBaselinesRequest::setShareType(const std::string& shareType)
{
shareType_ = shareType;
setParameter("ShareType", shareType);
}

View File

@@ -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 <alibabacloud/oos/model/ListPatchBaselinesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListPatchBaselinesResult::ListPatchBaselinesResult() :
ServiceResult()
{}
ListPatchBaselinesResult::ListPatchBaselinesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPatchBaselinesResult::~ListPatchBaselinesResult()
{}
void ListPatchBaselinesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPatchBaselinesNode = value["PatchBaselines"]["PatchBaseline"];
for (auto valuePatchBaselinesPatchBaseline : allPatchBaselinesNode)
{
PatchBaseline patchBaselinesObject;
if(!valuePatchBaselinesPatchBaseline["Id"].isNull())
patchBaselinesObject.id = valuePatchBaselinesPatchBaseline["Id"].asString();
if(!valuePatchBaselinesPatchBaseline["Name"].isNull())
patchBaselinesObject.name = valuePatchBaselinesPatchBaseline["Name"].asString();
if(!valuePatchBaselinesPatchBaseline["CreatedDate"].isNull())
patchBaselinesObject.createdDate = valuePatchBaselinesPatchBaseline["CreatedDate"].asString();
if(!valuePatchBaselinesPatchBaseline["CreatedBy"].isNull())
patchBaselinesObject.createdBy = valuePatchBaselinesPatchBaseline["CreatedBy"].asString();
if(!valuePatchBaselinesPatchBaseline["UpdatedDate"].isNull())
patchBaselinesObject.updatedDate = valuePatchBaselinesPatchBaseline["UpdatedDate"].asString();
if(!valuePatchBaselinesPatchBaseline["UpdatedBy"].isNull())
patchBaselinesObject.updatedBy = valuePatchBaselinesPatchBaseline["UpdatedBy"].asString();
if(!valuePatchBaselinesPatchBaseline["Description"].isNull())
patchBaselinesObject.description = valuePatchBaselinesPatchBaseline["Description"].asString();
if(!valuePatchBaselinesPatchBaseline["ShareType"].isNull())
patchBaselinesObject.shareType = valuePatchBaselinesPatchBaseline["ShareType"].asString();
if(!valuePatchBaselinesPatchBaseline["OperationSystem"].isNull())
patchBaselinesObject.operationSystem = valuePatchBaselinesPatchBaseline["OperationSystem"].asString();
if(!valuePatchBaselinesPatchBaseline["IsDefault"].isNull())
patchBaselinesObject.isDefault = valuePatchBaselinesPatchBaseline["IsDefault"].asString() == "true";
patchBaselines_.push_back(patchBaselinesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListPatchBaselinesResult::getNextToken()const
{
return nextToken_;
}
int ListPatchBaselinesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListPatchBaselinesResult::PatchBaseline> ListPatchBaselinesResult::getPatchBaselines()const
{
return patchBaselines_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListStateConfigurationsRequest.h>
using AlibabaCloud::Oos::Model::ListStateConfigurationsRequest;
ListStateConfigurationsRequest::ListStateConfigurationsRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListStateConfigurations")
{
setMethod(HttpRequest::Method::Post);
}
ListStateConfigurationsRequest::~ListStateConfigurationsRequest()
{}
std::string ListStateConfigurationsRequest::getStateConfigurationIds()const
{
return stateConfigurationIds_;
}
void ListStateConfigurationsRequest::setStateConfigurationIds(const std::string& stateConfigurationIds)
{
stateConfigurationIds_ = stateConfigurationIds;
setParameter("StateConfigurationIds", stateConfigurationIds);
}
std::string ListStateConfigurationsRequest::getTags()const
{
return tags_;
}
void ListStateConfigurationsRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string ListStateConfigurationsRequest::getTemplateVersion()const
{
return templateVersion_;
}
void ListStateConfigurationsRequest::setTemplateVersion(const std::string& templateVersion)
{
templateVersion_ = templateVersion;
setParameter("TemplateVersion", templateVersion);
}
std::string ListStateConfigurationsRequest::getRegionId()const
{
return regionId_;
}
void ListStateConfigurationsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListStateConfigurationsRequest::getNextToken()const
{
return nextToken_;
}
void ListStateConfigurationsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListStateConfigurationsRequest::getMaxResults()const
{
return maxResults_;
}
void ListStateConfigurationsRequest::setMaxResults(const std::string& maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", maxResults);
}
std::string ListStateConfigurationsRequest::getTemplateName()const
{
return templateName_;
}
void ListStateConfigurationsRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListStateConfigurationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListStateConfigurationsResult::ListStateConfigurationsResult() :
ServiceResult()
{}
ListStateConfigurationsResult::ListStateConfigurationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListStateConfigurationsResult::~ListStateConfigurationsResult()
{}
void ListStateConfigurationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStateConfigurationsNode = value["StateConfigurations"]["StateConfiguration"];
for (auto valueStateConfigurationsStateConfiguration : allStateConfigurationsNode)
{
StateConfiguration stateConfigurationsObject;
if(!valueStateConfigurationsStateConfiguration["CreateTime"].isNull())
stateConfigurationsObject.createTime = valueStateConfigurationsStateConfiguration["CreateTime"].asString();
if(!valueStateConfigurationsStateConfiguration["Description"].isNull())
stateConfigurationsObject.description = valueStateConfigurationsStateConfiguration["Description"].asString();
if(!valueStateConfigurationsStateConfiguration["StateConfigurationId"].isNull())
stateConfigurationsObject.stateConfigurationId = valueStateConfigurationsStateConfiguration["StateConfigurationId"].asString();
if(!valueStateConfigurationsStateConfiguration["TemplateId"].isNull())
stateConfigurationsObject.templateId = valueStateConfigurationsStateConfiguration["TemplateId"].asString();
if(!valueStateConfigurationsStateConfiguration["TemplateName"].isNull())
stateConfigurationsObject.templateName = valueStateConfigurationsStateConfiguration["TemplateName"].asString();
if(!valueStateConfigurationsStateConfiguration["TemplateVersion"].isNull())
stateConfigurationsObject.templateVersion = valueStateConfigurationsStateConfiguration["TemplateVersion"].asString();
if(!valueStateConfigurationsStateConfiguration["Parameters"].isNull())
stateConfigurationsObject.parameters = valueStateConfigurationsStateConfiguration["Parameters"].asString();
if(!valueStateConfigurationsStateConfiguration["ConfigureMode"].isNull())
stateConfigurationsObject.configureMode = valueStateConfigurationsStateConfiguration["ConfigureMode"].asString();
if(!valueStateConfigurationsStateConfiguration["ScheduleType"].isNull())
stateConfigurationsObject.scheduleType = valueStateConfigurationsStateConfiguration["ScheduleType"].asString();
if(!valueStateConfigurationsStateConfiguration["ScheduleExpression"].isNull())
stateConfigurationsObject.scheduleExpression = valueStateConfigurationsStateConfiguration["ScheduleExpression"].asString();
if(!valueStateConfigurationsStateConfiguration["Targets"].isNull())
stateConfigurationsObject.targets = valueStateConfigurationsStateConfiguration["Targets"].asString();
if(!valueStateConfigurationsStateConfiguration["UpdateTime"].isNull())
stateConfigurationsObject.updateTime = valueStateConfigurationsStateConfiguration["UpdateTime"].asString();
if(!valueStateConfigurationsStateConfiguration["Tags"].isNull())
stateConfigurationsObject.tags = valueStateConfigurationsStateConfiguration["Tags"].asString();
stateConfigurations_.push_back(stateConfigurationsObject);
}
}
std::vector<ListStateConfigurationsResult::StateConfiguration> ListStateConfigurationsResult::getStateConfigurations()const
{
return stateConfigurations_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/RegisterDefaultPatchBaselineRequest.h>
using AlibabaCloud::Oos::Model::RegisterDefaultPatchBaselineRequest;
RegisterDefaultPatchBaselineRequest::RegisterDefaultPatchBaselineRequest() :
RpcServiceRequest("oos", "2019-06-01", "RegisterDefaultPatchBaseline")
{
setMethod(HttpRequest::Method::Post);
}
RegisterDefaultPatchBaselineRequest::~RegisterDefaultPatchBaselineRequest()
{}
std::string RegisterDefaultPatchBaselineRequest::getRegionId()const
{
return regionId_;
}
void RegisterDefaultPatchBaselineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string RegisterDefaultPatchBaselineRequest::getName()const
{
return name_;
}
void RegisterDefaultPatchBaselineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/RegisterDefaultPatchBaselineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
RegisterDefaultPatchBaselineResult::RegisterDefaultPatchBaselineResult() :
ServiceResult()
{}
RegisterDefaultPatchBaselineResult::RegisterDefaultPatchBaselineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RegisterDefaultPatchBaselineResult::~RegisterDefaultPatchBaselineResult()
{}
void RegisterDefaultPatchBaselineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto patchBaselineNode = value["PatchBaseline"];
if(!patchBaselineNode["Id"].isNull())
patchBaseline_.id = patchBaselineNode["Id"].asString();
if(!patchBaselineNode["Name"].isNull())
patchBaseline_.name = patchBaselineNode["Name"].asString();
if(!patchBaselineNode["CreatedDate"].isNull())
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
if(!patchBaselineNode["CreatedBy"].isNull())
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
if(!patchBaselineNode["UpdatedDate"].isNull())
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
if(!patchBaselineNode["UpdatedBy"].isNull())
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
if(!patchBaselineNode["Description"].isNull())
patchBaseline_.description = patchBaselineNode["Description"].asString();
if(!patchBaselineNode["ShareType"].isNull())
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
if(!patchBaselineNode["OperationSystem"].isNull())
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
if(!patchBaselineNode["ApprovalRules"].isNull())
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
}
RegisterDefaultPatchBaselineResult::PatchBaseline RegisterDefaultPatchBaselineResult::getPatchBaseline()const
{
return patchBaseline_;
}

View File

@@ -60,6 +60,17 @@ void SetServiceSettingsRequest::setDeliveryOssEnabled(bool deliveryOssEnabled)
setParameter("DeliveryOssEnabled", deliveryOssEnabled ? "true" : "false");
}
std::string SetServiceSettingsRequest::getRegionId()const
{
return regionId_;
}
void SetServiceSettingsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string SetServiceSettingsRequest::getDeliverySlsProjectName()const
{
return deliverySlsProjectName_;

View File

@@ -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 <alibabacloud/oos/model/UpdatePatchBaselineRequest.h>
using AlibabaCloud::Oos::Model::UpdatePatchBaselineRequest;
UpdatePatchBaselineRequest::UpdatePatchBaselineRequest() :
RpcServiceRequest("oos", "2019-06-01", "UpdatePatchBaseline")
{
setMethod(HttpRequest::Method::Post);
}
UpdatePatchBaselineRequest::~UpdatePatchBaselineRequest()
{}
std::string UpdatePatchBaselineRequest::getClientToken()const
{
return clientToken_;
}
void UpdatePatchBaselineRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdatePatchBaselineRequest::getApprovalRules()const
{
return approvalRules_;
}
void UpdatePatchBaselineRequest::setApprovalRules(const std::string& approvalRules)
{
approvalRules_ = approvalRules;
setParameter("ApprovalRules", approvalRules);
}
std::string UpdatePatchBaselineRequest::getDescription()const
{
return description_;
}
void UpdatePatchBaselineRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdatePatchBaselineRequest::getRegionId()const
{
return regionId_;
}
void UpdatePatchBaselineRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdatePatchBaselineRequest::getName()const
{
return name_;
}
void UpdatePatchBaselineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/UpdatePatchBaselineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
UpdatePatchBaselineResult::UpdatePatchBaselineResult() :
ServiceResult()
{}
UpdatePatchBaselineResult::UpdatePatchBaselineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdatePatchBaselineResult::~UpdatePatchBaselineResult()
{}
void UpdatePatchBaselineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto patchBaselineNode = value["PatchBaseline"];
if(!patchBaselineNode["Id"].isNull())
patchBaseline_.id = patchBaselineNode["Id"].asString();
if(!patchBaselineNode["Name"].isNull())
patchBaseline_.name = patchBaselineNode["Name"].asString();
if(!patchBaselineNode["CreatedDate"].isNull())
patchBaseline_.createdDate = patchBaselineNode["CreatedDate"].asString();
if(!patchBaselineNode["CreatedBy"].isNull())
patchBaseline_.createdBy = patchBaselineNode["CreatedBy"].asString();
if(!patchBaselineNode["UpdatedDate"].isNull())
patchBaseline_.updatedDate = patchBaselineNode["UpdatedDate"].asString();
if(!patchBaselineNode["UpdatedBy"].isNull())
patchBaseline_.updatedBy = patchBaselineNode["UpdatedBy"].asString();
if(!patchBaselineNode["Description"].isNull())
patchBaseline_.description = patchBaselineNode["Description"].asString();
if(!patchBaselineNode["ShareType"].isNull())
patchBaseline_.shareType = patchBaselineNode["ShareType"].asString();
if(!patchBaselineNode["OperationSystem"].isNull())
patchBaseline_.operationSystem = patchBaselineNode["OperationSystem"].asString();
if(!patchBaselineNode["ApprovalRules"].isNull())
patchBaseline_.approvalRules = patchBaselineNode["ApprovalRules"].asString();
}
UpdatePatchBaselineResult::PatchBaseline UpdatePatchBaselineResult::getPatchBaseline()const
{
return patchBaseline_;
}

View File

@@ -0,0 +1,139 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/UpdateStateConfigurationRequest.h>
using AlibabaCloud::Oos::Model::UpdateStateConfigurationRequest;
UpdateStateConfigurationRequest::UpdateStateConfigurationRequest() :
RpcServiceRequest("oos", "2019-06-01", "UpdateStateConfiguration")
{
setMethod(HttpRequest::Method::Post);
}
UpdateStateConfigurationRequest::~UpdateStateConfigurationRequest()
{}
std::string UpdateStateConfigurationRequest::getScheduleType()const
{
return scheduleType_;
}
void UpdateStateConfigurationRequest::setScheduleType(const std::string& scheduleType)
{
scheduleType_ = scheduleType;
setParameter("ScheduleType", scheduleType);
}
std::string UpdateStateConfigurationRequest::getClientToken()const
{
return clientToken_;
}
void UpdateStateConfigurationRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string UpdateStateConfigurationRequest::getDescription()const
{
return description_;
}
void UpdateStateConfigurationRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateStateConfigurationRequest::getTargets()const
{
return targets_;
}
void UpdateStateConfigurationRequest::setTargets(const std::string& targets)
{
targets_ = targets;
setParameter("Targets", targets);
}
std::string UpdateStateConfigurationRequest::getRegionId()const
{
return regionId_;
}
void UpdateStateConfigurationRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateStateConfigurationRequest::getScheduleExpression()const
{
return scheduleExpression_;
}
void UpdateStateConfigurationRequest::setScheduleExpression(const std::string& scheduleExpression)
{
scheduleExpression_ = scheduleExpression;
setParameter("ScheduleExpression", scheduleExpression);
}
std::string UpdateStateConfigurationRequest::getConfigureMode()const
{
return configureMode_;
}
void UpdateStateConfigurationRequest::setConfigureMode(const std::string& configureMode)
{
configureMode_ = configureMode;
setParameter("ConfigureMode", configureMode);
}
std::string UpdateStateConfigurationRequest::getTags()const
{
return tags_;
}
void UpdateStateConfigurationRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string UpdateStateConfigurationRequest::getParameters()const
{
return parameters_;
}
void UpdateStateConfigurationRequest::setParameters(const std::string& parameters)
{
parameters_ = parameters;
setParameter("Parameters", parameters);
}
std::string UpdateStateConfigurationRequest::getStateConfigurationId()const
{
return stateConfigurationId_;
}
void UpdateStateConfigurationRequest::setStateConfigurationId(const std::string& stateConfigurationId)
{
stateConfigurationId_ = stateConfigurationId;
setParameter("StateConfigurationId", stateConfigurationId);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/UpdateStateConfigurationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
UpdateStateConfigurationResult::UpdateStateConfigurationResult() :
ServiceResult()
{}
UpdateStateConfigurationResult::UpdateStateConfigurationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateStateConfigurationResult::~UpdateStateConfigurationResult()
{}
void UpdateStateConfigurationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStateConfigurationNode = value["StateConfiguration"]["StateConfigurationItem"];
for (auto valueStateConfigurationStateConfigurationItem : allStateConfigurationNode)
{
StateConfigurationItem stateConfigurationObject;
if(!valueStateConfigurationStateConfigurationItem["CreateTime"].isNull())
stateConfigurationObject.createTime = valueStateConfigurationStateConfigurationItem["CreateTime"].asString();
if(!valueStateConfigurationStateConfigurationItem["Description"].isNull())
stateConfigurationObject.description = valueStateConfigurationStateConfigurationItem["Description"].asString();
if(!valueStateConfigurationStateConfigurationItem["StateConfigurationId"].isNull())
stateConfigurationObject.stateConfigurationId = valueStateConfigurationStateConfigurationItem["StateConfigurationId"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateId"].isNull())
stateConfigurationObject.templateId = valueStateConfigurationStateConfigurationItem["TemplateId"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateName"].isNull())
stateConfigurationObject.templateName = valueStateConfigurationStateConfigurationItem["TemplateName"].asString();
if(!valueStateConfigurationStateConfigurationItem["TemplateVersion"].isNull())
stateConfigurationObject.templateVersion = valueStateConfigurationStateConfigurationItem["TemplateVersion"].asString();
if(!valueStateConfigurationStateConfigurationItem["Parameters"].isNull())
stateConfigurationObject.parameters = valueStateConfigurationStateConfigurationItem["Parameters"].asString();
if(!valueStateConfigurationStateConfigurationItem["ConfigureMode"].isNull())
stateConfigurationObject.configureMode = valueStateConfigurationStateConfigurationItem["ConfigureMode"].asString();
if(!valueStateConfigurationStateConfigurationItem["ScheduleType"].isNull())
stateConfigurationObject.scheduleType = valueStateConfigurationStateConfigurationItem["ScheduleType"].asString();
if(!valueStateConfigurationStateConfigurationItem["ScheduleExpression"].isNull())
stateConfigurationObject.scheduleExpression = valueStateConfigurationStateConfigurationItem["ScheduleExpression"].asString();
if(!valueStateConfigurationStateConfigurationItem["Targets"].isNull())
stateConfigurationObject.targets = valueStateConfigurationStateConfigurationItem["Targets"].asString();
if(!valueStateConfigurationStateConfigurationItem["UpdateTime"].isNull())
stateConfigurationObject.updateTime = valueStateConfigurationStateConfigurationItem["UpdateTime"].asString();
if(!valueStateConfigurationStateConfigurationItem["Tags"].isNull())
stateConfigurationObject.tags = valueStateConfigurationStateConfigurationItem["Tags"].asString();
stateConfiguration_.push_back(stateConfigurationObject);
}
}
std::vector<UpdateStateConfigurationResult::StateConfigurationItem> UpdateStateConfigurationResult::getStateConfiguration()const
{
return stateConfiguration_;
}