Add new apis.

This commit is contained in:
sdk-team
2023-06-07 10:05:39 +00:00
parent 1e896e337a
commit 0e8bc4d53b
108 changed files with 6354 additions and 6 deletions

View File

@@ -1 +1 @@
1.36.1593
1.36.1594

View File

@@ -27,6 +27,10 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/CreateCustomImageResult.h
include/alibabacloud/swas-open/model/CreateFirewallRuleRequest.h
include/alibabacloud/swas-open/model/CreateFirewallRuleResult.h
include/alibabacloud/swas-open/model/CreateFirewallRulesRequest.h
include/alibabacloud/swas-open/model/CreateFirewallRulesResult.h
include/alibabacloud/swas-open/model/CreateInstanceKeyPairRequest.h
include/alibabacloud/swas-open/model/CreateInstanceKeyPairResult.h
include/alibabacloud/swas-open/model/CreateInstancesRequest.h
include/alibabacloud/swas-open/model/CreateInstancesResult.h
include/alibabacloud/swas-open/model/CreateSnapshotRequest.h
@@ -35,10 +39,16 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/DeleteCustomImageResult.h
include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h
include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h
include/alibabacloud/swas-open/model/DeleteInstanceKeyPairRequest.h
include/alibabacloud/swas-open/model/DeleteInstanceKeyPairResult.h
include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h
include/alibabacloud/swas-open/model/DeleteSnapshotResult.h
include/alibabacloud/swas-open/model/DeleteSnapshotsRequest.h
include/alibabacloud/swas-open/model/DeleteSnapshotsResult.h
include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h
include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h
include/alibabacloud/swas-open/model/DescribeCloudMonitorAgentStatusesRequest.h
include/alibabacloud/swas-open/model/DescribeCloudMonitorAgentStatusesResult.h
include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h
include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h
include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h
@@ -49,12 +59,30 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h
include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h
include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h
include/alibabacloud/swas-open/model/DescribeInstanceKeyPairRequest.h
include/alibabacloud/swas-open/model/DescribeInstanceKeyPairResult.h
include/alibabacloud/swas-open/model/DescribeInstancePasswordsSettingRequest.h
include/alibabacloud/swas-open/model/DescribeInstancePasswordsSettingResult.h
include/alibabacloud/swas-open/model/DescribeInstanceVncUrlRequest.h
include/alibabacloud/swas-open/model/DescribeInstanceVncUrlResult.h
include/alibabacloud/swas-open/model/DescribeInvocationResultRequest.h
include/alibabacloud/swas-open/model/DescribeInvocationResultResult.h
include/alibabacloud/swas-open/model/DescribeInvocationsRequest.h
include/alibabacloud/swas-open/model/DescribeInvocationsResult.h
include/alibabacloud/swas-open/model/DescribeMonitorDataRequest.h
include/alibabacloud/swas-open/model/DescribeMonitorDataResult.h
include/alibabacloud/swas-open/model/DescribeSecurityAgentStatusRequest.h
include/alibabacloud/swas-open/model/DescribeSecurityAgentStatusResult.h
include/alibabacloud/swas-open/model/DisableFirewallRuleRequest.h
include/alibabacloud/swas-open/model/DisableFirewallRuleResult.h
include/alibabacloud/swas-open/model/EnableFirewallRuleRequest.h
include/alibabacloud/swas-open/model/EnableFirewallRuleResult.h
include/alibabacloud/swas-open/model/InstallCloudAssistantRequest.h
include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h
include/alibabacloud/swas-open/model/InstallCloudMonitorAgentRequest.h
include/alibabacloud/swas-open/model/InstallCloudMonitorAgentResult.h
include/alibabacloud/swas-open/model/ListCustomImagesRequest.h
include/alibabacloud/swas-open/model/ListCustomImagesResult.h
include/alibabacloud/swas-open/model/ListDisksRequest.h
include/alibabacloud/swas-open/model/ListDisksResult.h
include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h
@@ -63,6 +91,8 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/ListImagesResult.h
include/alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h
include/alibabacloud/swas-open/model/ListInstancePlansModificationResult.h
include/alibabacloud/swas-open/model/ListInstanceStatusRequest.h
include/alibabacloud/swas-open/model/ListInstanceStatusResult.h
include/alibabacloud/swas-open/model/ListInstancesRequest.h
include/alibabacloud/swas-open/model/ListInstancesResult.h
include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h
@@ -79,10 +109,16 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h
include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h
include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterResult.h
include/alibabacloud/swas-open/model/ModifyFirewallRuleRequest.h
include/alibabacloud/swas-open/model/ModifyFirewallRuleResult.h
include/alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h
include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h
include/alibabacloud/swas-open/model/ModifyInstanceVncPasswordRequest.h
include/alibabacloud/swas-open/model/ModifyInstanceVncPasswordResult.h
include/alibabacloud/swas-open/model/RebootInstanceRequest.h
include/alibabacloud/swas-open/model/RebootInstanceResult.h
include/alibabacloud/swas-open/model/RebootInstancesRequest.h
include/alibabacloud/swas-open/model/RebootInstancesResult.h
include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h
include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h
include/alibabacloud/swas-open/model/RenewInstanceRequest.h
@@ -101,14 +137,24 @@ set(swas-open_public_header_model
include/alibabacloud/swas-open/model/StartDatabaseInstanceResult.h
include/alibabacloud/swas-open/model/StartInstanceRequest.h
include/alibabacloud/swas-open/model/StartInstanceResult.h
include/alibabacloud/swas-open/model/StartInstancesRequest.h
include/alibabacloud/swas-open/model/StartInstancesResult.h
include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h
include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h
include/alibabacloud/swas-open/model/StopInstanceRequest.h
include/alibabacloud/swas-open/model/StopInstanceResult.h
include/alibabacloud/swas-open/model/StopInstancesRequest.h
include/alibabacloud/swas-open/model/StopInstancesResult.h
include/alibabacloud/swas-open/model/UpdateDiskAttributeRequest.h
include/alibabacloud/swas-open/model/UpdateDiskAttributeResult.h
include/alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h
include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h
include/alibabacloud/swas-open/model/UpdateSnapshotAttributeRequest.h
include/alibabacloud/swas-open/model/UpdateSnapshotAttributeResult.h
include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h
include/alibabacloud/swas-open/model/UpgradeInstanceResult.h )
include/alibabacloud/swas-open/model/UpgradeInstanceResult.h
include/alibabacloud/swas-open/model/UploadInstanceKeyPairRequest.h
include/alibabacloud/swas-open/model/UploadInstanceKeyPairResult.h )
set(swas-open_src
src/SWAS-OPENClient.cc
@@ -118,6 +164,10 @@ set(swas-open_src
src/model/CreateCustomImageResult.cc
src/model/CreateFirewallRuleRequest.cc
src/model/CreateFirewallRuleResult.cc
src/model/CreateFirewallRulesRequest.cc
src/model/CreateFirewallRulesResult.cc
src/model/CreateInstanceKeyPairRequest.cc
src/model/CreateInstanceKeyPairResult.cc
src/model/CreateInstancesRequest.cc
src/model/CreateInstancesResult.cc
src/model/CreateSnapshotRequest.cc
@@ -126,10 +176,16 @@ set(swas-open_src
src/model/DeleteCustomImageResult.cc
src/model/DeleteFirewallRuleRequest.cc
src/model/DeleteFirewallRuleResult.cc
src/model/DeleteInstanceKeyPairRequest.cc
src/model/DeleteInstanceKeyPairResult.cc
src/model/DeleteSnapshotRequest.cc
src/model/DeleteSnapshotResult.cc
src/model/DeleteSnapshotsRequest.cc
src/model/DeleteSnapshotsResult.cc
src/model/DescribeCloudAssistantStatusRequest.cc
src/model/DescribeCloudAssistantStatusResult.cc
src/model/DescribeCloudMonitorAgentStatusesRequest.cc
src/model/DescribeCloudMonitorAgentStatusesResult.cc
src/model/DescribeDatabaseErrorLogsRequest.cc
src/model/DescribeDatabaseErrorLogsResult.cc
src/model/DescribeDatabaseInstanceMetricDataRequest.cc
@@ -140,12 +196,30 @@ set(swas-open_src
src/model/DescribeDatabaseInstancesResult.cc
src/model/DescribeDatabaseSlowLogRecordsRequest.cc
src/model/DescribeDatabaseSlowLogRecordsResult.cc
src/model/DescribeInstanceKeyPairRequest.cc
src/model/DescribeInstanceKeyPairResult.cc
src/model/DescribeInstancePasswordsSettingRequest.cc
src/model/DescribeInstancePasswordsSettingResult.cc
src/model/DescribeInstanceVncUrlRequest.cc
src/model/DescribeInstanceVncUrlResult.cc
src/model/DescribeInvocationResultRequest.cc
src/model/DescribeInvocationResultResult.cc
src/model/DescribeInvocationsRequest.cc
src/model/DescribeInvocationsResult.cc
src/model/DescribeMonitorDataRequest.cc
src/model/DescribeMonitorDataResult.cc
src/model/DescribeSecurityAgentStatusRequest.cc
src/model/DescribeSecurityAgentStatusResult.cc
src/model/DisableFirewallRuleRequest.cc
src/model/DisableFirewallRuleResult.cc
src/model/EnableFirewallRuleRequest.cc
src/model/EnableFirewallRuleResult.cc
src/model/InstallCloudAssistantRequest.cc
src/model/InstallCloudAssistantResult.cc
src/model/InstallCloudMonitorAgentRequest.cc
src/model/InstallCloudMonitorAgentResult.cc
src/model/ListCustomImagesRequest.cc
src/model/ListCustomImagesResult.cc
src/model/ListDisksRequest.cc
src/model/ListDisksResult.cc
src/model/ListFirewallRulesRequest.cc
@@ -154,6 +228,8 @@ set(swas-open_src
src/model/ListImagesResult.cc
src/model/ListInstancePlansModificationRequest.cc
src/model/ListInstancePlansModificationResult.cc
src/model/ListInstanceStatusRequest.cc
src/model/ListInstanceStatusResult.cc
src/model/ListInstancesRequest.cc
src/model/ListInstancesResult.cc
src/model/ListInstancesTrafficPackagesRequest.cc
@@ -170,10 +246,16 @@ set(swas-open_src
src/model/ModifyDatabaseInstanceDescriptionResult.cc
src/model/ModifyDatabaseInstanceParameterRequest.cc
src/model/ModifyDatabaseInstanceParameterResult.cc
src/model/ModifyFirewallRuleRequest.cc
src/model/ModifyFirewallRuleResult.cc
src/model/ModifyImageShareStatusRequest.cc
src/model/ModifyImageShareStatusResult.cc
src/model/ModifyInstanceVncPasswordRequest.cc
src/model/ModifyInstanceVncPasswordResult.cc
src/model/RebootInstanceRequest.cc
src/model/RebootInstanceResult.cc
src/model/RebootInstancesRequest.cc
src/model/RebootInstancesResult.cc
src/model/ReleasePublicConnectionRequest.cc
src/model/ReleasePublicConnectionResult.cc
src/model/RenewInstanceRequest.cc
@@ -192,14 +274,24 @@ set(swas-open_src
src/model/StartDatabaseInstanceResult.cc
src/model/StartInstanceRequest.cc
src/model/StartInstanceResult.cc
src/model/StartInstancesRequest.cc
src/model/StartInstancesResult.cc
src/model/StopDatabaseInstanceRequest.cc
src/model/StopDatabaseInstanceResult.cc
src/model/StopInstanceRequest.cc
src/model/StopInstanceResult.cc
src/model/StopInstancesRequest.cc
src/model/StopInstancesResult.cc
src/model/UpdateDiskAttributeRequest.cc
src/model/UpdateDiskAttributeResult.cc
src/model/UpdateInstanceAttributeRequest.cc
src/model/UpdateInstanceAttributeResult.cc
src/model/UpdateSnapshotAttributeRequest.cc
src/model/UpdateSnapshotAttributeResult.cc
src/model/UpgradeInstanceRequest.cc
src/model/UpgradeInstanceResult.cc )
src/model/UpgradeInstanceResult.cc
src/model/UploadInstanceKeyPairRequest.cc
src/model/UploadInstanceKeyPairResult.cc )
add_library(swas-open ${LIB_TYPE}
${swas-open_public_header}

View File

@@ -28,6 +28,10 @@
#include "model/CreateCustomImageResult.h"
#include "model/CreateFirewallRuleRequest.h"
#include "model/CreateFirewallRuleResult.h"
#include "model/CreateFirewallRulesRequest.h"
#include "model/CreateFirewallRulesResult.h"
#include "model/CreateInstanceKeyPairRequest.h"
#include "model/CreateInstanceKeyPairResult.h"
#include "model/CreateInstancesRequest.h"
#include "model/CreateInstancesResult.h"
#include "model/CreateSnapshotRequest.h"
@@ -36,10 +40,16 @@
#include "model/DeleteCustomImageResult.h"
#include "model/DeleteFirewallRuleRequest.h"
#include "model/DeleteFirewallRuleResult.h"
#include "model/DeleteInstanceKeyPairRequest.h"
#include "model/DeleteInstanceKeyPairResult.h"
#include "model/DeleteSnapshotRequest.h"
#include "model/DeleteSnapshotResult.h"
#include "model/DeleteSnapshotsRequest.h"
#include "model/DeleteSnapshotsResult.h"
#include "model/DescribeCloudAssistantStatusRequest.h"
#include "model/DescribeCloudAssistantStatusResult.h"
#include "model/DescribeCloudMonitorAgentStatusesRequest.h"
#include "model/DescribeCloudMonitorAgentStatusesResult.h"
#include "model/DescribeDatabaseErrorLogsRequest.h"
#include "model/DescribeDatabaseErrorLogsResult.h"
#include "model/DescribeDatabaseInstanceMetricDataRequest.h"
@@ -50,12 +60,30 @@
#include "model/DescribeDatabaseInstancesResult.h"
#include "model/DescribeDatabaseSlowLogRecordsRequest.h"
#include "model/DescribeDatabaseSlowLogRecordsResult.h"
#include "model/DescribeInstanceKeyPairRequest.h"
#include "model/DescribeInstanceKeyPairResult.h"
#include "model/DescribeInstancePasswordsSettingRequest.h"
#include "model/DescribeInstancePasswordsSettingResult.h"
#include "model/DescribeInstanceVncUrlRequest.h"
#include "model/DescribeInstanceVncUrlResult.h"
#include "model/DescribeInvocationResultRequest.h"
#include "model/DescribeInvocationResultResult.h"
#include "model/DescribeInvocationsRequest.h"
#include "model/DescribeInvocationsResult.h"
#include "model/DescribeMonitorDataRequest.h"
#include "model/DescribeMonitorDataResult.h"
#include "model/DescribeSecurityAgentStatusRequest.h"
#include "model/DescribeSecurityAgentStatusResult.h"
#include "model/DisableFirewallRuleRequest.h"
#include "model/DisableFirewallRuleResult.h"
#include "model/EnableFirewallRuleRequest.h"
#include "model/EnableFirewallRuleResult.h"
#include "model/InstallCloudAssistantRequest.h"
#include "model/InstallCloudAssistantResult.h"
#include "model/InstallCloudMonitorAgentRequest.h"
#include "model/InstallCloudMonitorAgentResult.h"
#include "model/ListCustomImagesRequest.h"
#include "model/ListCustomImagesResult.h"
#include "model/ListDisksRequest.h"
#include "model/ListDisksResult.h"
#include "model/ListFirewallRulesRequest.h"
@@ -64,6 +92,8 @@
#include "model/ListImagesResult.h"
#include "model/ListInstancePlansModificationRequest.h"
#include "model/ListInstancePlansModificationResult.h"
#include "model/ListInstanceStatusRequest.h"
#include "model/ListInstanceStatusResult.h"
#include "model/ListInstancesRequest.h"
#include "model/ListInstancesResult.h"
#include "model/ListInstancesTrafficPackagesRequest.h"
@@ -80,10 +110,16 @@
#include "model/ModifyDatabaseInstanceDescriptionResult.h"
#include "model/ModifyDatabaseInstanceParameterRequest.h"
#include "model/ModifyDatabaseInstanceParameterResult.h"
#include "model/ModifyFirewallRuleRequest.h"
#include "model/ModifyFirewallRuleResult.h"
#include "model/ModifyImageShareStatusRequest.h"
#include "model/ModifyImageShareStatusResult.h"
#include "model/ModifyInstanceVncPasswordRequest.h"
#include "model/ModifyInstanceVncPasswordResult.h"
#include "model/RebootInstanceRequest.h"
#include "model/RebootInstanceResult.h"
#include "model/RebootInstancesRequest.h"
#include "model/RebootInstancesResult.h"
#include "model/ReleasePublicConnectionRequest.h"
#include "model/ReleasePublicConnectionResult.h"
#include "model/RenewInstanceRequest.h"
@@ -102,14 +138,24 @@
#include "model/StartDatabaseInstanceResult.h"
#include "model/StartInstanceRequest.h"
#include "model/StartInstanceResult.h"
#include "model/StartInstancesRequest.h"
#include "model/StartInstancesResult.h"
#include "model/StopDatabaseInstanceRequest.h"
#include "model/StopDatabaseInstanceResult.h"
#include "model/StopInstanceRequest.h"
#include "model/StopInstanceResult.h"
#include "model/StopInstancesRequest.h"
#include "model/StopInstancesResult.h"
#include "model/UpdateDiskAttributeRequest.h"
#include "model/UpdateDiskAttributeResult.h"
#include "model/UpdateInstanceAttributeRequest.h"
#include "model/UpdateInstanceAttributeResult.h"
#include "model/UpdateSnapshotAttributeRequest.h"
#include "model/UpdateSnapshotAttributeResult.h"
#include "model/UpgradeInstanceRequest.h"
#include "model/UpgradeInstanceResult.h"
#include "model/UploadInstanceKeyPairRequest.h"
#include "model/UploadInstanceKeyPairResult.h"
namespace AlibabaCloud
@@ -128,6 +174,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateFirewallRuleResult> CreateFirewallRuleOutcome;
typedef std::future<CreateFirewallRuleOutcome> CreateFirewallRuleOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::CreateFirewallRuleRequest&, const CreateFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFirewallRuleAsyncHandler;
typedef Outcome<Error, Model::CreateFirewallRulesResult> CreateFirewallRulesOutcome;
typedef std::future<CreateFirewallRulesOutcome> CreateFirewallRulesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::CreateFirewallRulesRequest&, const CreateFirewallRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFirewallRulesAsyncHandler;
typedef Outcome<Error, Model::CreateInstanceKeyPairResult> CreateInstanceKeyPairOutcome;
typedef std::future<CreateInstanceKeyPairOutcome> CreateInstanceKeyPairOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::CreateInstanceKeyPairRequest&, const CreateInstanceKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceKeyPairAsyncHandler;
typedef Outcome<Error, Model::CreateInstancesResult> CreateInstancesOutcome;
typedef std::future<CreateInstancesOutcome> CreateInstancesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::CreateInstancesRequest&, const CreateInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstancesAsyncHandler;
@@ -140,12 +192,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteFirewallRuleResult> DeleteFirewallRuleOutcome;
typedef std::future<DeleteFirewallRuleOutcome> DeleteFirewallRuleOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteFirewallRuleRequest&, const DeleteFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFirewallRuleAsyncHandler;
typedef Outcome<Error, Model::DeleteInstanceKeyPairResult> DeleteInstanceKeyPairOutcome;
typedef std::future<DeleteInstanceKeyPairOutcome> DeleteInstanceKeyPairOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteInstanceKeyPairRequest&, const DeleteInstanceKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceKeyPairAsyncHandler;
typedef Outcome<Error, Model::DeleteSnapshotResult> DeleteSnapshotOutcome;
typedef std::future<DeleteSnapshotOutcome> DeleteSnapshotOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteSnapshotRequest&, const DeleteSnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSnapshotAsyncHandler;
typedef Outcome<Error, Model::DeleteSnapshotsResult> DeleteSnapshotsOutcome;
typedef std::future<DeleteSnapshotsOutcome> DeleteSnapshotsOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteSnapshotsRequest&, const DeleteSnapshotsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSnapshotsAsyncHandler;
typedef Outcome<Error, Model::DescribeCloudAssistantStatusResult> DescribeCloudAssistantStatusOutcome;
typedef std::future<DescribeCloudAssistantStatusOutcome> DescribeCloudAssistantStatusOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeCloudAssistantStatusRequest&, const DescribeCloudAssistantStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCloudAssistantStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeCloudMonitorAgentStatusesResult> DescribeCloudMonitorAgentStatusesOutcome;
typedef std::future<DescribeCloudMonitorAgentStatusesOutcome> DescribeCloudMonitorAgentStatusesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeCloudMonitorAgentStatusesRequest&, const DescribeCloudMonitorAgentStatusesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCloudMonitorAgentStatusesAsyncHandler;
typedef Outcome<Error, Model::DescribeDatabaseErrorLogsResult> DescribeDatabaseErrorLogsOutcome;
typedef std::future<DescribeDatabaseErrorLogsOutcome> DescribeDatabaseErrorLogsOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeDatabaseErrorLogsRequest&, const DescribeDatabaseErrorLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDatabaseErrorLogsAsyncHandler;
@@ -161,15 +222,42 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDatabaseSlowLogRecordsResult> DescribeDatabaseSlowLogRecordsOutcome;
typedef std::future<DescribeDatabaseSlowLogRecordsOutcome> DescribeDatabaseSlowLogRecordsOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeDatabaseSlowLogRecordsRequest&, const DescribeDatabaseSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDatabaseSlowLogRecordsAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceKeyPairResult> DescribeInstanceKeyPairOutcome;
typedef std::future<DescribeInstanceKeyPairOutcome> DescribeInstanceKeyPairOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeInstanceKeyPairRequest&, const DescribeInstanceKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceKeyPairAsyncHandler;
typedef Outcome<Error, Model::DescribeInstancePasswordsSettingResult> DescribeInstancePasswordsSettingOutcome;
typedef std::future<DescribeInstancePasswordsSettingOutcome> DescribeInstancePasswordsSettingOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeInstancePasswordsSettingRequest&, const DescribeInstancePasswordsSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstancePasswordsSettingAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceVncUrlResult> DescribeInstanceVncUrlOutcome;
typedef std::future<DescribeInstanceVncUrlOutcome> DescribeInstanceVncUrlOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeInstanceVncUrlRequest&, const DescribeInstanceVncUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceVncUrlAsyncHandler;
typedef Outcome<Error, Model::DescribeInvocationResultResult> DescribeInvocationResultOutcome;
typedef std::future<DescribeInvocationResultOutcome> DescribeInvocationResultOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeInvocationResultRequest&, const DescribeInvocationResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInvocationResultAsyncHandler;
typedef Outcome<Error, Model::DescribeInvocationsResult> DescribeInvocationsOutcome;
typedef std::future<DescribeInvocationsOutcome> DescribeInvocationsOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeInvocationsRequest&, const DescribeInvocationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInvocationsAsyncHandler;
typedef Outcome<Error, Model::DescribeMonitorDataResult> DescribeMonitorDataOutcome;
typedef std::future<DescribeMonitorDataOutcome> DescribeMonitorDataOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeMonitorDataRequest&, const DescribeMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMonitorDataAsyncHandler;
typedef Outcome<Error, Model::DescribeSecurityAgentStatusResult> DescribeSecurityAgentStatusOutcome;
typedef std::future<DescribeSecurityAgentStatusOutcome> DescribeSecurityAgentStatusOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DescribeSecurityAgentStatusRequest&, const DescribeSecurityAgentStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSecurityAgentStatusAsyncHandler;
typedef Outcome<Error, Model::DisableFirewallRuleResult> DisableFirewallRuleOutcome;
typedef std::future<DisableFirewallRuleOutcome> DisableFirewallRuleOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::DisableFirewallRuleRequest&, const DisableFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableFirewallRuleAsyncHandler;
typedef Outcome<Error, Model::EnableFirewallRuleResult> EnableFirewallRuleOutcome;
typedef std::future<EnableFirewallRuleOutcome> EnableFirewallRuleOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::EnableFirewallRuleRequest&, const EnableFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableFirewallRuleAsyncHandler;
typedef Outcome<Error, Model::InstallCloudAssistantResult> InstallCloudAssistantOutcome;
typedef std::future<InstallCloudAssistantOutcome> InstallCloudAssistantOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::InstallCloudAssistantRequest&, const InstallCloudAssistantOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallCloudAssistantAsyncHandler;
typedef Outcome<Error, Model::InstallCloudMonitorAgentResult> InstallCloudMonitorAgentOutcome;
typedef std::future<InstallCloudMonitorAgentOutcome> InstallCloudMonitorAgentOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::InstallCloudMonitorAgentRequest&, const InstallCloudMonitorAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallCloudMonitorAgentAsyncHandler;
typedef Outcome<Error, Model::ListCustomImagesResult> ListCustomImagesOutcome;
typedef std::future<ListCustomImagesOutcome> ListCustomImagesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ListCustomImagesRequest&, const ListCustomImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCustomImagesAsyncHandler;
typedef Outcome<Error, Model::ListDisksResult> ListDisksOutcome;
typedef std::future<ListDisksOutcome> ListDisksOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ListDisksRequest&, const ListDisksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDisksAsyncHandler;
@@ -182,6 +270,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListInstancePlansModificationResult> ListInstancePlansModificationOutcome;
typedef std::future<ListInstancePlansModificationOutcome> ListInstancePlansModificationOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ListInstancePlansModificationRequest&, const ListInstancePlansModificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancePlansModificationAsyncHandler;
typedef Outcome<Error, Model::ListInstanceStatusResult> ListInstanceStatusOutcome;
typedef std::future<ListInstanceStatusOutcome> ListInstanceStatusOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ListInstanceStatusRequest&, const ListInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstanceStatusAsyncHandler;
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
@@ -206,12 +297,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDatabaseInstanceParameterResult> ModifyDatabaseInstanceParameterOutcome;
typedef std::future<ModifyDatabaseInstanceParameterOutcome> ModifyDatabaseInstanceParameterOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ModifyDatabaseInstanceParameterRequest&, const ModifyDatabaseInstanceParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDatabaseInstanceParameterAsyncHandler;
typedef Outcome<Error, Model::ModifyFirewallRuleResult> ModifyFirewallRuleOutcome;
typedef std::future<ModifyFirewallRuleOutcome> ModifyFirewallRuleOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ModifyFirewallRuleRequest&, const ModifyFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFirewallRuleAsyncHandler;
typedef Outcome<Error, Model::ModifyImageShareStatusResult> ModifyImageShareStatusOutcome;
typedef std::future<ModifyImageShareStatusOutcome> ModifyImageShareStatusOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ModifyImageShareStatusRequest&, const ModifyImageShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyImageShareStatusAsyncHandler;
typedef Outcome<Error, Model::ModifyInstanceVncPasswordResult> ModifyInstanceVncPasswordOutcome;
typedef std::future<ModifyInstanceVncPasswordOutcome> ModifyInstanceVncPasswordOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ModifyInstanceVncPasswordRequest&, const ModifyInstanceVncPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceVncPasswordAsyncHandler;
typedef Outcome<Error, Model::RebootInstanceResult> RebootInstanceOutcome;
typedef std::future<RebootInstanceOutcome> RebootInstanceOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::RebootInstanceRequest&, const RebootInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstanceAsyncHandler;
typedef Outcome<Error, Model::RebootInstancesResult> RebootInstancesOutcome;
typedef std::future<RebootInstancesOutcome> RebootInstancesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::RebootInstancesRequest&, const RebootInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstancesAsyncHandler;
typedef Outcome<Error, Model::ReleasePublicConnectionResult> ReleasePublicConnectionOutcome;
typedef std::future<ReleasePublicConnectionOutcome> ReleasePublicConnectionOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::ReleasePublicConnectionRequest&, const ReleasePublicConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleasePublicConnectionAsyncHandler;
@@ -239,18 +339,33 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
typedef Outcome<Error, Model::StartInstancesResult> StartInstancesOutcome;
typedef std::future<StartInstancesOutcome> StartInstancesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::StartInstancesRequest&, const StartInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstancesAsyncHandler;
typedef Outcome<Error, Model::StopDatabaseInstanceResult> StopDatabaseInstanceOutcome;
typedef std::future<StopDatabaseInstanceOutcome> StopDatabaseInstanceOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::StopDatabaseInstanceRequest&, const StopDatabaseInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDatabaseInstanceAsyncHandler;
typedef Outcome<Error, Model::StopInstanceResult> StopInstanceOutcome;
typedef std::future<StopInstanceOutcome> StopInstanceOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::StopInstanceRequest&, const StopInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstanceAsyncHandler;
typedef Outcome<Error, Model::StopInstancesResult> StopInstancesOutcome;
typedef std::future<StopInstancesOutcome> StopInstancesOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::StopInstancesRequest&, const StopInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstancesAsyncHandler;
typedef Outcome<Error, Model::UpdateDiskAttributeResult> UpdateDiskAttributeOutcome;
typedef std::future<UpdateDiskAttributeOutcome> UpdateDiskAttributeOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::UpdateDiskAttributeRequest&, const UpdateDiskAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDiskAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateInstanceAttributeResult> UpdateInstanceAttributeOutcome;
typedef std::future<UpdateInstanceAttributeOutcome> UpdateInstanceAttributeOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::UpdateInstanceAttributeRequest&, const UpdateInstanceAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateSnapshotAttributeResult> UpdateSnapshotAttributeOutcome;
typedef std::future<UpdateSnapshotAttributeOutcome> UpdateSnapshotAttributeOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::UpdateSnapshotAttributeRequest&, const UpdateSnapshotAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSnapshotAttributeAsyncHandler;
typedef Outcome<Error, Model::UpgradeInstanceResult> UpgradeInstanceOutcome;
typedef std::future<UpgradeInstanceOutcome> UpgradeInstanceOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::UpgradeInstanceRequest&, const UpgradeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeInstanceAsyncHandler;
typedef Outcome<Error, Model::UploadInstanceKeyPairResult> UploadInstanceKeyPairOutcome;
typedef std::future<UploadInstanceKeyPairOutcome> UploadInstanceKeyPairOutcomeCallable;
typedef std::function<void(const SWAS_OPENClient*, const Model::UploadInstanceKeyPairRequest&, const UploadInstanceKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadInstanceKeyPairAsyncHandler;
SWAS_OPENClient(const Credentials &credentials, const ClientConfiguration &configuration);
SWAS_OPENClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -265,6 +380,12 @@ namespace AlibabaCloud
CreateFirewallRuleOutcome createFirewallRule(const Model::CreateFirewallRuleRequest &request)const;
void createFirewallRuleAsync(const Model::CreateFirewallRuleRequest& request, const CreateFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFirewallRuleOutcomeCallable createFirewallRuleCallable(const Model::CreateFirewallRuleRequest& request) const;
CreateFirewallRulesOutcome createFirewallRules(const Model::CreateFirewallRulesRequest &request)const;
void createFirewallRulesAsync(const Model::CreateFirewallRulesRequest& request, const CreateFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFirewallRulesOutcomeCallable createFirewallRulesCallable(const Model::CreateFirewallRulesRequest& request) const;
CreateInstanceKeyPairOutcome createInstanceKeyPair(const Model::CreateInstanceKeyPairRequest &request)const;
void createInstanceKeyPairAsync(const Model::CreateInstanceKeyPairRequest& request, const CreateInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstanceKeyPairOutcomeCallable createInstanceKeyPairCallable(const Model::CreateInstanceKeyPairRequest& request) const;
CreateInstancesOutcome createInstances(const Model::CreateInstancesRequest &request)const;
void createInstancesAsync(const Model::CreateInstancesRequest& request, const CreateInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstancesOutcomeCallable createInstancesCallable(const Model::CreateInstancesRequest& request) const;
@@ -277,12 +398,21 @@ namespace AlibabaCloud
DeleteFirewallRuleOutcome deleteFirewallRule(const Model::DeleteFirewallRuleRequest &request)const;
void deleteFirewallRuleAsync(const Model::DeleteFirewallRuleRequest& request, const DeleteFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFirewallRuleOutcomeCallable deleteFirewallRuleCallable(const Model::DeleteFirewallRuleRequest& request) const;
DeleteInstanceKeyPairOutcome deleteInstanceKeyPair(const Model::DeleteInstanceKeyPairRequest &request)const;
void deleteInstanceKeyPairAsync(const Model::DeleteInstanceKeyPairRequest& request, const DeleteInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteInstanceKeyPairOutcomeCallable deleteInstanceKeyPairCallable(const Model::DeleteInstanceKeyPairRequest& request) const;
DeleteSnapshotOutcome deleteSnapshot(const Model::DeleteSnapshotRequest &request)const;
void deleteSnapshotAsync(const Model::DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSnapshotOutcomeCallable deleteSnapshotCallable(const Model::DeleteSnapshotRequest& request) const;
DeleteSnapshotsOutcome deleteSnapshots(const Model::DeleteSnapshotsRequest &request)const;
void deleteSnapshotsAsync(const Model::DeleteSnapshotsRequest& request, const DeleteSnapshotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSnapshotsOutcomeCallable deleteSnapshotsCallable(const Model::DeleteSnapshotsRequest& request) const;
DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const;
void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const;
DescribeCloudMonitorAgentStatusesOutcome describeCloudMonitorAgentStatuses(const Model::DescribeCloudMonitorAgentStatusesRequest &request)const;
void describeCloudMonitorAgentStatusesAsync(const Model::DescribeCloudMonitorAgentStatusesRequest& request, const DescribeCloudMonitorAgentStatusesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCloudMonitorAgentStatusesOutcomeCallable describeCloudMonitorAgentStatusesCallable(const Model::DescribeCloudMonitorAgentStatusesRequest& request) const;
DescribeDatabaseErrorLogsOutcome describeDatabaseErrorLogs(const Model::DescribeDatabaseErrorLogsRequest &request)const;
void describeDatabaseErrorLogsAsync(const Model::DescribeDatabaseErrorLogsRequest& request, const DescribeDatabaseErrorLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDatabaseErrorLogsOutcomeCallable describeDatabaseErrorLogsCallable(const Model::DescribeDatabaseErrorLogsRequest& request) const;
@@ -298,15 +428,42 @@ namespace AlibabaCloud
DescribeDatabaseSlowLogRecordsOutcome describeDatabaseSlowLogRecords(const Model::DescribeDatabaseSlowLogRecordsRequest &request)const;
void describeDatabaseSlowLogRecordsAsync(const Model::DescribeDatabaseSlowLogRecordsRequest& request, const DescribeDatabaseSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDatabaseSlowLogRecordsOutcomeCallable describeDatabaseSlowLogRecordsCallable(const Model::DescribeDatabaseSlowLogRecordsRequest& request) const;
DescribeInstanceKeyPairOutcome describeInstanceKeyPair(const Model::DescribeInstanceKeyPairRequest &request)const;
void describeInstanceKeyPairAsync(const Model::DescribeInstanceKeyPairRequest& request, const DescribeInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceKeyPairOutcomeCallable describeInstanceKeyPairCallable(const Model::DescribeInstanceKeyPairRequest& request) const;
DescribeInstancePasswordsSettingOutcome describeInstancePasswordsSetting(const Model::DescribeInstancePasswordsSettingRequest &request)const;
void describeInstancePasswordsSettingAsync(const Model::DescribeInstancePasswordsSettingRequest& request, const DescribeInstancePasswordsSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstancePasswordsSettingOutcomeCallable describeInstancePasswordsSettingCallable(const Model::DescribeInstancePasswordsSettingRequest& request) const;
DescribeInstanceVncUrlOutcome describeInstanceVncUrl(const Model::DescribeInstanceVncUrlRequest &request)const;
void describeInstanceVncUrlAsync(const Model::DescribeInstanceVncUrlRequest& request, const DescribeInstanceVncUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceVncUrlOutcomeCallable describeInstanceVncUrlCallable(const Model::DescribeInstanceVncUrlRequest& request) const;
DescribeInvocationResultOutcome describeInvocationResult(const Model::DescribeInvocationResultRequest &request)const;
void describeInvocationResultAsync(const Model::DescribeInvocationResultRequest& request, const DescribeInvocationResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInvocationResultOutcomeCallable describeInvocationResultCallable(const Model::DescribeInvocationResultRequest& request) const;
DescribeInvocationsOutcome describeInvocations(const Model::DescribeInvocationsRequest &request)const;
void describeInvocationsAsync(const Model::DescribeInvocationsRequest& request, const DescribeInvocationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInvocationsOutcomeCallable describeInvocationsCallable(const Model::DescribeInvocationsRequest& request) const;
DescribeMonitorDataOutcome describeMonitorData(const Model::DescribeMonitorDataRequest &request)const;
void describeMonitorDataAsync(const Model::DescribeMonitorDataRequest& request, const DescribeMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMonitorDataOutcomeCallable describeMonitorDataCallable(const Model::DescribeMonitorDataRequest& request) const;
DescribeSecurityAgentStatusOutcome describeSecurityAgentStatus(const Model::DescribeSecurityAgentStatusRequest &request)const;
void describeSecurityAgentStatusAsync(const Model::DescribeSecurityAgentStatusRequest& request, const DescribeSecurityAgentStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSecurityAgentStatusOutcomeCallable describeSecurityAgentStatusCallable(const Model::DescribeSecurityAgentStatusRequest& request) const;
DisableFirewallRuleOutcome disableFirewallRule(const Model::DisableFirewallRuleRequest &request)const;
void disableFirewallRuleAsync(const Model::DisableFirewallRuleRequest& request, const DisableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableFirewallRuleOutcomeCallable disableFirewallRuleCallable(const Model::DisableFirewallRuleRequest& request) const;
EnableFirewallRuleOutcome enableFirewallRule(const Model::EnableFirewallRuleRequest &request)const;
void enableFirewallRuleAsync(const Model::EnableFirewallRuleRequest& request, const EnableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableFirewallRuleOutcomeCallable enableFirewallRuleCallable(const Model::EnableFirewallRuleRequest& request) const;
InstallCloudAssistantOutcome installCloudAssistant(const Model::InstallCloudAssistantRequest &request)const;
void installCloudAssistantAsync(const Model::InstallCloudAssistantRequest& request, const InstallCloudAssistantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InstallCloudAssistantOutcomeCallable installCloudAssistantCallable(const Model::InstallCloudAssistantRequest& request) const;
InstallCloudMonitorAgentOutcome installCloudMonitorAgent(const Model::InstallCloudMonitorAgentRequest &request)const;
void installCloudMonitorAgentAsync(const Model::InstallCloudMonitorAgentRequest& request, const InstallCloudMonitorAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InstallCloudMonitorAgentOutcomeCallable installCloudMonitorAgentCallable(const Model::InstallCloudMonitorAgentRequest& request) const;
ListCustomImagesOutcome listCustomImages(const Model::ListCustomImagesRequest &request)const;
void listCustomImagesAsync(const Model::ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCustomImagesOutcomeCallable listCustomImagesCallable(const Model::ListCustomImagesRequest& request) const;
ListDisksOutcome listDisks(const Model::ListDisksRequest &request)const;
void listDisksAsync(const Model::ListDisksRequest& request, const ListDisksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDisksOutcomeCallable listDisksCallable(const Model::ListDisksRequest& request) const;
@@ -319,6 +476,9 @@ namespace AlibabaCloud
ListInstancePlansModificationOutcome listInstancePlansModification(const Model::ListInstancePlansModificationRequest &request)const;
void listInstancePlansModificationAsync(const Model::ListInstancePlansModificationRequest& request, const ListInstancePlansModificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancePlansModificationOutcomeCallable listInstancePlansModificationCallable(const Model::ListInstancePlansModificationRequest& request) const;
ListInstanceStatusOutcome listInstanceStatus(const Model::ListInstanceStatusRequest &request)const;
void listInstanceStatusAsync(const Model::ListInstanceStatusRequest& request, const ListInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstanceStatusOutcomeCallable listInstanceStatusCallable(const Model::ListInstanceStatusRequest& request) const;
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
@@ -343,12 +503,21 @@ namespace AlibabaCloud
ModifyDatabaseInstanceParameterOutcome modifyDatabaseInstanceParameter(const Model::ModifyDatabaseInstanceParameterRequest &request)const;
void modifyDatabaseInstanceParameterAsync(const Model::ModifyDatabaseInstanceParameterRequest& request, const ModifyDatabaseInstanceParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDatabaseInstanceParameterOutcomeCallable modifyDatabaseInstanceParameterCallable(const Model::ModifyDatabaseInstanceParameterRequest& request) const;
ModifyFirewallRuleOutcome modifyFirewallRule(const Model::ModifyFirewallRuleRequest &request)const;
void modifyFirewallRuleAsync(const Model::ModifyFirewallRuleRequest& request, const ModifyFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyFirewallRuleOutcomeCallable modifyFirewallRuleCallable(const Model::ModifyFirewallRuleRequest& request) const;
ModifyImageShareStatusOutcome modifyImageShareStatus(const Model::ModifyImageShareStatusRequest &request)const;
void modifyImageShareStatusAsync(const Model::ModifyImageShareStatusRequest& request, const ModifyImageShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyImageShareStatusOutcomeCallable modifyImageShareStatusCallable(const Model::ModifyImageShareStatusRequest& request) const;
ModifyInstanceVncPasswordOutcome modifyInstanceVncPassword(const Model::ModifyInstanceVncPasswordRequest &request)const;
void modifyInstanceVncPasswordAsync(const Model::ModifyInstanceVncPasswordRequest& request, const ModifyInstanceVncPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyInstanceVncPasswordOutcomeCallable modifyInstanceVncPasswordCallable(const Model::ModifyInstanceVncPasswordRequest& request) const;
RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const;
void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const;
RebootInstancesOutcome rebootInstances(const Model::RebootInstancesRequest &request)const;
void rebootInstancesAsync(const Model::RebootInstancesRequest& request, const RebootInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RebootInstancesOutcomeCallable rebootInstancesCallable(const Model::RebootInstancesRequest& request) const;
ReleasePublicConnectionOutcome releasePublicConnection(const Model::ReleasePublicConnectionRequest &request)const;
void releasePublicConnectionAsync(const Model::ReleasePublicConnectionRequest& request, const ReleasePublicConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReleasePublicConnectionOutcomeCallable releasePublicConnectionCallable(const Model::ReleasePublicConnectionRequest& request) const;
@@ -376,18 +545,33 @@ namespace AlibabaCloud
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
StartInstancesOutcome startInstances(const Model::StartInstancesRequest &request)const;
void startInstancesAsync(const Model::StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartInstancesOutcomeCallable startInstancesCallable(const Model::StartInstancesRequest& request) const;
StopDatabaseInstanceOutcome stopDatabaseInstance(const Model::StopDatabaseInstanceRequest &request)const;
void stopDatabaseInstanceAsync(const Model::StopDatabaseInstanceRequest& request, const StopDatabaseInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopDatabaseInstanceOutcomeCallable stopDatabaseInstanceCallable(const Model::StopDatabaseInstanceRequest& request) const;
StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const;
void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const;
StopInstancesOutcome stopInstances(const Model::StopInstancesRequest &request)const;
void stopInstancesAsync(const Model::StopInstancesRequest& request, const StopInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopInstancesOutcomeCallable stopInstancesCallable(const Model::StopInstancesRequest& request) const;
UpdateDiskAttributeOutcome updateDiskAttribute(const Model::UpdateDiskAttributeRequest &request)const;
void updateDiskAttributeAsync(const Model::UpdateDiskAttributeRequest& request, const UpdateDiskAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDiskAttributeOutcomeCallable updateDiskAttributeCallable(const Model::UpdateDiskAttributeRequest& request) const;
UpdateInstanceAttributeOutcome updateInstanceAttribute(const Model::UpdateInstanceAttributeRequest &request)const;
void updateInstanceAttributeAsync(const Model::UpdateInstanceAttributeRequest& request, const UpdateInstanceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateInstanceAttributeOutcomeCallable updateInstanceAttributeCallable(const Model::UpdateInstanceAttributeRequest& request) const;
UpdateSnapshotAttributeOutcome updateSnapshotAttribute(const Model::UpdateSnapshotAttributeRequest &request)const;
void updateSnapshotAttributeAsync(const Model::UpdateSnapshotAttributeRequest& request, const UpdateSnapshotAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateSnapshotAttributeOutcomeCallable updateSnapshotAttributeCallable(const Model::UpdateSnapshotAttributeRequest& request) const;
UpgradeInstanceOutcome upgradeInstance(const Model::UpgradeInstanceRequest &request)const;
void upgradeInstanceAsync(const Model::UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpgradeInstanceOutcomeCallable upgradeInstanceCallable(const Model::UpgradeInstanceRequest& request) const;
UploadInstanceKeyPairOutcome uploadInstanceKeyPair(const Model::UploadInstanceKeyPairRequest &request)const;
void uploadInstanceKeyPairAsync(const Model::UploadInstanceKeyPairRequest& request, const UploadInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadInstanceKeyPairOutcomeCallable uploadInstanceKeyPairCallable(const Model::UploadInstanceKeyPairRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateFirewallRulesRequest : public RpcServiceRequest {
public:
struct FirewallRules {
std::string ruleProtocol;
std::string port;
std::string sourceCidrIp;
std::string remark;
};
CreateFirewallRulesRequest();
~CreateFirewallRulesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<FirewallRules> getFirewallRules() const;
void setFirewallRules(const std::vector<FirewallRules> &firewallRules);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
std::vector<FirewallRules> firewallRules_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateFirewallRulesResult : public ServiceResult
{
public:
CreateFirewallRulesResult();
explicit CreateFirewallRulesResult(const std::string &payload);
~CreateFirewallRulesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULESRESULT_H_

View File

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

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCEKEYPAIRRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCEKEYPAIRRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateInstanceKeyPairResult : public ServiceResult
{
public:
CreateInstanceKeyPairResult();
explicit CreateInstanceKeyPairResult(const std::string &payload);
~CreateInstanceKeyPairResult();
std::string getKeyPairName()const;
std::string getFingerprint()const;
std::string getPrivateKey()const;
protected:
void parse(const std::string &payload);
private:
std::string keyPairName_;
std::string fingerprint_;
std::string privateKey_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCEKEYPAIRRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteInstanceKeyPairRequest : public RpcServiceRequest {
public:
DeleteInstanceKeyPairRequest();
~DeleteInstanceKeyPairRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteInstanceKeyPairResult : public ServiceResult
{
public:
DeleteInstanceKeyPairResult();
explicit DeleteInstanceKeyPairResult(const std::string &payload);
~DeleteInstanceKeyPairResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEINSTANCEKEYPAIRRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DELETESNAPSHOTSREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTSREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteSnapshotsRequest : public RpcServiceRequest {
public:
DeleteSnapshotsRequest();
~DeleteSnapshotsRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getSnapshotIds() const;
void setSnapshotIds(const std::string &snapshotIds);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string snapshotIds_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTSREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTSRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteSnapshotsResult : public ServiceResult
{
public:
DeleteSnapshotsResult();
explicit DeleteSnapshotsResult(const std::string &payload);
~DeleteSnapshotsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTSRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeCloudMonitorAgentStatusesRequest : public RpcServiceRequest {
public:
DescribeCloudMonitorAgentStatusesRequest();
~DescribeCloudMonitorAgentStatusesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getInstanceIds() const;
void setInstanceIds(const std::string &instanceIds);
private:
std::string clientToken_;
std::string regionId_;
std::string instanceIds_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeCloudMonitorAgentStatusesResult : public ServiceResult
{
public:
struct InstanceStatus
{
std::string status;
bool autoInstall;
std::string instanceId;
};
DescribeCloudMonitorAgentStatusesResult();
explicit DescribeCloudMonitorAgentStatusesResult(const std::string &payload);
~DescribeCloudMonitorAgentStatusesResult();
std::vector<InstanceStatus> getInstanceStatusList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<InstanceStatus> instanceStatusList_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDMONITORAGENTSTATUSESRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstanceKeyPairRequest : public RpcServiceRequest {
public:
DescribeInstanceKeyPairRequest();
~DescribeInstanceKeyPairRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstanceKeyPairResult : public ServiceResult
{
public:
DescribeInstanceKeyPairResult();
explicit DescribeInstanceKeyPairResult(const std::string &payload);
~DescribeInstanceKeyPairResult();
std::string getKeyPairName()const;
std::string getFingerprint()const;
protected:
void parse(const std::string &payload);
private:
std::string keyPairName_;
std::string fingerprint_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEKEYPAIRRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstancePasswordsSettingRequest : public RpcServiceRequest {
public:
DescribeInstancePasswordsSettingRequest();
~DescribeInstancePasswordsSettingRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstancePasswordsSettingResult : public ServiceResult
{
public:
DescribeInstancePasswordsSettingResult();
explicit DescribeInstancePasswordsSettingResult(const std::string &payload);
~DescribeInstancePasswordsSettingResult();
bool getVncPasswordSetting()const;
bool getInstancePasswordSetting()const;
protected:
void parse(const std::string &payload);
private:
bool vncPasswordSetting_;
bool instancePasswordSetting_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEPASSWORDSSETTINGRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest {
public:
DescribeInstanceVncUrlRequest();
~DescribeInstanceVncUrlRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInstanceVncUrlResult : public ServiceResult
{
public:
DescribeInstanceVncUrlResult();
explicit DescribeInstanceVncUrlResult(const std::string &payload);
~DescribeInstanceVncUrlResult();
std::string getVncUrl()const;
protected:
void parse(const std::string &payload);
private:
std::string vncUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATAREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATAREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeMonitorDataRequest : public RpcServiceRequest {
public:
DescribeMonitorDataRequest();
~DescribeMonitorDataRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getMetricName() const;
void setMetricName(const std::string &metricName);
std::string getPeriod() const;
void setPeriod(const std::string &period);
std::string getLength() const;
void setLength(const std::string &length);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string clientToken_;
std::string startTime_;
std::string regionId_;
std::string nextToken_;
std::string metricName_;
std::string period_;
std::string length_;
std::string endTime_;
std::string instanceId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATAREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATARESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeMonitorDataResult : public ServiceResult
{
public:
DescribeMonitorDataResult();
explicit DescribeMonitorDataResult(const std::string &payload);
~DescribeMonitorDataResult();
std::string getNextToken()const;
std::string getPeriod()const;
std::string getDatapoints()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::string period_;
std::string datapoints_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEMONITORDATARESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeSecurityAgentStatusRequest : public RpcServiceRequest {
public:
DescribeSecurityAgentStatusRequest();
~DescribeSecurityAgentStatusRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string clientToken_;
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeSecurityAgentStatusResult : public ServiceResult
{
public:
DescribeSecurityAgentStatusResult();
explicit DescribeSecurityAgentStatusResult(const std::string &payload);
~DescribeSecurityAgentStatusResult();
std::string getClientStatus()const;
protected:
void parse(const std::string &payload);
private:
std::string clientStatus_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBESECURITYAGENTSTATUSRESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DISABLEFIREWALLRULERESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DISABLEFIREWALLRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT DisableFirewallRuleResult : public ServiceResult
{
public:
DisableFirewallRuleResult();
explicit DisableFirewallRuleResult(const std::string &payload);
~DisableFirewallRuleResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DISABLEFIREWALLRULERESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULEREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULEREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT EnableFirewallRuleRequest : public RpcServiceRequest {
public:
EnableFirewallRuleRequest();
~EnableFirewallRuleRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getSourceCidrIp() const;
void setSourceCidrIp(const std::string &sourceCidrIp);
std::string getRemark() const;
void setRemark(const std::string &remark);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getRuleId() const;
void setRuleId(const std::string &ruleId);
private:
std::string clientToken_;
std::string sourceCidrIp_;
std::string remark_;
std::string instanceId_;
std::string regionId_;
std::string ruleId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULERESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT EnableFirewallRuleResult : public ServiceResult
{
public:
EnableFirewallRuleResult();
explicit EnableFirewallRuleResult(const std::string &payload);
~EnableFirewallRuleResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_ENABLEFIREWALLRULERESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDMONITORAGENTRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDMONITORAGENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT InstallCloudMonitorAgentResult : public ServiceResult
{
public:
InstallCloudMonitorAgentResult();
explicit InstallCloudMonitorAgentResult(const std::string &payload);
~InstallCloudMonitorAgentResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDMONITORAGENTRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT ListCustomImagesRequest : public RpcServiceRequest {
public:
ListCustomImagesRequest();
~ListCustomImagesRequest();
std::string getSystemSnapshotId() const;
void setSystemSnapshotId(const std::string &systemSnapshotId);
std::string getDataSnapshotId() const;
void setDataSnapshotId(const std::string &dataSnapshotId);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getImageNames() const;
void setImageNames(const std::string &imageNames);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getImageIds() const;
void setImageIds(const std::string &imageIds);
private:
std::string systemSnapshotId_;
std::string dataSnapshotId_;
std::string clientToken_;
std::string imageNames_;
int pageNumber_;
std::string regionId_;
int pageSize_;
std::string imageIds_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT ListCustomImagesResult : public ServiceResult
{
public:
struct CustomImage
{
std::string status;
std::string description;
bool inShare;
std::string instanceId;
std::string systemSnapshotId;
std::string systemSnapshotName;
std::string dataSnapshotId;
std::string name;
std::string dataSnapshotName;
std::string instanceName;
std::string creationTime;
std::string imageId;
std::string regionId;
};
ListCustomImagesResult();
explicit ListCustomImagesResult(const std::string &payload);
~ListCustomImagesResult();
std::string getTotalCount()const;
std::vector<CustomImage> getCustomImages()const;
std::string getPageSize()const;
std::string getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::string totalCount_;
std::vector<CustomImage> customImages_;
std::string pageSize_;
std::string pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTCUSTOMIMAGESRESULT_H_

View File

@@ -30,6 +30,8 @@ class ALIBABACLOUD_SWAS_OPEN_EXPORT ListDisksRequest : public RpcServiceRequest
public:
ListDisksRequest();
~ListDisksRequest();
std::string getDiskType() const;
void setDiskType(const std::string &diskType);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getInstanceId() const;
@@ -42,6 +44,7 @@ public:
void setDiskIds(const std::string &diskIds);
private:
std::string diskType_;
int pageNumber_;
std::string instanceId_;
std::string regionId_;

View File

@@ -35,15 +35,17 @@ namespace AlibabaCloud
struct Disk
{
std::string status;
std::string diskType;
std::string category;
std::string instanceId;
std::string device;
int size;
std::string creationTime;
std::string diskChargeType;
std::string regionId;
std::string diskName;
std::string remark;
std::string diskType;
std::string instanceName;
std::string creationTime;
std::string regionId;
std::string diskId;
};

View File

@@ -34,8 +34,10 @@ namespace AlibabaCloud
public:
struct FirewallRule
{
std::string policy;
std::string port;
std::string ruleId;
std::string sourceCidrIp;
std::string ruleProtocol;
std::string remark;
};

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstanceStatusRequest : public RpcServiceRequest {
public:
ListInstanceStatusRequest();
~ListInstanceStatusRequest();
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getInstanceIds() const;
void setInstanceIds(const std::string &instanceIds);
int getPageSize() const;
void setPageSize(int pageSize);
private:
int pageNumber_;
std::string regionId_;
std::string instanceIds_;
int pageSize_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstanceStatusResult : public ServiceResult
{
public:
struct InstanceStatuse
{
std::string status;
std::string instanceId;
};
ListInstanceStatusResult();
explicit ListInstanceStatusResult(const std::string &payload);
~ListInstanceStatusResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<InstanceStatuse> getInstanceStatuses()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<InstanceStatuse> instanceStatuses_;
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTATUSRESULT_H_

View File

@@ -34,15 +34,39 @@ namespace AlibabaCloud
public:
struct Instance
{
struct ResourceSpec
{
double memory;
int bandwidth;
int diskSize;
std::string diskCategory;
int cpu;
double flow;
};
struct Image
{
std::string imageName;
std::string imageVersion;
std::string osType;
std::string imageIconUrl;
std::string imageContact;
std::string imageType;
};
std::string status;
std::string disableReason;
std::string instanceId;
std::string planId;
ResourceSpec resourceSpec;
std::string ddosStatus;
Image image;
std::string combinationInstanceId;
std::string businessStatus;
std::string publicIpAddress;
std::string instanceName;
std::string innerIpAddress;
std::string uuid;
std::string chargeType;
bool combination;
std::string expiredTime;
std::string creationTime;
std::string imageId;

View File

@@ -32,6 +32,8 @@ public:
~ListSnapshotsRequest();
std::string getSnapshotIds() const;
void setSnapshotIds(const std::string &snapshotIds);
std::string getSourceDiskType() const;
void setSourceDiskType(const std::string &sourceDiskType);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getInstanceId() const;
@@ -45,6 +47,7 @@ public:
private:
std::string snapshotIds_;
std::string sourceDiskType_;
int pageNumber_;
std::string instanceId_;
std::string regionId_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string status;
std::string snapshotId;
std::string progress;
std::string instanceId;
std::string rollbackTime;
std::string creationTime;
std::string regionId;
std::string sourceDiskType;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULEREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULEREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyFirewallRuleRequest : public RpcServiceRequest {
public:
ModifyFirewallRuleRequest();
~ModifyFirewallRuleRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getSourceCidrIp() const;
void setSourceCidrIp(const std::string &sourceCidrIp);
std::string getRemark() const;
void setRemark(const std::string &remark);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRuleProtocol() const;
void setRuleProtocol(const std::string &ruleProtocol);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getPort() const;
void setPort(const std::string &port);
std::string getRuleId() const;
void setRuleId(const std::string &ruleId);
private:
std::string clientToken_;
std::string sourceCidrIp_;
std::string remark_;
std::string instanceId_;
std::string ruleProtocol_;
std::string regionId_;
std::string port_;
std::string ruleId_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULERESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyFirewallRuleResult : public ServiceResult
{
public:
ModifyFirewallRuleResult();
explicit ModifyFirewallRuleResult(const std::string &payload);
~ModifyFirewallRuleResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYFIREWALLRULERESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYINSTANCEVNCPASSWORDRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYINSTANCEVNCPASSWORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyInstanceVncPasswordResult : public ServiceResult
{
public:
ModifyInstanceVncPasswordResult();
explicit ModifyInstanceVncPasswordResult(const std::string &payload);
~ModifyInstanceVncPasswordResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYINSTANCEVNCPASSWORDRESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT RebootInstancesResult : public ServiceResult
{
public:
RebootInstancesResult();
explicit RebootInstancesResult(const std::string &payload);
~RebootInstancesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCESRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_SWAS_OPEN_MODEL_STARTINSTANCESREQUEST_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCESREQUEST_H_
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace SWAS_OPEN {
namespace Model {
class ALIBABACLOUD_SWAS_OPEN_EXPORT StartInstancesRequest : public RpcServiceRequest {
public:
StartInstancesRequest();
~StartInstancesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getInstanceIds() const;
void setInstanceIds(const std::string &instanceIds);
private:
std::string clientToken_;
std::string regionId_;
std::string instanceIds_;
};
} // namespace Model
} // namespace SWAS_OPEN
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCESREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT StartInstancesResult : public ServiceResult
{
public:
StartInstancesResult();
explicit StartInstancesResult(const std::string &payload);
~StartInstancesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCESRESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCESRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT StopInstancesResult : public ServiceResult
{
public:
StopInstancesResult();
explicit StopInstancesResult(const std::string &payload);
~StopInstancesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCESRESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEDISKATTRIBUTERESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEDISKATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT UpdateDiskAttributeResult : public ServiceResult
{
public:
UpdateDiskAttributeResult();
explicit UpdateDiskAttributeResult(const std::string &payload);
~UpdateDiskAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEDISKATTRIBUTERESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATESNAPSHOTATTRIBUTERESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATESNAPSHOTATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT UpdateSnapshotAttributeResult : public ServiceResult
{
public:
UpdateSnapshotAttributeResult();
explicit UpdateSnapshotAttributeResult(const std::string &payload);
~UpdateSnapshotAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATESNAPSHOTATTRIBUTERESULT_H_

View File

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

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPLOADINSTANCEKEYPAIRRESULT_H_
#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPLOADINSTANCEKEYPAIRRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
namespace AlibabaCloud
{
namespace SWAS_OPEN
{
namespace Model
{
class ALIBABACLOUD_SWAS_OPEN_EXPORT UploadInstanceKeyPairResult : public ServiceResult
{
public:
UploadInstanceKeyPairResult();
explicit UploadInstanceKeyPairResult(const std::string &payload);
~UploadInstanceKeyPairResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPLOADINSTANCEKEYPAIRRESULT_H_

View File

@@ -159,6 +159,78 @@ SWAS_OPENClient::CreateFirewallRuleOutcomeCallable SWAS_OPENClient::createFirewa
return task->get_future();
}
SWAS_OPENClient::CreateFirewallRulesOutcome SWAS_OPENClient::createFirewallRules(const CreateFirewallRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateFirewallRulesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateFirewallRulesOutcome(CreateFirewallRulesResult(outcome.result()));
else
return CreateFirewallRulesOutcome(outcome.error());
}
void SWAS_OPENClient::createFirewallRulesAsync(const CreateFirewallRulesRequest& request, const CreateFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createFirewallRules(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::CreateFirewallRulesOutcomeCallable SWAS_OPENClient::createFirewallRulesCallable(const CreateFirewallRulesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateFirewallRulesOutcome()>>(
[this, request]()
{
return this->createFirewallRules(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::CreateInstanceKeyPairOutcome SWAS_OPENClient::createInstanceKeyPair(const CreateInstanceKeyPairRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstanceKeyPairOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstanceKeyPairOutcome(CreateInstanceKeyPairResult(outcome.result()));
else
return CreateInstanceKeyPairOutcome(outcome.error());
}
void SWAS_OPENClient::createInstanceKeyPairAsync(const CreateInstanceKeyPairRequest& request, const CreateInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstanceKeyPair(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::CreateInstanceKeyPairOutcomeCallable SWAS_OPENClient::createInstanceKeyPairCallable(const CreateInstanceKeyPairRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstanceKeyPairOutcome()>>(
[this, request]()
{
return this->createInstanceKeyPair(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::CreateInstancesOutcome SWAS_OPENClient::createInstances(const CreateInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +375,42 @@ SWAS_OPENClient::DeleteFirewallRuleOutcomeCallable SWAS_OPENClient::deleteFirewa
return task->get_future();
}
SWAS_OPENClient::DeleteInstanceKeyPairOutcome SWAS_OPENClient::deleteInstanceKeyPair(const DeleteInstanceKeyPairRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteInstanceKeyPairOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteInstanceKeyPairOutcome(DeleteInstanceKeyPairResult(outcome.result()));
else
return DeleteInstanceKeyPairOutcome(outcome.error());
}
void SWAS_OPENClient::deleteInstanceKeyPairAsync(const DeleteInstanceKeyPairRequest& request, const DeleteInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteInstanceKeyPair(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DeleteInstanceKeyPairOutcomeCallable SWAS_OPENClient::deleteInstanceKeyPairCallable(const DeleteInstanceKeyPairRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteInstanceKeyPairOutcome()>>(
[this, request]()
{
return this->deleteInstanceKeyPair(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DeleteSnapshotOutcome SWAS_OPENClient::deleteSnapshot(const DeleteSnapshotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,6 +447,42 @@ SWAS_OPENClient::DeleteSnapshotOutcomeCallable SWAS_OPENClient::deleteSnapshotCa
return task->get_future();
}
SWAS_OPENClient::DeleteSnapshotsOutcome SWAS_OPENClient::deleteSnapshots(const DeleteSnapshotsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSnapshotsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSnapshotsOutcome(DeleteSnapshotsResult(outcome.result()));
else
return DeleteSnapshotsOutcome(outcome.error());
}
void SWAS_OPENClient::deleteSnapshotsAsync(const DeleteSnapshotsRequest& request, const DeleteSnapshotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSnapshots(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DeleteSnapshotsOutcomeCallable SWAS_OPENClient::deleteSnapshotsCallable(const DeleteSnapshotsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSnapshotsOutcome()>>(
[this, request]()
{
return this->deleteSnapshots(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeCloudAssistantStatusOutcome SWAS_OPENClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +519,42 @@ SWAS_OPENClient::DescribeCloudAssistantStatusOutcomeCallable SWAS_OPENClient::de
return task->get_future();
}
SWAS_OPENClient::DescribeCloudMonitorAgentStatusesOutcome SWAS_OPENClient::describeCloudMonitorAgentStatuses(const DescribeCloudMonitorAgentStatusesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCloudMonitorAgentStatusesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCloudMonitorAgentStatusesOutcome(DescribeCloudMonitorAgentStatusesResult(outcome.result()));
else
return DescribeCloudMonitorAgentStatusesOutcome(outcome.error());
}
void SWAS_OPENClient::describeCloudMonitorAgentStatusesAsync(const DescribeCloudMonitorAgentStatusesRequest& request, const DescribeCloudMonitorAgentStatusesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCloudMonitorAgentStatuses(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeCloudMonitorAgentStatusesOutcomeCallable SWAS_OPENClient::describeCloudMonitorAgentStatusesCallable(const DescribeCloudMonitorAgentStatusesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCloudMonitorAgentStatusesOutcome()>>(
[this, request]()
{
return this->describeCloudMonitorAgentStatuses(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeDatabaseErrorLogsOutcome SWAS_OPENClient::describeDatabaseErrorLogs(const DescribeDatabaseErrorLogsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +735,114 @@ SWAS_OPENClient::DescribeDatabaseSlowLogRecordsOutcomeCallable SWAS_OPENClient::
return task->get_future();
}
SWAS_OPENClient::DescribeInstanceKeyPairOutcome SWAS_OPENClient::describeInstanceKeyPair(const DescribeInstanceKeyPairRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceKeyPairOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceKeyPairOutcome(DescribeInstanceKeyPairResult(outcome.result()));
else
return DescribeInstanceKeyPairOutcome(outcome.error());
}
void SWAS_OPENClient::describeInstanceKeyPairAsync(const DescribeInstanceKeyPairRequest& request, const DescribeInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstanceKeyPair(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeInstanceKeyPairOutcomeCallable SWAS_OPENClient::describeInstanceKeyPairCallable(const DescribeInstanceKeyPairRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceKeyPairOutcome()>>(
[this, request]()
{
return this->describeInstanceKeyPair(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeInstancePasswordsSettingOutcome SWAS_OPENClient::describeInstancePasswordsSetting(const DescribeInstancePasswordsSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstancePasswordsSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstancePasswordsSettingOutcome(DescribeInstancePasswordsSettingResult(outcome.result()));
else
return DescribeInstancePasswordsSettingOutcome(outcome.error());
}
void SWAS_OPENClient::describeInstancePasswordsSettingAsync(const DescribeInstancePasswordsSettingRequest& request, const DescribeInstancePasswordsSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstancePasswordsSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeInstancePasswordsSettingOutcomeCallable SWAS_OPENClient::describeInstancePasswordsSettingCallable(const DescribeInstancePasswordsSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstancePasswordsSettingOutcome()>>(
[this, request]()
{
return this->describeInstancePasswordsSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeInstanceVncUrlOutcome SWAS_OPENClient::describeInstanceVncUrl(const DescribeInstanceVncUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceVncUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceVncUrlOutcome(DescribeInstanceVncUrlResult(outcome.result()));
else
return DescribeInstanceVncUrlOutcome(outcome.error());
}
void SWAS_OPENClient::describeInstanceVncUrlAsync(const DescribeInstanceVncUrlRequest& request, const DescribeInstanceVncUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstanceVncUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeInstanceVncUrlOutcomeCallable SWAS_OPENClient::describeInstanceVncUrlCallable(const DescribeInstanceVncUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceVncUrlOutcome()>>(
[this, request]()
{
return this->describeInstanceVncUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeInvocationResultOutcome SWAS_OPENClient::describeInvocationResult(const DescribeInvocationResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +915,150 @@ SWAS_OPENClient::DescribeInvocationsOutcomeCallable SWAS_OPENClient::describeInv
return task->get_future();
}
SWAS_OPENClient::DescribeMonitorDataOutcome SWAS_OPENClient::describeMonitorData(const DescribeMonitorDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMonitorDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMonitorDataOutcome(DescribeMonitorDataResult(outcome.result()));
else
return DescribeMonitorDataOutcome(outcome.error());
}
void SWAS_OPENClient::describeMonitorDataAsync(const DescribeMonitorDataRequest& request, const DescribeMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMonitorData(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeMonitorDataOutcomeCallable SWAS_OPENClient::describeMonitorDataCallable(const DescribeMonitorDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMonitorDataOutcome()>>(
[this, request]()
{
return this->describeMonitorData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DescribeSecurityAgentStatusOutcome SWAS_OPENClient::describeSecurityAgentStatus(const DescribeSecurityAgentStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSecurityAgentStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSecurityAgentStatusOutcome(DescribeSecurityAgentStatusResult(outcome.result()));
else
return DescribeSecurityAgentStatusOutcome(outcome.error());
}
void SWAS_OPENClient::describeSecurityAgentStatusAsync(const DescribeSecurityAgentStatusRequest& request, const DescribeSecurityAgentStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSecurityAgentStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DescribeSecurityAgentStatusOutcomeCallable SWAS_OPENClient::describeSecurityAgentStatusCallable(const DescribeSecurityAgentStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSecurityAgentStatusOutcome()>>(
[this, request]()
{
return this->describeSecurityAgentStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::DisableFirewallRuleOutcome SWAS_OPENClient::disableFirewallRule(const DisableFirewallRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DisableFirewallRuleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DisableFirewallRuleOutcome(DisableFirewallRuleResult(outcome.result()));
else
return DisableFirewallRuleOutcome(outcome.error());
}
void SWAS_OPENClient::disableFirewallRuleAsync(const DisableFirewallRuleRequest& request, const DisableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, disableFirewallRule(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::DisableFirewallRuleOutcomeCallable SWAS_OPENClient::disableFirewallRuleCallable(const DisableFirewallRuleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DisableFirewallRuleOutcome()>>(
[this, request]()
{
return this->disableFirewallRule(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::EnableFirewallRuleOutcome SWAS_OPENClient::enableFirewallRule(const EnableFirewallRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EnableFirewallRuleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EnableFirewallRuleOutcome(EnableFirewallRuleResult(outcome.result()));
else
return EnableFirewallRuleOutcome(outcome.error());
}
void SWAS_OPENClient::enableFirewallRuleAsync(const EnableFirewallRuleRequest& request, const EnableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, enableFirewallRule(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::EnableFirewallRuleOutcomeCallable SWAS_OPENClient::enableFirewallRuleCallable(const EnableFirewallRuleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EnableFirewallRuleOutcome()>>(
[this, request]()
{
return this->enableFirewallRule(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::InstallCloudAssistantOutcome SWAS_OPENClient::installCloudAssistant(const InstallCloudAssistantRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +1095,78 @@ SWAS_OPENClient::InstallCloudAssistantOutcomeCallable SWAS_OPENClient::installCl
return task->get_future();
}
SWAS_OPENClient::InstallCloudMonitorAgentOutcome SWAS_OPENClient::installCloudMonitorAgent(const InstallCloudMonitorAgentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InstallCloudMonitorAgentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InstallCloudMonitorAgentOutcome(InstallCloudMonitorAgentResult(outcome.result()));
else
return InstallCloudMonitorAgentOutcome(outcome.error());
}
void SWAS_OPENClient::installCloudMonitorAgentAsync(const InstallCloudMonitorAgentRequest& request, const InstallCloudMonitorAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, installCloudMonitorAgent(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::InstallCloudMonitorAgentOutcomeCallable SWAS_OPENClient::installCloudMonitorAgentCallable(const InstallCloudMonitorAgentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InstallCloudMonitorAgentOutcome()>>(
[this, request]()
{
return this->installCloudMonitorAgent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::ListCustomImagesOutcome SWAS_OPENClient::listCustomImages(const ListCustomImagesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCustomImagesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCustomImagesOutcome(ListCustomImagesResult(outcome.result()));
else
return ListCustomImagesOutcome(outcome.error());
}
void SWAS_OPENClient::listCustomImagesAsync(const ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCustomImages(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::ListCustomImagesOutcomeCallable SWAS_OPENClient::listCustomImagesCallable(const ListCustomImagesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCustomImagesOutcome()>>(
[this, request]()
{
return this->listCustomImages(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::ListDisksOutcome SWAS_OPENClient::listDisks(const ListDisksRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,6 +1311,42 @@ SWAS_OPENClient::ListInstancePlansModificationOutcomeCallable SWAS_OPENClient::l
return task->get_future();
}
SWAS_OPENClient::ListInstanceStatusOutcome SWAS_OPENClient::listInstanceStatus(const ListInstanceStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListInstanceStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListInstanceStatusOutcome(ListInstanceStatusResult(outcome.result()));
else
return ListInstanceStatusOutcome(outcome.error());
}
void SWAS_OPENClient::listInstanceStatusAsync(const ListInstanceStatusRequest& request, const ListInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listInstanceStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::ListInstanceStatusOutcomeCallable SWAS_OPENClient::listInstanceStatusCallable(const ListInstanceStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListInstanceStatusOutcome()>>(
[this, request]()
{
return this->listInstanceStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::ListInstancesOutcome SWAS_OPENClient::listInstances(const ListInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1635,42 @@ SWAS_OPENClient::ModifyDatabaseInstanceParameterOutcomeCallable SWAS_OPENClient:
return task->get_future();
}
SWAS_OPENClient::ModifyFirewallRuleOutcome SWAS_OPENClient::modifyFirewallRule(const ModifyFirewallRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyFirewallRuleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyFirewallRuleOutcome(ModifyFirewallRuleResult(outcome.result()));
else
return ModifyFirewallRuleOutcome(outcome.error());
}
void SWAS_OPENClient::modifyFirewallRuleAsync(const ModifyFirewallRuleRequest& request, const ModifyFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyFirewallRule(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::ModifyFirewallRuleOutcomeCallable SWAS_OPENClient::modifyFirewallRuleCallable(const ModifyFirewallRuleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyFirewallRuleOutcome()>>(
[this, request]()
{
return this->modifyFirewallRule(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::ModifyImageShareStatusOutcome SWAS_OPENClient::modifyImageShareStatus(const ModifyImageShareStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1131,6 +1707,42 @@ SWAS_OPENClient::ModifyImageShareStatusOutcomeCallable SWAS_OPENClient::modifyIm
return task->get_future();
}
SWAS_OPENClient::ModifyInstanceVncPasswordOutcome SWAS_OPENClient::modifyInstanceVncPassword(const ModifyInstanceVncPasswordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyInstanceVncPasswordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyInstanceVncPasswordOutcome(ModifyInstanceVncPasswordResult(outcome.result()));
else
return ModifyInstanceVncPasswordOutcome(outcome.error());
}
void SWAS_OPENClient::modifyInstanceVncPasswordAsync(const ModifyInstanceVncPasswordRequest& request, const ModifyInstanceVncPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyInstanceVncPassword(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::ModifyInstanceVncPasswordOutcomeCallable SWAS_OPENClient::modifyInstanceVncPasswordCallable(const ModifyInstanceVncPasswordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyInstanceVncPasswordOutcome()>>(
[this, request]()
{
return this->modifyInstanceVncPassword(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::RebootInstanceOutcome SWAS_OPENClient::rebootInstance(const RebootInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,6 +1779,42 @@ SWAS_OPENClient::RebootInstanceOutcomeCallable SWAS_OPENClient::rebootInstanceCa
return task->get_future();
}
SWAS_OPENClient::RebootInstancesOutcome SWAS_OPENClient::rebootInstances(const RebootInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RebootInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RebootInstancesOutcome(RebootInstancesResult(outcome.result()));
else
return RebootInstancesOutcome(outcome.error());
}
void SWAS_OPENClient::rebootInstancesAsync(const RebootInstancesRequest& request, const RebootInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, rebootInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::RebootInstancesOutcomeCallable SWAS_OPENClient::rebootInstancesCallable(const RebootInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RebootInstancesOutcome()>>(
[this, request]()
{
return this->rebootInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::ReleasePublicConnectionOutcome SWAS_OPENClient::releasePublicConnection(const ReleasePublicConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1491,6 +2139,42 @@ SWAS_OPENClient::StartInstanceOutcomeCallable SWAS_OPENClient::startInstanceCall
return task->get_future();
}
SWAS_OPENClient::StartInstancesOutcome SWAS_OPENClient::startInstances(const StartInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartInstancesOutcome(StartInstancesResult(outcome.result()));
else
return StartInstancesOutcome(outcome.error());
}
void SWAS_OPENClient::startInstancesAsync(const StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::StartInstancesOutcomeCallable SWAS_OPENClient::startInstancesCallable(const StartInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartInstancesOutcome()>>(
[this, request]()
{
return this->startInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::StopDatabaseInstanceOutcome SWAS_OPENClient::stopDatabaseInstance(const StopDatabaseInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1563,6 +2247,78 @@ SWAS_OPENClient::StopInstanceOutcomeCallable SWAS_OPENClient::stopInstanceCallab
return task->get_future();
}
SWAS_OPENClient::StopInstancesOutcome SWAS_OPENClient::stopInstances(const StopInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopInstancesOutcome(StopInstancesResult(outcome.result()));
else
return StopInstancesOutcome(outcome.error());
}
void SWAS_OPENClient::stopInstancesAsync(const StopInstancesRequest& request, const StopInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::StopInstancesOutcomeCallable SWAS_OPENClient::stopInstancesCallable(const StopInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopInstancesOutcome()>>(
[this, request]()
{
return this->stopInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::UpdateDiskAttributeOutcome SWAS_OPENClient::updateDiskAttribute(const UpdateDiskAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDiskAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDiskAttributeOutcome(UpdateDiskAttributeResult(outcome.result()));
else
return UpdateDiskAttributeOutcome(outcome.error());
}
void SWAS_OPENClient::updateDiskAttributeAsync(const UpdateDiskAttributeRequest& request, const UpdateDiskAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDiskAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::UpdateDiskAttributeOutcomeCallable SWAS_OPENClient::updateDiskAttributeCallable(const UpdateDiskAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDiskAttributeOutcome()>>(
[this, request]()
{
return this->updateDiskAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::UpdateInstanceAttributeOutcome SWAS_OPENClient::updateInstanceAttribute(const UpdateInstanceAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1599,6 +2355,42 @@ SWAS_OPENClient::UpdateInstanceAttributeOutcomeCallable SWAS_OPENClient::updateI
return task->get_future();
}
SWAS_OPENClient::UpdateSnapshotAttributeOutcome SWAS_OPENClient::updateSnapshotAttribute(const UpdateSnapshotAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateSnapshotAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateSnapshotAttributeOutcome(UpdateSnapshotAttributeResult(outcome.result()));
else
return UpdateSnapshotAttributeOutcome(outcome.error());
}
void SWAS_OPENClient::updateSnapshotAttributeAsync(const UpdateSnapshotAttributeRequest& request, const UpdateSnapshotAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateSnapshotAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::UpdateSnapshotAttributeOutcomeCallable SWAS_OPENClient::updateSnapshotAttributeCallable(const UpdateSnapshotAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateSnapshotAttributeOutcome()>>(
[this, request]()
{
return this->updateSnapshotAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SWAS_OPENClient::UpgradeInstanceOutcome SWAS_OPENClient::upgradeInstance(const UpgradeInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,3 +2427,39 @@ SWAS_OPENClient::UpgradeInstanceOutcomeCallable SWAS_OPENClient::upgradeInstance
return task->get_future();
}
SWAS_OPENClient::UploadInstanceKeyPairOutcome SWAS_OPENClient::uploadInstanceKeyPair(const UploadInstanceKeyPairRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UploadInstanceKeyPairOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UploadInstanceKeyPairOutcome(UploadInstanceKeyPairResult(outcome.result()));
else
return UploadInstanceKeyPairOutcome(outcome.error());
}
void SWAS_OPENClient::uploadInstanceKeyPairAsync(const UploadInstanceKeyPairRequest& request, const UploadInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, uploadInstanceKeyPair(request), context);
};
asyncExecute(new Runnable(fn));
}
SWAS_OPENClient::UploadInstanceKeyPairOutcomeCallable SWAS_OPENClient::uploadInstanceKeyPairCallable(const UploadInstanceKeyPairRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UploadInstanceKeyPairOutcome()>>(
[this, request]()
{
return this->uploadInstanceKeyPair(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/CreateFirewallRulesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::CreateFirewallRulesRequest;
CreateFirewallRulesRequest::CreateFirewallRulesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "CreateFirewallRules") {
setMethod(HttpRequest::Method::Post);
}
CreateFirewallRulesRequest::~CreateFirewallRulesRequest() {}
std::string CreateFirewallRulesRequest::getClientToken() const {
return clientToken_;
}
void CreateFirewallRulesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateFirewallRulesRequest::getInstanceId() const {
return instanceId_;
}
void CreateFirewallRulesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateFirewallRulesRequest::getRegionId() const {
return regionId_;
}
void CreateFirewallRulesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<CreateFirewallRulesRequest::FirewallRules> CreateFirewallRulesRequest::getFirewallRules() const {
return firewallRules_;
}
void CreateFirewallRulesRequest::setFirewallRules(const std::vector<CreateFirewallRulesRequest::FirewallRules> &firewallRules) {
firewallRules_ = firewallRules;
for(int dep1 = 0; dep1 != firewallRules.size(); dep1++) {
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".RuleProtocol", firewallRules[dep1].ruleProtocol);
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".Port", firewallRules[dep1].port);
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", firewallRules[dep1].sourceCidrIp);
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".Remark", firewallRules[dep1].remark);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,61 @@
/*
* 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/swas-open/model/DescribeCloudMonitorAgentStatusesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
DescribeCloudMonitorAgentStatusesResult::DescribeCloudMonitorAgentStatusesResult() :
ServiceResult()
{}
DescribeCloudMonitorAgentStatusesResult::DescribeCloudMonitorAgentStatusesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCloudMonitorAgentStatusesResult::~DescribeCloudMonitorAgentStatusesResult()
{}
void DescribeCloudMonitorAgentStatusesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceStatusListNode = value["InstanceStatusList"]["InstanceStatus"];
for (auto valueInstanceStatusListInstanceStatus : allInstanceStatusListNode)
{
InstanceStatus instanceStatusListObject;
if(!valueInstanceStatusListInstanceStatus["Status"].isNull())
instanceStatusListObject.status = valueInstanceStatusListInstanceStatus["Status"].asString();
if(!valueInstanceStatusListInstanceStatus["InstanceId"].isNull())
instanceStatusListObject.instanceId = valueInstanceStatusListInstanceStatus["InstanceId"].asString();
if(!valueInstanceStatusListInstanceStatus["AutoInstall"].isNull())
instanceStatusListObject.autoInstall = valueInstanceStatusListInstanceStatus["AutoInstall"].asString() == "true";
instanceStatusList_.push_back(instanceStatusListObject);
}
}
std::vector<DescribeCloudMonitorAgentStatusesResult::InstanceStatus> DescribeCloudMonitorAgentStatusesResult::getInstanceStatusList()const
{
return instanceStatusList_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/DescribeMonitorDataRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DescribeMonitorDataRequest;
DescribeMonitorDataRequest::DescribeMonitorDataRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeMonitorData") {
setMethod(HttpRequest::Method::Post);
}
DescribeMonitorDataRequest::~DescribeMonitorDataRequest() {}
std::string DescribeMonitorDataRequest::getClientToken() const {
return clientToken_;
}
void DescribeMonitorDataRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DescribeMonitorDataRequest::getStartTime() const {
return startTime_;
}
void DescribeMonitorDataRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string DescribeMonitorDataRequest::getRegionId() const {
return regionId_;
}
void DescribeMonitorDataRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeMonitorDataRequest::getNextToken() const {
return nextToken_;
}
void DescribeMonitorDataRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string DescribeMonitorDataRequest::getMetricName() const {
return metricName_;
}
void DescribeMonitorDataRequest::setMetricName(const std::string &metricName) {
metricName_ = metricName;
setParameter(std::string("MetricName"), metricName);
}
std::string DescribeMonitorDataRequest::getPeriod() const {
return period_;
}
void DescribeMonitorDataRequest::setPeriod(const std::string &period) {
period_ = period;
setParameter(std::string("Period"), period);
}
std::string DescribeMonitorDataRequest::getLength() const {
return length_;
}
void DescribeMonitorDataRequest::setLength(const std::string &length) {
length_ = length;
setParameter(std::string("Length"), length);
}
std::string DescribeMonitorDataRequest::getEndTime() const {
return endTime_;
}
void DescribeMonitorDataRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string DescribeMonitorDataRequest::getInstanceId() const {
return instanceId_;
}
void DescribeMonitorDataRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

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

View File

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

View File

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

View 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/swas-open/model/DisableFirewallRuleRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::DisableFirewallRuleRequest;
DisableFirewallRuleRequest::DisableFirewallRuleRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "DisableFirewallRule") {
setMethod(HttpRequest::Method::Post);
}
DisableFirewallRuleRequest::~DisableFirewallRuleRequest() {}
std::string DisableFirewallRuleRequest::getClientToken() const {
return clientToken_;
}
void DisableFirewallRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string DisableFirewallRuleRequest::getRemark() const {
return remark_;
}
void DisableFirewallRuleRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string DisableFirewallRuleRequest::getInstanceId() const {
return instanceId_;
}
void DisableFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DisableFirewallRuleRequest::getRegionId() const {
return regionId_;
}
void DisableFirewallRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DisableFirewallRuleRequest::getRuleId() const {
return ruleId_;
}
void DisableFirewallRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

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

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/EnableFirewallRuleRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::EnableFirewallRuleRequest;
EnableFirewallRuleRequest::EnableFirewallRuleRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "EnableFirewallRule") {
setMethod(HttpRequest::Method::Post);
}
EnableFirewallRuleRequest::~EnableFirewallRuleRequest() {}
std::string EnableFirewallRuleRequest::getClientToken() const {
return clientToken_;
}
void EnableFirewallRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string EnableFirewallRuleRequest::getSourceCidrIp() const {
return sourceCidrIp_;
}
void EnableFirewallRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
sourceCidrIp_ = sourceCidrIp;
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
}
std::string EnableFirewallRuleRequest::getRemark() const {
return remark_;
}
void EnableFirewallRuleRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string EnableFirewallRuleRequest::getInstanceId() const {
return instanceId_;
}
void EnableFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableFirewallRuleRequest::getRegionId() const {
return regionId_;
}
void EnableFirewallRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string EnableFirewallRuleRequest::getRuleId() const {
return ruleId_;
}
void EnableFirewallRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/InstallCloudMonitorAgentRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::InstallCloudMonitorAgentRequest;
InstallCloudMonitorAgentRequest::InstallCloudMonitorAgentRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "InstallCloudMonitorAgent") {
setMethod(HttpRequest::Method::Post);
}
InstallCloudMonitorAgentRequest::~InstallCloudMonitorAgentRequest() {}
std::string InstallCloudMonitorAgentRequest::getClientToken() const {
return clientToken_;
}
void InstallCloudMonitorAgentRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string InstallCloudMonitorAgentRequest::getInstanceId() const {
return instanceId_;
}
void InstallCloudMonitorAgentRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string InstallCloudMonitorAgentRequest::getRegionId() const {
return regionId_;
}
void InstallCloudMonitorAgentRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
bool InstallCloudMonitorAgentRequest::getForce() const {
return force_;
}
void InstallCloudMonitorAgentRequest::setForce(bool force) {
force_ = force;
setParameter(std::string("Force"), force ? "true" : "false");
}

View File

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

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListCustomImagesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListCustomImagesRequest;
ListCustomImagesRequest::ListCustomImagesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListCustomImages") {
setMethod(HttpRequest::Method::Post);
}
ListCustomImagesRequest::~ListCustomImagesRequest() {}
std::string ListCustomImagesRequest::getSystemSnapshotId() const {
return systemSnapshotId_;
}
void ListCustomImagesRequest::setSystemSnapshotId(const std::string &systemSnapshotId) {
systemSnapshotId_ = systemSnapshotId;
setParameter(std::string("SystemSnapshotId"), systemSnapshotId);
}
std::string ListCustomImagesRequest::getDataSnapshotId() const {
return dataSnapshotId_;
}
void ListCustomImagesRequest::setDataSnapshotId(const std::string &dataSnapshotId) {
dataSnapshotId_ = dataSnapshotId;
setParameter(std::string("DataSnapshotId"), dataSnapshotId);
}
std::string ListCustomImagesRequest::getClientToken() const {
return clientToken_;
}
void ListCustomImagesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ListCustomImagesRequest::getImageNames() const {
return imageNames_;
}
void ListCustomImagesRequest::setImageNames(const std::string &imageNames) {
imageNames_ = imageNames;
setParameter(std::string("ImageNames"), imageNames);
}
int ListCustomImagesRequest::getPageNumber() const {
return pageNumber_;
}
void ListCustomImagesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListCustomImagesRequest::getRegionId() const {
return regionId_;
}
void ListCustomImagesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int ListCustomImagesRequest::getPageSize() const {
return pageSize_;
}
void ListCustomImagesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListCustomImagesRequest::getImageIds() const {
return imageIds_;
}
void ListCustomImagesRequest::setImageIds(const std::string &imageIds) {
imageIds_ = imageIds;
setParameter(std::string("ImageIds"), imageIds);
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListCustomImagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListCustomImagesResult::ListCustomImagesResult() :
ServiceResult()
{}
ListCustomImagesResult::ListCustomImagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCustomImagesResult::~ListCustomImagesResult()
{}
void ListCustomImagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomImagesNode = value["CustomImages"]["CustomImage"];
for (auto valueCustomImagesCustomImage : allCustomImagesNode)
{
CustomImage customImagesObject;
if(!valueCustomImagesCustomImage["CreationTime"].isNull())
customImagesObject.creationTime = valueCustomImagesCustomImage["CreationTime"].asString();
if(!valueCustomImagesCustomImage["DataSnapshotName"].isNull())
customImagesObject.dataSnapshotName = valueCustomImagesCustomImage["DataSnapshotName"].asString();
if(!valueCustomImagesCustomImage["SystemSnapshotId"].isNull())
customImagesObject.systemSnapshotId = valueCustomImagesCustomImage["SystemSnapshotId"].asString();
if(!valueCustomImagesCustomImage["InShare"].isNull())
customImagesObject.inShare = valueCustomImagesCustomImage["InShare"].asString() == "true";
if(!valueCustomImagesCustomImage["InstanceId"].isNull())
customImagesObject.instanceId = valueCustomImagesCustomImage["InstanceId"].asString();
if(!valueCustomImagesCustomImage["DataSnapshotId"].isNull())
customImagesObject.dataSnapshotId = valueCustomImagesCustomImage["DataSnapshotId"].asString();
if(!valueCustomImagesCustomImage["RegionId"].isNull())
customImagesObject.regionId = valueCustomImagesCustomImage["RegionId"].asString();
if(!valueCustomImagesCustomImage["SystemSnapshotName"].isNull())
customImagesObject.systemSnapshotName = valueCustomImagesCustomImage["SystemSnapshotName"].asString();
if(!valueCustomImagesCustomImage["Description"].isNull())
customImagesObject.description = valueCustomImagesCustomImage["Description"].asString();
if(!valueCustomImagesCustomImage["Name"].isNull())
customImagesObject.name = valueCustomImagesCustomImage["Name"].asString();
if(!valueCustomImagesCustomImage["ImageId"].isNull())
customImagesObject.imageId = valueCustomImagesCustomImage["ImageId"].asString();
if(!valueCustomImagesCustomImage["Status"].isNull())
customImagesObject.status = valueCustomImagesCustomImage["Status"].asString();
if(!valueCustomImagesCustomImage["InstanceName"].isNull())
customImagesObject.instanceName = valueCustomImagesCustomImage["InstanceName"].asString();
customImages_.push_back(customImagesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = value["TotalCount"].asString();
if(!value["PageSize"].isNull())
pageSize_ = value["PageSize"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = value["PageNumber"].asString();
}
std::string ListCustomImagesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListCustomImagesResult::CustomImage> ListCustomImagesResult::getCustomImages()const
{
return customImages_;
}
std::string ListCustomImagesResult::getPageSize()const
{
return pageSize_;
}
std::string ListCustomImagesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -25,6 +25,15 @@ ListDisksRequest::ListDisksRequest()
ListDisksRequest::~ListDisksRequest() {}
std::string ListDisksRequest::getDiskType() const {
return diskType_;
}
void ListDisksRequest::setDiskType(const std::string &diskType) {
diskType_ = diskType;
setParameter(std::string("DiskType"), diskType);
}
int ListDisksRequest::getPageNumber() const {
return pageNumber_;
}

View File

@@ -65,6 +65,10 @@ void ListDisksResult::parse(const std::string &payload)
disksObject.instanceId = valueDisksDisk["InstanceId"].asString();
if(!valueDisksDisk["RegionId"].isNull())
disksObject.regionId = valueDisksDisk["RegionId"].asString();
if(!valueDisksDisk["Remark"].isNull())
disksObject.remark = valueDisksDisk["Remark"].asString();
if(!valueDisksDisk["InstanceName"].isNull())
disksObject.instanceName = valueDisksDisk["InstanceName"].asString();
disks_.push_back(disksObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -51,6 +51,10 @@ void ListFirewallRulesResult::parse(const std::string &payload)
firewallRulesObject.ruleId = valueFirewallRulesFirewallRule["RuleId"].asString();
if(!valueFirewallRulesFirewallRule["RuleProtocol"].isNull())
firewallRulesObject.ruleProtocol = valueFirewallRulesFirewallRule["RuleProtocol"].asString();
if(!valueFirewallRulesFirewallRule["Policy"].isNull())
firewallRulesObject.policy = valueFirewallRulesFirewallRule["Policy"].asString();
if(!valueFirewallRulesFirewallRule["SourceCidrIp"].isNull())
firewallRulesObject.sourceCidrIp = valueFirewallRulesFirewallRule["SourceCidrIp"].asString();
firewallRules_.push_back(firewallRulesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ListInstanceStatusRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ListInstanceStatusRequest;
ListInstanceStatusRequest::ListInstanceStatusRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ListInstanceStatus") {
setMethod(HttpRequest::Method::Post);
}
ListInstanceStatusRequest::~ListInstanceStatusRequest() {}
int ListInstanceStatusRequest::getPageNumber() const {
return pageNumber_;
}
void ListInstanceStatusRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListInstanceStatusRequest::getRegionId() const {
return regionId_;
}
void ListInstanceStatusRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListInstanceStatusRequest::getInstanceIds() const {
return instanceIds_;
}
void ListInstanceStatusRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}
int ListInstanceStatusRequest::getPageSize() const {
return pageSize_;
}
void ListInstanceStatusRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,80 @@
/*
* 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/swas-open/model/ListInstanceStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::SWAS_OPEN;
using namespace AlibabaCloud::SWAS_OPEN::Model;
ListInstanceStatusResult::ListInstanceStatusResult() :
ServiceResult()
{}
ListInstanceStatusResult::ListInstanceStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceStatusResult::~ListInstanceStatusResult()
{}
void ListInstanceStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceStatusesNode = value["InstanceStatuses"]["InstanceStatuse"];
for (auto valueInstanceStatusesInstanceStatuse : allInstanceStatusesNode)
{
InstanceStatuse instanceStatusesObject;
if(!valueInstanceStatusesInstanceStatuse["Status"].isNull())
instanceStatusesObject.status = valueInstanceStatusesInstanceStatuse["Status"].asString();
if(!valueInstanceStatusesInstanceStatuse["InstanceId"].isNull())
instanceStatusesObject.instanceId = valueInstanceStatusesInstanceStatuse["InstanceId"].asString();
instanceStatuses_.push_back(instanceStatusesObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int ListInstanceStatusResult::getTotalCount()const
{
return totalCount_;
}
int ListInstanceStatusResult::getPageSize()const
{
return pageSize_;
}
int ListInstanceStatusResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListInstanceStatusResult::InstanceStatuse> ListInstanceStatusResult::getInstanceStatuses()const
{
return instanceStatuses_;
}

View File

@@ -69,6 +69,40 @@ void ListInstancesResult::parse(const std::string &payload)
instancesObject.ddosStatus = valueInstancesInstance["DdosStatus"].asString();
if(!valueInstancesInstance["ImageId"].isNull())
instancesObject.imageId = valueInstancesInstance["ImageId"].asString();
if(!valueInstancesInstance["DisableReason"].isNull())
instancesObject.disableReason = valueInstancesInstance["DisableReason"].asString();
if(!valueInstancesInstance["Combination"].isNull())
instancesObject.combination = valueInstancesInstance["Combination"].asString() == "true";
if(!valueInstancesInstance["CombinationInstanceId"].isNull())
instancesObject.combinationInstanceId = valueInstancesInstance["CombinationInstanceId"].asString();
if(!valueInstancesInstance["Uuid"].isNull())
instancesObject.uuid = valueInstancesInstance["Uuid"].asString();
auto resourceSpecNode = value["ResourceSpec"];
if(!resourceSpecNode["DiskCategory"].isNull())
instancesObject.resourceSpec.diskCategory = resourceSpecNode["DiskCategory"].asString();
if(!resourceSpecNode["Cpu"].isNull())
instancesObject.resourceSpec.cpu = std::stoi(resourceSpecNode["Cpu"].asString());
if(!resourceSpecNode["Bandwidth"].isNull())
instancesObject.resourceSpec.bandwidth = std::stoi(resourceSpecNode["Bandwidth"].asString());
if(!resourceSpecNode["DiskSize"].isNull())
instancesObject.resourceSpec.diskSize = std::stoi(resourceSpecNode["DiskSize"].asString());
if(!resourceSpecNode["Memory"].isNull())
instancesObject.resourceSpec.memory = resourceSpecNode["Memory"].asString();
if(!resourceSpecNode["Flow"].isNull())
instancesObject.resourceSpec.flow = resourceSpecNode["Flow"].asString();
auto imageNode = value["Image"];
if(!imageNode["OsType"].isNull())
instancesObject.image.osType = imageNode["OsType"].asString();
if(!imageNode["ImageName"].isNull())
instancesObject.image.imageName = imageNode["ImageName"].asString();
if(!imageNode["ImageVersion"].isNull())
instancesObject.image.imageVersion = imageNode["ImageVersion"].asString();
if(!imageNode["ImageType"].isNull())
instancesObject.image.imageType = imageNode["ImageType"].asString();
if(!imageNode["ImageIconUrl"].isNull())
instancesObject.image.imageIconUrl = imageNode["ImageIconUrl"].asString();
if(!imageNode["ImageContact"].isNull())
instancesObject.image.imageContact = imageNode["ImageContact"].asString();
instances_.push_back(instancesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -34,6 +34,15 @@ void ListSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) {
setParameter(std::string("SnapshotIds"), snapshotIds);
}
std::string ListSnapshotsRequest::getSourceDiskType() const {
return sourceDiskType_;
}
void ListSnapshotsRequest::setSourceDiskType(const std::string &sourceDiskType) {
sourceDiskType_ = sourceDiskType;
setParameter(std::string("SourceDiskType"), sourceDiskType);
}
int ListSnapshotsRequest::getPageNumber() const {
return pageNumber_;
}

View File

@@ -61,6 +61,10 @@ void ListSnapshotsResult::parse(const std::string &payload)
snapshotsObject.sourceDiskType = valueSnapshotsSnapshot["SourceDiskType"].asString();
if(!valueSnapshotsSnapshot["RegionId"].isNull())
snapshotsObject.regionId = valueSnapshotsSnapshot["RegionId"].asString();
if(!valueSnapshotsSnapshot["InstanceId"].isNull())
snapshotsObject.instanceId = valueSnapshotsSnapshot["InstanceId"].asString();
if(!valueSnapshotsSnapshot["RollbackTime"].isNull())
snapshotsObject.rollbackTime = valueSnapshotsSnapshot["RollbackTime"].asString();
snapshots_.push_back(snapshotsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/ModifyFirewallRuleRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::ModifyFirewallRuleRequest;
ModifyFirewallRuleRequest::ModifyFirewallRuleRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyFirewallRule") {
setMethod(HttpRequest::Method::Post);
}
ModifyFirewallRuleRequest::~ModifyFirewallRuleRequest() {}
std::string ModifyFirewallRuleRequest::getClientToken() const {
return clientToken_;
}
void ModifyFirewallRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ModifyFirewallRuleRequest::getSourceCidrIp() const {
return sourceCidrIp_;
}
void ModifyFirewallRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
sourceCidrIp_ = sourceCidrIp;
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
}
std::string ModifyFirewallRuleRequest::getRemark() const {
return remark_;
}
void ModifyFirewallRuleRequest::setRemark(const std::string &remark) {
remark_ = remark;
setParameter(std::string("Remark"), remark);
}
std::string ModifyFirewallRuleRequest::getInstanceId() const {
return instanceId_;
}
void ModifyFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ModifyFirewallRuleRequest::getRuleProtocol() const {
return ruleProtocol_;
}
void ModifyFirewallRuleRequest::setRuleProtocol(const std::string &ruleProtocol) {
ruleProtocol_ = ruleProtocol;
setParameter(std::string("RuleProtocol"), ruleProtocol);
}
std::string ModifyFirewallRuleRequest::getRegionId() const {
return regionId_;
}
void ModifyFirewallRuleRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyFirewallRuleRequest::getPort() const {
return port_;
}
void ModifyFirewallRuleRequest::setPort(const std::string &port) {
port_ = port;
setParameter(std::string("Port"), port);
}
std::string ModifyFirewallRuleRequest::getRuleId() const {
return ruleId_;
}
void ModifyFirewallRuleRequest::setRuleId(const std::string &ruleId) {
ruleId_ = ruleId;
setParameter(std::string("RuleId"), ruleId);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/swas-open/model/RebootInstancesRequest.h>
using AlibabaCloud::SWAS_OPEN::Model::RebootInstancesRequest;
RebootInstancesRequest::RebootInstancesRequest()
: RpcServiceRequest("swas-open", "2020-06-01", "RebootInstances") {
setMethod(HttpRequest::Method::Post);
}
RebootInstancesRequest::~RebootInstancesRequest() {}
std::string RebootInstancesRequest::getClientToken() const {
return clientToken_;
}
void RebootInstancesRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
bool RebootInstancesRequest::getForceReboot() const {
return forceReboot_;
}
void RebootInstancesRequest::setForceReboot(bool forceReboot) {
forceReboot_ = forceReboot;
setParameter(std::string("ForceReboot"), forceReboot ? "true" : "false");
}
std::string RebootInstancesRequest::getRegionId() const {
return regionId_;
}
void RebootInstancesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string RebootInstancesRequest::getInstanceIds() const {
return instanceIds_;
}
void RebootInstancesRequest::setInstanceIds(const std::string &instanceIds) {
instanceIds_ = instanceIds;
setParameter(std::string("InstanceIds"), instanceIds);
}

View File

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

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More