Support parameter APIs.
This commit is contained in:
@@ -23,10 +23,18 @@ set(oos_public_header
|
||||
set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/CancelExecutionRequest.h
|
||||
include/alibabacloud/oos/model/CancelExecutionResult.h
|
||||
include/alibabacloud/oos/model/CreateParameterRequest.h
|
||||
include/alibabacloud/oos/model/CreateParameterResult.h
|
||||
include/alibabacloud/oos/model/CreateSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/CreateSecretParameterResult.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/DeleteSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/DeleteSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/DeleteTemplateRequest.h
|
||||
include/alibabacloud/oos/model/DeleteTemplateResult.h
|
||||
include/alibabacloud/oos/model/DeleteTemplatesRequest.h
|
||||
@@ -37,6 +45,10 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/GenerateExecutionPolicyResult.h
|
||||
include/alibabacloud/oos/model/GetExecutionTemplateRequest.h
|
||||
include/alibabacloud/oos/model/GetExecutionTemplateResult.h
|
||||
include/alibabacloud/oos/model/GetParameterRequest.h
|
||||
include/alibabacloud/oos/model/GetParameterResult.h
|
||||
include/alibabacloud/oos/model/GetSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/GetSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/GetTemplateRequest.h
|
||||
include/alibabacloud/oos/model/GetTemplateResult.h
|
||||
include/alibabacloud/oos/model/ListActionsRequest.h
|
||||
@@ -47,8 +59,16 @@ 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/ListParameterVersionsRequest.h
|
||||
include/alibabacloud/oos/model/ListParameterVersionsResult.h
|
||||
include/alibabacloud/oos/model/ListParametersRequest.h
|
||||
include/alibabacloud/oos/model/ListParametersResult.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/ListTagKeysRequest.h
|
||||
include/alibabacloud/oos/model/ListTagKeysResult.h
|
||||
include/alibabacloud/oos/model/ListTagResourcesRequest.h
|
||||
@@ -71,6 +91,10 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/TriggerExecutionResult.h
|
||||
include/alibabacloud/oos/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/oos/model/UntagResourcesResult.h
|
||||
include/alibabacloud/oos/model/UpdateParameterRequest.h
|
||||
include/alibabacloud/oos/model/UpdateParameterResult.h
|
||||
include/alibabacloud/oos/model/UpdateSecretParameterRequest.h
|
||||
include/alibabacloud/oos/model/UpdateSecretParameterResult.h
|
||||
include/alibabacloud/oos/model/UpdateTemplateRequest.h
|
||||
include/alibabacloud/oos/model/UpdateTemplateResult.h
|
||||
include/alibabacloud/oos/model/ValidateTemplateContentRequest.h
|
||||
@@ -80,10 +104,18 @@ set(oos_src
|
||||
src/OosClient.cc
|
||||
src/model/CancelExecutionRequest.cc
|
||||
src/model/CancelExecutionResult.cc
|
||||
src/model/CreateParameterRequest.cc
|
||||
src/model/CreateParameterResult.cc
|
||||
src/model/CreateSecretParameterRequest.cc
|
||||
src/model/CreateSecretParameterResult.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/DeleteSecretParameterRequest.cc
|
||||
src/model/DeleteSecretParameterResult.cc
|
||||
src/model/DeleteTemplateRequest.cc
|
||||
src/model/DeleteTemplateResult.cc
|
||||
src/model/DeleteTemplatesRequest.cc
|
||||
@@ -94,6 +126,10 @@ set(oos_src
|
||||
src/model/GenerateExecutionPolicyResult.cc
|
||||
src/model/GetExecutionTemplateRequest.cc
|
||||
src/model/GetExecutionTemplateResult.cc
|
||||
src/model/GetParameterRequest.cc
|
||||
src/model/GetParameterResult.cc
|
||||
src/model/GetSecretParameterRequest.cc
|
||||
src/model/GetSecretParameterResult.cc
|
||||
src/model/GetTemplateRequest.cc
|
||||
src/model/GetTemplateResult.cc
|
||||
src/model/ListActionsRequest.cc
|
||||
@@ -104,8 +140,16 @@ set(oos_src
|
||||
src/model/ListExecutionRiskyTasksResult.cc
|
||||
src/model/ListExecutionsRequest.cc
|
||||
src/model/ListExecutionsResult.cc
|
||||
src/model/ListParameterVersionsRequest.cc
|
||||
src/model/ListParameterVersionsResult.cc
|
||||
src/model/ListParametersRequest.cc
|
||||
src/model/ListParametersResult.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/ListTagKeysRequest.cc
|
||||
src/model/ListTagKeysResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
@@ -128,6 +172,10 @@ set(oos_src
|
||||
src/model/TriggerExecutionResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdateParameterRequest.cc
|
||||
src/model/UpdateParameterResult.cc
|
||||
src/model/UpdateSecretParameterRequest.cc
|
||||
src/model/UpdateSecretParameterResult.cc
|
||||
src/model/UpdateTemplateRequest.cc
|
||||
src/model/UpdateTemplateResult.cc
|
||||
src/model/ValidateTemplateContentRequest.cc
|
||||
|
||||
@@ -24,10 +24,18 @@
|
||||
#include "OosExport.h"
|
||||
#include "model/CancelExecutionRequest.h"
|
||||
#include "model/CancelExecutionResult.h"
|
||||
#include "model/CreateParameterRequest.h"
|
||||
#include "model/CreateParameterResult.h"
|
||||
#include "model/CreateSecretParameterRequest.h"
|
||||
#include "model/CreateSecretParameterResult.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/DeleteSecretParameterRequest.h"
|
||||
#include "model/DeleteSecretParameterResult.h"
|
||||
#include "model/DeleteTemplateRequest.h"
|
||||
#include "model/DeleteTemplateResult.h"
|
||||
#include "model/DeleteTemplatesRequest.h"
|
||||
@@ -38,6 +46,10 @@
|
||||
#include "model/GenerateExecutionPolicyResult.h"
|
||||
#include "model/GetExecutionTemplateRequest.h"
|
||||
#include "model/GetExecutionTemplateResult.h"
|
||||
#include "model/GetParameterRequest.h"
|
||||
#include "model/GetParameterResult.h"
|
||||
#include "model/GetSecretParameterRequest.h"
|
||||
#include "model/GetSecretParameterResult.h"
|
||||
#include "model/GetTemplateRequest.h"
|
||||
#include "model/GetTemplateResult.h"
|
||||
#include "model/ListActionsRequest.h"
|
||||
@@ -48,8 +60,16 @@
|
||||
#include "model/ListExecutionRiskyTasksResult.h"
|
||||
#include "model/ListExecutionsRequest.h"
|
||||
#include "model/ListExecutionsResult.h"
|
||||
#include "model/ListParameterVersionsRequest.h"
|
||||
#include "model/ListParameterVersionsResult.h"
|
||||
#include "model/ListParametersRequest.h"
|
||||
#include "model/ListParametersResult.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/ListTagKeysRequest.h"
|
||||
#include "model/ListTagKeysResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
@@ -72,6 +92,10 @@
|
||||
#include "model/TriggerExecutionResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpdateParameterRequest.h"
|
||||
#include "model/UpdateParameterResult.h"
|
||||
#include "model/UpdateSecretParameterRequest.h"
|
||||
#include "model/UpdateSecretParameterResult.h"
|
||||
#include "model/UpdateTemplateRequest.h"
|
||||
#include "model/UpdateTemplateResult.h"
|
||||
#include "model/ValidateTemplateContentRequest.h"
|
||||
@@ -88,12 +112,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CancelExecutionResult> CancelExecutionOutcome;
|
||||
typedef std::future<CancelExecutionOutcome> CancelExecutionOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::CancelExecutionRequest&, const CancelExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelExecutionAsyncHandler;
|
||||
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::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::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;
|
||||
typedef Outcome<Error, Model::DeleteExecutionsResult> DeleteExecutionsOutcome;
|
||||
typedef std::future<DeleteExecutionsOutcome> DeleteExecutionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::DeleteExecutionsRequest&, const DeleteExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteExecutionsAsyncHandler;
|
||||
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::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::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;
|
||||
@@ -109,6 +145,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetExecutionTemplateResult> GetExecutionTemplateOutcome;
|
||||
typedef std::future<GetExecutionTemplateOutcome> GetExecutionTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetExecutionTemplateRequest&, const GetExecutionTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetExecutionTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetParameterResult> GetParameterOutcome;
|
||||
typedef std::future<GetParameterOutcome> GetParameterOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetParameterRequest&, const GetParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParameterAsyncHandler;
|
||||
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;
|
||||
typedef Outcome<Error, Model::GetTemplateResult> GetTemplateOutcome;
|
||||
typedef std::future<GetTemplateOutcome> GetTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetTemplateRequest&, const GetTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTemplateAsyncHandler;
|
||||
@@ -124,9 +166,21 @@ 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::ListParameterVersionsResult> ListParameterVersionsOutcome;
|
||||
typedef std::future<ListParameterVersionsOutcome> ListParameterVersionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListParameterVersionsRequest&, const ListParameterVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListParameterVersionsAsyncHandler;
|
||||
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::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;
|
||||
typedef Outcome<Error, Model::ListSecretParameterVersionsResult> ListSecretParameterVersionsOutcome;
|
||||
typedef std::future<ListSecretParameterVersionsOutcome> ListSecretParameterVersionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListSecretParameterVersionsRequest&, const ListSecretParameterVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSecretParameterVersionsAsyncHandler;
|
||||
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::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;
|
||||
@@ -160,6 +214,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
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::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::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;
|
||||
@@ -174,12 +234,24 @@ namespace AlibabaCloud
|
||||
CancelExecutionOutcome cancelExecution(const Model::CancelExecutionRequest &request)const;
|
||||
void cancelExecutionAsync(const Model::CancelExecutionRequest& request, const CancelExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelExecutionOutcomeCallable cancelExecutionCallable(const Model::CancelExecutionRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
DeleteExecutionsOutcome deleteExecutions(const Model::DeleteExecutionsRequest &request)const;
|
||||
void deleteExecutionsAsync(const Model::DeleteExecutionsRequest& request, const DeleteExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteExecutionsOutcomeCallable deleteExecutionsCallable(const Model::DeleteExecutionsRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
@@ -195,6 +267,12 @@ namespace AlibabaCloud
|
||||
GetExecutionTemplateOutcome getExecutionTemplate(const Model::GetExecutionTemplateRequest &request)const;
|
||||
void getExecutionTemplateAsync(const Model::GetExecutionTemplateRequest& request, const GetExecutionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetExecutionTemplateOutcomeCallable getExecutionTemplateCallable(const Model::GetExecutionTemplateRequest& request) const;
|
||||
GetParameterOutcome getParameter(const Model::GetParameterRequest &request)const;
|
||||
void getParameterAsync(const Model::GetParameterRequest& request, const GetParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetParameterOutcomeCallable getParameterCallable(const Model::GetParameterRequest& 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;
|
||||
GetTemplateOutcome getTemplate(const Model::GetTemplateRequest &request)const;
|
||||
void getTemplateAsync(const Model::GetTemplateRequest& request, const GetTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTemplateOutcomeCallable getTemplateCallable(const Model::GetTemplateRequest& request) const;
|
||||
@@ -210,9 +288,21 @@ 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;
|
||||
ListParameterVersionsOutcome listParameterVersions(const Model::ListParameterVersionsRequest &request)const;
|
||||
void listParameterVersionsAsync(const Model::ListParameterVersionsRequest& request, const ListParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListParameterVersionsOutcomeCallable listParameterVersionsCallable(const Model::ListParameterVersionsRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
ListSecretParameterVersionsOutcome listSecretParameterVersions(const Model::ListSecretParameterVersionsRequest &request)const;
|
||||
void listSecretParameterVersionsAsync(const Model::ListSecretParameterVersionsRequest& request, const ListSecretParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSecretParameterVersionsOutcomeCallable listSecretParameterVersionsCallable(const Model::ListSecretParameterVersionsRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
@@ -246,6 +336,12 @@ namespace AlibabaCloud
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
|
||||
63
oos/include/alibabacloud/oos/model/CreateParameterRequest.h
Normal file
63
oos/include/alibabacloud/oos/model/CreateParameterRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_CREATEPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATEPARAMETERREQUEST_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 CreateParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateParameterRequest();
|
||||
~CreateParameterRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string type_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPARAMETERREQUEST_H_
|
||||
64
oos/include/alibabacloud/oos/model/CreateParameterResult.h
Normal file
64
oos/include/alibabacloud/oos/model/CreateParameterResult.h
Normal 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_CREATEPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATEPARAMETERRESULT_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 CreateParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
CreateParameterResult();
|
||||
explicit CreateParameterResult(const std::string &payload);
|
||||
~CreateParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATEPARAMETERRESULT_H_
|
||||
@@ -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_CREATESECRETPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATESECRETPARAMETERREQUEST_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 CreateSecretParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateSecretParameterRequest();
|
||||
~CreateSecretParameterRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string keyId_;
|
||||
std::string type_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESECRETPARAMETERREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_CREATESECRETPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_CREATESECRETPARAMETERRESULT_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 CreateSecretParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
CreateSecretParameterResult();
|
||||
explicit CreateSecretParameterResult(const std::string &payload);
|
||||
~CreateSecretParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_CREATESECRETPARAMETERRESULT_H_
|
||||
51
oos/include/alibabacloud/oos/model/DeleteParameterRequest.h
Normal file
51
oos/include/alibabacloud/oos/model/DeleteParameterRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_DELETEPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETEPARAMETERREQUEST_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 DeleteParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteParameterRequest();
|
||||
~DeleteParameterRequest();
|
||||
|
||||
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_DELETEPARAMETERREQUEST_H_
|
||||
49
oos/include/alibabacloud/oos/model/DeleteParameterResult.h
Normal file
49
oos/include/alibabacloud/oos/model/DeleteParameterResult.h
Normal 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_DELETEPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETEPARAMETERRESULT_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 DeleteParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteParameterResult();
|
||||
explicit DeleteParameterResult(const std::string &payload);
|
||||
~DeleteParameterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETEPARAMETERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_DELETESECRETPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETESECRETPARAMETERREQUEST_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 DeleteSecretParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteSecretParameterRequest();
|
||||
~DeleteSecretParameterRequest();
|
||||
|
||||
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_DELETESECRETPARAMETERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_DELETESECRETPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_DELETESECRETPARAMETERRESULT_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 DeleteSecretParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteSecretParameterResult();
|
||||
explicit DeleteSecretParameterResult(const std::string &payload);
|
||||
~DeleteSecretParameterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_DELETESECRETPARAMETERRESULT_H_
|
||||
54
oos/include/alibabacloud/oos/model/GetParameterRequest.h
Normal file
54
oos/include/alibabacloud/oos/model/GetParameterRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_GETPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERREQUEST_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 GetParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetParameterRequest();
|
||||
~GetParameterRequest();
|
||||
|
||||
int getParameterVersion()const;
|
||||
void setParameterVersion(int parameterVersion);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
int parameterVersion_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERREQUEST_H_
|
||||
65
oos/include/alibabacloud/oos/model/GetParameterResult.h
Normal file
65
oos/include/alibabacloud/oos/model/GetParameterResult.h
Normal 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_GETPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETPARAMETERRESULT_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 GetParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string value;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
GetParameterResult();
|
||||
explicit GetParameterResult(const std::string &payload);
|
||||
~GetParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETPARAMETERRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERREQUEST_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 GetSecretParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetSecretParameterRequest();
|
||||
~GetSecretParameterRequest();
|
||||
|
||||
bool getWithDecryption()const;
|
||||
void setWithDecryption(bool withDecryption);
|
||||
int getParameterVersion()const;
|
||||
void setParameterVersion(int parameterVersion);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
bool withDecryption_;
|
||||
int parameterVersion_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERREQUEST_H_
|
||||
@@ -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_GETSECRETPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERRESULT_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 GetSecretParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string value;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
GetSecretParameterResult();
|
||||
explicit GetSecretParameterResult(const std::string &payload);
|
||||
~GetSecretParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETSECRETPARAMETERRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSREQUEST_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 ListParameterVersionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListParameterVersionsRequest();
|
||||
~ListParameterVersionsRequest();
|
||||
|
||||
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 regionId_;
|
||||
std::string nextToken_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string shareType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSRESULT_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 ListParameterVersionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ParameterVersion
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
|
||||
ListParameterVersionsResult();
|
||||
explicit ListParameterVersionsResult(const std::string &payload);
|
||||
~ListParameterVersionsResult();
|
||||
std::vector<ParameterVersion> getParameterVersions()const;
|
||||
int getTotalCount()const;
|
||||
std::string getType()const;
|
||||
std::string getDescription()const;
|
||||
std::string getCreatedBy()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::string getCreatedDate()const;
|
||||
std::string getId()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ParameterVersion> parameterVersions_;
|
||||
int totalCount_;
|
||||
std::string type_;
|
||||
std::string description_;
|
||||
std::string createdBy_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string createdDate_;
|
||||
std::string id_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPARAMETERVERSIONSRESULT_H_
|
||||
72
oos/include/alibabacloud/oos/model/ListParametersRequest.h
Normal file
72
oos/include/alibabacloud/oos/model/ListParametersRequest.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSREQUEST_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 ListParametersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListParametersRequest();
|
||||
~ListParametersRequest();
|
||||
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
bool getRecursive()const;
|
||||
void setRecursive(bool recursive);
|
||||
std::string getPath()const;
|
||||
void setPath(const std::string& path);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getSortOrder()const;
|
||||
void setSortOrder(const std::string& sortOrder);
|
||||
std::string getSortField()const;
|
||||
void setSortField(const std::string& sortField);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
bool recursive_;
|
||||
std::string path_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string sortOrder_;
|
||||
std::string sortField_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSREQUEST_H_
|
||||
70
oos/include/alibabacloud/oos/model/ListParametersResult.h
Normal file
70
oos/include/alibabacloud/oos/model/ListParametersResult.h
Normal 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSRESULT_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 ListParametersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
ListParametersResult();
|
||||
explicit ListParametersResult(const std::string &payload);
|
||||
~ListParametersResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<_Parameter> getParameters()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<_Parameter> parameters_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTPARAMETERSRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSREQUEST_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 ListSecretParameterVersionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSecretParameterVersionsRequest();
|
||||
~ListSecretParameterVersionsRequest();
|
||||
|
||||
bool getWithDecryption()const;
|
||||
void setWithDecryption(bool withDecryption);
|
||||
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:
|
||||
bool withDecryption_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string shareType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSRESULT_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 ListSecretParameterVersionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ParameterVersion
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
|
||||
ListSecretParameterVersionsResult();
|
||||
explicit ListSecretParameterVersionsResult(const std::string &payload);
|
||||
~ListSecretParameterVersionsResult();
|
||||
std::vector<ParameterVersion> getParameterVersions()const;
|
||||
int getTotalCount()const;
|
||||
std::string getType()const;
|
||||
std::string getDescription()const;
|
||||
std::string getCreatedBy()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::string getCreatedDate()const;
|
||||
std::string getId()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ParameterVersion> parameterVersions_;
|
||||
int totalCount_;
|
||||
std::string type_;
|
||||
std::string description_;
|
||||
std::string createdBy_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string createdDate_;
|
||||
std::string id_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERVERSIONSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSREQUEST_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 ListSecretParametersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSecretParametersRequest();
|
||||
~ListSecretParametersRequest();
|
||||
|
||||
bool getRecursive()const;
|
||||
void setRecursive(bool recursive);
|
||||
std::string getPath()const;
|
||||
void setPath(const std::string& path);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getSortOrder()const;
|
||||
void setSortOrder(const std::string& sortOrder);
|
||||
std::string getSortField()const;
|
||||
void setSortField(const std::string& sortField);
|
||||
|
||||
private:
|
||||
bool recursive_;
|
||||
std::string path_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string name_;
|
||||
int maxResults_;
|
||||
std::string sortOrder_;
|
||||
std::string sortField_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSRESULT_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 ListSecretParametersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
std::string parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
ListSecretParametersResult();
|
||||
explicit ListSecretParametersResult(const std::string &payload);
|
||||
~ListSecretParametersResult();
|
||||
std::vector<_Parameter> getParameters()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<_Parameter> parameters_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTSECRETPARAMETERSRESULT_H_
|
||||
57
oos/include/alibabacloud/oos/model/UpdateParameterRequest.h
Normal file
57
oos/include/alibabacloud/oos/model/UpdateParameterRequest.h
Normal 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_UPDATEPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATEPARAMETERREQUEST_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 UpdateParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateParameterRequest();
|
||||
~UpdateParameterRequest();
|
||||
|
||||
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);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPARAMETERREQUEST_H_
|
||||
64
oos/include/alibabacloud/oos/model/UpdateParameterResult.h
Normal file
64
oos/include/alibabacloud/oos/model/UpdateParameterResult.h
Normal 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_UPDATEPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATEPARAMETERRESULT_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 UpdateParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
UpdateParameterResult();
|
||||
explicit UpdateParameterResult(const std::string &payload);
|
||||
~UpdateParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATEPARAMETERRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERREQUEST_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 UpdateSecretParameterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateSecretParameterRequest();
|
||||
~UpdateSecretParameterRequest();
|
||||
|
||||
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);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERRESULT_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 UpdateSecretParameterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Parameter
|
||||
{
|
||||
std::string updatedBy;
|
||||
std::string type;
|
||||
std::string createdBy;
|
||||
std::string description;
|
||||
std::string updatedDate;
|
||||
int parameterVersion;
|
||||
std::string createdDate;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string shareType;
|
||||
};
|
||||
|
||||
|
||||
UpdateSecretParameterResult();
|
||||
explicit UpdateSecretParameterResult(const std::string &payload);
|
||||
~UpdateSecretParameterResult();
|
||||
_Parameter get_Parameter()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Parameter _parameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_UPDATESECRETPARAMETERRESULT_H_
|
||||
@@ -31,21 +31,21 @@ OosClient::OosClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
|
||||
}
|
||||
|
||||
OosClient::OosClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
|
||||
}
|
||||
|
||||
OosClient::OosClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
|
||||
}
|
||||
|
||||
OosClient::~OosClient()
|
||||
@@ -87,6 +87,78 @@ OosClient::CancelExecutionOutcomeCallable OosClient::cancelExecutionCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateParameterOutcome OosClient::createParameter(const CreateParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateParameterOutcome(CreateParameterResult(outcome.result()));
|
||||
else
|
||||
return CreateParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createParameterAsync(const CreateParameterRequest& request, const CreateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreateParameterOutcomeCallable OosClient::createParameterCallable(const CreateParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateSecretParameterOutcome OosClient::createSecretParameter(const CreateSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSecretParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSecretParameterOutcome(CreateSecretParameterResult(outcome.result()));
|
||||
else
|
||||
return CreateSecretParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::createSecretParameterAsync(const CreateSecretParameterRequest& request, const CreateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSecretParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::CreateSecretParameterOutcomeCallable OosClient::createSecretParameterCallable(const CreateSecretParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSecretParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSecretParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::CreateTemplateOutcome OosClient::createTemplate(const CreateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +231,78 @@ OosClient::DeleteExecutionsOutcomeCallable OosClient::deleteExecutionsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteParameterOutcome OosClient::deleteParameter(const DeleteParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteParameterOutcome(DeleteParameterResult(outcome.result()));
|
||||
else
|
||||
return DeleteParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deleteParameterAsync(const DeleteParameterRequest& request, const DeleteParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeleteParameterOutcomeCallable OosClient::deleteParameterCallable(const DeleteParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteSecretParameterOutcome OosClient::deleteSecretParameter(const DeleteSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSecretParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSecretParameterOutcome(DeleteSecretParameterResult(outcome.result()));
|
||||
else
|
||||
return DeleteSecretParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::deleteSecretParameterAsync(const DeleteSecretParameterRequest& request, const DeleteSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSecretParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::DeleteSecretParameterOutcomeCallable OosClient::deleteSecretParameterCallable(const DeleteSecretParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSecretParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSecretParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::DeleteTemplateOutcome OosClient::deleteTemplate(const DeleteTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +483,78 @@ OosClient::GetExecutionTemplateOutcomeCallable OosClient::getExecutionTemplateCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetParameterOutcome OosClient::getParameter(const GetParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetParameterOutcome(GetParameterResult(outcome.result()));
|
||||
else
|
||||
return GetParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getParameterAsync(const GetParameterRequest& request, const GetParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetParameterOutcomeCallable OosClient::getParameterCallable(const GetParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetSecretParameterOutcome OosClient::getSecretParameter(const GetSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSecretParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSecretParameterOutcome(GetSecretParameterResult(outcome.result()));
|
||||
else
|
||||
return GetSecretParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getSecretParameterAsync(const GetSecretParameterRequest& request, const GetSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSecretParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetSecretParameterOutcomeCallable OosClient::getSecretParameterCallable(const GetSecretParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSecretParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSecretParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetTemplateOutcome OosClient::getTemplate(const GetTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +735,78 @@ OosClient::ListExecutionsOutcomeCallable OosClient::listExecutionsCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListParameterVersionsOutcome OosClient::listParameterVersions(const ListParameterVersionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListParameterVersionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListParameterVersionsOutcome(ListParameterVersionsResult(outcome.result()));
|
||||
else
|
||||
return ListParameterVersionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listParameterVersionsAsync(const ListParameterVersionsRequest& request, const ListParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listParameterVersions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListParameterVersionsOutcomeCallable OosClient::listParameterVersionsCallable(const ListParameterVersionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListParameterVersionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listParameterVersions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListParametersOutcome OosClient::listParameters(const ListParametersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListParametersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListParametersOutcome(ListParametersResult(outcome.result()));
|
||||
else
|
||||
return ListParametersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listParametersAsync(const ListParametersRequest& request, const ListParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listParameters(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListParametersOutcomeCallable OosClient::listParametersCallable(const ListParametersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListParametersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listParameters(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListResourceExecutionStatusOutcome OosClient::listResourceExecutionStatus(const ListResourceExecutionStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +843,78 @@ OosClient::ListResourceExecutionStatusOutcomeCallable OosClient::listResourceExe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListSecretParameterVersionsOutcome OosClient::listSecretParameterVersions(const ListSecretParameterVersionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSecretParameterVersionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSecretParameterVersionsOutcome(ListSecretParameterVersionsResult(outcome.result()));
|
||||
else
|
||||
return ListSecretParameterVersionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listSecretParameterVersionsAsync(const ListSecretParameterVersionsRequest& request, const ListSecretParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSecretParameterVersions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListSecretParameterVersionsOutcomeCallable OosClient::listSecretParameterVersionsCallable(const ListSecretParameterVersionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSecretParameterVersionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSecretParameterVersions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListSecretParametersOutcome OosClient::listSecretParameters(const ListSecretParametersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSecretParametersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSecretParametersOutcome(ListSecretParametersResult(outcome.result()));
|
||||
else
|
||||
return ListSecretParametersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::listSecretParametersAsync(const ListSecretParametersRequest& request, const ListSecretParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSecretParameters(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::ListSecretParametersOutcomeCallable OosClient::listSecretParametersCallable(const ListSecretParametersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSecretParametersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSecretParameters(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::ListTagKeysOutcome OosClient::listTagKeys(const ListTagKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1311,78 @@ OosClient::UntagResourcesOutcomeCallable OosClient::untagResourcesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateParameterOutcome OosClient::updateParameter(const UpdateParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateParameterOutcome(UpdateParameterResult(outcome.result()));
|
||||
else
|
||||
return UpdateParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateParameterAsync(const UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateParameterOutcomeCallable OosClient::updateParameterCallable(const UpdateParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateSecretParameterOutcome OosClient::updateSecretParameter(const UpdateSecretParameterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSecretParameterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSecretParameterOutcome(UpdateSecretParameterResult(outcome.result()));
|
||||
else
|
||||
return UpdateSecretParameterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::updateSecretParameterAsync(const UpdateSecretParameterRequest& request, const UpdateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSecretParameter(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::UpdateSecretParameterOutcomeCallable OosClient::updateSecretParameterCallable(const UpdateSecretParameterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSecretParameterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSecretParameter(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::UpdateTemplateOutcome OosClient::updateTemplate(const UpdateTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
oos/src/model/CreateParameterRequest.cc
Normal file
95
oos/src/model/CreateParameterRequest.cc
Normal 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/CreateParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateParameterRequest;
|
||||
|
||||
CreateParameterRequest::CreateParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateParameterRequest::~CreateParameterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateParameterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void CreateParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
70
oos/src/model/CreateParameterResult.cc
Normal file
70
oos/src/model/CreateParameterResult.cc
Normal 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/CreateParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateParameterResult::CreateParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateParameterResult::CreateParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateParameterResult::~CreateParameterResult()
|
||||
{}
|
||||
|
||||
void CreateParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateParameterResult::_Parameter CreateParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
106
oos/src/model/CreateSecretParameterRequest.cc
Normal file
106
oos/src/model/CreateSecretParameterRequest.cc
Normal 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/CreateSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateSecretParameterRequest;
|
||||
|
||||
CreateSecretParameterRequest::CreateSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSecretParameterRequest::~CreateSecretParameterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSecretParameterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getKeyId()const
|
||||
{
|
||||
return keyId_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setKeyId(const std::string& keyId)
|
||||
{
|
||||
keyId_ = keyId;
|
||||
setParameter("KeyId", keyId);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
70
oos/src/model/CreateSecretParameterResult.cc
Normal file
70
oos/src/model/CreateSecretParameterResult.cc
Normal 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/CreateSecretParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateSecretParameterResult::CreateSecretParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSecretParameterResult::CreateSecretParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSecretParameterResult::~CreateSecretParameterResult()
|
||||
{}
|
||||
|
||||
void CreateSecretParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateSecretParameterResult::_Parameter CreateSecretParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
51
oos/src/model/DeleteParameterRequest.cc
Normal file
51
oos/src/model/DeleteParameterRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteParameterRequest;
|
||||
|
||||
DeleteParameterRequest::DeleteParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteParameterRequest::~DeleteParameterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteParameterResult.cc
Normal file
44
oos/src/model/DeleteParameterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteParameterResult::DeleteParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteParameterResult::DeleteParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteParameterResult::~DeleteParameterResult()
|
||||
{}
|
||||
|
||||
void DeleteParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
oos/src/model/DeleteSecretParameterRequest.cc
Normal file
51
oos/src/model/DeleteSecretParameterRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteSecretParameterRequest;
|
||||
|
||||
DeleteSecretParameterRequest::DeleteSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSecretParameterRequest::~DeleteSecretParameterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteSecretParameterResult.cc
Normal file
44
oos/src/model/DeleteSecretParameterResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteSecretParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteSecretParameterResult::DeleteSecretParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSecretParameterResult::DeleteSecretParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSecretParameterResult::~DeleteSecretParameterResult()
|
||||
{}
|
||||
|
||||
void DeleteSecretParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
oos/src/model/GetParameterRequest.cc
Normal file
62
oos/src/model/GetParameterRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetParameterRequest;
|
||||
|
||||
GetParameterRequest::GetParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetParameterRequest::~GetParameterRequest()
|
||||
{}
|
||||
|
||||
int GetParameterRequest::getParameterVersion()const
|
||||
{
|
||||
return parameterVersion_;
|
||||
}
|
||||
|
||||
void GetParameterRequest::setParameterVersion(int parameterVersion)
|
||||
{
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter("ParameterVersion", std::to_string(parameterVersion));
|
||||
}
|
||||
|
||||
std::string GetParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
72
oos/src/model/GetParameterResult.cc
Normal file
72
oos/src/model/GetParameterResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetParameterResult::GetParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetParameterResult::GetParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetParameterResult::~GetParameterResult()
|
||||
{}
|
||||
|
||||
void GetParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetParameterResult::_Parameter GetParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
73
oos/src/model/GetSecretParameterRequest.cc
Normal file
73
oos/src/model/GetSecretParameterRequest.cc
Normal 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/GetSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetSecretParameterRequest;
|
||||
|
||||
GetSecretParameterRequest::GetSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSecretParameterRequest::~GetSecretParameterRequest()
|
||||
{}
|
||||
|
||||
bool GetSecretParameterRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
int GetSecretParameterRequest::getParameterVersion()const
|
||||
{
|
||||
return parameterVersion_;
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setParameterVersion(int parameterVersion)
|
||||
{
|
||||
parameterVersion_ = parameterVersion;
|
||||
setParameter("ParameterVersion", std::to_string(parameterVersion));
|
||||
}
|
||||
|
||||
std::string GetSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
72
oos/src/model/GetSecretParameterResult.cc
Normal file
72
oos/src/model/GetSecretParameterResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetSecretParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetSecretParameterResult::GetSecretParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSecretParameterResult::GetSecretParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSecretParameterResult::~GetSecretParameterResult()
|
||||
{}
|
||||
|
||||
void GetSecretParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
if(!_parameterNode["Value"].isNull())
|
||||
_parameter_.value = _parameterNode["Value"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetSecretParameterResult::_Parameter GetSecretParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
84
oos/src/model/ListParameterVersionsRequest.cc
Normal file
84
oos/src/model/ListParameterVersionsRequest.cc
Normal 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/ListParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParameterVersionsRequest;
|
||||
|
||||
ListParameterVersionsRequest::ListParameterVersionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListParameterVersions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListParameterVersionsRequest::~ListParameterVersionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListParameterVersionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ListParameterVersionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListParameterVersionsRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
}
|
||||
|
||||
126
oos/src/model/ListParameterVersionsResult.cc
Normal file
126
oos/src/model/ListParameterVersionsResult.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListParameterVersionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListParameterVersionsResult::ListParameterVersionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListParameterVersionsResult::ListParameterVersionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListParameterVersionsResult::~ListParameterVersionsResult()
|
||||
{}
|
||||
|
||||
void ListParameterVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParameterVersionsNode = value["ParameterVersions"]["ParameterVersion"];
|
||||
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
|
||||
{
|
||||
ParameterVersion parameterVersionsObject;
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
|
||||
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
|
||||
if(!valueParameterVersionsParameterVersion["Value"].isNull())
|
||||
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
|
||||
parameterVersions_.push_back(parameterVersionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["CreatedBy"].isNull())
|
||||
createdBy_ = value["CreatedBy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListParameterVersionsResult::ParameterVersion> ListParameterVersionsResult::getParameterVersions()const
|
||||
{
|
||||
return parameterVersions_;
|
||||
}
|
||||
|
||||
int ListParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getCreatedBy()const
|
||||
{
|
||||
return createdBy_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListParameterVersionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getCreatedDate()const
|
||||
{
|
||||
return createdDate_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string ListParameterVersionsResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
128
oos/src/model/ListParametersRequest.cc
Normal file
128
oos/src/model/ListParametersRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListParametersRequest;
|
||||
|
||||
ListParametersRequest::ListParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListParametersRequest::~ListParametersRequest()
|
||||
{}
|
||||
|
||||
std::string ListParametersRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
bool ListParametersRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ListParametersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
}
|
||||
|
||||
std::string ListParametersRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListParametersRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
}
|
||||
|
||||
96
oos/src/model/ListParametersResult.cc
Normal file
96
oos/src/model/ListParametersResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/ListParametersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListParametersResult::ListParametersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListParametersResult::ListParametersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListParametersResult::~ListParametersResult()
|
||||
{}
|
||||
|
||||
void ListParametersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParametersNode = value["Parameters"]["Parameter"];
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListParametersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListParametersResult::_Parameter> ListParametersResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string ListParametersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListParametersResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
95
oos/src/model/ListSecretParameterVersionsRequest.cc
Normal file
95
oos/src/model/ListSecretParameterVersionsRequest.cc
Normal 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/ListSecretParameterVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParameterVersionsRequest;
|
||||
|
||||
ListSecretParameterVersionsRequest::ListSecretParameterVersionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameterVersions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSecretParameterVersionsRequest::~ListSecretParameterVersionsRequest()
|
||||
{}
|
||||
|
||||
bool ListSecretParameterVersionsRequest::getWithDecryption()const
|
||||
{
|
||||
return withDecryption_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setWithDecryption(bool withDecryption)
|
||||
{
|
||||
withDecryption_ = withDecryption;
|
||||
setParameter("WithDecryption", withDecryption ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListSecretParameterVersionsRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
}
|
||||
|
||||
126
oos/src/model/ListSecretParameterVersionsResult.cc
Normal file
126
oos/src/model/ListSecretParameterVersionsResult.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListSecretParameterVersionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListSecretParameterVersionsResult::ListSecretParameterVersionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecretParameterVersionsResult::ListSecretParameterVersionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecretParameterVersionsResult::~ListSecretParameterVersionsResult()
|
||||
{}
|
||||
|
||||
void ListSecretParameterVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParameterVersionsNode = value["ParameterVersions"]["ParameterVersion"];
|
||||
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
|
||||
{
|
||||
ParameterVersion parameterVersionsObject;
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
|
||||
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
|
||||
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
|
||||
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
|
||||
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
|
||||
if(!valueParameterVersionsParameterVersion["Value"].isNull())
|
||||
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
|
||||
parameterVersions_.push_back(parameterVersionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
id_ = value["Id"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["CreatedDate"].isNull())
|
||||
createdDate_ = value["CreatedDate"].asString();
|
||||
if(!value["CreatedBy"].isNull())
|
||||
createdBy_ = value["CreatedBy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListSecretParameterVersionsResult::ParameterVersion> ListSecretParameterVersionsResult::getParameterVersions()const
|
||||
{
|
||||
return parameterVersions_;
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getCreatedBy()const
|
||||
{
|
||||
return createdBy_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListSecretParameterVersionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getCreatedDate()const
|
||||
{
|
||||
return createdDate_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string ListSecretParameterVersionsResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
117
oos/src/model/ListSecretParametersRequest.cc
Normal file
117
oos/src/model/ListSecretParametersRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListSecretParametersRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListSecretParametersRequest;
|
||||
|
||||
ListSecretParametersRequest::ListSecretParametersRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSecretParametersRequest::~ListSecretParametersRequest()
|
||||
{}
|
||||
|
||||
bool ListSecretParametersRequest::getRecursive()const
|
||||
{
|
||||
return recursive_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setRecursive(bool recursive)
|
||||
{
|
||||
recursive_ = recursive;
|
||||
setParameter("Recursive", recursive ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ListSecretParametersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
}
|
||||
|
||||
std::string ListSecretParametersRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListSecretParametersRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
}
|
||||
|
||||
89
oos/src/model/ListSecretParametersResult.cc
Normal file
89
oos/src/model/ListSecretParametersResult.cc
Normal 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/ListSecretParametersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListSecretParametersResult::ListSecretParametersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecretParametersResult::ListSecretParametersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecretParametersResult::~ListSecretParametersResult()
|
||||
{}
|
||||
|
||||
void ListSecretParametersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allParametersNode = value["Parameters"]["Parameter"];
|
||||
for (auto valueParametersParameter : allParametersNode)
|
||||
{
|
||||
_Parameter parametersObject;
|
||||
if(!valueParametersParameter["Name"].isNull())
|
||||
parametersObject.name = valueParametersParameter["Name"].asString();
|
||||
if(!valueParametersParameter["Id"].isNull())
|
||||
parametersObject.id = valueParametersParameter["Id"].asString();
|
||||
if(!valueParametersParameter["CreatedDate"].isNull())
|
||||
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
|
||||
if(!valueParametersParameter["CreatedBy"].isNull())
|
||||
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
|
||||
if(!valueParametersParameter["UpdatedDate"].isNull())
|
||||
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
|
||||
if(!valueParametersParameter["UpdatedBy"].isNull())
|
||||
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
|
||||
if(!valueParametersParameter["Description"].isNull())
|
||||
parametersObject.description = valueParametersParameter["Description"].asString();
|
||||
if(!valueParametersParameter["ShareType"].isNull())
|
||||
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
|
||||
if(!valueParametersParameter["ParameterVersion"].isNull())
|
||||
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
|
||||
if(!valueParametersParameter["Type"].isNull())
|
||||
parametersObject.type = valueParametersParameter["Type"].asString();
|
||||
parameters_.push_back(parametersObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListSecretParametersResult::_Parameter> ListSecretParametersResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string ListSecretParametersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListSecretParametersResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
73
oos/src/model/UpdateParameterRequest.cc
Normal file
73
oos/src/model/UpdateParameterRequest.cc
Normal 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/UpdateParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::UpdateParameterRequest;
|
||||
|
||||
UpdateParameterRequest::UpdateParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "UpdateParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateParameterRequest::~UpdateParameterRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void UpdateParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
70
oos/src/model/UpdateParameterResult.cc
Normal file
70
oos/src/model/UpdateParameterResult.cc
Normal 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/UpdateParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UpdateParameterResult::UpdateParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateParameterResult::UpdateParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateParameterResult::~UpdateParameterResult()
|
||||
{}
|
||||
|
||||
void UpdateParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
UpdateParameterResult::_Parameter UpdateParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
73
oos/src/model/UpdateSecretParameterRequest.cc
Normal file
73
oos/src/model/UpdateSecretParameterRequest.cc
Normal 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/UpdateSecretParameterRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::UpdateSecretParameterRequest;
|
||||
|
||||
UpdateSecretParameterRequest::UpdateSecretParameterRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "UpdateSecretParameter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSecretParameterRequest::~UpdateSecretParameterRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateSecretParameterRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateSecretParameterRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateSecretParameterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateSecretParameterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateSecretParameterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateSecretParameterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string UpdateSecretParameterRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void UpdateSecretParameterRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
70
oos/src/model/UpdateSecretParameterResult.cc
Normal file
70
oos/src/model/UpdateSecretParameterResult.cc
Normal 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/UpdateSecretParameterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UpdateSecretParameterResult::UpdateSecretParameterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSecretParameterResult::UpdateSecretParameterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSecretParameterResult::~UpdateSecretParameterResult()
|
||||
{}
|
||||
|
||||
void UpdateSecretParameterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _parameterNode = value["Parameter"];
|
||||
if(!_parameterNode["Id"].isNull())
|
||||
_parameter_.id = _parameterNode["Id"].asString();
|
||||
if(!_parameterNode["Name"].isNull())
|
||||
_parameter_.name = _parameterNode["Name"].asString();
|
||||
if(!_parameterNode["CreatedDate"].isNull())
|
||||
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
|
||||
if(!_parameterNode["CreatedBy"].isNull())
|
||||
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
|
||||
if(!_parameterNode["UpdatedDate"].isNull())
|
||||
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
|
||||
if(!_parameterNode["UpdatedBy"].isNull())
|
||||
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
|
||||
if(!_parameterNode["Description"].isNull())
|
||||
_parameter_.description = _parameterNode["Description"].asString();
|
||||
if(!_parameterNode["ShareType"].isNull())
|
||||
_parameter_.shareType = _parameterNode["ShareType"].asString();
|
||||
if(!_parameterNode["ParameterVersion"].isNull())
|
||||
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
|
||||
if(!_parameterNode["Type"].isNull())
|
||||
_parameter_.type = _parameterNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
UpdateSecretParameterResult::_Parameter UpdateSecretParameterResult::get_Parameter()const
|
||||
{
|
||||
return _parameter_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user