From 8f0d7fd7bf96c8e9d45fceb84181777376edbc6c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 2 Mar 2023 02:16:10 +0000 Subject: [PATCH] Add new apis. --- VERSION | 2 +- swas-open/CMakeLists.txt | 258 +++ .../alibabacloud/swas-open/SWAS_OPENClient.h | 398 ++++ .../alibabacloud/swas-open/SWAS_OPENExport.h | 32 + .../model/AllocatePublicConnectionRequest.h | 48 + .../model/AllocatePublicConnectionResult.h | 51 + .../model/CreateCustomImageRequest.h | 60 + .../swas-open/model/CreateCustomImageResult.h | 51 + .../model/CreateFirewallRuleRequest.h | 57 + .../model/CreateFirewallRuleResult.h | 51 + .../swas-open/model/CreateInstancesRequest.h | 69 + .../swas-open/model/CreateInstancesResult.h | 51 + .../swas-open/model/CreateSnapshotRequest.h | 51 + .../swas-open/model/CreateSnapshotResult.h | 51 + .../model/DeleteCustomImageRequest.h | 48 + .../swas-open/model/DeleteCustomImageResult.h | 49 + .../model/DeleteFirewallRuleRequest.h | 51 + .../model/DeleteFirewallRuleResult.h | 49 + .../swas-open/model/DeleteSnapshotRequest.h | 48 + .../swas-open/model/DeleteSnapshotResult.h | 49 + .../DescribeCloudAssistantStatusRequest.h | 51 + .../DescribeCloudAssistantStatusResult.h | 62 + .../model/DescribeDatabaseErrorLogsRequest.h | 57 + .../model/DescribeDatabaseErrorLogsResult.h | 62 + ...escribeDatabaseInstanceMetricDataRequest.h | 54 + ...DescribeDatabaseInstanceMetricDataResult.h | 57 + ...escribeDatabaseInstanceParametersRequest.h | 45 + ...DescribeDatabaseInstanceParametersResult.h | 75 + .../model/DescribeDatabaseInstancesRequest.h | 51 + .../model/DescribeDatabaseInstancesResult.h | 76 + .../DescribeDatabaseSlowLogRecordsRequest.h | 57 + .../DescribeDatabaseSlowLogRecordsResult.h | 73 + .../model/DescribeInvocationResultRequest.h | 48 + .../model/DescribeInvocationResultResult.h | 65 + .../model/DescribeInvocationsRequest.h | 54 + .../model/DescribeInvocationsResult.h | 68 + .../model/InstallCloudAssistantRequest.h | 48 + .../model/InstallCloudAssistantResult.h | 49 + .../swas-open/model/ListDisksRequest.h | 54 + .../swas-open/model/ListDisksResult.h | 71 + .../model/ListFirewallRulesRequest.h | 51 + .../swas-open/model/ListFirewallRulesResult.h | 64 + .../swas-open/model/ListImagesRequest.h | 48 + .../swas-open/model/ListImagesResult.h | 59 + .../ListInstancePlansModificationRequest.h | 45 + .../ListInstancePlansModificationResult.h | 64 + .../swas-open/model/ListInstancesRequest.h | 57 + .../swas-open/model/ListInstancesResult.h | 73 + .../ListInstancesTrafficPackagesRequest.h | 45 + .../ListInstancesTrafficPackagesResult.h | 59 + .../swas-open/model/ListPlansRequest.h | 42 + .../swas-open/model/ListPlansResult.h | 64 + .../swas-open/model/ListRegionsRequest.h | 39 + .../swas-open/model/ListRegionsResult.h | 57 + .../swas-open/model/ListSnapshotsRequest.h | 57 + .../swas-open/model/ListSnapshotsResult.h | 69 + .../swas-open/model/LoginInstanceRequest.h | 51 + .../swas-open/model/LoginInstanceResult.h | 51 + ...ModifyDatabaseInstanceDescriptionRequest.h | 51 + .../ModifyDatabaseInstanceDescriptionResult.h | 49 + .../ModifyDatabaseInstanceParameterRequest.h | 54 + .../ModifyDatabaseInstanceParameterResult.h | 49 + .../model/ModifyImageShareStatusRequest.h | 51 + .../model/ModifyImageShareStatusResult.h | 49 + .../swas-open/model/RebootInstanceRequest.h | 48 + .../swas-open/model/RebootInstanceResult.h | 49 + .../model/ReleasePublicConnectionRequest.h | 48 + .../model/ReleasePublicConnectionResult.h | 49 + .../swas-open/model/RenewInstanceRequest.h | 51 + .../swas-open/model/RenewInstanceResult.h | 49 + .../ResetDatabaseAccountPasswordRequest.h | 51 + .../ResetDatabaseAccountPasswordResult.h | 49 + .../swas-open/model/ResetDiskRequest.h | 51 + .../swas-open/model/ResetDiskResult.h | 49 + .../swas-open/model/ResetSystemRequest.h | 51 + .../swas-open/model/ResetSystemResult.h | 49 + .../model/RestartDatabaseInstanceRequest.h | 48 + .../model/RestartDatabaseInstanceResult.h | 49 + .../swas-open/model/RunCommandRequest.h | 72 + .../swas-open/model/RunCommandResult.h | 51 + .../model/StartDatabaseInstanceRequest.h | 48 + .../model/StartDatabaseInstanceResult.h | 49 + .../swas-open/model/StartInstanceRequest.h | 48 + .../swas-open/model/StartInstanceResult.h | 49 + .../model/StopDatabaseInstanceRequest.h | 48 + .../model/StopDatabaseInstanceResult.h | 49 + .../swas-open/model/StopInstanceRequest.h | 48 + .../swas-open/model/StopInstanceResult.h | 49 + .../model/UpdateInstanceAttributeRequest.h | 54 + .../model/UpdateInstanceAttributeResult.h | 49 + .../swas-open/model/UpgradeInstanceRequest.h | 51 + .../swas-open/model/UpgradeInstanceResult.h | 49 + swas-open/src/SWAS-OPENClient.cc | 1637 +++++++++++++++++ .../model/AllocatePublicConnectionRequest.cc | 54 + .../model/AllocatePublicConnectionResult.cc | 51 + .../src/model/CreateCustomImageRequest.cc | 90 + .../src/model/CreateCustomImageResult.cc | 51 + .../src/model/CreateFirewallRuleRequest.cc | 81 + .../src/model/CreateFirewallRuleResult.cc | 51 + swas-open/src/model/CreateInstancesRequest.cc | 117 ++ swas-open/src/model/CreateInstancesResult.cc | 52 + swas-open/src/model/CreateSnapshotRequest.cc | 63 + swas-open/src/model/CreateSnapshotResult.cc | 51 + .../src/model/DeleteCustomImageRequest.cc | 54 + .../src/model/DeleteCustomImageResult.cc | 44 + .../src/model/DeleteFirewallRuleRequest.cc | 63 + .../src/model/DeleteFirewallRuleResult.cc | 44 + swas-open/src/model/DeleteSnapshotRequest.cc | 54 + swas-open/src/model/DeleteSnapshotResult.cc | 44 + .../DescribeCloudAssistantStatusRequest.cc | 65 + .../DescribeCloudAssistantStatusResult.cc | 80 + .../model/DescribeDatabaseErrorLogsRequest.cc | 81 + .../model/DescribeDatabaseErrorLogsResult.cc | 80 + ...scribeDatabaseInstanceMetricDataRequest.cc | 72 + ...escribeDatabaseInstanceMetricDataResult.cc | 72 + ...scribeDatabaseInstanceParametersRequest.cc | 45 + ...escribeDatabaseInstanceParametersResult.cc | 104 ++ .../model/DescribeDatabaseInstancesRequest.cc | 63 + .../model/DescribeDatabaseInstancesResult.cc | 108 ++ .../DescribeDatabaseSlowLogRecordsRequest.cc | 81 + .../DescribeDatabaseSlowLogRecordsResult.cc | 108 ++ .../model/DescribeInvocationResultRequest.cc | 54 + .../model/DescribeInvocationResultResult.cc | 72 + .../src/model/DescribeInvocationsRequest.cc | 72 + .../src/model/DescribeInvocationsResult.cc | 92 + .../src/model/InstallCloudAssistantRequest.cc | 56 + .../src/model/InstallCloudAssistantResult.cc | 44 + swas-open/src/model/ListDisksRequest.cc | 72 + swas-open/src/model/ListDisksResult.cc | 98 + .../src/model/ListFirewallRulesRequest.cc | 63 + .../src/model/ListFirewallRulesResult.cc | 84 + swas-open/src/model/ListImagesRequest.cc | 54 + swas-open/src/model/ListImagesResult.cc | 65 + .../ListInstancePlansModificationRequest.cc | 45 + .../ListInstancePlansModificationResult.cc | 75 + swas-open/src/model/ListInstancesRequest.cc | 81 + swas-open/src/model/ListInstancesResult.cc | 102 + .../ListInstancesTrafficPackagesRequest.cc | 45 + .../ListInstancesTrafficPackagesResult.cc | 65 + swas-open/src/model/ListPlansRequest.cc | 36 + swas-open/src/model/ListPlansResult.cc | 75 + swas-open/src/model/ListRegionsRequest.cc | 27 + swas-open/src/model/ListRegionsResult.cc | 61 + swas-open/src/model/ListSnapshotsRequest.cc | 81 + swas-open/src/model/ListSnapshotsResult.cc | 94 + swas-open/src/model/LoginInstanceRequest.cc | 63 + swas-open/src/model/LoginInstanceResult.cc | 51 + ...odifyDatabaseInstanceDescriptionRequest.cc | 63 + ...ModifyDatabaseInstanceDescriptionResult.cc | 44 + .../ModifyDatabaseInstanceParameterRequest.cc | 72 + .../ModifyDatabaseInstanceParameterResult.cc | 44 + .../model/ModifyImageShareStatusRequest.cc | 63 + .../src/model/ModifyImageShareStatusResult.cc | 44 + swas-open/src/model/RebootInstanceRequest.cc | 54 + swas-open/src/model/RebootInstanceResult.cc | 44 + .../model/ReleasePublicConnectionRequest.cc | 54 + .../model/ReleasePublicConnectionResult.cc | 44 + swas-open/src/model/RenewInstanceRequest.cc | 63 + swas-open/src/model/RenewInstanceResult.cc | 44 + .../ResetDatabaseAccountPasswordRequest.cc | 63 + .../ResetDatabaseAccountPasswordResult.cc | 44 + swas-open/src/model/ResetDiskRequest.cc | 63 + swas-open/src/model/ResetDiskResult.cc | 44 + swas-open/src/model/ResetSystemRequest.cc | 63 + swas-open/src/model/ResetSystemResult.cc | 44 + .../model/RestartDatabaseInstanceRequest.cc | 54 + .../model/RestartDatabaseInstanceResult.cc | 44 + swas-open/src/model/RunCommandRequest.cc | 128 ++ swas-open/src/model/RunCommandResult.cc | 51 + .../src/model/StartDatabaseInstanceRequest.cc | 54 + .../src/model/StartDatabaseInstanceResult.cc | 44 + swas-open/src/model/StartInstanceRequest.cc | 54 + swas-open/src/model/StartInstanceResult.cc | 44 + .../src/model/StopDatabaseInstanceRequest.cc | 54 + .../src/model/StopDatabaseInstanceResult.cc | 44 + swas-open/src/model/StopInstanceRequest.cc | 54 + swas-open/src/model/StopInstanceResult.cc | 44 + .../model/UpdateInstanceAttributeRequest.cc | 72 + .../model/UpdateInstanceAttributeResult.cc | 44 + swas-open/src/model/UpgradeInstanceRequest.cc | 63 + swas-open/src/model/UpgradeInstanceResult.cc | 44 + 181 files changed, 12536 insertions(+), 1 deletion(-) create mode 100644 swas-open/CMakeLists.txt create mode 100644 swas-open/include/alibabacloud/swas-open/SWAS_OPENClient.h create mode 100644 swas-open/include/alibabacloud/swas-open/SWAS_OPENExport.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateCustomImageRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateCustomImageResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateInstancesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateInstancesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateSnapshotRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/CreateSnapshotResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListDisksRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListDisksResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListImagesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListImagesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListPlansRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListRegionsRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListRegionsResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListSnapshotsRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ListSnapshotsResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/LoginInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/LoginInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RebootInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RebootInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RenewInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RenewInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetDiskRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetDiskResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/ResetSystemResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RunCommandRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/RunCommandResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StartInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StartInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StopInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/StopInstanceResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h create mode 100644 swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceResult.h create mode 100644 swas-open/src/SWAS-OPENClient.cc create mode 100644 swas-open/src/model/AllocatePublicConnectionRequest.cc create mode 100644 swas-open/src/model/AllocatePublicConnectionResult.cc create mode 100644 swas-open/src/model/CreateCustomImageRequest.cc create mode 100644 swas-open/src/model/CreateCustomImageResult.cc create mode 100644 swas-open/src/model/CreateFirewallRuleRequest.cc create mode 100644 swas-open/src/model/CreateFirewallRuleResult.cc create mode 100644 swas-open/src/model/CreateInstancesRequest.cc create mode 100644 swas-open/src/model/CreateInstancesResult.cc create mode 100644 swas-open/src/model/CreateSnapshotRequest.cc create mode 100644 swas-open/src/model/CreateSnapshotResult.cc create mode 100644 swas-open/src/model/DeleteCustomImageRequest.cc create mode 100644 swas-open/src/model/DeleteCustomImageResult.cc create mode 100644 swas-open/src/model/DeleteFirewallRuleRequest.cc create mode 100644 swas-open/src/model/DeleteFirewallRuleResult.cc create mode 100644 swas-open/src/model/DeleteSnapshotRequest.cc create mode 100644 swas-open/src/model/DeleteSnapshotResult.cc create mode 100644 swas-open/src/model/DescribeCloudAssistantStatusRequest.cc create mode 100644 swas-open/src/model/DescribeCloudAssistantStatusResult.cc create mode 100644 swas-open/src/model/DescribeDatabaseErrorLogsRequest.cc create mode 100644 swas-open/src/model/DescribeDatabaseErrorLogsResult.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstanceMetricDataRequest.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstanceMetricDataResult.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstanceParametersRequest.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstanceParametersResult.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstancesRequest.cc create mode 100644 swas-open/src/model/DescribeDatabaseInstancesResult.cc create mode 100644 swas-open/src/model/DescribeDatabaseSlowLogRecordsRequest.cc create mode 100644 swas-open/src/model/DescribeDatabaseSlowLogRecordsResult.cc create mode 100644 swas-open/src/model/DescribeInvocationResultRequest.cc create mode 100644 swas-open/src/model/DescribeInvocationResultResult.cc create mode 100644 swas-open/src/model/DescribeInvocationsRequest.cc create mode 100644 swas-open/src/model/DescribeInvocationsResult.cc create mode 100644 swas-open/src/model/InstallCloudAssistantRequest.cc create mode 100644 swas-open/src/model/InstallCloudAssistantResult.cc create mode 100644 swas-open/src/model/ListDisksRequest.cc create mode 100644 swas-open/src/model/ListDisksResult.cc create mode 100644 swas-open/src/model/ListFirewallRulesRequest.cc create mode 100644 swas-open/src/model/ListFirewallRulesResult.cc create mode 100644 swas-open/src/model/ListImagesRequest.cc create mode 100644 swas-open/src/model/ListImagesResult.cc create mode 100644 swas-open/src/model/ListInstancePlansModificationRequest.cc create mode 100644 swas-open/src/model/ListInstancePlansModificationResult.cc create mode 100644 swas-open/src/model/ListInstancesRequest.cc create mode 100644 swas-open/src/model/ListInstancesResult.cc create mode 100644 swas-open/src/model/ListInstancesTrafficPackagesRequest.cc create mode 100644 swas-open/src/model/ListInstancesTrafficPackagesResult.cc create mode 100644 swas-open/src/model/ListPlansRequest.cc create mode 100644 swas-open/src/model/ListPlansResult.cc create mode 100644 swas-open/src/model/ListRegionsRequest.cc create mode 100644 swas-open/src/model/ListRegionsResult.cc create mode 100644 swas-open/src/model/ListSnapshotsRequest.cc create mode 100644 swas-open/src/model/ListSnapshotsResult.cc create mode 100644 swas-open/src/model/LoginInstanceRequest.cc create mode 100644 swas-open/src/model/LoginInstanceResult.cc create mode 100644 swas-open/src/model/ModifyDatabaseInstanceDescriptionRequest.cc create mode 100644 swas-open/src/model/ModifyDatabaseInstanceDescriptionResult.cc create mode 100644 swas-open/src/model/ModifyDatabaseInstanceParameterRequest.cc create mode 100644 swas-open/src/model/ModifyDatabaseInstanceParameterResult.cc create mode 100644 swas-open/src/model/ModifyImageShareStatusRequest.cc create mode 100644 swas-open/src/model/ModifyImageShareStatusResult.cc create mode 100644 swas-open/src/model/RebootInstanceRequest.cc create mode 100644 swas-open/src/model/RebootInstanceResult.cc create mode 100644 swas-open/src/model/ReleasePublicConnectionRequest.cc create mode 100644 swas-open/src/model/ReleasePublicConnectionResult.cc create mode 100644 swas-open/src/model/RenewInstanceRequest.cc create mode 100644 swas-open/src/model/RenewInstanceResult.cc create mode 100644 swas-open/src/model/ResetDatabaseAccountPasswordRequest.cc create mode 100644 swas-open/src/model/ResetDatabaseAccountPasswordResult.cc create mode 100644 swas-open/src/model/ResetDiskRequest.cc create mode 100644 swas-open/src/model/ResetDiskResult.cc create mode 100644 swas-open/src/model/ResetSystemRequest.cc create mode 100644 swas-open/src/model/ResetSystemResult.cc create mode 100644 swas-open/src/model/RestartDatabaseInstanceRequest.cc create mode 100644 swas-open/src/model/RestartDatabaseInstanceResult.cc create mode 100644 swas-open/src/model/RunCommandRequest.cc create mode 100644 swas-open/src/model/RunCommandResult.cc create mode 100644 swas-open/src/model/StartDatabaseInstanceRequest.cc create mode 100644 swas-open/src/model/StartDatabaseInstanceResult.cc create mode 100644 swas-open/src/model/StartInstanceRequest.cc create mode 100644 swas-open/src/model/StartInstanceResult.cc create mode 100644 swas-open/src/model/StopDatabaseInstanceRequest.cc create mode 100644 swas-open/src/model/StopDatabaseInstanceResult.cc create mode 100644 swas-open/src/model/StopInstanceRequest.cc create mode 100644 swas-open/src/model/StopInstanceResult.cc create mode 100644 swas-open/src/model/UpdateInstanceAttributeRequest.cc create mode 100644 swas-open/src/model/UpdateInstanceAttributeResult.cc create mode 100644 swas-open/src/model/UpgradeInstanceRequest.cc create mode 100644 swas-open/src/model/UpgradeInstanceResult.cc diff --git a/VERSION b/VERSION index 3cd80c306..03304a4b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1473 \ No newline at end of file +1.36.1474 \ No newline at end of file diff --git a/swas-open/CMakeLists.txt b/swas-open/CMakeLists.txt new file mode 100644 index 000000000..40c1ae070 --- /dev/null +++ b/swas-open/CMakeLists.txt @@ -0,0 +1,258 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(swas-open_public_header + include/alibabacloud/swas-open/SWAS_OPENClient.h + include/alibabacloud/swas-open/SWAS_OPENExport.h ) + +set(swas-open_public_header_model + include/alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h + include/alibabacloud/swas-open/model/AllocatePublicConnectionResult.h + include/alibabacloud/swas-open/model/CreateCustomImageRequest.h + 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/CreateInstancesRequest.h + include/alibabacloud/swas-open/model/CreateInstancesResult.h + include/alibabacloud/swas-open/model/CreateSnapshotRequest.h + include/alibabacloud/swas-open/model/CreateSnapshotResult.h + include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h + 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/DeleteSnapshotRequest.h + include/alibabacloud/swas-open/model/DeleteSnapshotResult.h + include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h + include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h + include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h + include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h + include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h + include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataResult.h + include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h + include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersResult.h + include/alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h + 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/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/InstallCloudAssistantRequest.h + include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h + include/alibabacloud/swas-open/model/ListDisksRequest.h + include/alibabacloud/swas-open/model/ListDisksResult.h + include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h + include/alibabacloud/swas-open/model/ListFirewallRulesResult.h + include/alibabacloud/swas-open/model/ListImagesRequest.h + 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/ListInstancesRequest.h + include/alibabacloud/swas-open/model/ListInstancesResult.h + include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h + include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h + include/alibabacloud/swas-open/model/ListPlansRequest.h + include/alibabacloud/swas-open/model/ListPlansResult.h + include/alibabacloud/swas-open/model/ListRegionsRequest.h + include/alibabacloud/swas-open/model/ListRegionsResult.h + include/alibabacloud/swas-open/model/ListSnapshotsRequest.h + include/alibabacloud/swas-open/model/ListSnapshotsResult.h + include/alibabacloud/swas-open/model/LoginInstanceRequest.h + include/alibabacloud/swas-open/model/LoginInstanceResult.h + include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h + 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/ModifyImageShareStatusRequest.h + include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h + include/alibabacloud/swas-open/model/RebootInstanceRequest.h + include/alibabacloud/swas-open/model/RebootInstanceResult.h + include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h + include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h + include/alibabacloud/swas-open/model/RenewInstanceRequest.h + include/alibabacloud/swas-open/model/RenewInstanceResult.h + include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h + include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordResult.h + include/alibabacloud/swas-open/model/ResetDiskRequest.h + include/alibabacloud/swas-open/model/ResetDiskResult.h + include/alibabacloud/swas-open/model/ResetSystemRequest.h + include/alibabacloud/swas-open/model/ResetSystemResult.h + include/alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h + include/alibabacloud/swas-open/model/RestartDatabaseInstanceResult.h + include/alibabacloud/swas-open/model/RunCommandRequest.h + include/alibabacloud/swas-open/model/RunCommandResult.h + include/alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h + 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/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/UpdateInstanceAttributeRequest.h + include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h + include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h + include/alibabacloud/swas-open/model/UpgradeInstanceResult.h ) + +set(swas-open_src + src/SWAS-OPENClient.cc + src/model/AllocatePublicConnectionRequest.cc + src/model/AllocatePublicConnectionResult.cc + src/model/CreateCustomImageRequest.cc + src/model/CreateCustomImageResult.cc + src/model/CreateFirewallRuleRequest.cc + src/model/CreateFirewallRuleResult.cc + src/model/CreateInstancesRequest.cc + src/model/CreateInstancesResult.cc + src/model/CreateSnapshotRequest.cc + src/model/CreateSnapshotResult.cc + src/model/DeleteCustomImageRequest.cc + src/model/DeleteCustomImageResult.cc + src/model/DeleteFirewallRuleRequest.cc + src/model/DeleteFirewallRuleResult.cc + src/model/DeleteSnapshotRequest.cc + src/model/DeleteSnapshotResult.cc + src/model/DescribeCloudAssistantStatusRequest.cc + src/model/DescribeCloudAssistantStatusResult.cc + src/model/DescribeDatabaseErrorLogsRequest.cc + src/model/DescribeDatabaseErrorLogsResult.cc + src/model/DescribeDatabaseInstanceMetricDataRequest.cc + src/model/DescribeDatabaseInstanceMetricDataResult.cc + src/model/DescribeDatabaseInstanceParametersRequest.cc + src/model/DescribeDatabaseInstanceParametersResult.cc + src/model/DescribeDatabaseInstancesRequest.cc + src/model/DescribeDatabaseInstancesResult.cc + src/model/DescribeDatabaseSlowLogRecordsRequest.cc + src/model/DescribeDatabaseSlowLogRecordsResult.cc + src/model/DescribeInvocationResultRequest.cc + src/model/DescribeInvocationResultResult.cc + src/model/DescribeInvocationsRequest.cc + src/model/DescribeInvocationsResult.cc + src/model/InstallCloudAssistantRequest.cc + src/model/InstallCloudAssistantResult.cc + src/model/ListDisksRequest.cc + src/model/ListDisksResult.cc + src/model/ListFirewallRulesRequest.cc + src/model/ListFirewallRulesResult.cc + src/model/ListImagesRequest.cc + src/model/ListImagesResult.cc + src/model/ListInstancePlansModificationRequest.cc + src/model/ListInstancePlansModificationResult.cc + src/model/ListInstancesRequest.cc + src/model/ListInstancesResult.cc + src/model/ListInstancesTrafficPackagesRequest.cc + src/model/ListInstancesTrafficPackagesResult.cc + src/model/ListPlansRequest.cc + src/model/ListPlansResult.cc + src/model/ListRegionsRequest.cc + src/model/ListRegionsResult.cc + src/model/ListSnapshotsRequest.cc + src/model/ListSnapshotsResult.cc + src/model/LoginInstanceRequest.cc + src/model/LoginInstanceResult.cc + src/model/ModifyDatabaseInstanceDescriptionRequest.cc + src/model/ModifyDatabaseInstanceDescriptionResult.cc + src/model/ModifyDatabaseInstanceParameterRequest.cc + src/model/ModifyDatabaseInstanceParameterResult.cc + src/model/ModifyImageShareStatusRequest.cc + src/model/ModifyImageShareStatusResult.cc + src/model/RebootInstanceRequest.cc + src/model/RebootInstanceResult.cc + src/model/ReleasePublicConnectionRequest.cc + src/model/ReleasePublicConnectionResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/ResetDatabaseAccountPasswordRequest.cc + src/model/ResetDatabaseAccountPasswordResult.cc + src/model/ResetDiskRequest.cc + src/model/ResetDiskResult.cc + src/model/ResetSystemRequest.cc + src/model/ResetSystemResult.cc + src/model/RestartDatabaseInstanceRequest.cc + src/model/RestartDatabaseInstanceResult.cc + src/model/RunCommandRequest.cc + src/model/RunCommandResult.cc + src/model/StartDatabaseInstanceRequest.cc + src/model/StartDatabaseInstanceResult.cc + src/model/StartInstanceRequest.cc + src/model/StartInstanceResult.cc + src/model/StopDatabaseInstanceRequest.cc + src/model/StopDatabaseInstanceResult.cc + src/model/StopInstanceRequest.cc + src/model/StopInstanceResult.cc + src/model/UpdateInstanceAttributeRequest.cc + src/model/UpdateInstanceAttributeResult.cc + src/model/UpgradeInstanceRequest.cc + src/model/UpgradeInstanceResult.cc ) + +add_library(swas-open ${LIB_TYPE} + ${swas-open_public_header} + ${swas-open_public_header_model} + ${swas-open_src}) + +set_target_properties(swas-open + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}swas-open + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(swas-open + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SWAS_OPEN_LIBRARY) +endif() + +target_include_directories(swas-open + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(swas-open + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(swas-open + jsoncpp) + target_include_directories(swas-open + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(swas-open + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(swas-open + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(swas-open + PRIVATE /usr/include/jsoncpp) + target_link_libraries(swas-open + jsoncpp) +endif() + +install(FILES ${swas-open_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/swas-open) +install(FILES ${swas-open_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/swas-open/model) +install(TARGETS swas-open + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/SWAS_OPENClient.h b/swas-open/include/alibabacloud/swas-open/SWAS_OPENClient.h new file mode 100644 index 000000000..196a8f316 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/SWAS_OPENClient.h @@ -0,0 +1,398 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SWAS_OPENCLIENT_H_ +#define ALIBABACLOUD_SWAS_OPEN_SWAS_OPENCLIENT_H_ + +#include +#include +#include +#include +#include "SWAS_OPENExport.h" +#include "model/AllocatePublicConnectionRequest.h" +#include "model/AllocatePublicConnectionResult.h" +#include "model/CreateCustomImageRequest.h" +#include "model/CreateCustomImageResult.h" +#include "model/CreateFirewallRuleRequest.h" +#include "model/CreateFirewallRuleResult.h" +#include "model/CreateInstancesRequest.h" +#include "model/CreateInstancesResult.h" +#include "model/CreateSnapshotRequest.h" +#include "model/CreateSnapshotResult.h" +#include "model/DeleteCustomImageRequest.h" +#include "model/DeleteCustomImageResult.h" +#include "model/DeleteFirewallRuleRequest.h" +#include "model/DeleteFirewallRuleResult.h" +#include "model/DeleteSnapshotRequest.h" +#include "model/DeleteSnapshotResult.h" +#include "model/DescribeCloudAssistantStatusRequest.h" +#include "model/DescribeCloudAssistantStatusResult.h" +#include "model/DescribeDatabaseErrorLogsRequest.h" +#include "model/DescribeDatabaseErrorLogsResult.h" +#include "model/DescribeDatabaseInstanceMetricDataRequest.h" +#include "model/DescribeDatabaseInstanceMetricDataResult.h" +#include "model/DescribeDatabaseInstanceParametersRequest.h" +#include "model/DescribeDatabaseInstanceParametersResult.h" +#include "model/DescribeDatabaseInstancesRequest.h" +#include "model/DescribeDatabaseInstancesResult.h" +#include "model/DescribeDatabaseSlowLogRecordsRequest.h" +#include "model/DescribeDatabaseSlowLogRecordsResult.h" +#include "model/DescribeInvocationResultRequest.h" +#include "model/DescribeInvocationResultResult.h" +#include "model/DescribeInvocationsRequest.h" +#include "model/DescribeInvocationsResult.h" +#include "model/InstallCloudAssistantRequest.h" +#include "model/InstallCloudAssistantResult.h" +#include "model/ListDisksRequest.h" +#include "model/ListDisksResult.h" +#include "model/ListFirewallRulesRequest.h" +#include "model/ListFirewallRulesResult.h" +#include "model/ListImagesRequest.h" +#include "model/ListImagesResult.h" +#include "model/ListInstancePlansModificationRequest.h" +#include "model/ListInstancePlansModificationResult.h" +#include "model/ListInstancesRequest.h" +#include "model/ListInstancesResult.h" +#include "model/ListInstancesTrafficPackagesRequest.h" +#include "model/ListInstancesTrafficPackagesResult.h" +#include "model/ListPlansRequest.h" +#include "model/ListPlansResult.h" +#include "model/ListRegionsRequest.h" +#include "model/ListRegionsResult.h" +#include "model/ListSnapshotsRequest.h" +#include "model/ListSnapshotsResult.h" +#include "model/LoginInstanceRequest.h" +#include "model/LoginInstanceResult.h" +#include "model/ModifyDatabaseInstanceDescriptionRequest.h" +#include "model/ModifyDatabaseInstanceDescriptionResult.h" +#include "model/ModifyDatabaseInstanceParameterRequest.h" +#include "model/ModifyDatabaseInstanceParameterResult.h" +#include "model/ModifyImageShareStatusRequest.h" +#include "model/ModifyImageShareStatusResult.h" +#include "model/RebootInstanceRequest.h" +#include "model/RebootInstanceResult.h" +#include "model/ReleasePublicConnectionRequest.h" +#include "model/ReleasePublicConnectionResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/ResetDatabaseAccountPasswordRequest.h" +#include "model/ResetDatabaseAccountPasswordResult.h" +#include "model/ResetDiskRequest.h" +#include "model/ResetDiskResult.h" +#include "model/ResetSystemRequest.h" +#include "model/ResetSystemResult.h" +#include "model/RestartDatabaseInstanceRequest.h" +#include "model/RestartDatabaseInstanceResult.h" +#include "model/RunCommandRequest.h" +#include "model/RunCommandResult.h" +#include "model/StartDatabaseInstanceRequest.h" +#include "model/StartDatabaseInstanceResult.h" +#include "model/StartInstanceRequest.h" +#include "model/StartInstanceResult.h" +#include "model/StopDatabaseInstanceRequest.h" +#include "model/StopDatabaseInstanceResult.h" +#include "model/StopInstanceRequest.h" +#include "model/StopInstanceResult.h" +#include "model/UpdateInstanceAttributeRequest.h" +#include "model/UpdateInstanceAttributeResult.h" +#include "model/UpgradeInstanceRequest.h" +#include "model/UpgradeInstanceResult.h" + + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT SWAS_OPENClient : public RpcServiceClient + { + public: + typedef Outcome AllocatePublicConnectionOutcome; + typedef std::future AllocatePublicConnectionOutcomeCallable; + typedef std::function&)> AllocatePublicConnectionAsyncHandler; + typedef Outcome CreateCustomImageOutcome; + typedef std::future CreateCustomImageOutcomeCallable; + typedef std::function&)> CreateCustomImageAsyncHandler; + typedef Outcome CreateFirewallRuleOutcome; + typedef std::future CreateFirewallRuleOutcomeCallable; + typedef std::function&)> CreateFirewallRuleAsyncHandler; + typedef Outcome CreateInstancesOutcome; + typedef std::future CreateInstancesOutcomeCallable; + typedef std::function&)> CreateInstancesAsyncHandler; + typedef Outcome CreateSnapshotOutcome; + typedef std::future CreateSnapshotOutcomeCallable; + typedef std::function&)> CreateSnapshotAsyncHandler; + typedef Outcome DeleteCustomImageOutcome; + typedef std::future DeleteCustomImageOutcomeCallable; + typedef std::function&)> DeleteCustomImageAsyncHandler; + typedef Outcome DeleteFirewallRuleOutcome; + typedef std::future DeleteFirewallRuleOutcomeCallable; + typedef std::function&)> DeleteFirewallRuleAsyncHandler; + typedef Outcome DeleteSnapshotOutcome; + typedef std::future DeleteSnapshotOutcomeCallable; + typedef std::function&)> DeleteSnapshotAsyncHandler; + typedef Outcome DescribeCloudAssistantStatusOutcome; + typedef std::future DescribeCloudAssistantStatusOutcomeCallable; + typedef std::function&)> DescribeCloudAssistantStatusAsyncHandler; + typedef Outcome DescribeDatabaseErrorLogsOutcome; + typedef std::future DescribeDatabaseErrorLogsOutcomeCallable; + typedef std::function&)> DescribeDatabaseErrorLogsAsyncHandler; + typedef Outcome DescribeDatabaseInstanceMetricDataOutcome; + typedef std::future DescribeDatabaseInstanceMetricDataOutcomeCallable; + typedef std::function&)> DescribeDatabaseInstanceMetricDataAsyncHandler; + typedef Outcome DescribeDatabaseInstanceParametersOutcome; + typedef std::future DescribeDatabaseInstanceParametersOutcomeCallable; + typedef std::function&)> DescribeDatabaseInstanceParametersAsyncHandler; + typedef Outcome DescribeDatabaseInstancesOutcome; + typedef std::future DescribeDatabaseInstancesOutcomeCallable; + typedef std::function&)> DescribeDatabaseInstancesAsyncHandler; + typedef Outcome DescribeDatabaseSlowLogRecordsOutcome; + typedef std::future DescribeDatabaseSlowLogRecordsOutcomeCallable; + typedef std::function&)> DescribeDatabaseSlowLogRecordsAsyncHandler; + typedef Outcome DescribeInvocationResultOutcome; + typedef std::future DescribeInvocationResultOutcomeCallable; + typedef std::function&)> DescribeInvocationResultAsyncHandler; + typedef Outcome DescribeInvocationsOutcome; + typedef std::future DescribeInvocationsOutcomeCallable; + typedef std::function&)> DescribeInvocationsAsyncHandler; + typedef Outcome InstallCloudAssistantOutcome; + typedef std::future InstallCloudAssistantOutcomeCallable; + typedef std::function&)> InstallCloudAssistantAsyncHandler; + typedef Outcome ListDisksOutcome; + typedef std::future ListDisksOutcomeCallable; + typedef std::function&)> ListDisksAsyncHandler; + typedef Outcome ListFirewallRulesOutcome; + typedef std::future ListFirewallRulesOutcomeCallable; + typedef std::function&)> ListFirewallRulesAsyncHandler; + typedef Outcome ListImagesOutcome; + typedef std::future ListImagesOutcomeCallable; + typedef std::function&)> ListImagesAsyncHandler; + typedef Outcome ListInstancePlansModificationOutcome; + typedef std::future ListInstancePlansModificationOutcomeCallable; + typedef std::function&)> ListInstancePlansModificationAsyncHandler; + typedef Outcome ListInstancesOutcome; + typedef std::future ListInstancesOutcomeCallable; + typedef std::function&)> ListInstancesAsyncHandler; + typedef Outcome ListInstancesTrafficPackagesOutcome; + typedef std::future ListInstancesTrafficPackagesOutcomeCallable; + typedef std::function&)> ListInstancesTrafficPackagesAsyncHandler; + typedef Outcome ListPlansOutcome; + typedef std::future ListPlansOutcomeCallable; + typedef std::function&)> ListPlansAsyncHandler; + typedef Outcome ListRegionsOutcome; + typedef std::future ListRegionsOutcomeCallable; + typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListSnapshotsOutcome; + typedef std::future ListSnapshotsOutcomeCallable; + typedef std::function&)> ListSnapshotsAsyncHandler; + typedef Outcome LoginInstanceOutcome; + typedef std::future LoginInstanceOutcomeCallable; + typedef std::function&)> LoginInstanceAsyncHandler; + typedef Outcome ModifyDatabaseInstanceDescriptionOutcome; + typedef std::future ModifyDatabaseInstanceDescriptionOutcomeCallable; + typedef std::function&)> ModifyDatabaseInstanceDescriptionAsyncHandler; + typedef Outcome ModifyDatabaseInstanceParameterOutcome; + typedef std::future ModifyDatabaseInstanceParameterOutcomeCallable; + typedef std::function&)> ModifyDatabaseInstanceParameterAsyncHandler; + typedef Outcome ModifyImageShareStatusOutcome; + typedef std::future ModifyImageShareStatusOutcomeCallable; + typedef std::function&)> ModifyImageShareStatusAsyncHandler; + typedef Outcome RebootInstanceOutcome; + typedef std::future RebootInstanceOutcomeCallable; + typedef std::function&)> RebootInstanceAsyncHandler; + typedef Outcome ReleasePublicConnectionOutcome; + typedef std::future ReleasePublicConnectionOutcomeCallable; + typedef std::function&)> ReleasePublicConnectionAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome ResetDatabaseAccountPasswordOutcome; + typedef std::future ResetDatabaseAccountPasswordOutcomeCallable; + typedef std::function&)> ResetDatabaseAccountPasswordAsyncHandler; + typedef Outcome ResetDiskOutcome; + typedef std::future ResetDiskOutcomeCallable; + typedef std::function&)> ResetDiskAsyncHandler; + typedef Outcome ResetSystemOutcome; + typedef std::future ResetSystemOutcomeCallable; + typedef std::function&)> ResetSystemAsyncHandler; + typedef Outcome RestartDatabaseInstanceOutcome; + typedef std::future RestartDatabaseInstanceOutcomeCallable; + typedef std::function&)> RestartDatabaseInstanceAsyncHandler; + typedef Outcome RunCommandOutcome; + typedef std::future RunCommandOutcomeCallable; + typedef std::function&)> RunCommandAsyncHandler; + typedef Outcome StartDatabaseInstanceOutcome; + typedef std::future StartDatabaseInstanceOutcomeCallable; + typedef std::function&)> StartDatabaseInstanceAsyncHandler; + typedef Outcome StartInstanceOutcome; + typedef std::future StartInstanceOutcomeCallable; + typedef std::function&)> StartInstanceAsyncHandler; + typedef Outcome StopDatabaseInstanceOutcome; + typedef std::future StopDatabaseInstanceOutcomeCallable; + typedef std::function&)> StopDatabaseInstanceAsyncHandler; + typedef Outcome StopInstanceOutcome; + typedef std::future StopInstanceOutcomeCallable; + typedef std::function&)> StopInstanceAsyncHandler; + typedef Outcome UpdateInstanceAttributeOutcome; + typedef std::future UpdateInstanceAttributeOutcomeCallable; + typedef std::function&)> UpdateInstanceAttributeAsyncHandler; + typedef Outcome UpgradeInstanceOutcome; + typedef std::future UpgradeInstanceOutcomeCallable; + typedef std::function&)> UpgradeInstanceAsyncHandler; + + SWAS_OPENClient(const Credentials &credentials, const ClientConfiguration &configuration); + SWAS_OPENClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SWAS_OPENClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SWAS_OPENClient(); + AllocatePublicConnectionOutcome allocatePublicConnection(const Model::AllocatePublicConnectionRequest &request)const; + void allocatePublicConnectionAsync(const Model::AllocatePublicConnectionRequest& request, const AllocatePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocatePublicConnectionOutcomeCallable allocatePublicConnectionCallable(const Model::AllocatePublicConnectionRequest& request) const; + CreateCustomImageOutcome createCustomImage(const Model::CreateCustomImageRequest &request)const; + void createCustomImageAsync(const Model::CreateCustomImageRequest& request, const CreateCustomImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomImageOutcomeCallable createCustomImageCallable(const Model::CreateCustomImageRequest& request) const; + CreateFirewallRuleOutcome createFirewallRule(const Model::CreateFirewallRuleRequest &request)const; + void createFirewallRuleAsync(const Model::CreateFirewallRuleRequest& request, const CreateFirewallRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFirewallRuleOutcomeCallable createFirewallRuleCallable(const Model::CreateFirewallRuleRequest& request) const; + CreateInstancesOutcome createInstances(const Model::CreateInstancesRequest &request)const; + void createInstancesAsync(const Model::CreateInstancesRequest& request, const CreateInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstancesOutcomeCallable createInstancesCallable(const Model::CreateInstancesRequest& request) const; + CreateSnapshotOutcome createSnapshot(const Model::CreateSnapshotRequest &request)const; + void createSnapshotAsync(const Model::CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSnapshotOutcomeCallable createSnapshotCallable(const Model::CreateSnapshotRequest& request) const; + DeleteCustomImageOutcome deleteCustomImage(const Model::DeleteCustomImageRequest &request)const; + void deleteCustomImageAsync(const Model::DeleteCustomImageRequest& request, const DeleteCustomImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomImageOutcomeCallable deleteCustomImageCallable(const Model::DeleteCustomImageRequest& request) const; + DeleteFirewallRuleOutcome deleteFirewallRule(const Model::DeleteFirewallRuleRequest &request)const; + void deleteFirewallRuleAsync(const Model::DeleteFirewallRuleRequest& request, const DeleteFirewallRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFirewallRuleOutcomeCallable deleteFirewallRuleCallable(const Model::DeleteFirewallRuleRequest& request) const; + DeleteSnapshotOutcome deleteSnapshot(const Model::DeleteSnapshotRequest &request)const; + void deleteSnapshotAsync(const Model::DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnapshotOutcomeCallable deleteSnapshotCallable(const Model::DeleteSnapshotRequest& request) const; + DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const; + void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const; + DescribeDatabaseErrorLogsOutcome describeDatabaseErrorLogs(const Model::DescribeDatabaseErrorLogsRequest &request)const; + void describeDatabaseErrorLogsAsync(const Model::DescribeDatabaseErrorLogsRequest& request, const DescribeDatabaseErrorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseErrorLogsOutcomeCallable describeDatabaseErrorLogsCallable(const Model::DescribeDatabaseErrorLogsRequest& request) const; + DescribeDatabaseInstanceMetricDataOutcome describeDatabaseInstanceMetricData(const Model::DescribeDatabaseInstanceMetricDataRequest &request)const; + void describeDatabaseInstanceMetricDataAsync(const Model::DescribeDatabaseInstanceMetricDataRequest& request, const DescribeDatabaseInstanceMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseInstanceMetricDataOutcomeCallable describeDatabaseInstanceMetricDataCallable(const Model::DescribeDatabaseInstanceMetricDataRequest& request) const; + DescribeDatabaseInstanceParametersOutcome describeDatabaseInstanceParameters(const Model::DescribeDatabaseInstanceParametersRequest &request)const; + void describeDatabaseInstanceParametersAsync(const Model::DescribeDatabaseInstanceParametersRequest& request, const DescribeDatabaseInstanceParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseInstanceParametersOutcomeCallable describeDatabaseInstanceParametersCallable(const Model::DescribeDatabaseInstanceParametersRequest& request) const; + DescribeDatabaseInstancesOutcome describeDatabaseInstances(const Model::DescribeDatabaseInstancesRequest &request)const; + void describeDatabaseInstancesAsync(const Model::DescribeDatabaseInstancesRequest& request, const DescribeDatabaseInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseInstancesOutcomeCallable describeDatabaseInstancesCallable(const Model::DescribeDatabaseInstancesRequest& request) const; + DescribeDatabaseSlowLogRecordsOutcome describeDatabaseSlowLogRecords(const Model::DescribeDatabaseSlowLogRecordsRequest &request)const; + void describeDatabaseSlowLogRecordsAsync(const Model::DescribeDatabaseSlowLogRecordsRequest& request, const DescribeDatabaseSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabaseSlowLogRecordsOutcomeCallable describeDatabaseSlowLogRecordsCallable(const Model::DescribeDatabaseSlowLogRecordsRequest& request) const; + DescribeInvocationResultOutcome describeInvocationResult(const Model::DescribeInvocationResultRequest &request)const; + void describeInvocationResultAsync(const Model::DescribeInvocationResultRequest& request, const DescribeInvocationResultAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + DescribeInvocationsOutcomeCallable describeInvocationsCallable(const Model::DescribeInvocationsRequest& request) const; + InstallCloudAssistantOutcome installCloudAssistant(const Model::InstallCloudAssistantRequest &request)const; + void installCloudAssistantAsync(const Model::InstallCloudAssistantRequest& request, const InstallCloudAssistantAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallCloudAssistantOutcomeCallable installCloudAssistantCallable(const Model::InstallCloudAssistantRequest& request) const; + ListDisksOutcome listDisks(const Model::ListDisksRequest &request)const; + void listDisksAsync(const Model::ListDisksRequest& request, const ListDisksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDisksOutcomeCallable listDisksCallable(const Model::ListDisksRequest& request) const; + ListFirewallRulesOutcome listFirewallRules(const Model::ListFirewallRulesRequest &request)const; + void listFirewallRulesAsync(const Model::ListFirewallRulesRequest& request, const ListFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFirewallRulesOutcomeCallable listFirewallRulesCallable(const Model::ListFirewallRulesRequest& request) const; + ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; + void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; + ListInstancePlansModificationOutcome listInstancePlansModification(const Model::ListInstancePlansModificationRequest &request)const; + void listInstancePlansModificationAsync(const Model::ListInstancePlansModificationRequest& request, const ListInstancePlansModificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancePlansModificationOutcomeCallable listInstancePlansModificationCallable(const Model::ListInstancePlansModificationRequest& request) const; + ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; + void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const; + ListInstancesTrafficPackagesOutcome listInstancesTrafficPackages(const Model::ListInstancesTrafficPackagesRequest &request)const; + void listInstancesTrafficPackagesAsync(const Model::ListInstancesTrafficPackagesRequest& request, const ListInstancesTrafficPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstancesTrafficPackagesOutcomeCallable listInstancesTrafficPackagesCallable(const Model::ListInstancesTrafficPackagesRequest& request) const; + ListPlansOutcome listPlans(const Model::ListPlansRequest &request)const; + void listPlansAsync(const Model::ListPlansRequest& request, const ListPlansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPlansOutcomeCallable listPlansCallable(const Model::ListPlansRequest& request) const; + ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; + void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListSnapshotsOutcome listSnapshots(const Model::ListSnapshotsRequest &request)const; + void listSnapshotsAsync(const Model::ListSnapshotsRequest& request, const ListSnapshotsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSnapshotsOutcomeCallable listSnapshotsCallable(const Model::ListSnapshotsRequest& request) const; + LoginInstanceOutcome loginInstance(const Model::LoginInstanceRequest &request)const; + void loginInstanceAsync(const Model::LoginInstanceRequest& request, const LoginInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LoginInstanceOutcomeCallable loginInstanceCallable(const Model::LoginInstanceRequest& request) const; + ModifyDatabaseInstanceDescriptionOutcome modifyDatabaseInstanceDescription(const Model::ModifyDatabaseInstanceDescriptionRequest &request)const; + void modifyDatabaseInstanceDescriptionAsync(const Model::ModifyDatabaseInstanceDescriptionRequest& request, const ModifyDatabaseInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDatabaseInstanceDescriptionOutcomeCallable modifyDatabaseInstanceDescriptionCallable(const Model::ModifyDatabaseInstanceDescriptionRequest& request) const; + ModifyDatabaseInstanceParameterOutcome modifyDatabaseInstanceParameter(const Model::ModifyDatabaseInstanceParameterRequest &request)const; + void modifyDatabaseInstanceParameterAsync(const Model::ModifyDatabaseInstanceParameterRequest& request, const ModifyDatabaseInstanceParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDatabaseInstanceParameterOutcomeCallable modifyDatabaseInstanceParameterCallable(const Model::ModifyDatabaseInstanceParameterRequest& request) const; + ModifyImageShareStatusOutcome modifyImageShareStatus(const Model::ModifyImageShareStatusRequest &request)const; + void modifyImageShareStatusAsync(const Model::ModifyImageShareStatusRequest& request, const ModifyImageShareStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageShareStatusOutcomeCallable modifyImageShareStatusCallable(const Model::ModifyImageShareStatusRequest& request) const; + RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const; + void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const; + ReleasePublicConnectionOutcome releasePublicConnection(const Model::ReleasePublicConnectionRequest &request)const; + void releasePublicConnectionAsync(const Model::ReleasePublicConnectionRequest& request, const ReleasePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleasePublicConnectionOutcomeCallable releasePublicConnectionCallable(const Model::ReleasePublicConnectionRequest& request) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; + ResetDatabaseAccountPasswordOutcome resetDatabaseAccountPassword(const Model::ResetDatabaseAccountPasswordRequest &request)const; + void resetDatabaseAccountPasswordAsync(const Model::ResetDatabaseAccountPasswordRequest& request, const ResetDatabaseAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetDatabaseAccountPasswordOutcomeCallable resetDatabaseAccountPasswordCallable(const Model::ResetDatabaseAccountPasswordRequest& request) const; + ResetDiskOutcome resetDisk(const Model::ResetDiskRequest &request)const; + void resetDiskAsync(const Model::ResetDiskRequest& request, const ResetDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetDiskOutcomeCallable resetDiskCallable(const Model::ResetDiskRequest& request) const; + ResetSystemOutcome resetSystem(const Model::ResetSystemRequest &request)const; + void resetSystemAsync(const Model::ResetSystemRequest& request, const ResetSystemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetSystemOutcomeCallable resetSystemCallable(const Model::ResetSystemRequest& request) const; + RestartDatabaseInstanceOutcome restartDatabaseInstance(const Model::RestartDatabaseInstanceRequest &request)const; + void restartDatabaseInstanceAsync(const Model::RestartDatabaseInstanceRequest& request, const RestartDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDatabaseInstanceOutcomeCallable restartDatabaseInstanceCallable(const Model::RestartDatabaseInstanceRequest& request) const; + RunCommandOutcome runCommand(const Model::RunCommandRequest &request)const; + void runCommandAsync(const Model::RunCommandRequest& request, const RunCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunCommandOutcomeCallable runCommandCallable(const Model::RunCommandRequest& request) const; + StartDatabaseInstanceOutcome startDatabaseInstance(const Model::StartDatabaseInstanceRequest &request)const; + void startDatabaseInstanceAsync(const Model::StartDatabaseInstanceRequest& request, const StartDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartDatabaseInstanceOutcomeCallable startDatabaseInstanceCallable(const Model::StartDatabaseInstanceRequest& request) const; + StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const; + void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const; + StopDatabaseInstanceOutcome stopDatabaseInstance(const Model::StopDatabaseInstanceRequest &request)const; + void stopDatabaseInstanceAsync(const Model::StopDatabaseInstanceRequest& request, const StopDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const; + UpdateInstanceAttributeOutcome updateInstanceAttribute(const Model::UpdateInstanceAttributeRequest &request)const; + void updateInstanceAttributeAsync(const Model::UpdateInstanceAttributeRequest& request, const UpdateInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateInstanceAttributeOutcomeCallable updateInstanceAttributeCallable(const Model::UpdateInstanceAttributeRequest& request) const; + UpgradeInstanceOutcome upgradeInstance(const Model::UpgradeInstanceRequest &request)const; + void upgradeInstanceAsync(const Model::UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeInstanceOutcomeCallable upgradeInstanceCallable(const Model::UpgradeInstanceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SWAS_OPEN_SWAS_OPENCLIENT_H_ diff --git a/swas-open/include/alibabacloud/swas-open/SWAS_OPENExport.h b/swas-open/include/alibabacloud/swas-open/SWAS_OPENExport.h new file mode 100644 index 000000000..ba1183251 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/SWAS_OPENExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SWAS_OPENEXPORT_H_ +#define ALIBABACLOUD_SWAS_OPEN_SWAS_OPENEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SWAS_OPEN_LIBRARY) +# define ALIBABACLOUD_SWAS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SWAS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SWAS_OPEN_EXPORT +#endif + +#endif // !ALIBABACLOUD_SWAS_OPEN_SWAS_OPENEXPORT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h b/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h new file mode 100644 index 000000000..dbc2c1e2b --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionRequest.h @@ -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_ALLOCATEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_ALLOCATEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT AllocatePublicConnectionRequest : public RpcServiceRequest { +public: + AllocatePublicConnectionRequest(); + ~AllocatePublicConnectionRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_ALLOCATEPUBLICCONNECTIONREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionResult.h b/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionResult.h new file mode 100644 index 000000000..c7906c08a --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/AllocatePublicConnectionResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_ALLOCATEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_ALLOCATEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT AllocatePublicConnectionResult : public ServiceResult + { + public: + + + AllocatePublicConnectionResult(); + explicit AllocatePublicConnectionResult(const std::string &payload); + ~AllocatePublicConnectionResult(); + std::string getPublicConnection()const; + + protected: + void parse(const std::string &payload); + private: + std::string publicConnection_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_ALLOCATEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageRequest.h b/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageRequest.h new file mode 100644 index 000000000..8cccfd783 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateCustomImageRequest : public RpcServiceRequest { +public: + CreateCustomImageRequest(); + ~CreateCustomImageRequest(); + 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 getDescription() const; + void setDescription(const std::string &description); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + +private: + std::string systemSnapshotId_; + std::string dataSnapshotId_; + std::string clientToken_; + std::string description_; + std::string instanceId_; + std::string regionId_; + std::string imageName_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageResult.h b/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageResult.h new file mode 100644 index 000000000..e4c77a100 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateCustomImageResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateCustomImageResult : public ServiceResult + { + public: + + + CreateCustomImageResult(); + explicit CreateCustomImageResult(const std::string &payload); + ~CreateCustomImageResult(); + std::string getImageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATECUSTOMIMAGERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleRequest.h b/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleRequest.h new file mode 100644 index 000000000..0e8e75cee --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateFirewallRuleRequest : public RpcServiceRequest { +public: + CreateFirewallRuleRequest(); + ~CreateFirewallRuleRequest(); + 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 getRuleProtocol() const; + void setRuleProtocol(const std::string &ruleProtocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPort() const; + void setPort(const std::string &port); + +private: + std::string clientToken_; + std::string remark_; + std::string instanceId_; + std::string ruleProtocol_; + std::string regionId_; + std::string port_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleResult.h b/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleResult.h new file mode 100644 index 000000000..0782b59d1 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateFirewallRuleResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateFirewallRuleResult : public ServiceResult + { + public: + + + CreateFirewallRuleResult(); + explicit CreateFirewallRuleResult(const std::string &payload); + ~CreateFirewallRuleResult(); + std::string getFirewallId()const; + + protected: + void parse(const std::string &payload); + private: + std::string firewallId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEFIREWALLRULERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateInstancesRequest.h b/swas-open/include/alibabacloud/swas-open/model/CreateInstancesRequest.h new file mode 100644 index 000000000..270ef9e09 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateInstancesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateInstancesRequest : public RpcServiceRequest { +public: + CreateInstancesRequest(); + ~CreateInstancesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + int getAmount() const; + void setAmount(int amount); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + long getDataDiskSize() const; + void setDataDiskSize(long dataDiskSize); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + +private: + std::string imageId_; + std::string clientToken_; + std::string regionId_; + int autoRenewPeriod_; + int period_; + int amount_; + bool autoRenew_; + long dataDiskSize_; + std::string planId_; + std::string chargeType_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateInstancesResult.h b/swas-open/include/alibabacloud/swas-open/model/CreateInstancesResult.h new file mode 100644 index 000000000..522575c27 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateInstancesResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateInstancesResult : public ServiceResult + { + public: + + + CreateInstancesResult(); + explicit CreateInstancesResult(const std::string &payload); + ~CreateInstancesResult(); + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotRequest.h b/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotRequest.h new file mode 100644 index 000000000..71f0e9249 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateSnapshotRequest : public RpcServiceRequest { +public: + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + +private: + std::string clientToken_; + std::string snapshotName_; + std::string regionId_; + std::string diskId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotResult.h b/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotResult.h new file mode 100644 index 000000000..7218b644d --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/CreateSnapshotResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT CreateSnapshotResult : public ServiceResult + { + public: + + + CreateSnapshotResult(); + explicit CreateSnapshotResult(const std::string &payload); + ~CreateSnapshotResult(); + std::string getSnapshotId()const; + + protected: + void parse(const std::string &payload); + private: + std::string snapshotId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_CREATESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h b/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h new file mode 100644 index 000000000..a23782c23 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h @@ -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_DELETECUSTOMIMAGEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteCustomImageRequest : public RpcServiceRequest { +public: + DeleteCustomImageRequest(); + ~DeleteCustomImageRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string imageId_; + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageResult.h b/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageResult.h new file mode 100644 index 000000000..04dbae9dc --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteCustomImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteCustomImageResult : public ServiceResult + { + public: + + + DeleteCustomImageResult(); + explicit DeleteCustomImageResult(const std::string &payload); + ~DeleteCustomImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h b/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h new file mode 100644 index 000000000..2f5429506 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteFirewallRuleRequest : public RpcServiceRequest { +public: + DeleteFirewallRuleRequest(); + ~DeleteFirewallRuleRequest(); + 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 ®ionId); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string clientToken_; + std::string instanceId_; + std::string regionId_; + std::string ruleId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h b/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h new file mode 100644 index 000000000..9918bd501 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteFirewallRuleResult : public ServiceResult + { + public: + + + DeleteFirewallRuleResult(); + explicit DeleteFirewallRuleResult(const std::string &payload); + ~DeleteFirewallRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h b/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h new file mode 100644 index 000000000..c10e338b1 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h @@ -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_DELETESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteSnapshotRequest : public RpcServiceRequest { +public: + DeleteSnapshotRequest(); + ~DeleteSnapshotRequest(); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string snapshotId_; + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotResult.h b/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotResult.h new file mode 100644 index 000000000..6277ae843 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DeleteSnapshotResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteSnapshotResult : public ServiceResult + { + public: + + + DeleteSnapshotResult(); + explicit DeleteSnapshotResult(const std::string &payload); + ~DeleteSnapshotResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h new file mode 100644 index 000000000..948a238a1 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest { +public: + DescribeCloudAssistantStatusRequest(); + ~DescribeCloudAssistantStatusRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string regionId_; + std::vector instanceIds_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h new file mode 100644 index 000000000..e07e7dfe8 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeCloudAssistantStatusResult.h @@ -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_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeCloudAssistantStatusResult : public ServiceResult + { + public: + struct Status + { + bool status; + std::string instanceId; + }; + + + DescribeCloudAssistantStatusResult(); + explicit DescribeCloudAssistantStatusResult(const std::string &payload); + ~DescribeCloudAssistantStatusResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCloudAssistantStatus()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cloudAssistantStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h new file mode 100644 index 000000000..7e0527f9c --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEERRORLOGSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEERRORLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseErrorLogsRequest : public RpcServiceRequest { +public: + DescribeDatabaseErrorLogsRequest(); + ~DescribeDatabaseErrorLogsRequest(); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string databaseInstanceId_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEERRORLOGSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h new file mode 100644 index 000000000..27382aee5 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseErrorLogsResult.h @@ -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_DESCRIBEDATABASEERRORLOGSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEERRORLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseErrorLogsResult : public ServiceResult + { + public: + struct ErrorLog + { + std::string errorInfo; + std::string createTime; + }; + + + DescribeDatabaseErrorLogsResult(); + explicit DescribeDatabaseErrorLogsResult(const std::string &payload); + ~DescribeDatabaseErrorLogsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getErrorLogs()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector errorLogs_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEERRORLOGSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h new file mode 100644 index 000000000..5dd43b1ec --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATAREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstanceMetricDataRequest : public RpcServiceRequest { +public: + DescribeDatabaseInstanceMetricDataRequest(); + ~DescribeDatabaseInstanceMetricDataRequest(); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMetricName() const; + void setMetricName(const std::string &metricName); + +private: + std::string databaseInstanceId_; + std::string endTime_; + std::string startTime_; + std::string regionId_; + std::string metricName_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATAREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataResult.h new file mode 100644 index 000000000..abc8c6c78 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceMetricDataResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATARESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstanceMetricDataResult : public ServiceResult + { + public: + + + DescribeDatabaseInstanceMetricDataResult(); + explicit DescribeDatabaseInstanceMetricDataResult(const std::string &payload); + ~DescribeDatabaseInstanceMetricDataResult(); + std::string getMetricName()const; + std::string getDataFormat()const; + std::string getUnit()const; + std::string getMetricData()const; + + protected: + void parse(const std::string &payload); + private: + std::string metricName_; + std::string dataFormat_; + std::string unit_; + std::string metricData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEMETRICDATARESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h new file mode 100644 index 000000000..a3246c667 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstanceParametersRequest : public RpcServiceRequest { +public: + DescribeDatabaseInstanceParametersRequest(); + ~DescribeDatabaseInstanceParametersRequest(); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersResult.h new file mode 100644 index 000000000..91264b794 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstanceParametersResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstanceParametersResult : public ServiceResult + { + public: + struct ConfigParameter + { + std::string forceModify; + std::string checkingCode; + std::string parameterValue; + std::string forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + struct RunningParameter + { + std::string forceModify; + std::string checkingCode; + std::string parameterValue; + std::string forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + + + DescribeDatabaseInstanceParametersResult(); + explicit DescribeDatabaseInstanceParametersResult(const std::string &payload); + ~DescribeDatabaseInstanceParametersResult(); + std::vector getRunningParameters()const; + std::string getEngineVersion()const; + std::vector getConfigParameters()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::vector runningParameters_; + std::string engineVersion_; + std::vector configParameters_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCEPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h new file mode 100644 index 000000000..bd740484a --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstancesRequest : public RpcServiceRequest { +public: + DescribeDatabaseInstancesRequest(); + ~DescribeDatabaseInstancesRequest(); + std::string getDatabaseInstanceIds() const; + void setDatabaseInstanceIds(const std::string &databaseInstanceIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string databaseInstanceIds_; + int pageNumber_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h new file mode 100644 index 000000000..cd57ab34e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseInstancesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseInstancesResult : public ServiceResult + { + public: + struct DatabaseInstance + { + std::string memory; + std::string databaseInstanceId; + std::string publicConnection; + std::string cpu; + std::string databaseInstanceEdition; + std::string businessStatus; + std::string superAccountName; + int storage; + std::string chargeType; + std::string expiredTime; + std::string creationTime; + std::string privateConnection; + std::string databaseInstanceName; + std::string regionId; + std::string databaseVersion; + std::string databaseInstanceStatus; + }; + + + DescribeDatabaseInstancesResult(); + explicit DescribeDatabaseInstancesResult(const std::string &payload); + ~DescribeDatabaseInstancesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDatabaseInstances()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector databaseInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h new file mode 100644 index 000000000..8f2f0e3fb --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseSlowLogRecordsRequest : public RpcServiceRequest { +public: + DescribeDatabaseSlowLogRecordsRequest(); + ~DescribeDatabaseSlowLogRecordsRequest(); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string databaseInstanceId_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h new file mode 100644 index 000000000..2a473eeb6 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeDatabaseSlowLogRecordsResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeDatabaseSlowLogRecordsResult : public ServiceResult + { + public: + struct SlowLog + { + long queryTimes; + std::string executionStartTime; + long returnRowCounts; + long lockTimes; + std::string dBName; + long parseRowCounts; + std::string hostAddress; + long queryTimeMS; + std::string sQLText; + }; + + + DescribeDatabaseSlowLogRecordsResult(); + explicit DescribeDatabaseSlowLogRecordsResult(const std::string &payload); + ~DescribeDatabaseSlowLogRecordsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + long getPhysicalIORead()const; + std::vector getSlowLogs()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + long physicalIORead_; + std::vector slowLogs_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEDATABASESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultRequest.h new file mode 100644 index 000000000..0a10a8ce7 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultRequest.h @@ -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_DESCRIBEINVOCATIONRESULTREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInvocationResultRequest : public RpcServiceRequest { +public: + DescribeInvocationResultRequest(); + ~DescribeInvocationResultRequest(); + std::string getInvokeId() const; + void setInvokeId(const std::string &invokeId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string invokeId_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONRESULTREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultResult.h new file mode 100644 index 000000000..74bab32ff --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationResultResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONRESULTRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInvocationResultResult : public ServiceResult + { + public: + struct InvocationResult + { + std::string invocationStatus; + std::string instanceId; + std::string invokeUser; + long exitCode; + std::string errorInfo; + std::string output; + std::string startTime; + std::string errorCode; + std::string invokeRecordStatus; + std::string finishedTime; + std::string invokeId; + }; + + + DescribeInvocationResultResult(); + explicit DescribeInvocationResultResult(const std::string &payload); + ~DescribeInvocationResultResult(); + InvocationResult getInvocationResult()const; + + protected: + void parse(const std::string &payload); + private: + InvocationResult invocationResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONRESULTRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsRequest.h b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsRequest.h new file mode 100644 index 000000000..c053b43e7 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInvocationsRequest : public RpcServiceRequest { +public: + DescribeInvocationsRequest(); + ~DescribeInvocationsRequest(); + std::string getInvokeStatus() const; + void setInvokeStatus(const std::string &invokeStatus); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string invokeStatus_; + int pageNumber_; + std::string instanceId_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsResult.h b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsResult.h new file mode 100644 index 000000000..17e36c81f --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/DescribeInvocationsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT DescribeInvocationsResult : public ServiceResult + { + public: + struct Invocation + { + std::string commandContent; + std::string invocationStatus; + std::string parameters; + std::string invokeStatus; + std::string commandType; + std::string creationTime; + std::string commandName; + std::string invokeId; + }; + + + DescribeInvocationsResult(); + explicit DescribeInvocationsResult(const std::string &payload); + ~DescribeInvocationsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getInvocations()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector invocations_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DESCRIBEINVOCATIONSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantRequest.h b/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantRequest.h new file mode 100644 index 000000000..26a2e96da --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantRequest.h @@ -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_INSTALLCLOUDASSISTANTREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest { +public: + InstallCloudAssistantRequest(); + ~InstallCloudAssistantRequest(); + std::string getSite() const; + void setSite(const std::string &site); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + +private: + std::string site_; + std::string regionId_; + std::vector instanceIds_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h b/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h new file mode 100644 index 000000000..5b2941f48 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/InstallCloudAssistantResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT InstallCloudAssistantResult : public ServiceResult + { + public: + + + InstallCloudAssistantResult(); + explicit InstallCloudAssistantResult(const std::string &payload); + ~InstallCloudAssistantResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListDisksRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListDisksRequest.h new file mode 100644 index 000000000..6f3c7a103 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListDisksRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListDisksRequest : public RpcServiceRequest { +public: + ListDisksRequest(); + ~ListDisksRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + +private: + int pageNumber_; + std::string instanceId_; + std::string regionId_; + int pageSize_; + std::string diskIds_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListDisksResult.h b/swas-open/include/alibabacloud/swas-open/model/ListDisksResult.h new file mode 100644 index 000000000..0663269d3 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListDisksResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListDisksResult : public ServiceResult + { + public: + 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 diskId; + }; + + + ListDisksResult(); + explicit ListDisksResult(const std::string &payload); + ~ListDisksResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDisks()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector disks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTDISKSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h new file mode 100644 index 000000000..e720a2aab --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListFirewallRulesRequest : public RpcServiceRequest { +public: + ListFirewallRulesRequest(); + ~ListFirewallRulesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string instanceId_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesResult.h b/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesResult.h new file mode 100644 index 000000000..b2c09100d --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListFirewallRulesResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListFirewallRulesResult : public ServiceResult + { + public: + struct FirewallRule + { + std::string port; + std::string ruleId; + std::string ruleProtocol; + std::string remark; + }; + + + ListFirewallRulesResult(); + explicit ListFirewallRulesResult(const std::string &payload); + ~ListFirewallRulesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getFirewallRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector firewallRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTFIREWALLRULESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListImagesRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListImagesRequest.h new file mode 100644 index 000000000..32ea9cb8e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListImagesRequest.h @@ -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_LISTIMAGESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListImagesRequest : public RpcServiceRequest { +public: + ListImagesRequest(); + ~ListImagesRequest(); + std::string getImageType() const; + void setImageType(const std::string &imageType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageIds() const; + void setImageIds(const std::string &imageIds); + +private: + std::string imageType_; + std::string regionId_; + std::string imageIds_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTIMAGESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListImagesResult.h b/swas-open/include/alibabacloud/swas-open/model/ListImagesResult.h new file mode 100644 index 000000000..1c688347e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListImagesResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTIMAGESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListImagesResult : public ServiceResult + { + public: + struct Image + { + std::string imageName; + std::string description; + std::string platform; + std::string imageId; + std::string imageType; + }; + + + ListImagesResult(); + explicit ListImagesResult(const std::string &payload); + ~ListImagesResult(); + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTIMAGESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h new file mode 100644 index 000000000..90da4eebf --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancePlansModificationRequest : public RpcServiceRequest { +public: + ListInstancePlansModificationRequest(); + ~ListInstancePlansModificationRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationResult.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationResult.h new file mode 100644 index 000000000..8d7d7a660 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancePlansModificationResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancePlansModificationResult : public ServiceResult + { + public: + struct Plan + { + std::string diskType; + double originPrice; + std::string supportPlatform; + int memory; + int bandwidth; + std::string planId; + std::string currency; + int diskSize; + int core; + int flow; + }; + + + ListInstancePlansModificationResult(); + explicit ListInstancePlansModificationResult(const std::string &payload); + ~ListInstancePlansModificationResult(); + std::vector getPlans()const; + + protected: + void parse(const std::string &payload); + private: + std::vector plans_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCEPLANSMODIFICATIONRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancesRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancesRequest.h new file mode 100644 index 000000000..22ba7dc9a --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancesRequest : public RpcServiceRequest { +public: + ListInstancesRequest(); + ~ListInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getPublicIpAddresses() const; + void setPublicIpAddresses(const std::string &publicIpAddresses); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + +private: + int pageNumber_; + std::string regionId_; + std::string instanceIds_; + int pageSize_; + std::string publicIpAddresses_; + std::string chargeType_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancesResult.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancesResult.h new file mode 100644 index 000000000..a8e84e83a --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancesResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancesResult : public ServiceResult + { + public: + struct Instance + { + std::string status; + std::string instanceId; + std::string planId; + std::string ddosStatus; + std::string businessStatus; + std::string publicIpAddress; + std::string instanceName; + std::string innerIpAddress; + std::string chargeType; + std::string expiredTime; + std::string creationTime; + std::string imageId; + std::string regionId; + }; + + + ListInstancesResult(); + explicit ListInstancesResult(const std::string &payload); + ~ListInstancesResult(); + std::vector getInstances()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h new file mode 100644 index 000000000..64f7d8fc3 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTRAFFICPACKAGESREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTRAFFICPACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancesTrafficPackagesRequest : public RpcServiceRequest { +public: + ListInstancesTrafficPackagesRequest(); + ~ListInstancesTrafficPackagesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + std::string regionId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTRAFFICPACKAGESREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h b/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h new file mode 100644 index 000000000..097e31d20 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListInstancesTrafficPackagesResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTINSTANCESTRAFFICPACKAGESRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTRAFFICPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListInstancesTrafficPackagesResult : public ServiceResult + { + public: + struct InstanceTrafficPackageUsage + { + long trafficUsed; + std::string instanceId; + long trafficPackageRemaining; + long trafficPackageTotal; + long trafficOverflow; + }; + + + ListInstancesTrafficPackagesResult(); + explicit ListInstancesTrafficPackagesResult(const std::string &payload); + ~ListInstancesTrafficPackagesResult(); + std::vector getInstanceTrafficPackageUsages()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceTrafficPackageUsages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTINSTANCESTRAFFICPACKAGESRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListPlansRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListPlansRequest.h new file mode 100644 index 000000000..2ae2b7808 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListPlansRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTPLANSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTPLANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListPlansRequest : public RpcServiceRequest { +public: + ListPlansRequest(); + ~ListPlansRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTPLANSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h b/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h new file mode 100644 index 000000000..1df62fe27 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListPlansResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTPLANSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTPLANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListPlansResult : public ServiceResult + { + public: + struct Plan + { + std::string diskType; + double originPrice; + std::string supportPlatform; + int memory; + int bandwidth; + std::string planId; + std::string currency; + int diskSize; + int core; + int flow; + }; + + + ListPlansResult(); + explicit ListPlansResult(const std::string &payload); + ~ListPlansResult(); + std::vector getPlans()const; + + protected: + void parse(const std::string &payload); + private: + std::vector plans_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTPLANSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListRegionsRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListRegionsRequest.h new file mode 100644 index 000000000..fcbb9bb06 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListRegionsRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTREGIONSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListRegionsRequest : public RpcServiceRequest { +public: + ListRegionsRequest(); + ~ListRegionsRequest(); + +private: +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTREGIONSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListRegionsResult.h b/swas-open/include/alibabacloud/swas-open/model/ListRegionsResult.h new file mode 100644 index 000000000..95586a429 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListRegionsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTREGIONSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + ListRegionsResult(); + explicit ListRegionsResult(const std::string &payload); + ~ListRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTREGIONSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsRequest.h b/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsRequest.h new file mode 100644 index 000000000..e999a67e4 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ListSnapshotsRequest : public RpcServiceRequest { +public: + ListSnapshotsRequest(); + ~ListSnapshotsRequest(); + std::string getSnapshotIds() const; + void setSnapshotIds(const std::string &snapshotIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + +private: + std::string snapshotIds_; + int pageNumber_; + std::string instanceId_; + std::string regionId_; + int pageSize_; + std::string diskId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsResult.h b/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsResult.h new file mode 100644 index 000000000..93ba8309c --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ListSnapshotsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ListSnapshotsResult : public ServiceResult + { + public: + struct Snapshot + { + std::string status; + std::string snapshotId; + std::string progress; + std::string creationTime; + std::string regionId; + std::string sourceDiskType; + std::string snapshotName; + std::string sourceDiskId; + std::string remark; + }; + + + ListSnapshotsResult(); + explicit ListSnapshotsResult(const std::string &payload); + ~ListSnapshotsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSnapshots()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector snapshots_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LISTSNAPSHOTSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/LoginInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/LoginInstanceRequest.h new file mode 100644 index 000000000..96b9a0d20 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/LoginInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT LoginInstanceRequest : public RpcServiceRequest { +public: + LoginInstanceRequest(); + ~LoginInstanceRequest(); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + std::string password_; + std::string instanceId_; + std::string regionId_; + std::string username_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/LoginInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/LoginInstanceResult.h new file mode 100644 index 000000000..f7c8b03f5 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/LoginInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT LoginInstanceResult : public ServiceResult + { + public: + + + LoginInstanceResult(); + explicit LoginInstanceResult(const std::string &payload); + ~LoginInstanceResult(); + std::string getRedirectUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string redirectUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_LOGININSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h new file mode 100644 index 000000000..cbd5d9de2 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyDatabaseInstanceDescriptionRequest : public RpcServiceRequest { +public: + ModifyDatabaseInstanceDescriptionRequest(); + ~ModifyDatabaseInstanceDescriptionRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDatabaseInstanceDescription() const; + void setDatabaseInstanceDescription(const std::string &databaseInstanceDescription); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; + std::string databaseInstanceDescription_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h new file mode 100644 index 000000000..a2b18a58c --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyDatabaseInstanceDescriptionResult : public ServiceResult + { + public: + + + ModifyDatabaseInstanceDescriptionResult(); + explicit ModifyDatabaseInstanceDescriptionResult(const std::string &payload); + ~ModifyDatabaseInstanceDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h new file mode 100644 index 000000000..5df189430 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyDatabaseInstanceParameterRequest : public RpcServiceRequest { +public: + ModifyDatabaseInstanceParameterRequest(); + ~ModifyDatabaseInstanceParameterRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getForceRestart() const; + void setForceRestart(bool forceRestart); + std::string getParameters() const; + void setParameters(const std::string ¶meters); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; + bool forceRestart_; + std::string parameters_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterResult.h b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterResult.h new file mode 100644 index 000000000..4953c77f7 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyDatabaseInstanceParameterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyDatabaseInstanceParameterResult : public ServiceResult + { + public: + + + ModifyDatabaseInstanceParameterResult(); + explicit ModifyDatabaseInstanceParameterResult(const std::string &payload); + ~ModifyDatabaseInstanceParameterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYDATABASEINSTANCEPARAMETERRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h b/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h new file mode 100644 index 000000000..38c75779b --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyImageShareStatusRequest : public RpcServiceRequest { +public: + ModifyImageShareStatusRequest(); + ~ModifyImageShareStatusRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOperation() const; + void setOperation(const std::string &operation); + +private: + std::string imageId_; + std::string clientToken_; + std::string regionId_; + std::string operation_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h b/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h new file mode 100644 index 000000000..6f676286a --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ModifyImageShareStatusResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ModifyImageShareStatusResult : public ServiceResult + { + public: + + + ModifyImageShareStatusResult(); + explicit ModifyImageShareStatusResult(const std::string &payload); + ~ModifyImageShareStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_MODIFYIMAGESHARESTATUSRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/RebootInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/RebootInstanceRequest.h new file mode 100644 index 000000000..27803d3f1 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RebootInstanceRequest.h @@ -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_REBOOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT RebootInstanceRequest : public RpcServiceRequest { +public: + RebootInstanceRequest(); + ~RebootInstanceRequest(); + 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 ®ionId); + +private: + std::string clientToken_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/RebootInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/RebootInstanceResult.h new file mode 100644 index 000000000..a559e4749 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RebootInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT RebootInstanceResult : public ServiceResult + { + public: + + + RebootInstanceResult(); + explicit RebootInstanceResult(const std::string &payload); + ~RebootInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_REBOOTINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h b/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h new file mode 100644 index 000000000..5cf0f62d1 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionRequest.h @@ -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_RELEASEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RELEASEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ReleasePublicConnectionRequest : public RpcServiceRequest { +public: + ReleasePublicConnectionRequest(); + ~ReleasePublicConnectionRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RELEASEPUBLICCONNECTIONREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h b/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h new file mode 100644 index 000000000..ade3c47f2 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ReleasePublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RELEASEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RELEASEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ReleasePublicConnectionResult : public ServiceResult + { + public: + + + ReleasePublicConnectionResult(); + explicit ReleasePublicConnectionResult(const std::string &payload); + ~ReleasePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RELEASEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/RenewInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/RenewInstanceRequest.h new file mode 100644 index 000000000..91e1d5dbc --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RenewInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT RenewInstanceRequest : public RpcServiceRequest { +public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + int getPeriod() const; + void setPeriod(int period); + 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 ®ionId); + +private: + int period_; + std::string clientToken_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/RenewInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/RenewInstanceResult.h new file mode 100644 index 000000000..ba318d5d7 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RenewInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h b/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h new file mode 100644 index 000000000..fdcd299a3 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetDatabaseAccountPasswordRequest : public RpcServiceRequest { +public: + ResetDatabaseAccountPasswordRequest(); + ~ResetDatabaseAccountPasswordRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string accountPassword_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordResult.h b/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordResult.h new file mode 100644 index 000000000..458fa201e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetDatabaseAccountPasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetDatabaseAccountPasswordResult : public ServiceResult + { + public: + + + ResetDatabaseAccountPasswordResult(); + explicit ResetDatabaseAccountPasswordResult(const std::string &payload); + ~ResetDatabaseAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDATABASEACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetDiskRequest.h b/swas-open/include/alibabacloud/swas-open/model/ResetDiskRequest.h new file mode 100644 index 000000000..30002c69b --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetDiskRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetDiskRequest : public RpcServiceRequest { +public: + ResetDiskRequest(); + ~ResetDiskRequest(); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + +private: + std::string snapshotId_; + std::string clientToken_; + std::string regionId_; + std::string diskId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetDiskResult.h b/swas-open/include/alibabacloud/swas-open/model/ResetDiskResult.h new file mode 100644 index 000000000..e6ce2e26d --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetDiskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetDiskResult : public ServiceResult + { + public: + + + ResetDiskResult(); + explicit ResetDiskResult(const std::string &payload); + ~ResetDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETDISKRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h b/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h new file mode 100644 index 000000000..52ff1d63f --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetSystemRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetSystemRequest : public RpcServiceRequest { +public: + ResetSystemRequest(); + ~ResetSystemRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + 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 ®ionId); + +private: + std::string imageId_; + std::string clientToken_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/ResetSystemResult.h b/swas-open/include/alibabacloud/swas-open/model/ResetSystemResult.h new file mode 100644 index 000000000..c30fb7d12 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/ResetSystemResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT ResetSystemResult : public ServiceResult + { + public: + + + ResetSystemResult(); + explicit ResetSystemResult(const std::string &payload); + ~ResetSystemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESETSYSTEMRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h new file mode 100644 index 000000000..ad6a4c59e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceRequest.h @@ -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_RESTARTDATABASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESTARTDATABASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT RestartDatabaseInstanceRequest : public RpcServiceRequest { +public: + RestartDatabaseInstanceRequest(); + ~RestartDatabaseInstanceRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESTARTDATABASEINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceResult.h new file mode 100644 index 000000000..59ff75cef --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RestartDatabaseInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RESTARTDATABASEINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RESTARTDATABASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT RestartDatabaseInstanceResult : public ServiceResult + { + public: + + + RestartDatabaseInstanceResult(); + explicit RestartDatabaseInstanceResult(const std::string &payload); + ~RestartDatabaseInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RESTARTDATABASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/RunCommandRequest.h b/swas-open/include/alibabacloud/swas-open/model/RunCommandRequest.h new file mode 100644 index 000000000..a138c34dd --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RunCommandRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT RunCommandRequest : public RpcServiceRequest { +public: + RunCommandRequest(); + ~RunCommandRequest(); + std::string getWorkingDir() const; + void setWorkingDir(const std::string &workingDir); + std::string getType() const; + void setType(const std::string &type); + std::string getCommandContent() const; + void setCommandContent(const std::string &commandContent); + int getTimeout() const; + void setTimeout(int timeout); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getWindowsPasswordName() const; + void setWindowsPasswordName(const std::string &windowsPasswordName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getWorkingUser() const; + void setWorkingUser(const std::string &workingUser); + std::string getName() const; + void setName(const std::string &name); + std::map getParameters() const; + void setParameters(const std::map ¶meters); + bool getEnableParameter() const; + void setEnableParameter(bool enableParameter); + +private: + std::string workingDir_; + std::string type_; + std::string commandContent_; + int timeout_; + std::string regionId_; + std::string windowsPasswordName_; + std::string instanceId_; + std::string workingUser_; + std::string name_; + std::map parameters_; + bool enableParameter_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/RunCommandResult.h b/swas-open/include/alibabacloud/swas-open/model/RunCommandResult.h new file mode 100644 index 000000000..2bfb39755 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/RunCommandResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDRESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT RunCommandResult : public ServiceResult + { + public: + + + RunCommandResult(); + explicit RunCommandResult(const std::string &payload); + ~RunCommandResult(); + std::string getInvokeId()const; + + protected: + void parse(const std::string &payload); + private: + std::string invokeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_RUNCOMMANDRESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h new file mode 100644 index 000000000..696683988 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceRequest.h @@ -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_STARTDATABASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTDATABASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT StartDatabaseInstanceRequest : public RpcServiceRequest { +public: + StartDatabaseInstanceRequest(); + ~StartDatabaseInstanceRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTDATABASEINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceResult.h new file mode 100644 index 000000000..d57ff088e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StartDatabaseInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STARTDATABASEINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTDATABASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT StartDatabaseInstanceResult : public ServiceResult + { + public: + + + StartDatabaseInstanceResult(); + explicit StartDatabaseInstanceResult(const std::string &payload); + ~StartDatabaseInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTDATABASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/StartInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/StartInstanceRequest.h new file mode 100644 index 000000000..868ab3758 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StartInstanceRequest.h @@ -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_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT StartInstanceRequest : public RpcServiceRequest { +public: + StartInstanceRequest(); + ~StartInstanceRequest(); + 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 ®ionId); + +private: + std::string clientToken_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/StartInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/StartInstanceResult.h new file mode 100644 index 000000000..5c936d7a0 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StartInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT StartInstanceResult : public ServiceResult + { + public: + + + StartInstanceResult(); + explicit StartInstanceResult(const std::string &payload); + ~StartInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h new file mode 100644 index 000000000..7ec53cef4 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h @@ -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_STOPDATABASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STOPDATABASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT StopDatabaseInstanceRequest : public RpcServiceRequest { +public: + StopDatabaseInstanceRequest(); + ~StopDatabaseInstanceRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDatabaseInstanceId() const; + void setDatabaseInstanceId(const std::string &databaseInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string databaseInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STOPDATABASEINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h new file mode 100644 index 000000000..be3db35be --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STOPDATABASEINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STOPDATABASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT StopDatabaseInstanceResult : public ServiceResult + { + public: + + + StopDatabaseInstanceResult(); + explicit StopDatabaseInstanceResult(const std::string &payload); + ~StopDatabaseInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STOPDATABASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/StopInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/StopInstanceRequest.h new file mode 100644 index 000000000..523a21e4e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StopInstanceRequest.h @@ -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_STOPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT StopInstanceRequest : public RpcServiceRequest { +public: + StopInstanceRequest(); + ~StopInstanceRequest(); + 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 ®ionId); + +private: + std::string clientToken_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/StopInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/StopInstanceResult.h new file mode 100644 index 000000000..082853bcc --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/StopInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT StopInstanceResult : public ServiceResult + { + public: + + + StopInstanceResult(); + explicit StopInstanceResult(const std::string &payload); + ~StopInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STOPINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h b/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h new file mode 100644 index 000000000..a7ebf44bc --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT UpdateInstanceAttributeRequest : public RpcServiceRequest { +public: + UpdateInstanceAttributeRequest(); + ~UpdateInstanceAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string password_; + std::string instanceId_; + std::string instanceName_; + std::string regionId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h b/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h new file mode 100644 index 000000000..2b699d47e --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/UpdateInstanceAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT UpdateInstanceAttributeResult : public ServiceResult + { + public: + + + UpdateInstanceAttributeResult(); + explicit UpdateInstanceAttributeResult(const std::string &payload); + ~UpdateInstanceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPDATEINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h b/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h new file mode 100644 index 000000000..45a3ae7bf --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace SWAS_OPEN { +namespace Model { +class ALIBABACLOUD_SWAS_OPEN_EXPORT UpgradeInstanceRequest : public RpcServiceRequest { +public: + UpgradeInstanceRequest(); + ~UpgradeInstanceRequest(); + 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 ®ionId); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + +private: + std::string clientToken_; + std::string instanceId_; + std::string regionId_; + std::string planId_; +}; +} // namespace Model +} // namespace SWAS_OPEN +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCEREQUEST_H_ diff --git a/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceResult.h b/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceResult.h new file mode 100644 index 000000000..e82793887 --- /dev/null +++ b/swas-open/include/alibabacloud/swas-open/model/UpgradeInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCERESULT_H_ +#define ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace SWAS_OPEN + { + namespace Model + { + class ALIBABACLOUD_SWAS_OPEN_EXPORT UpgradeInstanceResult : public ServiceResult + { + public: + + + UpgradeInstanceResult(); + explicit UpgradeInstanceResult(const std::string &payload); + ~UpgradeInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_UPGRADEINSTANCERESULT_H_ \ No newline at end of file diff --git a/swas-open/src/SWAS-OPENClient.cc b/swas-open/src/SWAS-OPENClient.cc new file mode 100644 index 000000000..d6bc89170 --- /dev/null +++ b/swas-open/src/SWAS-OPENClient.cc @@ -0,0 +1,1637 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +namespace +{ + const std::string SERVICE_NAME = "SWAS-OPEN"; +} + +SWAS_OPENClient::SWAS_OPENClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "SWAS-OPEN"); +} + +SWAS_OPENClient::SWAS_OPENClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "SWAS-OPEN"); +} + +SWAS_OPENClient::SWAS_OPENClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "SWAS-OPEN"); +} + +SWAS_OPENClient::~SWAS_OPENClient() +{} + +SWAS_OPENClient::AllocatePublicConnectionOutcome SWAS_OPENClient::allocatePublicConnection(const AllocatePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocatePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocatePublicConnectionOutcome(AllocatePublicConnectionResult(outcome.result())); + else + return AllocatePublicConnectionOutcome(outcome.error()); +} + +void SWAS_OPENClient::allocatePublicConnectionAsync(const AllocatePublicConnectionRequest& request, const AllocatePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocatePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::AllocatePublicConnectionOutcomeCallable SWAS_OPENClient::allocatePublicConnectionCallable(const AllocatePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocatePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::CreateCustomImageOutcome SWAS_OPENClient::createCustomImage(const CreateCustomImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomImageOutcome(CreateCustomImageResult(outcome.result())); + else + return CreateCustomImageOutcome(outcome.error()); +} + +void SWAS_OPENClient::createCustomImageAsync(const CreateCustomImageRequest& request, const CreateCustomImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::CreateCustomImageOutcomeCallable SWAS_OPENClient::createCustomImageCallable(const CreateCustomImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::CreateFirewallRuleOutcome SWAS_OPENClient::createFirewallRule(const CreateFirewallRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFirewallRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFirewallRuleOutcome(CreateFirewallRuleResult(outcome.result())); + else + return CreateFirewallRuleOutcome(outcome.error()); +} + +void SWAS_OPENClient::createFirewallRuleAsync(const CreateFirewallRuleRequest& request, const CreateFirewallRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFirewallRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::CreateFirewallRuleOutcomeCallable SWAS_OPENClient::createFirewallRuleCallable(const CreateFirewallRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFirewallRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::CreateInstancesOutcome SWAS_OPENClient::createInstances(const CreateInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstancesOutcome(CreateInstancesResult(outcome.result())); + else + return CreateInstancesOutcome(outcome.error()); +} + +void SWAS_OPENClient::createInstancesAsync(const CreateInstancesRequest& request, const CreateInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::CreateInstancesOutcomeCallable SWAS_OPENClient::createInstancesCallable(const CreateInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::CreateSnapshotOutcome SWAS_OPENClient::createSnapshot(const CreateSnapshotRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSnapshotOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSnapshotOutcome(CreateSnapshotResult(outcome.result())); + else + return CreateSnapshotOutcome(outcome.error()); +} + +void SWAS_OPENClient::createSnapshotAsync(const CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSnapshot(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::CreateSnapshotOutcomeCallable SWAS_OPENClient::createSnapshotCallable(const CreateSnapshotRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSnapshot(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DeleteCustomImageOutcome SWAS_OPENClient::deleteCustomImage(const DeleteCustomImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomImageOutcome(DeleteCustomImageResult(outcome.result())); + else + return DeleteCustomImageOutcome(outcome.error()); +} + +void SWAS_OPENClient::deleteCustomImageAsync(const DeleteCustomImageRequest& request, const DeleteCustomImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DeleteCustomImageOutcomeCallable SWAS_OPENClient::deleteCustomImageCallable(const DeleteCustomImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DeleteFirewallRuleOutcome SWAS_OPENClient::deleteFirewallRule(const DeleteFirewallRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFirewallRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFirewallRuleOutcome(DeleteFirewallRuleResult(outcome.result())); + else + return DeleteFirewallRuleOutcome(outcome.error()); +} + +void SWAS_OPENClient::deleteFirewallRuleAsync(const DeleteFirewallRuleRequest& request, const DeleteFirewallRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFirewallRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DeleteFirewallRuleOutcomeCallable SWAS_OPENClient::deleteFirewallRuleCallable(const DeleteFirewallRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFirewallRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DeleteSnapshotOutcome SWAS_OPENClient::deleteSnapshot(const DeleteSnapshotRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnapshotOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnapshotOutcome(DeleteSnapshotResult(outcome.result())); + else + return DeleteSnapshotOutcome(outcome.error()); +} + +void SWAS_OPENClient::deleteSnapshotAsync(const DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnapshot(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DeleteSnapshotOutcomeCallable SWAS_OPENClient::deleteSnapshotCallable(const DeleteSnapshotRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnapshot(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeCloudAssistantStatusOutcome SWAS_OPENClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudAssistantStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudAssistantStatusOutcome(DescribeCloudAssistantStatusResult(outcome.result())); + else + return DescribeCloudAssistantStatusOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeCloudAssistantStatusAsync(const DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudAssistantStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeCloudAssistantStatusOutcomeCallable SWAS_OPENClient::describeCloudAssistantStatusCallable(const DescribeCloudAssistantStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudAssistantStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeDatabaseErrorLogsOutcome SWAS_OPENClient::describeDatabaseErrorLogs(const DescribeDatabaseErrorLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseErrorLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseErrorLogsOutcome(DescribeDatabaseErrorLogsResult(outcome.result())); + else + return DescribeDatabaseErrorLogsOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeDatabaseErrorLogsAsync(const DescribeDatabaseErrorLogsRequest& request, const DescribeDatabaseErrorLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseErrorLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeDatabaseErrorLogsOutcomeCallable SWAS_OPENClient::describeDatabaseErrorLogsCallable(const DescribeDatabaseErrorLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseErrorLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeDatabaseInstanceMetricDataOutcome SWAS_OPENClient::describeDatabaseInstanceMetricData(const DescribeDatabaseInstanceMetricDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseInstanceMetricDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseInstanceMetricDataOutcome(DescribeDatabaseInstanceMetricDataResult(outcome.result())); + else + return DescribeDatabaseInstanceMetricDataOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeDatabaseInstanceMetricDataAsync(const DescribeDatabaseInstanceMetricDataRequest& request, const DescribeDatabaseInstanceMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseInstanceMetricData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeDatabaseInstanceMetricDataOutcomeCallable SWAS_OPENClient::describeDatabaseInstanceMetricDataCallable(const DescribeDatabaseInstanceMetricDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseInstanceMetricData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeDatabaseInstanceParametersOutcome SWAS_OPENClient::describeDatabaseInstanceParameters(const DescribeDatabaseInstanceParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseInstanceParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseInstanceParametersOutcome(DescribeDatabaseInstanceParametersResult(outcome.result())); + else + return DescribeDatabaseInstanceParametersOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeDatabaseInstanceParametersAsync(const DescribeDatabaseInstanceParametersRequest& request, const DescribeDatabaseInstanceParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseInstanceParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeDatabaseInstanceParametersOutcomeCallable SWAS_OPENClient::describeDatabaseInstanceParametersCallable(const DescribeDatabaseInstanceParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseInstanceParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeDatabaseInstancesOutcome SWAS_OPENClient::describeDatabaseInstances(const DescribeDatabaseInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseInstancesOutcome(DescribeDatabaseInstancesResult(outcome.result())); + else + return DescribeDatabaseInstancesOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeDatabaseInstancesAsync(const DescribeDatabaseInstancesRequest& request, const DescribeDatabaseInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeDatabaseInstancesOutcomeCallable SWAS_OPENClient::describeDatabaseInstancesCallable(const DescribeDatabaseInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeDatabaseSlowLogRecordsOutcome SWAS_OPENClient::describeDatabaseSlowLogRecords(const DescribeDatabaseSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabaseSlowLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabaseSlowLogRecordsOutcome(DescribeDatabaseSlowLogRecordsResult(outcome.result())); + else + return DescribeDatabaseSlowLogRecordsOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeDatabaseSlowLogRecordsAsync(const DescribeDatabaseSlowLogRecordsRequest& request, const DescribeDatabaseSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabaseSlowLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeDatabaseSlowLogRecordsOutcomeCallable SWAS_OPENClient::describeDatabaseSlowLogRecordsCallable(const DescribeDatabaseSlowLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabaseSlowLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeInvocationResultOutcome SWAS_OPENClient::describeInvocationResult(const DescribeInvocationResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInvocationResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInvocationResultOutcome(DescribeInvocationResultResult(outcome.result())); + else + return DescribeInvocationResultOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeInvocationResultAsync(const DescribeInvocationResultRequest& request, const DescribeInvocationResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInvocationResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeInvocationResultOutcomeCallable SWAS_OPENClient::describeInvocationResultCallable(const DescribeInvocationResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInvocationResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::DescribeInvocationsOutcome SWAS_OPENClient::describeInvocations(const DescribeInvocationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInvocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInvocationsOutcome(DescribeInvocationsResult(outcome.result())); + else + return DescribeInvocationsOutcome(outcome.error()); +} + +void SWAS_OPENClient::describeInvocationsAsync(const DescribeInvocationsRequest& request, const DescribeInvocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInvocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::DescribeInvocationsOutcomeCallable SWAS_OPENClient::describeInvocationsCallable(const DescribeInvocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInvocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::InstallCloudAssistantOutcome SWAS_OPENClient::installCloudAssistant(const InstallCloudAssistantRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallCloudAssistantOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallCloudAssistantOutcome(InstallCloudAssistantResult(outcome.result())); + else + return InstallCloudAssistantOutcome(outcome.error()); +} + +void SWAS_OPENClient::installCloudAssistantAsync(const InstallCloudAssistantRequest& request, const InstallCloudAssistantAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installCloudAssistant(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::InstallCloudAssistantOutcomeCallable SWAS_OPENClient::installCloudAssistantCallable(const InstallCloudAssistantRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installCloudAssistant(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListDisksOutcome SWAS_OPENClient::listDisks(const ListDisksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDisksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDisksOutcome(ListDisksResult(outcome.result())); + else + return ListDisksOutcome(outcome.error()); +} + +void SWAS_OPENClient::listDisksAsync(const ListDisksRequest& request, const ListDisksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDisks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListDisksOutcomeCallable SWAS_OPENClient::listDisksCallable(const ListDisksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDisks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListFirewallRulesOutcome SWAS_OPENClient::listFirewallRules(const ListFirewallRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFirewallRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFirewallRulesOutcome(ListFirewallRulesResult(outcome.result())); + else + return ListFirewallRulesOutcome(outcome.error()); +} + +void SWAS_OPENClient::listFirewallRulesAsync(const ListFirewallRulesRequest& request, const ListFirewallRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFirewallRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListFirewallRulesOutcomeCallable SWAS_OPENClient::listFirewallRulesCallable(const ListFirewallRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFirewallRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListImagesOutcome SWAS_OPENClient::listImages(const ListImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImagesOutcome(ListImagesResult(outcome.result())); + else + return ListImagesOutcome(outcome.error()); +} + +void SWAS_OPENClient::listImagesAsync(const ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListImagesOutcomeCallable SWAS_OPENClient::listImagesCallable(const ListImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListInstancePlansModificationOutcome SWAS_OPENClient::listInstancePlansModification(const ListInstancePlansModificationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancePlansModificationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancePlansModificationOutcome(ListInstancePlansModificationResult(outcome.result())); + else + return ListInstancePlansModificationOutcome(outcome.error()); +} + +void SWAS_OPENClient::listInstancePlansModificationAsync(const ListInstancePlansModificationRequest& request, const ListInstancePlansModificationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstancePlansModification(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListInstancePlansModificationOutcomeCallable SWAS_OPENClient::listInstancePlansModificationCallable(const ListInstancePlansModificationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstancePlansModification(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListInstancesOutcome SWAS_OPENClient::listInstances(const ListInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancesOutcome(ListInstancesResult(outcome.result())); + else + return ListInstancesOutcome(outcome.error()); +} + +void SWAS_OPENClient::listInstancesAsync(const ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListInstancesOutcomeCallable SWAS_OPENClient::listInstancesCallable(const ListInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListInstancesTrafficPackagesOutcome SWAS_OPENClient::listInstancesTrafficPackages(const ListInstancesTrafficPackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstancesTrafficPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstancesTrafficPackagesOutcome(ListInstancesTrafficPackagesResult(outcome.result())); + else + return ListInstancesTrafficPackagesOutcome(outcome.error()); +} + +void SWAS_OPENClient::listInstancesTrafficPackagesAsync(const ListInstancesTrafficPackagesRequest& request, const ListInstancesTrafficPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstancesTrafficPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListInstancesTrafficPackagesOutcomeCallable SWAS_OPENClient::listInstancesTrafficPackagesCallable(const ListInstancesTrafficPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstancesTrafficPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListPlansOutcome SWAS_OPENClient::listPlans(const ListPlansRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPlansOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPlansOutcome(ListPlansResult(outcome.result())); + else + return ListPlansOutcome(outcome.error()); +} + +void SWAS_OPENClient::listPlansAsync(const ListPlansRequest& request, const ListPlansAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPlans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListPlansOutcomeCallable SWAS_OPENClient::listPlansCallable(const ListPlansRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPlans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListRegionsOutcome SWAS_OPENClient::listRegions(const ListRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRegionsOutcome(ListRegionsResult(outcome.result())); + else + return ListRegionsOutcome(outcome.error()); +} + +void SWAS_OPENClient::listRegionsAsync(const ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListRegionsOutcomeCallable SWAS_OPENClient::listRegionsCallable(const ListRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ListSnapshotsOutcome SWAS_OPENClient::listSnapshots(const ListSnapshotsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSnapshotsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSnapshotsOutcome(ListSnapshotsResult(outcome.result())); + else + return ListSnapshotsOutcome(outcome.error()); +} + +void SWAS_OPENClient::listSnapshotsAsync(const ListSnapshotsRequest& request, const ListSnapshotsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSnapshots(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ListSnapshotsOutcomeCallable SWAS_OPENClient::listSnapshotsCallable(const ListSnapshotsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSnapshots(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::LoginInstanceOutcome SWAS_OPENClient::loginInstance(const LoginInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LoginInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LoginInstanceOutcome(LoginInstanceResult(outcome.result())); + else + return LoginInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::loginInstanceAsync(const LoginInstanceRequest& request, const LoginInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, loginInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::LoginInstanceOutcomeCallable SWAS_OPENClient::loginInstanceCallable(const LoginInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->loginInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ModifyDatabaseInstanceDescriptionOutcome SWAS_OPENClient::modifyDatabaseInstanceDescription(const ModifyDatabaseInstanceDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDatabaseInstanceDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDatabaseInstanceDescriptionOutcome(ModifyDatabaseInstanceDescriptionResult(outcome.result())); + else + return ModifyDatabaseInstanceDescriptionOutcome(outcome.error()); +} + +void SWAS_OPENClient::modifyDatabaseInstanceDescriptionAsync(const ModifyDatabaseInstanceDescriptionRequest& request, const ModifyDatabaseInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDatabaseInstanceDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ModifyDatabaseInstanceDescriptionOutcomeCallable SWAS_OPENClient::modifyDatabaseInstanceDescriptionCallable(const ModifyDatabaseInstanceDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDatabaseInstanceDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ModifyDatabaseInstanceParameterOutcome SWAS_OPENClient::modifyDatabaseInstanceParameter(const ModifyDatabaseInstanceParameterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDatabaseInstanceParameterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDatabaseInstanceParameterOutcome(ModifyDatabaseInstanceParameterResult(outcome.result())); + else + return ModifyDatabaseInstanceParameterOutcome(outcome.error()); +} + +void SWAS_OPENClient::modifyDatabaseInstanceParameterAsync(const ModifyDatabaseInstanceParameterRequest& request, const ModifyDatabaseInstanceParameterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDatabaseInstanceParameter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ModifyDatabaseInstanceParameterOutcomeCallable SWAS_OPENClient::modifyDatabaseInstanceParameterCallable(const ModifyDatabaseInstanceParameterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDatabaseInstanceParameter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ModifyImageShareStatusOutcome SWAS_OPENClient::modifyImageShareStatus(const ModifyImageShareStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageShareStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageShareStatusOutcome(ModifyImageShareStatusResult(outcome.result())); + else + return ModifyImageShareStatusOutcome(outcome.error()); +} + +void SWAS_OPENClient::modifyImageShareStatusAsync(const ModifyImageShareStatusRequest& request, const ModifyImageShareStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageShareStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ModifyImageShareStatusOutcomeCallable SWAS_OPENClient::modifyImageShareStatusCallable(const ModifyImageShareStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageShareStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::RebootInstanceOutcome SWAS_OPENClient::rebootInstance(const RebootInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RebootInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RebootInstanceOutcome(RebootInstanceResult(outcome.result())); + else + return RebootInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::rebootInstanceAsync(const RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rebootInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::RebootInstanceOutcomeCallable SWAS_OPENClient::rebootInstanceCallable(const RebootInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rebootInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ReleasePublicConnectionOutcome SWAS_OPENClient::releasePublicConnection(const ReleasePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleasePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleasePublicConnectionOutcome(ReleasePublicConnectionResult(outcome.result())); + else + return ReleasePublicConnectionOutcome(outcome.error()); +} + +void SWAS_OPENClient::releasePublicConnectionAsync(const ReleasePublicConnectionRequest& request, const ReleasePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releasePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ReleasePublicConnectionOutcomeCallable SWAS_OPENClient::releasePublicConnectionCallable(const ReleasePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releasePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::RenewInstanceOutcome SWAS_OPENClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::RenewInstanceOutcomeCallable SWAS_OPENClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ResetDatabaseAccountPasswordOutcome SWAS_OPENClient::resetDatabaseAccountPassword(const ResetDatabaseAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetDatabaseAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetDatabaseAccountPasswordOutcome(ResetDatabaseAccountPasswordResult(outcome.result())); + else + return ResetDatabaseAccountPasswordOutcome(outcome.error()); +} + +void SWAS_OPENClient::resetDatabaseAccountPasswordAsync(const ResetDatabaseAccountPasswordRequest& request, const ResetDatabaseAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetDatabaseAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ResetDatabaseAccountPasswordOutcomeCallable SWAS_OPENClient::resetDatabaseAccountPasswordCallable(const ResetDatabaseAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetDatabaseAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ResetDiskOutcome SWAS_OPENClient::resetDisk(const ResetDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetDiskOutcome(ResetDiskResult(outcome.result())); + else + return ResetDiskOutcome(outcome.error()); +} + +void SWAS_OPENClient::resetDiskAsync(const ResetDiskRequest& request, const ResetDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ResetDiskOutcomeCallable SWAS_OPENClient::resetDiskCallable(const ResetDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::ResetSystemOutcome SWAS_OPENClient::resetSystem(const ResetSystemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetSystemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetSystemOutcome(ResetSystemResult(outcome.result())); + else + return ResetSystemOutcome(outcome.error()); +} + +void SWAS_OPENClient::resetSystemAsync(const ResetSystemRequest& request, const ResetSystemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetSystem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::ResetSystemOutcomeCallable SWAS_OPENClient::resetSystemCallable(const ResetSystemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetSystem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::RestartDatabaseInstanceOutcome SWAS_OPENClient::restartDatabaseInstance(const RestartDatabaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDatabaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDatabaseInstanceOutcome(RestartDatabaseInstanceResult(outcome.result())); + else + return RestartDatabaseInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::restartDatabaseInstanceAsync(const RestartDatabaseInstanceRequest& request, const RestartDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDatabaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::RestartDatabaseInstanceOutcomeCallable SWAS_OPENClient::restartDatabaseInstanceCallable(const RestartDatabaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDatabaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::RunCommandOutcome SWAS_OPENClient::runCommand(const RunCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunCommandOutcome(RunCommandResult(outcome.result())); + else + return RunCommandOutcome(outcome.error()); +} + +void SWAS_OPENClient::runCommandAsync(const RunCommandRequest& request, const RunCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::RunCommandOutcomeCallable SWAS_OPENClient::runCommandCallable(const RunCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::StartDatabaseInstanceOutcome SWAS_OPENClient::startDatabaseInstance(const StartDatabaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartDatabaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartDatabaseInstanceOutcome(StartDatabaseInstanceResult(outcome.result())); + else + return StartDatabaseInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::startDatabaseInstanceAsync(const StartDatabaseInstanceRequest& request, const StartDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startDatabaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::StartDatabaseInstanceOutcomeCallable SWAS_OPENClient::startDatabaseInstanceCallable(const StartDatabaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startDatabaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::StartInstanceOutcome SWAS_OPENClient::startInstance(const StartInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartInstanceOutcome(StartInstanceResult(outcome.result())); + else + return StartInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::startInstanceAsync(const StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::StartInstanceOutcomeCallable SWAS_OPENClient::startInstanceCallable(const StartInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::StopDatabaseInstanceOutcome SWAS_OPENClient::stopDatabaseInstance(const StopDatabaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopDatabaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopDatabaseInstanceOutcome(StopDatabaseInstanceResult(outcome.result())); + else + return StopDatabaseInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::stopDatabaseInstanceAsync(const StopDatabaseInstanceRequest& request, const StopDatabaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopDatabaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::StopDatabaseInstanceOutcomeCallable SWAS_OPENClient::stopDatabaseInstanceCallable(const StopDatabaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopDatabaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::StopInstanceOutcome SWAS_OPENClient::stopInstance(const StopInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopInstanceOutcome(StopInstanceResult(outcome.result())); + else + return StopInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::stopInstanceAsync(const StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::StopInstanceOutcomeCallable SWAS_OPENClient::stopInstanceCallable(const StopInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::UpdateInstanceAttributeOutcome SWAS_OPENClient::updateInstanceAttribute(const UpdateInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateInstanceAttributeOutcome(UpdateInstanceAttributeResult(outcome.result())); + else + return UpdateInstanceAttributeOutcome(outcome.error()); +} + +void SWAS_OPENClient::updateInstanceAttributeAsync(const UpdateInstanceAttributeRequest& request, const UpdateInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::UpdateInstanceAttributeOutcomeCallable SWAS_OPENClient::updateInstanceAttributeCallable(const UpdateInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SWAS_OPENClient::UpgradeInstanceOutcome SWAS_OPENClient::upgradeInstance(const UpgradeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeInstanceOutcome(UpgradeInstanceResult(outcome.result())); + else + return UpgradeInstanceOutcome(outcome.error()); +} + +void SWAS_OPENClient::upgradeInstanceAsync(const UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SWAS_OPENClient::UpgradeInstanceOutcomeCallable SWAS_OPENClient::upgradeInstanceCallable(const UpgradeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/swas-open/src/model/AllocatePublicConnectionRequest.cc b/swas-open/src/model/AllocatePublicConnectionRequest.cc new file mode 100644 index 000000000..4f608a544 --- /dev/null +++ b/swas-open/src/model/AllocatePublicConnectionRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::AllocatePublicConnectionRequest; + +AllocatePublicConnectionRequest::AllocatePublicConnectionRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "AllocatePublicConnection") { + setMethod(HttpRequest::Method::Post); +} + +AllocatePublicConnectionRequest::~AllocatePublicConnectionRequest() {} + +std::string AllocatePublicConnectionRequest::getClientToken() const { + return clientToken_; +} + +void AllocatePublicConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AllocatePublicConnectionRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void AllocatePublicConnectionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string AllocatePublicConnectionRequest::getRegionId() const { + return regionId_; +} + +void AllocatePublicConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/AllocatePublicConnectionResult.cc b/swas-open/src/model/AllocatePublicConnectionResult.cc new file mode 100644 index 000000000..a427c4ac0 --- /dev/null +++ b/swas-open/src/model/AllocatePublicConnectionResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +AllocatePublicConnectionResult::AllocatePublicConnectionResult() : + ServiceResult() +{} + +AllocatePublicConnectionResult::AllocatePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocatePublicConnectionResult::~AllocatePublicConnectionResult() +{} + +void AllocatePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PublicConnection"].isNull()) + publicConnection_ = value["PublicConnection"].asString(); + +} + +std::string AllocatePublicConnectionResult::getPublicConnection()const +{ + return publicConnection_; +} + diff --git a/swas-open/src/model/CreateCustomImageRequest.cc b/swas-open/src/model/CreateCustomImageRequest.cc new file mode 100644 index 000000000..35527edbe --- /dev/null +++ b/swas-open/src/model/CreateCustomImageRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::CreateCustomImageRequest; + +CreateCustomImageRequest::CreateCustomImageRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "CreateCustomImage") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomImageRequest::~CreateCustomImageRequest() {} + +std::string CreateCustomImageRequest::getSystemSnapshotId() const { + return systemSnapshotId_; +} + +void CreateCustomImageRequest::setSystemSnapshotId(const std::string &systemSnapshotId) { + systemSnapshotId_ = systemSnapshotId; + setParameter(std::string("SystemSnapshotId"), systemSnapshotId); +} + +std::string CreateCustomImageRequest::getDataSnapshotId() const { + return dataSnapshotId_; +} + +void CreateCustomImageRequest::setDataSnapshotId(const std::string &dataSnapshotId) { + dataSnapshotId_ = dataSnapshotId; + setParameter(std::string("DataSnapshotId"), dataSnapshotId); +} + +std::string CreateCustomImageRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomImageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateCustomImageRequest::getDescription() const { + return description_; +} + +void CreateCustomImageRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateCustomImageRequest::getInstanceId() const { + return instanceId_; +} + +void CreateCustomImageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateCustomImageRequest::getRegionId() const { + return regionId_; +} + +void CreateCustomImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCustomImageRequest::getImageName() const { + return imageName_; +} + +void CreateCustomImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + diff --git a/swas-open/src/model/CreateCustomImageResult.cc b/swas-open/src/model/CreateCustomImageResult.cc new file mode 100644 index 000000000..394cabc56 --- /dev/null +++ b/swas-open/src/model/CreateCustomImageResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +CreateCustomImageResult::CreateCustomImageResult() : + ServiceResult() +{} + +CreateCustomImageResult::CreateCustomImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomImageResult::~CreateCustomImageResult() +{} + +void CreateCustomImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +std::string CreateCustomImageResult::getImageId()const +{ + return imageId_; +} + diff --git a/swas-open/src/model/CreateFirewallRuleRequest.cc b/swas-open/src/model/CreateFirewallRuleRequest.cc new file mode 100644 index 000000000..ecd5bce9a --- /dev/null +++ b/swas-open/src/model/CreateFirewallRuleRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::CreateFirewallRuleRequest; + +CreateFirewallRuleRequest::CreateFirewallRuleRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "CreateFirewallRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateFirewallRuleRequest::~CreateFirewallRuleRequest() {} + +std::string CreateFirewallRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateFirewallRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateFirewallRuleRequest::getRemark() const { + return remark_; +} + +void CreateFirewallRuleRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +std::string CreateFirewallRuleRequest::getInstanceId() const { + return instanceId_; +} + +void CreateFirewallRuleRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateFirewallRuleRequest::getRuleProtocol() const { + return ruleProtocol_; +} + +void CreateFirewallRuleRequest::setRuleProtocol(const std::string &ruleProtocol) { + ruleProtocol_ = ruleProtocol; + setParameter(std::string("RuleProtocol"), ruleProtocol); +} + +std::string CreateFirewallRuleRequest::getRegionId() const { + return regionId_; +} + +void CreateFirewallRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateFirewallRuleRequest::getPort() const { + return port_; +} + +void CreateFirewallRuleRequest::setPort(const std::string &port) { + port_ = port; + setParameter(std::string("Port"), port); +} + diff --git a/swas-open/src/model/CreateFirewallRuleResult.cc b/swas-open/src/model/CreateFirewallRuleResult.cc new file mode 100644 index 000000000..a594648e7 --- /dev/null +++ b/swas-open/src/model/CreateFirewallRuleResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +CreateFirewallRuleResult::CreateFirewallRuleResult() : + ServiceResult() +{} + +CreateFirewallRuleResult::CreateFirewallRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFirewallRuleResult::~CreateFirewallRuleResult() +{} + +void CreateFirewallRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FirewallId"].isNull()) + firewallId_ = value["FirewallId"].asString(); + +} + +std::string CreateFirewallRuleResult::getFirewallId()const +{ + return firewallId_; +} + diff --git a/swas-open/src/model/CreateInstancesRequest.cc b/swas-open/src/model/CreateInstancesRequest.cc new file mode 100644 index 000000000..3561bf023 --- /dev/null +++ b/swas-open/src/model/CreateInstancesRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::CreateInstancesRequest; + +CreateInstancesRequest::CreateInstancesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "CreateInstances") { + setMethod(HttpRequest::Method::Post); +} + +CreateInstancesRequest::~CreateInstancesRequest() {} + +std::string CreateInstancesRequest::getImageId() const { + return imageId_; +} + +void CreateInstancesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string CreateInstancesRequest::getClientToken() const { + return clientToken_; +} + +void CreateInstancesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateInstancesRequest::getRegionId() const { + return regionId_; +} + +void CreateInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int CreateInstancesRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; +} + +void CreateInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); +} + +int CreateInstancesRequest::getPeriod() const { + return period_; +} + +void CreateInstancesRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +int CreateInstancesRequest::getAmount() const { + return amount_; +} + +void CreateInstancesRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); +} + +bool CreateInstancesRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateInstancesRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +long CreateInstancesRequest::getDataDiskSize() const { + return dataDiskSize_; +} + +void CreateInstancesRequest::setDataDiskSize(long dataDiskSize) { + dataDiskSize_ = dataDiskSize; + setParameter(std::string("DataDiskSize"), std::to_string(dataDiskSize)); +} + +std::string CreateInstancesRequest::getPlanId() const { + return planId_; +} + +void CreateInstancesRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + +std::string CreateInstancesRequest::getChargeType() const { + return chargeType_; +} + +void CreateInstancesRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + diff --git a/swas-open/src/model/CreateInstancesResult.cc b/swas-open/src/model/CreateInstancesResult.cc new file mode 100644 index 000000000..0e7a676c8 --- /dev/null +++ b/swas-open/src/model/CreateInstancesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +CreateInstancesResult::CreateInstancesResult() : + ServiceResult() +{} + +CreateInstancesResult::CreateInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstancesResult::~CreateInstancesResult() +{} + +void CreateInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceIds"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + +} + +std::vector CreateInstancesResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/swas-open/src/model/CreateSnapshotRequest.cc b/swas-open/src/model/CreateSnapshotRequest.cc new file mode 100644 index 000000000..c93eae901 --- /dev/null +++ b/swas-open/src/model/CreateSnapshotRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::CreateSnapshotRequest; + +CreateSnapshotRequest::CreateSnapshotRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "CreateSnapshot") { + setMethod(HttpRequest::Method::Post); +} + +CreateSnapshotRequest::~CreateSnapshotRequest() {} + +std::string CreateSnapshotRequest::getClientToken() const { + return clientToken_; +} + +void CreateSnapshotRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateSnapshotRequest::getSnapshotName() const { + return snapshotName_; +} + +void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); +} + +std::string CreateSnapshotRequest::getRegionId() const { + return regionId_; +} + +void CreateSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateSnapshotRequest::getDiskId() const { + return diskId_; +} + +void CreateSnapshotRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + diff --git a/swas-open/src/model/CreateSnapshotResult.cc b/swas-open/src/model/CreateSnapshotResult.cc new file mode 100644 index 000000000..c73164b62 --- /dev/null +++ b/swas-open/src/model/CreateSnapshotResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +CreateSnapshotResult::CreateSnapshotResult() : + ServiceResult() +{} + +CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSnapshotResult::~CreateSnapshotResult() +{} + +void CreateSnapshotResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SnapshotId"].isNull()) + snapshotId_ = value["SnapshotId"].asString(); + +} + +std::string CreateSnapshotResult::getSnapshotId()const +{ + return snapshotId_; +} + diff --git a/swas-open/src/model/DeleteCustomImageRequest.cc b/swas-open/src/model/DeleteCustomImageRequest.cc new file mode 100644 index 000000000..520b6ed80 --- /dev/null +++ b/swas-open/src/model/DeleteCustomImageRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DeleteCustomImageRequest; + +DeleteCustomImageRequest::DeleteCustomImageRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DeleteCustomImage") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomImageRequest::~DeleteCustomImageRequest() {} + +std::string DeleteCustomImageRequest::getImageId() const { + return imageId_; +} + +void DeleteCustomImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string DeleteCustomImageRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCustomImageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteCustomImageRequest::getRegionId() const { + return regionId_; +} + +void DeleteCustomImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/DeleteCustomImageResult.cc b/swas-open/src/model/DeleteCustomImageResult.cc new file mode 100644 index 000000000..fe614b4ce --- /dev/null +++ b/swas-open/src/model/DeleteCustomImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DeleteCustomImageResult::DeleteCustomImageResult() : + ServiceResult() +{} + +DeleteCustomImageResult::DeleteCustomImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomImageResult::~DeleteCustomImageResult() +{} + +void DeleteCustomImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/DeleteFirewallRuleRequest.cc b/swas-open/src/model/DeleteFirewallRuleRequest.cc new file mode 100644 index 000000000..e8ba72f96 --- /dev/null +++ b/swas-open/src/model/DeleteFirewallRuleRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DeleteFirewallRuleRequest; + +DeleteFirewallRuleRequest::DeleteFirewallRuleRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DeleteFirewallRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteFirewallRuleRequest::~DeleteFirewallRuleRequest() {} + +std::string DeleteFirewallRuleRequest::getClientToken() const { + return clientToken_; +} + +void DeleteFirewallRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteFirewallRuleRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteFirewallRuleRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DeleteFirewallRuleRequest::getRegionId() const { + return regionId_; +} + +void DeleteFirewallRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteFirewallRuleRequest::getRuleId() const { + return ruleId_; +} + +void DeleteFirewallRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/swas-open/src/model/DeleteFirewallRuleResult.cc b/swas-open/src/model/DeleteFirewallRuleResult.cc new file mode 100644 index 000000000..34fed2724 --- /dev/null +++ b/swas-open/src/model/DeleteFirewallRuleResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DeleteFirewallRuleResult::DeleteFirewallRuleResult() : + ServiceResult() +{} + +DeleteFirewallRuleResult::DeleteFirewallRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFirewallRuleResult::~DeleteFirewallRuleResult() +{} + +void DeleteFirewallRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/DeleteSnapshotRequest.cc b/swas-open/src/model/DeleteSnapshotRequest.cc new file mode 100644 index 000000000..fe9796b3b --- /dev/null +++ b/swas-open/src/model/DeleteSnapshotRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DeleteSnapshotRequest; + +DeleteSnapshotRequest::DeleteSnapshotRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DeleteSnapshot") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSnapshotRequest::~DeleteSnapshotRequest() {} + +std::string DeleteSnapshotRequest::getSnapshotId() const { + return snapshotId_; +} + +void DeleteSnapshotRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); +} + +std::string DeleteSnapshotRequest::getClientToken() const { + return clientToken_; +} + +void DeleteSnapshotRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteSnapshotRequest::getRegionId() const { + return regionId_; +} + +void DeleteSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/DeleteSnapshotResult.cc b/swas-open/src/model/DeleteSnapshotResult.cc new file mode 100644 index 000000000..748975579 --- /dev/null +++ b/swas-open/src/model/DeleteSnapshotResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DeleteSnapshotResult::DeleteSnapshotResult() : + ServiceResult() +{} + +DeleteSnapshotResult::DeleteSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnapshotResult::~DeleteSnapshotResult() +{} + +void DeleteSnapshotResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/DescribeCloudAssistantStatusRequest.cc b/swas-open/src/model/DescribeCloudAssistantStatusRequest.cc new file mode 100644 index 000000000..39693cc2b --- /dev/null +++ b/swas-open/src/model/DescribeCloudAssistantStatusRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeCloudAssistantStatusRequest; + +DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeCloudAssistantStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() {} + +int DescribeCloudAssistantStatusRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeCloudAssistantStatusRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeCloudAssistantStatusRequest::getRegionId() const { + return regionId_; +} + +void DescribeCloudAssistantStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeCloudAssistantStatusRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeCloudAssistantStatusRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; + for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) { + setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]); + } +} + +int DescribeCloudAssistantStatusRequest::getPageSize() const { + return pageSize_; +} + +void DescribeCloudAssistantStatusRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/DescribeCloudAssistantStatusResult.cc b/swas-open/src/model/DescribeCloudAssistantStatusResult.cc new file mode 100644 index 000000000..958bc9568 --- /dev/null +++ b/swas-open/src/model/DescribeCloudAssistantStatusResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult() : + ServiceResult() +{} + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudAssistantStatusResult::~DescribeCloudAssistantStatusResult() +{} + +void DescribeCloudAssistantStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCloudAssistantStatusNode = value["CloudAssistantStatus"]["status"]; + for (auto valueCloudAssistantStatusstatus : allCloudAssistantStatusNode) + { + Status cloudAssistantStatusObject; + if(!valueCloudAssistantStatusstatus["InstanceId"].isNull()) + cloudAssistantStatusObject.instanceId = valueCloudAssistantStatusstatus["InstanceId"].asString(); + if(!valueCloudAssistantStatusstatus["Status"].isNull()) + cloudAssistantStatusObject.status = valueCloudAssistantStatusstatus["Status"].asString() == "true"; + cloudAssistantStatus_.push_back(cloudAssistantStatusObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeCloudAssistantStatusResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCloudAssistantStatusResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCloudAssistantStatusResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCloudAssistantStatusResult::getCloudAssistantStatus()const +{ + return cloudAssistantStatus_; +} + diff --git a/swas-open/src/model/DescribeDatabaseErrorLogsRequest.cc b/swas-open/src/model/DescribeDatabaseErrorLogsRequest.cc new file mode 100644 index 000000000..cc20ff273 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseErrorLogsRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseErrorLogsRequest; + +DescribeDatabaseErrorLogsRequest::DescribeDatabaseErrorLogsRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseErrorLogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabaseErrorLogsRequest::~DescribeDatabaseErrorLogsRequest() {} + +std::string DescribeDatabaseErrorLogsRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void DescribeDatabaseErrorLogsRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string DescribeDatabaseErrorLogsRequest::getEndTime() const { + return endTime_; +} + +void DescribeDatabaseErrorLogsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDatabaseErrorLogsRequest::getStartTime() const { + return startTime_; +} + +void DescribeDatabaseErrorLogsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeDatabaseErrorLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDatabaseErrorLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDatabaseErrorLogsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDatabaseErrorLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeDatabaseErrorLogsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDatabaseErrorLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/DescribeDatabaseErrorLogsResult.cc b/swas-open/src/model/DescribeDatabaseErrorLogsResult.cc new file mode 100644 index 000000000..e7e9e18bf --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseErrorLogsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeDatabaseErrorLogsResult::DescribeDatabaseErrorLogsResult() : + ServiceResult() +{} + +DescribeDatabaseErrorLogsResult::DescribeDatabaseErrorLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseErrorLogsResult::~DescribeDatabaseErrorLogsResult() +{} + +void DescribeDatabaseErrorLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allErrorLogsNode = value["ErrorLogs"]["ErrorLog"]; + for (auto valueErrorLogsErrorLog : allErrorLogsNode) + { + ErrorLog errorLogsObject; + if(!valueErrorLogsErrorLog["ErrorInfo"].isNull()) + errorLogsObject.errorInfo = valueErrorLogsErrorLog["ErrorInfo"].asString(); + if(!valueErrorLogsErrorLog["CreateTime"].isNull()) + errorLogsObject.createTime = valueErrorLogsErrorLog["CreateTime"].asString(); + errorLogs_.push_back(errorLogsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDatabaseErrorLogsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDatabaseErrorLogsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeDatabaseErrorLogsResult::getErrorLogs()const +{ + return errorLogs_; +} + +int DescribeDatabaseErrorLogsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/swas-open/src/model/DescribeDatabaseInstanceMetricDataRequest.cc b/swas-open/src/model/DescribeDatabaseInstanceMetricDataRequest.cc new file mode 100644 index 000000000..901aab336 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstanceMetricDataRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstanceMetricDataRequest; + +DescribeDatabaseInstanceMetricDataRequest::DescribeDatabaseInstanceMetricDataRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstanceMetricData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabaseInstanceMetricDataRequest::~DescribeDatabaseInstanceMetricDataRequest() {} + +std::string DescribeDatabaseInstanceMetricDataRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void DescribeDatabaseInstanceMetricDataRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string DescribeDatabaseInstanceMetricDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeDatabaseInstanceMetricDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDatabaseInstanceMetricDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeDatabaseInstanceMetricDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDatabaseInstanceMetricDataRequest::getRegionId() const { + return regionId_; +} + +void DescribeDatabaseInstanceMetricDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDatabaseInstanceMetricDataRequest::getMetricName() const { + return metricName_; +} + +void DescribeDatabaseInstanceMetricDataRequest::setMetricName(const std::string &metricName) { + metricName_ = metricName; + setParameter(std::string("MetricName"), metricName); +} + diff --git a/swas-open/src/model/DescribeDatabaseInstanceMetricDataResult.cc b/swas-open/src/model/DescribeDatabaseInstanceMetricDataResult.cc new file mode 100644 index 000000000..f865691e2 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstanceMetricDataResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeDatabaseInstanceMetricDataResult::DescribeDatabaseInstanceMetricDataResult() : + ServiceResult() +{} + +DescribeDatabaseInstanceMetricDataResult::DescribeDatabaseInstanceMetricDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseInstanceMetricDataResult::~DescribeDatabaseInstanceMetricDataResult() +{} + +void DescribeDatabaseInstanceMetricDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["MetricName"].isNull()) + metricName_ = value["MetricName"].asString(); + if(!value["Unit"].isNull()) + unit_ = value["Unit"].asString(); + if(!value["DataFormat"].isNull()) + dataFormat_ = value["DataFormat"].asString(); + if(!value["MetricData"].isNull()) + metricData_ = value["MetricData"].asString(); + +} + +std::string DescribeDatabaseInstanceMetricDataResult::getMetricName()const +{ + return metricName_; +} + +std::string DescribeDatabaseInstanceMetricDataResult::getDataFormat()const +{ + return dataFormat_; +} + +std::string DescribeDatabaseInstanceMetricDataResult::getUnit()const +{ + return unit_; +} + +std::string DescribeDatabaseInstanceMetricDataResult::getMetricData()const +{ + return metricData_; +} + diff --git a/swas-open/src/model/DescribeDatabaseInstanceParametersRequest.cc b/swas-open/src/model/DescribeDatabaseInstanceParametersRequest.cc new file mode 100644 index 000000000..ec0d36d59 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstanceParametersRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstanceParametersRequest; + +DescribeDatabaseInstanceParametersRequest::DescribeDatabaseInstanceParametersRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstanceParameters") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabaseInstanceParametersRequest::~DescribeDatabaseInstanceParametersRequest() {} + +std::string DescribeDatabaseInstanceParametersRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void DescribeDatabaseInstanceParametersRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string DescribeDatabaseInstanceParametersRequest::getRegionId() const { + return regionId_; +} + +void DescribeDatabaseInstanceParametersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/DescribeDatabaseInstanceParametersResult.cc b/swas-open/src/model/DescribeDatabaseInstanceParametersResult.cc new file mode 100644 index 000000000..ed9b67827 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstanceParametersResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeDatabaseInstanceParametersResult::DescribeDatabaseInstanceParametersResult() : + ServiceResult() +{} + +DescribeDatabaseInstanceParametersResult::DescribeDatabaseInstanceParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseInstanceParametersResult::~DescribeDatabaseInstanceParametersResult() +{} + +void DescribeDatabaseInstanceParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfigParametersNode = value["ConfigParameters"]["ConfigParameter"]; + for (auto valueConfigParametersConfigParameter : allConfigParametersNode) + { + ConfigParameter configParametersObject; + if(!valueConfigParametersConfigParameter["ParameterDescription"].isNull()) + configParametersObject.parameterDescription = valueConfigParametersConfigParameter["ParameterDescription"].asString(); + if(!valueConfigParametersConfigParameter["ParameterName"].isNull()) + configParametersObject.parameterName = valueConfigParametersConfigParameter["ParameterName"].asString(); + if(!valueConfigParametersConfigParameter["ParameterValue"].isNull()) + configParametersObject.parameterValue = valueConfigParametersConfigParameter["ParameterValue"].asString(); + if(!valueConfigParametersConfigParameter["ForceModify"].isNull()) + configParametersObject.forceModify = valueConfigParametersConfigParameter["ForceModify"].asString(); + if(!valueConfigParametersConfigParameter["ForceRestart"].isNull()) + configParametersObject.forceRestart = valueConfigParametersConfigParameter["ForceRestart"].asString(); + if(!valueConfigParametersConfigParameter["CheckingCode"].isNull()) + configParametersObject.checkingCode = valueConfigParametersConfigParameter["CheckingCode"].asString(); + configParameters_.push_back(configParametersObject); + } + auto allRunningParametersNode = value["RunningParameters"]["RunningParameter"]; + for (auto valueRunningParametersRunningParameter : allRunningParametersNode) + { + RunningParameter runningParametersObject; + if(!valueRunningParametersRunningParameter["ParameterDescription"].isNull()) + runningParametersObject.parameterDescription = valueRunningParametersRunningParameter["ParameterDescription"].asString(); + if(!valueRunningParametersRunningParameter["ParameterName"].isNull()) + runningParametersObject.parameterName = valueRunningParametersRunningParameter["ParameterName"].asString(); + if(!valueRunningParametersRunningParameter["ParameterValue"].isNull()) + runningParametersObject.parameterValue = valueRunningParametersRunningParameter["ParameterValue"].asString(); + if(!valueRunningParametersRunningParameter["ForceModify"].isNull()) + runningParametersObject.forceModify = valueRunningParametersRunningParameter["ForceModify"].asString(); + if(!valueRunningParametersRunningParameter["ForceRestart"].isNull()) + runningParametersObject.forceRestart = valueRunningParametersRunningParameter["ForceRestart"].asString(); + if(!valueRunningParametersRunningParameter["CheckingCode"].isNull()) + runningParametersObject.checkingCode = valueRunningParametersRunningParameter["CheckingCode"].asString(); + runningParameters_.push_back(runningParametersObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + +} + +std::vector DescribeDatabaseInstanceParametersResult::getRunningParameters()const +{ + return runningParameters_; +} + +std::string DescribeDatabaseInstanceParametersResult::getEngineVersion()const +{ + return engineVersion_; +} + +std::vector DescribeDatabaseInstanceParametersResult::getConfigParameters()const +{ + return configParameters_; +} + +std::string DescribeDatabaseInstanceParametersResult::getEngine()const +{ + return engine_; +} + diff --git a/swas-open/src/model/DescribeDatabaseInstancesRequest.cc b/swas-open/src/model/DescribeDatabaseInstancesRequest.cc new file mode 100644 index 000000000..1300da4e9 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstancesRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseInstancesRequest; + +DescribeDatabaseInstancesRequest::DescribeDatabaseInstancesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabaseInstancesRequest::~DescribeDatabaseInstancesRequest() {} + +std::string DescribeDatabaseInstancesRequest::getDatabaseInstanceIds() const { + return databaseInstanceIds_; +} + +void DescribeDatabaseInstancesRequest::setDatabaseInstanceIds(const std::string &databaseInstanceIds) { + databaseInstanceIds_ = databaseInstanceIds; + setParameter(std::string("DatabaseInstanceIds"), databaseInstanceIds); +} + +int DescribeDatabaseInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDatabaseInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDatabaseInstancesRequest::getRegionId() const { + return regionId_; +} + +void DescribeDatabaseInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeDatabaseInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDatabaseInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/DescribeDatabaseInstancesResult.cc b/swas-open/src/model/DescribeDatabaseInstancesResult.cc new file mode 100644 index 000000000..3627f334a --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseInstancesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeDatabaseInstancesResult::DescribeDatabaseInstancesResult() : + ServiceResult() +{} + +DescribeDatabaseInstancesResult::DescribeDatabaseInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseInstancesResult::~DescribeDatabaseInstancesResult() +{} + +void DescribeDatabaseInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDatabaseInstancesNode = value["DatabaseInstances"]["DatabaseInstance"]; + for (auto valueDatabaseInstancesDatabaseInstance : allDatabaseInstancesNode) + { + DatabaseInstance databaseInstancesObject; + if(!valueDatabaseInstancesDatabaseInstance["RegionId"].isNull()) + databaseInstancesObject.regionId = valueDatabaseInstancesDatabaseInstance["RegionId"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceId"].isNull()) + databaseInstancesObject.databaseInstanceId = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceId"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceName"].isNull()) + databaseInstancesObject.databaseInstanceName = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceName"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceEdition"].isNull()) + databaseInstancesObject.databaseInstanceEdition = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceEdition"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["DatabaseVersion"].isNull()) + databaseInstancesObject.databaseVersion = valueDatabaseInstancesDatabaseInstance["DatabaseVersion"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["Cpu"].isNull()) + databaseInstancesObject.cpu = valueDatabaseInstancesDatabaseInstance["Cpu"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["Memory"].isNull()) + databaseInstancesObject.memory = valueDatabaseInstancesDatabaseInstance["Memory"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["Storage"].isNull()) + databaseInstancesObject.storage = std::stoi(valueDatabaseInstancesDatabaseInstance["Storage"].asString()); + if(!valueDatabaseInstancesDatabaseInstance["PrivateConnection"].isNull()) + databaseInstancesObject.privateConnection = valueDatabaseInstancesDatabaseInstance["PrivateConnection"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["PublicConnection"].isNull()) + databaseInstancesObject.publicConnection = valueDatabaseInstancesDatabaseInstance["PublicConnection"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["DatabaseInstanceStatus"].isNull()) + databaseInstancesObject.databaseInstanceStatus = valueDatabaseInstancesDatabaseInstance["DatabaseInstanceStatus"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["BusinessStatus"].isNull()) + databaseInstancesObject.businessStatus = valueDatabaseInstancesDatabaseInstance["BusinessStatus"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["CreationTime"].isNull()) + databaseInstancesObject.creationTime = valueDatabaseInstancesDatabaseInstance["CreationTime"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["ExpiredTime"].isNull()) + databaseInstancesObject.expiredTime = valueDatabaseInstancesDatabaseInstance["ExpiredTime"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["ChargeType"].isNull()) + databaseInstancesObject.chargeType = valueDatabaseInstancesDatabaseInstance["ChargeType"].asString(); + if(!valueDatabaseInstancesDatabaseInstance["SuperAccountName"].isNull()) + databaseInstancesObject.superAccountName = valueDatabaseInstancesDatabaseInstance["SuperAccountName"].asString(); + databaseInstances_.push_back(databaseInstancesObject); + } + 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 DescribeDatabaseInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDatabaseInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDatabaseInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDatabaseInstancesResult::getDatabaseInstances()const +{ + return databaseInstances_; +} + diff --git a/swas-open/src/model/DescribeDatabaseSlowLogRecordsRequest.cc b/swas-open/src/model/DescribeDatabaseSlowLogRecordsRequest.cc new file mode 100644 index 000000000..335abf90a --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseSlowLogRecordsRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeDatabaseSlowLogRecordsRequest; + +DescribeDatabaseSlowLogRecordsRequest::DescribeDatabaseSlowLogRecordsRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeDatabaseSlowLogRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabaseSlowLogRecordsRequest::~DescribeDatabaseSlowLogRecordsRequest() {} + +std::string DescribeDatabaseSlowLogRecordsRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string DescribeDatabaseSlowLogRecordsRequest::getEndTime() const { + return endTime_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDatabaseSlowLogRecordsRequest::getStartTime() const { + return startTime_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeDatabaseSlowLogRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDatabaseSlowLogRecordsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeDatabaseSlowLogRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDatabaseSlowLogRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/DescribeDatabaseSlowLogRecordsResult.cc b/swas-open/src/model/DescribeDatabaseSlowLogRecordsResult.cc new file mode 100644 index 000000000..eb88c8c89 --- /dev/null +++ b/swas-open/src/model/DescribeDatabaseSlowLogRecordsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeDatabaseSlowLogRecordsResult::DescribeDatabaseSlowLogRecordsResult() : + ServiceResult() +{} + +DescribeDatabaseSlowLogRecordsResult::DescribeDatabaseSlowLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabaseSlowLogRecordsResult::~DescribeDatabaseSlowLogRecordsResult() +{} + +void DescribeDatabaseSlowLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSlowLogsNode = value["SlowLogs"]["SlowLog"]; + for (auto valueSlowLogsSlowLog : allSlowLogsNode) + { + SlowLog slowLogsObject; + if(!valueSlowLogsSlowLog["HostAddress"].isNull()) + slowLogsObject.hostAddress = valueSlowLogsSlowLog["HostAddress"].asString(); + if(!valueSlowLogsSlowLog["QueryTimes"].isNull()) + slowLogsObject.queryTimes = std::stol(valueSlowLogsSlowLog["QueryTimes"].asString()); + if(!valueSlowLogsSlowLog["SQLText"].isNull()) + slowLogsObject.sQLText = valueSlowLogsSlowLog["SQLText"].asString(); + if(!valueSlowLogsSlowLog["QueryTimeMS"].isNull()) + slowLogsObject.queryTimeMS = std::stol(valueSlowLogsSlowLog["QueryTimeMS"].asString()); + if(!valueSlowLogsSlowLog["LockTimes"].isNull()) + slowLogsObject.lockTimes = std::stol(valueSlowLogsSlowLog["LockTimes"].asString()); + if(!valueSlowLogsSlowLog["ExecutionStartTime"].isNull()) + slowLogsObject.executionStartTime = valueSlowLogsSlowLog["ExecutionStartTime"].asString(); + if(!valueSlowLogsSlowLog["ReturnRowCounts"].isNull()) + slowLogsObject.returnRowCounts = std::stol(valueSlowLogsSlowLog["ReturnRowCounts"].asString()); + if(!valueSlowLogsSlowLog["ParseRowCounts"].isNull()) + slowLogsObject.parseRowCounts = std::stol(valueSlowLogsSlowLog["ParseRowCounts"].asString()); + if(!valueSlowLogsSlowLog["DBName"].isNull()) + slowLogsObject.dBName = valueSlowLogsSlowLog["DBName"].asString(); + slowLogs_.push_back(slowLogsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PhysicalIORead"].isNull()) + physicalIORead_ = std::stol(value["PhysicalIORead"].asString()); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + +} + +int DescribeDatabaseSlowLogRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDatabaseSlowLogRecordsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDatabaseSlowLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +long DescribeDatabaseSlowLogRecordsResult::getPhysicalIORead()const +{ + return physicalIORead_; +} + +std::vector DescribeDatabaseSlowLogRecordsResult::getSlowLogs()const +{ + return slowLogs_; +} + +std::string DescribeDatabaseSlowLogRecordsResult::getEngine()const +{ + return engine_; +} + diff --git a/swas-open/src/model/DescribeInvocationResultRequest.cc b/swas-open/src/model/DescribeInvocationResultRequest.cc new file mode 100644 index 000000000..efba470a9 --- /dev/null +++ b/swas-open/src/model/DescribeInvocationResultRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeInvocationResultRequest; + +DescribeInvocationResultRequest::DescribeInvocationResultRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeInvocationResult") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInvocationResultRequest::~DescribeInvocationResultRequest() {} + +std::string DescribeInvocationResultRequest::getInvokeId() const { + return invokeId_; +} + +void DescribeInvocationResultRequest::setInvokeId(const std::string &invokeId) { + invokeId_ = invokeId; + setParameter(std::string("InvokeId"), invokeId); +} + +std::string DescribeInvocationResultRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInvocationResultRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeInvocationResultRequest::getRegionId() const { + return regionId_; +} + +void DescribeInvocationResultRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/DescribeInvocationResultResult.cc b/swas-open/src/model/DescribeInvocationResultResult.cc new file mode 100644 index 000000000..51801df57 --- /dev/null +++ b/swas-open/src/model/DescribeInvocationResultResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeInvocationResultResult::DescribeInvocationResultResult() : + ServiceResult() +{} + +DescribeInvocationResultResult::DescribeInvocationResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationResultResult::~DescribeInvocationResultResult() +{} + +void DescribeInvocationResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto invocationResultNode = value["InvocationResult"]; + if(!invocationResultNode["StartTime"].isNull()) + invocationResult_.startTime = invocationResultNode["StartTime"].asString(); + if(!invocationResultNode["FinishedTime"].isNull()) + invocationResult_.finishedTime = invocationResultNode["FinishedTime"].asString(); + if(!invocationResultNode["InvocationStatus"].isNull()) + invocationResult_.invocationStatus = invocationResultNode["InvocationStatus"].asString(); + if(!invocationResultNode["ExitCode"].isNull()) + invocationResult_.exitCode = std::stol(invocationResultNode["ExitCode"].asString()); + if(!invocationResultNode["ErrorInfo"].isNull()) + invocationResult_.errorInfo = invocationResultNode["ErrorInfo"].asString(); + if(!invocationResultNode["ErrorCode"].isNull()) + invocationResult_.errorCode = invocationResultNode["ErrorCode"].asString(); + if(!invocationResultNode["InvokeId"].isNull()) + invocationResult_.invokeId = invocationResultNode["InvokeId"].asString(); + if(!invocationResultNode["InvokeRecordStatus"].isNull()) + invocationResult_.invokeRecordStatus = invocationResultNode["InvokeRecordStatus"].asString(); + if(!invocationResultNode["InvokeUser"].isNull()) + invocationResult_.invokeUser = invocationResultNode["InvokeUser"].asString(); + if(!invocationResultNode["Output"].isNull()) + invocationResult_.output = invocationResultNode["Output"].asString(); + if(!invocationResultNode["InstanceId"].isNull()) + invocationResult_.instanceId = invocationResultNode["InstanceId"].asString(); + +} + +DescribeInvocationResultResult::InvocationResult DescribeInvocationResultResult::getInvocationResult()const +{ + return invocationResult_; +} + diff --git a/swas-open/src/model/DescribeInvocationsRequest.cc b/swas-open/src/model/DescribeInvocationsRequest.cc new file mode 100644 index 000000000..f7338949e --- /dev/null +++ b/swas-open/src/model/DescribeInvocationsRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::DescribeInvocationsRequest; + +DescribeInvocationsRequest::DescribeInvocationsRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "DescribeInvocations") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInvocationsRequest::~DescribeInvocationsRequest() {} + +std::string DescribeInvocationsRequest::getInvokeStatus() const { + return invokeStatus_; +} + +void DescribeInvocationsRequest::setInvokeStatus(const std::string &invokeStatus) { + invokeStatus_ = invokeStatus; + setParameter(std::string("InvokeStatus"), invokeStatus); +} + +int DescribeInvocationsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeInvocationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeInvocationsRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInvocationsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeInvocationsRequest::getRegionId() const { + return regionId_; +} + +void DescribeInvocationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeInvocationsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeInvocationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/DescribeInvocationsResult.cc b/swas-open/src/model/DescribeInvocationsResult.cc new file mode 100644 index 000000000..f3e7c7dbb --- /dev/null +++ b/swas-open/src/model/DescribeInvocationsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +DescribeInvocationsResult::DescribeInvocationsResult() : + ServiceResult() +{} + +DescribeInvocationsResult::DescribeInvocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationsResult::~DescribeInvocationsResult() +{} + +void DescribeInvocationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInvocationsNode = value["Invocations"]["Invocation"]; + for (auto valueInvocationsInvocation : allInvocationsNode) + { + Invocation invocationsObject; + if(!valueInvocationsInvocation["CreationTime"].isNull()) + invocationsObject.creationTime = valueInvocationsInvocation["CreationTime"].asString(); + if(!valueInvocationsInvocation["InvocationStatus"].isNull()) + invocationsObject.invocationStatus = valueInvocationsInvocation["InvocationStatus"].asString(); + if(!valueInvocationsInvocation["CommandType"].isNull()) + invocationsObject.commandType = valueInvocationsInvocation["CommandType"].asString(); + if(!valueInvocationsInvocation["CommandContent"].isNull()) + invocationsObject.commandContent = valueInvocationsInvocation["CommandContent"].asString(); + if(!valueInvocationsInvocation["Parameters"].isNull()) + invocationsObject.parameters = valueInvocationsInvocation["Parameters"].asString(); + if(!valueInvocationsInvocation["InvokeStatus"].isNull()) + invocationsObject.invokeStatus = valueInvocationsInvocation["InvokeStatus"].asString(); + if(!valueInvocationsInvocation["InvokeId"].isNull()) + invocationsObject.invokeId = valueInvocationsInvocation["InvokeId"].asString(); + if(!valueInvocationsInvocation["CommandName"].isNull()) + invocationsObject.commandName = valueInvocationsInvocation["CommandName"].asString(); + invocations_.push_back(invocationsObject); + } + 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 DescribeInvocationsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeInvocationsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeInvocationsResult::getInvocations()const +{ + return invocations_; +} + +int DescribeInvocationsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/swas-open/src/model/InstallCloudAssistantRequest.cc b/swas-open/src/model/InstallCloudAssistantRequest.cc new file mode 100644 index 000000000..e564f439e --- /dev/null +++ b/swas-open/src/model/InstallCloudAssistantRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::InstallCloudAssistantRequest; + +InstallCloudAssistantRequest::InstallCloudAssistantRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "InstallCloudAssistant") { + setMethod(HttpRequest::Method::Post); +} + +InstallCloudAssistantRequest::~InstallCloudAssistantRequest() {} + +std::string InstallCloudAssistantRequest::getSite() const { + return site_; +} + +void InstallCloudAssistantRequest::setSite(const std::string &site) { + site_ = site; + setParameter(std::string("Site"), site); +} + +std::string InstallCloudAssistantRequest::getRegionId() const { + return regionId_; +} + +void InstallCloudAssistantRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector InstallCloudAssistantRequest::getInstanceIds() const { + return instanceIds_; +} + +void InstallCloudAssistantRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; + for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) { + setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]); + } +} + diff --git a/swas-open/src/model/InstallCloudAssistantResult.cc b/swas-open/src/model/InstallCloudAssistantResult.cc new file mode 100644 index 000000000..6fd803d66 --- /dev/null +++ b/swas-open/src/model/InstallCloudAssistantResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +InstallCloudAssistantResult::InstallCloudAssistantResult() : + ServiceResult() +{} + +InstallCloudAssistantResult::InstallCloudAssistantResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallCloudAssistantResult::~InstallCloudAssistantResult() +{} + +void InstallCloudAssistantResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ListDisksRequest.cc b/swas-open/src/model/ListDisksRequest.cc new file mode 100644 index 000000000..54ecc735a --- /dev/null +++ b/swas-open/src/model/ListDisksRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ListDisksRequest; + +ListDisksRequest::ListDisksRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListDisks") { + setMethod(HttpRequest::Method::Post); +} + +ListDisksRequest::~ListDisksRequest() {} + +int ListDisksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDisksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListDisksRequest::getInstanceId() const { + return instanceId_; +} + +void ListDisksRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListDisksRequest::getRegionId() const { + return regionId_; +} + +void ListDisksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListDisksRequest::getPageSize() const { + return pageSize_; +} + +void ListDisksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListDisksRequest::getDiskIds() const { + return diskIds_; +} + +void ListDisksRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); +} + diff --git a/swas-open/src/model/ListDisksResult.cc b/swas-open/src/model/ListDisksResult.cc new file mode 100644 index 000000000..746e44570 --- /dev/null +++ b/swas-open/src/model/ListDisksResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListDisksResult::ListDisksResult() : + ServiceResult() +{} + +ListDisksResult::ListDisksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDisksResult::~ListDisksResult() +{} + +void ListDisksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDisksNode = value["Disks"]["Disk"]; + for (auto valueDisksDisk : allDisksNode) + { + Disk disksObject; + if(!valueDisksDisk["CreationTime"].isNull()) + disksObject.creationTime = valueDisksDisk["CreationTime"].asString(); + if(!valueDisksDisk["Status"].isNull()) + disksObject.status = valueDisksDisk["Status"].asString(); + if(!valueDisksDisk["Device"].isNull()) + disksObject.device = valueDisksDisk["Device"].asString(); + if(!valueDisksDisk["Size"].isNull()) + disksObject.size = std::stoi(valueDisksDisk["Size"].asString()); + if(!valueDisksDisk["DiskName"].isNull()) + disksObject.diskName = valueDisksDisk["DiskName"].asString(); + if(!valueDisksDisk["DiskChargeType"].isNull()) + disksObject.diskChargeType = valueDisksDisk["DiskChargeType"].asString(); + if(!valueDisksDisk["DiskType"].isNull()) + disksObject.diskType = valueDisksDisk["DiskType"].asString(); + if(!valueDisksDisk["Category"].isNull()) + disksObject.category = valueDisksDisk["Category"].asString(); + if(!valueDisksDisk["DiskId"].isNull()) + disksObject.diskId = valueDisksDisk["DiskId"].asString(); + if(!valueDisksDisk["InstanceId"].isNull()) + disksObject.instanceId = valueDisksDisk["InstanceId"].asString(); + if(!valueDisksDisk["RegionId"].isNull()) + disksObject.regionId = valueDisksDisk["RegionId"].asString(); + disks_.push_back(disksObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListDisksResult::getTotalCount()const +{ + return totalCount_; +} + +int ListDisksResult::getPageSize()const +{ + return pageSize_; +} + +int ListDisksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListDisksResult::getDisks()const +{ + return disks_; +} + diff --git a/swas-open/src/model/ListFirewallRulesRequest.cc b/swas-open/src/model/ListFirewallRulesRequest.cc new file mode 100644 index 000000000..578a8127a --- /dev/null +++ b/swas-open/src/model/ListFirewallRulesRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ListFirewallRulesRequest; + +ListFirewallRulesRequest::ListFirewallRulesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListFirewallRules") { + setMethod(HttpRequest::Method::Post); +} + +ListFirewallRulesRequest::~ListFirewallRulesRequest() {} + +int ListFirewallRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListFirewallRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListFirewallRulesRequest::getInstanceId() const { + return instanceId_; +} + +void ListFirewallRulesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListFirewallRulesRequest::getRegionId() const { + return regionId_; +} + +void ListFirewallRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListFirewallRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListFirewallRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/swas-open/src/model/ListFirewallRulesResult.cc b/swas-open/src/model/ListFirewallRulesResult.cc new file mode 100644 index 000000000..e8e005b37 --- /dev/null +++ b/swas-open/src/model/ListFirewallRulesResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListFirewallRulesResult::ListFirewallRulesResult() : + ServiceResult() +{} + +ListFirewallRulesResult::ListFirewallRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFirewallRulesResult::~ListFirewallRulesResult() +{} + +void ListFirewallRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFirewallRulesNode = value["FirewallRules"]["FirewallRule"]; + for (auto valueFirewallRulesFirewallRule : allFirewallRulesNode) + { + FirewallRule firewallRulesObject; + if(!valueFirewallRulesFirewallRule["Remark"].isNull()) + firewallRulesObject.remark = valueFirewallRulesFirewallRule["Remark"].asString(); + if(!valueFirewallRulesFirewallRule["Port"].isNull()) + firewallRulesObject.port = valueFirewallRulesFirewallRule["Port"].asString(); + if(!valueFirewallRulesFirewallRule["RuleId"].isNull()) + firewallRulesObject.ruleId = valueFirewallRulesFirewallRule["RuleId"].asString(); + if(!valueFirewallRulesFirewallRule["RuleProtocol"].isNull()) + firewallRulesObject.ruleProtocol = valueFirewallRulesFirewallRule["RuleProtocol"].asString(); + firewallRules_.push_back(firewallRulesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListFirewallRulesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListFirewallRulesResult::getPageSize()const +{ + return pageSize_; +} + +int ListFirewallRulesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListFirewallRulesResult::getFirewallRules()const +{ + return firewallRules_; +} + diff --git a/swas-open/src/model/ListImagesRequest.cc b/swas-open/src/model/ListImagesRequest.cc new file mode 100644 index 000000000..644cf3ae8 --- /dev/null +++ b/swas-open/src/model/ListImagesRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ListImagesRequest; + +ListImagesRequest::ListImagesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListImages") { + setMethod(HttpRequest::Method::Post); +} + +ListImagesRequest::~ListImagesRequest() {} + +std::string ListImagesRequest::getImageType() const { + return imageType_; +} + +void ListImagesRequest::setImageType(const std::string &imageType) { + imageType_ = imageType; + setParameter(std::string("ImageType"), imageType); +} + +std::string ListImagesRequest::getRegionId() const { + return regionId_; +} + +void ListImagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListImagesRequest::getImageIds() const { + return imageIds_; +} + +void ListImagesRequest::setImageIds(const std::string &imageIds) { + imageIds_ = imageIds; + setParameter(std::string("ImageIds"), imageIds); +} + diff --git a/swas-open/src/model/ListImagesResult.cc b/swas-open/src/model/ListImagesResult.cc new file mode 100644 index 000000000..995ef0cd6 --- /dev/null +++ b/swas-open/src/model/ListImagesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListImagesResult::ListImagesResult() : + ServiceResult() +{} + +ListImagesResult::ListImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImagesResult::~ListImagesResult() +{} + +void ListImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["ImageType"].isNull()) + imagesObject.imageType = valueImagesImage["ImageType"].asString(); + if(!valueImagesImage["Description"].isNull()) + imagesObject.description = valueImagesImage["Description"].asString(); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["Platform"].isNull()) + imagesObject.platform = valueImagesImage["Platform"].asString(); + images_.push_back(imagesObject); + } + +} + +std::vector ListImagesResult::getImages()const +{ + return images_; +} + diff --git a/swas-open/src/model/ListInstancePlansModificationRequest.cc b/swas-open/src/model/ListInstancePlansModificationRequest.cc new file mode 100644 index 000000000..006c678a7 --- /dev/null +++ b/swas-open/src/model/ListInstancePlansModificationRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::ListInstancePlansModificationRequest; + +ListInstancePlansModificationRequest::ListInstancePlansModificationRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListInstancePlansModification") { + setMethod(HttpRequest::Method::Post); +} + +ListInstancePlansModificationRequest::~ListInstancePlansModificationRequest() {} + +std::string ListInstancePlansModificationRequest::getInstanceId() const { + return instanceId_; +} + +void ListInstancePlansModificationRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListInstancePlansModificationRequest::getRegionId() const { + return regionId_; +} + +void ListInstancePlansModificationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/ListInstancePlansModificationResult.cc b/swas-open/src/model/ListInstancePlansModificationResult.cc new file mode 100644 index 000000000..40622ba81 --- /dev/null +++ b/swas-open/src/model/ListInstancePlansModificationResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListInstancePlansModificationResult::ListInstancePlansModificationResult() : + ServiceResult() +{} + +ListInstancePlansModificationResult::ListInstancePlansModificationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancePlansModificationResult::~ListInstancePlansModificationResult() +{} + +void ListInstancePlansModificationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPlansNode = value["Plans"]["Plan"]; + for (auto valuePlansPlan : allPlansNode) + { + Plan plansObject; + if(!valuePlansPlan["Core"].isNull()) + plansObject.core = std::stoi(valuePlansPlan["Core"].asString()); + if(!valuePlansPlan["Bandwidth"].isNull()) + plansObject.bandwidth = std::stoi(valuePlansPlan["Bandwidth"].asString()); + if(!valuePlansPlan["DiskSize"].isNull()) + plansObject.diskSize = std::stoi(valuePlansPlan["DiskSize"].asString()); + if(!valuePlansPlan["Flow"].isNull()) + plansObject.flow = std::stoi(valuePlansPlan["Flow"].asString()); + if(!valuePlansPlan["Memory"].isNull()) + plansObject.memory = std::stoi(valuePlansPlan["Memory"].asString()); + if(!valuePlansPlan["PlanId"].isNull()) + plansObject.planId = valuePlansPlan["PlanId"].asString(); + if(!valuePlansPlan["DiskType"].isNull()) + plansObject.diskType = valuePlansPlan["DiskType"].asString(); + if(!valuePlansPlan["OriginPrice"].isNull()) + plansObject.originPrice = valuePlansPlan["OriginPrice"].asString(); + if(!valuePlansPlan["Currency"].isNull()) + plansObject.currency = valuePlansPlan["Currency"].asString(); + if(!valuePlansPlan["SupportPlatform"].isNull()) + plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString(); + plans_.push_back(plansObject); + } + +} + +std::vector ListInstancePlansModificationResult::getPlans()const +{ + return plans_; +} + diff --git a/swas-open/src/model/ListInstancesRequest.cc b/swas-open/src/model/ListInstancesRequest.cc new file mode 100644 index 000000000..96a4bcc8f --- /dev/null +++ b/swas-open/src/model/ListInstancesRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListInstances") { + setMethod(HttpRequest::Method::Post); +} + +ListInstancesRequest::~ListInstancesRequest() {} + +int ListInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListInstancesRequest::getRegionId() const { + return regionId_; +} + +void ListInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListInstancesRequest::getInstanceIds() const { + return instanceIds_; +} + +void ListInstancesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + +int ListInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListInstancesRequest::getPublicIpAddresses() const { + return publicIpAddresses_; +} + +void ListInstancesRequest::setPublicIpAddresses(const std::string &publicIpAddresses) { + publicIpAddresses_ = publicIpAddresses; + setParameter(std::string("PublicIpAddresses"), publicIpAddresses); +} + +std::string ListInstancesRequest::getChargeType() const { + return chargeType_; +} + +void ListInstancesRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + diff --git a/swas-open/src/model/ListInstancesResult.cc b/swas-open/src/model/ListInstancesResult.cc new file mode 100644 index 000000000..9623e3438 --- /dev/null +++ b/swas-open/src/model/ListInstancesResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListInstancesResult::ListInstancesResult() : + ServiceResult() +{} + +ListInstancesResult::ListInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesResult::~ListInstancesResult() +{} + +void ListInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstancesNode = value["Instances"]["Instance"]; + for (auto valueInstancesInstance : allInstancesNode) + { + Instance instancesObject; + if(!valueInstancesInstance["Status"].isNull()) + instancesObject.status = valueInstancesInstance["Status"].asString(); + if(!valueInstancesInstance["CreationTime"].isNull()) + instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString(); + if(!valueInstancesInstance["InnerIpAddress"].isNull()) + instancesObject.innerIpAddress = valueInstancesInstance["InnerIpAddress"].asString(); + if(!valueInstancesInstance["ChargeType"].isNull()) + instancesObject.chargeType = valueInstancesInstance["ChargeType"].asString(); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); + if(!valueInstancesInstance["PlanId"].isNull()) + instancesObject.planId = valueInstancesInstance["PlanId"].asString(); + if(!valueInstancesInstance["PublicIpAddress"].isNull()) + instancesObject.publicIpAddress = valueInstancesInstance["PublicIpAddress"].asString(); + if(!valueInstancesInstance["RegionId"].isNull()) + instancesObject.regionId = valueInstancesInstance["RegionId"].asString(); + if(!valueInstancesInstance["ExpiredTime"].isNull()) + instancesObject.expiredTime = valueInstancesInstance["ExpiredTime"].asString(); + if(!valueInstancesInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["BusinessStatus"].isNull()) + instancesObject.businessStatus = valueInstancesInstance["BusinessStatus"].asString(); + if(!valueInstancesInstance["DdosStatus"].isNull()) + instancesObject.ddosStatus = valueInstancesInstance["DdosStatus"].asString(); + if(!valueInstancesInstance["ImageId"].isNull()) + instancesObject.imageId = valueInstancesInstance["ImageId"].asString(); + instances_.push_back(instancesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector ListInstancesResult::getInstances()const +{ + return instances_; +} + +int ListInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int ListInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/swas-open/src/model/ListInstancesTrafficPackagesRequest.cc b/swas-open/src/model/ListInstancesTrafficPackagesRequest.cc new file mode 100644 index 000000000..7d8545a94 --- /dev/null +++ b/swas-open/src/model/ListInstancesTrafficPackagesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::ListInstancesTrafficPackagesRequest; + +ListInstancesTrafficPackagesRequest::ListInstancesTrafficPackagesRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListInstancesTrafficPackages") { + setMethod(HttpRequest::Method::Post); +} + +ListInstancesTrafficPackagesRequest::~ListInstancesTrafficPackagesRequest() {} + +std::string ListInstancesTrafficPackagesRequest::getRegionId() const { + return regionId_; +} + +void ListInstancesTrafficPackagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListInstancesTrafficPackagesRequest::getInstanceIds() const { + return instanceIds_; +} + +void ListInstancesTrafficPackagesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + diff --git a/swas-open/src/model/ListInstancesTrafficPackagesResult.cc b/swas-open/src/model/ListInstancesTrafficPackagesResult.cc new file mode 100644 index 000000000..2224651e6 --- /dev/null +++ b/swas-open/src/model/ListInstancesTrafficPackagesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListInstancesTrafficPackagesResult::ListInstancesTrafficPackagesResult() : + ServiceResult() +{} + +ListInstancesTrafficPackagesResult::ListInstancesTrafficPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstancesTrafficPackagesResult::~ListInstancesTrafficPackagesResult() +{} + +void ListInstancesTrafficPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceTrafficPackageUsagesNode = value["InstanceTrafficPackageUsages"]["InstanceTrafficPackageUsage"]; + for (auto valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage : allInstanceTrafficPackageUsagesNode) + { + InstanceTrafficPackageUsage instanceTrafficPackageUsagesObject; + if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["InstanceId"].isNull()) + instanceTrafficPackageUsagesObject.instanceId = valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["InstanceId"].asString(); + if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficUsed"].isNull()) + instanceTrafficPackageUsagesObject.trafficUsed = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficUsed"].asString()); + if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageTotal"].isNull()) + instanceTrafficPackageUsagesObject.trafficPackageTotal = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageTotal"].asString()); + if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageRemaining"].isNull()) + instanceTrafficPackageUsagesObject.trafficPackageRemaining = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficPackageRemaining"].asString()); + if(!valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficOverflow"].isNull()) + instanceTrafficPackageUsagesObject.trafficOverflow = std::stol(valueInstanceTrafficPackageUsagesInstanceTrafficPackageUsage["TrafficOverflow"].asString()); + instanceTrafficPackageUsages_.push_back(instanceTrafficPackageUsagesObject); + } + +} + +std::vector ListInstancesTrafficPackagesResult::getInstanceTrafficPackageUsages()const +{ + return instanceTrafficPackageUsages_; +} + diff --git a/swas-open/src/model/ListPlansRequest.cc b/swas-open/src/model/ListPlansRequest.cc new file mode 100644 index 000000000..ef2167cbe --- /dev/null +++ b/swas-open/src/model/ListPlansRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::ListPlansRequest; + +ListPlansRequest::ListPlansRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListPlans") { + setMethod(HttpRequest::Method::Post); +} + +ListPlansRequest::~ListPlansRequest() {} + +std::string ListPlansRequest::getRegionId() const { + return regionId_; +} + +void ListPlansRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/ListPlansResult.cc b/swas-open/src/model/ListPlansResult.cc new file mode 100644 index 000000000..879ed6e40 --- /dev/null +++ b/swas-open/src/model/ListPlansResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListPlansResult::ListPlansResult() : + ServiceResult() +{} + +ListPlansResult::ListPlansResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPlansResult::~ListPlansResult() +{} + +void ListPlansResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPlansNode = value["Plans"]["Plan"]; + for (auto valuePlansPlan : allPlansNode) + { + Plan plansObject; + if(!valuePlansPlan["Core"].isNull()) + plansObject.core = std::stoi(valuePlansPlan["Core"].asString()); + if(!valuePlansPlan["Bandwidth"].isNull()) + plansObject.bandwidth = std::stoi(valuePlansPlan["Bandwidth"].asString()); + if(!valuePlansPlan["DiskSize"].isNull()) + plansObject.diskSize = std::stoi(valuePlansPlan["DiskSize"].asString()); + if(!valuePlansPlan["Flow"].isNull()) + plansObject.flow = std::stoi(valuePlansPlan["Flow"].asString()); + if(!valuePlansPlan["Memory"].isNull()) + plansObject.memory = std::stoi(valuePlansPlan["Memory"].asString()); + if(!valuePlansPlan["PlanId"].isNull()) + plansObject.planId = valuePlansPlan["PlanId"].asString(); + if(!valuePlansPlan["DiskType"].isNull()) + plansObject.diskType = valuePlansPlan["DiskType"].asString(); + if(!valuePlansPlan["OriginPrice"].isNull()) + plansObject.originPrice = valuePlansPlan["OriginPrice"].asString(); + if(!valuePlansPlan["Currency"].isNull()) + plansObject.currency = valuePlansPlan["Currency"].asString(); + if(!valuePlansPlan["SupportPlatform"].isNull()) + plansObject.supportPlatform = valuePlansPlan["SupportPlatform"].asString(); + plans_.push_back(plansObject); + } + +} + +std::vector ListPlansResult::getPlans()const +{ + return plans_; +} + diff --git a/swas-open/src/model/ListRegionsRequest.cc b/swas-open/src/model/ListRegionsRequest.cc new file mode 100644 index 000000000..586b018fa --- /dev/null +++ b/swas-open/src/model/ListRegionsRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::ListRegionsRequest; + +ListRegionsRequest::ListRegionsRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListRegions") { + setMethod(HttpRequest::Method::Post); +} + +ListRegionsRequest::~ListRegionsRequest() {} + diff --git a/swas-open/src/model/ListRegionsResult.cc b/swas-open/src/model/ListRegionsResult.cc new file mode 100644 index 000000000..3d3a6c463 --- /dev/null +++ b/swas-open/src/model/ListRegionsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListRegionsResult::ListRegionsResult() : + ServiceResult() +{} + +ListRegionsResult::ListRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRegionsResult::~ListRegionsResult() +{} + +void ListRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector ListRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/swas-open/src/model/ListSnapshotsRequest.cc b/swas-open/src/model/ListSnapshotsRequest.cc new file mode 100644 index 000000000..5fa8642fa --- /dev/null +++ b/swas-open/src/model/ListSnapshotsRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ListSnapshotsRequest; + +ListSnapshotsRequest::ListSnapshotsRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ListSnapshots") { + setMethod(HttpRequest::Method::Post); +} + +ListSnapshotsRequest::~ListSnapshotsRequest() {} + +std::string ListSnapshotsRequest::getSnapshotIds() const { + return snapshotIds_; +} + +void ListSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) { + snapshotIds_ = snapshotIds; + setParameter(std::string("SnapshotIds"), snapshotIds); +} + +int ListSnapshotsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSnapshotsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListSnapshotsRequest::getInstanceId() const { + return instanceId_; +} + +void ListSnapshotsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ListSnapshotsRequest::getRegionId() const { + return regionId_; +} + +void ListSnapshotsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListSnapshotsRequest::getPageSize() const { + return pageSize_; +} + +void ListSnapshotsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListSnapshotsRequest::getDiskId() const { + return diskId_; +} + +void ListSnapshotsRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + diff --git a/swas-open/src/model/ListSnapshotsResult.cc b/swas-open/src/model/ListSnapshotsResult.cc new file mode 100644 index 000000000..2b66dc139 --- /dev/null +++ b/swas-open/src/model/ListSnapshotsResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ListSnapshotsResult::ListSnapshotsResult() : + ServiceResult() +{} + +ListSnapshotsResult::ListSnapshotsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSnapshotsResult::~ListSnapshotsResult() +{} + +void ListSnapshotsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSnapshotsNode = value["Snapshots"]["Snapshot"]; + for (auto valueSnapshotsSnapshot : allSnapshotsNode) + { + Snapshot snapshotsObject; + if(!valueSnapshotsSnapshot["Status"].isNull()) + snapshotsObject.status = valueSnapshotsSnapshot["Status"].asString(); + if(!valueSnapshotsSnapshot["CreationTime"].isNull()) + snapshotsObject.creationTime = valueSnapshotsSnapshot["CreationTime"].asString(); + if(!valueSnapshotsSnapshot["SourceDiskId"].isNull()) + snapshotsObject.sourceDiskId = valueSnapshotsSnapshot["SourceDiskId"].asString(); + if(!valueSnapshotsSnapshot["SnapshotName"].isNull()) + snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString(); + if(!valueSnapshotsSnapshot["Progress"].isNull()) + snapshotsObject.progress = valueSnapshotsSnapshot["Progress"].asString(); + if(!valueSnapshotsSnapshot["Remark"].isNull()) + snapshotsObject.remark = valueSnapshotsSnapshot["Remark"].asString(); + if(!valueSnapshotsSnapshot["SnapshotId"].isNull()) + snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString(); + if(!valueSnapshotsSnapshot["SourceDiskType"].isNull()) + snapshotsObject.sourceDiskType = valueSnapshotsSnapshot["SourceDiskType"].asString(); + if(!valueSnapshotsSnapshot["RegionId"].isNull()) + snapshotsObject.regionId = valueSnapshotsSnapshot["RegionId"].asString(); + snapshots_.push_back(snapshotsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListSnapshotsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListSnapshotsResult::getPageSize()const +{ + return pageSize_; +} + +int ListSnapshotsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListSnapshotsResult::getSnapshots()const +{ + return snapshots_; +} + diff --git a/swas-open/src/model/LoginInstanceRequest.cc b/swas-open/src/model/LoginInstanceRequest.cc new file mode 100644 index 000000000..61208877f --- /dev/null +++ b/swas-open/src/model/LoginInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::LoginInstanceRequest; + +LoginInstanceRequest::LoginInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "LoginInstance") { + setMethod(HttpRequest::Method::Post); +} + +LoginInstanceRequest::~LoginInstanceRequest() {} + +std::string LoginInstanceRequest::getPassword() const { + return password_; +} + +void LoginInstanceRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string LoginInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void LoginInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string LoginInstanceRequest::getRegionId() const { + return regionId_; +} + +void LoginInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string LoginInstanceRequest::getUsername() const { + return username_; +} + +void LoginInstanceRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/swas-open/src/model/LoginInstanceResult.cc b/swas-open/src/model/LoginInstanceResult.cc new file mode 100644 index 000000000..9b28378d7 --- /dev/null +++ b/swas-open/src/model/LoginInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +LoginInstanceResult::LoginInstanceResult() : + ServiceResult() +{} + +LoginInstanceResult::LoginInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LoginInstanceResult::~LoginInstanceResult() +{} + +void LoginInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RedirectUrl"].isNull()) + redirectUrl_ = value["RedirectUrl"].asString(); + +} + +std::string LoginInstanceResult::getRedirectUrl()const +{ + return redirectUrl_; +} + diff --git a/swas-open/src/model/ModifyDatabaseInstanceDescriptionRequest.cc b/swas-open/src/model/ModifyDatabaseInstanceDescriptionRequest.cc new file mode 100644 index 000000000..b6e3d4e78 --- /dev/null +++ b/swas-open/src/model/ModifyDatabaseInstanceDescriptionRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ModifyDatabaseInstanceDescriptionRequest; + +ModifyDatabaseInstanceDescriptionRequest::ModifyDatabaseInstanceDescriptionRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ModifyDatabaseInstanceDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDatabaseInstanceDescriptionRequest::~ModifyDatabaseInstanceDescriptionRequest() {} + +std::string ModifyDatabaseInstanceDescriptionRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDatabaseInstanceDescriptionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDatabaseInstanceDescriptionRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void ModifyDatabaseInstanceDescriptionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string ModifyDatabaseInstanceDescriptionRequest::getRegionId() const { + return regionId_; +} + +void ModifyDatabaseInstanceDescriptionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDatabaseInstanceDescriptionRequest::getDatabaseInstanceDescription() const { + return databaseInstanceDescription_; +} + +void ModifyDatabaseInstanceDescriptionRequest::setDatabaseInstanceDescription(const std::string &databaseInstanceDescription) { + databaseInstanceDescription_ = databaseInstanceDescription; + setParameter(std::string("DatabaseInstanceDescription"), databaseInstanceDescription); +} + diff --git a/swas-open/src/model/ModifyDatabaseInstanceDescriptionResult.cc b/swas-open/src/model/ModifyDatabaseInstanceDescriptionResult.cc new file mode 100644 index 000000000..4ea0df84c --- /dev/null +++ b/swas-open/src/model/ModifyDatabaseInstanceDescriptionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ModifyDatabaseInstanceDescriptionResult::ModifyDatabaseInstanceDescriptionResult() : + ServiceResult() +{} + +ModifyDatabaseInstanceDescriptionResult::ModifyDatabaseInstanceDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDatabaseInstanceDescriptionResult::~ModifyDatabaseInstanceDescriptionResult() +{} + +void ModifyDatabaseInstanceDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ModifyDatabaseInstanceParameterRequest.cc b/swas-open/src/model/ModifyDatabaseInstanceParameterRequest.cc new file mode 100644 index 000000000..4ca39b786 --- /dev/null +++ b/swas-open/src/model/ModifyDatabaseInstanceParameterRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ModifyDatabaseInstanceParameterRequest; + +ModifyDatabaseInstanceParameterRequest::ModifyDatabaseInstanceParameterRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ModifyDatabaseInstanceParameter") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDatabaseInstanceParameterRequest::~ModifyDatabaseInstanceParameterRequest() {} + +std::string ModifyDatabaseInstanceParameterRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDatabaseInstanceParameterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDatabaseInstanceParameterRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void ModifyDatabaseInstanceParameterRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string ModifyDatabaseInstanceParameterRequest::getRegionId() const { + return regionId_; +} + +void ModifyDatabaseInstanceParameterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ModifyDatabaseInstanceParameterRequest::getForceRestart() const { + return forceRestart_; +} + +void ModifyDatabaseInstanceParameterRequest::setForceRestart(bool forceRestart) { + forceRestart_ = forceRestart; + setParameter(std::string("ForceRestart"), forceRestart ? "true" : "false"); +} + +std::string ModifyDatabaseInstanceParameterRequest::getParameters() const { + return parameters_; +} + +void ModifyDatabaseInstanceParameterRequest::setParameters(const std::string ¶meters) { + parameters_ = parameters; + setParameter(std::string("Parameters"), parameters); +} + diff --git a/swas-open/src/model/ModifyDatabaseInstanceParameterResult.cc b/swas-open/src/model/ModifyDatabaseInstanceParameterResult.cc new file mode 100644 index 000000000..a6f86bcc0 --- /dev/null +++ b/swas-open/src/model/ModifyDatabaseInstanceParameterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ModifyDatabaseInstanceParameterResult::ModifyDatabaseInstanceParameterResult() : + ServiceResult() +{} + +ModifyDatabaseInstanceParameterResult::ModifyDatabaseInstanceParameterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDatabaseInstanceParameterResult::~ModifyDatabaseInstanceParameterResult() +{} + +void ModifyDatabaseInstanceParameterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ModifyImageShareStatusRequest.cc b/swas-open/src/model/ModifyImageShareStatusRequest.cc new file mode 100644 index 000000000..5161c73dd --- /dev/null +++ b/swas-open/src/model/ModifyImageShareStatusRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ModifyImageShareStatusRequest; + +ModifyImageShareStatusRequest::ModifyImageShareStatusRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ModifyImageShareStatus") { + setMethod(HttpRequest::Method::Post); +} + +ModifyImageShareStatusRequest::~ModifyImageShareStatusRequest() {} + +std::string ModifyImageShareStatusRequest::getImageId() const { + return imageId_; +} + +void ModifyImageShareStatusRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ModifyImageShareStatusRequest::getClientToken() const { + return clientToken_; +} + +void ModifyImageShareStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyImageShareStatusRequest::getRegionId() const { + return regionId_; +} + +void ModifyImageShareStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyImageShareStatusRequest::getOperation() const { + return operation_; +} + +void ModifyImageShareStatusRequest::setOperation(const std::string &operation) { + operation_ = operation; + setParameter(std::string("Operation"), operation); +} + diff --git a/swas-open/src/model/ModifyImageShareStatusResult.cc b/swas-open/src/model/ModifyImageShareStatusResult.cc new file mode 100644 index 000000000..48286511c --- /dev/null +++ b/swas-open/src/model/ModifyImageShareStatusResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ModifyImageShareStatusResult::ModifyImageShareStatusResult() : + ServiceResult() +{} + +ModifyImageShareStatusResult::ModifyImageShareStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageShareStatusResult::~ModifyImageShareStatusResult() +{} + +void ModifyImageShareStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/RebootInstanceRequest.cc b/swas-open/src/model/RebootInstanceRequest.cc new file mode 100644 index 000000000..729f38e32 --- /dev/null +++ b/swas-open/src/model/RebootInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::RebootInstanceRequest; + +RebootInstanceRequest::RebootInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "RebootInstance") { + setMethod(HttpRequest::Method::Post); +} + +RebootInstanceRequest::~RebootInstanceRequest() {} + +std::string RebootInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RebootInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RebootInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RebootInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RebootInstanceRequest::getRegionId() const { + return regionId_; +} + +void RebootInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/RebootInstanceResult.cc b/swas-open/src/model/RebootInstanceResult.cc new file mode 100644 index 000000000..2e4280a4d --- /dev/null +++ b/swas-open/src/model/RebootInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +RebootInstanceResult::RebootInstanceResult() : + ServiceResult() +{} + +RebootInstanceResult::RebootInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RebootInstanceResult::~RebootInstanceResult() +{} + +void RebootInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ReleasePublicConnectionRequest.cc b/swas-open/src/model/ReleasePublicConnectionRequest.cc new file mode 100644 index 000000000..8fdc89f20 --- /dev/null +++ b/swas-open/src/model/ReleasePublicConnectionRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ReleasePublicConnectionRequest; + +ReleasePublicConnectionRequest::ReleasePublicConnectionRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ReleasePublicConnection") { + setMethod(HttpRequest::Method::Post); +} + +ReleasePublicConnectionRequest::~ReleasePublicConnectionRequest() {} + +std::string ReleasePublicConnectionRequest::getClientToken() const { + return clientToken_; +} + +void ReleasePublicConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ReleasePublicConnectionRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void ReleasePublicConnectionRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string ReleasePublicConnectionRequest::getRegionId() const { + return regionId_; +} + +void ReleasePublicConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/ReleasePublicConnectionResult.cc b/swas-open/src/model/ReleasePublicConnectionResult.cc new file mode 100644 index 000000000..43c5f306f --- /dev/null +++ b/swas-open/src/model/ReleasePublicConnectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ReleasePublicConnectionResult::ReleasePublicConnectionResult() : + ServiceResult() +{} + +ReleasePublicConnectionResult::ReleasePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePublicConnectionResult::~ReleasePublicConnectionResult() +{} + +void ReleasePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/RenewInstanceRequest.cc b/swas-open/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..14bcd9cdf --- /dev/null +++ b/swas-open/src/model/RenewInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "RenewInstance") { + setMethod(HttpRequest::Method::Post); +} + +RenewInstanceRequest::~RenewInstanceRequest() {} + +int RenewInstanceRequest::getPeriod() const { + return period_; +} + +void RenewInstanceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string RenewInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RenewInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RenewInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RenewInstanceRequest::getRegionId() const { + return regionId_; +} + +void RenewInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/RenewInstanceResult.cc b/swas-open/src/model/RenewInstanceResult.cc new file mode 100644 index 000000000..e96f5ea5a --- /dev/null +++ b/swas-open/src/model/RenewInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ResetDatabaseAccountPasswordRequest.cc b/swas-open/src/model/ResetDatabaseAccountPasswordRequest.cc new file mode 100644 index 000000000..d8e46ff92 --- /dev/null +++ b/swas-open/src/model/ResetDatabaseAccountPasswordRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ResetDatabaseAccountPasswordRequest; + +ResetDatabaseAccountPasswordRequest::ResetDatabaseAccountPasswordRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ResetDatabaseAccountPassword") { + setMethod(HttpRequest::Method::Post); +} + +ResetDatabaseAccountPasswordRequest::~ResetDatabaseAccountPasswordRequest() {} + +std::string ResetDatabaseAccountPasswordRequest::getClientToken() const { + return clientToken_; +} + +void ResetDatabaseAccountPasswordRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ResetDatabaseAccountPasswordRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void ResetDatabaseAccountPasswordRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string ResetDatabaseAccountPasswordRequest::getAccountPassword() const { + return accountPassword_; +} + +void ResetDatabaseAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + +std::string ResetDatabaseAccountPasswordRequest::getRegionId() const { + return regionId_; +} + +void ResetDatabaseAccountPasswordRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/ResetDatabaseAccountPasswordResult.cc b/swas-open/src/model/ResetDatabaseAccountPasswordResult.cc new file mode 100644 index 000000000..1ac4e6494 --- /dev/null +++ b/swas-open/src/model/ResetDatabaseAccountPasswordResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ResetDatabaseAccountPasswordResult::ResetDatabaseAccountPasswordResult() : + ServiceResult() +{} + +ResetDatabaseAccountPasswordResult::ResetDatabaseAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDatabaseAccountPasswordResult::~ResetDatabaseAccountPasswordResult() +{} + +void ResetDatabaseAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ResetDiskRequest.cc b/swas-open/src/model/ResetDiskRequest.cc new file mode 100644 index 000000000..049c3bcf2 --- /dev/null +++ b/swas-open/src/model/ResetDiskRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ResetDiskRequest; + +ResetDiskRequest::ResetDiskRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ResetDisk") { + setMethod(HttpRequest::Method::Post); +} + +ResetDiskRequest::~ResetDiskRequest() {} + +std::string ResetDiskRequest::getSnapshotId() const { + return snapshotId_; +} + +void ResetDiskRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); +} + +std::string ResetDiskRequest::getClientToken() const { + return clientToken_; +} + +void ResetDiskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ResetDiskRequest::getRegionId() const { + return regionId_; +} + +void ResetDiskRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ResetDiskRequest::getDiskId() const { + return diskId_; +} + +void ResetDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + diff --git a/swas-open/src/model/ResetDiskResult.cc b/swas-open/src/model/ResetDiskResult.cc new file mode 100644 index 000000000..05bad1f36 --- /dev/null +++ b/swas-open/src/model/ResetDiskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ResetDiskResult::ResetDiskResult() : + ServiceResult() +{} + +ResetDiskResult::ResetDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDiskResult::~ResetDiskResult() +{} + +void ResetDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/ResetSystemRequest.cc b/swas-open/src/model/ResetSystemRequest.cc new file mode 100644 index 000000000..1e4978e59 --- /dev/null +++ b/swas-open/src/model/ResetSystemRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::ResetSystemRequest; + +ResetSystemRequest::ResetSystemRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "ResetSystem") { + setMethod(HttpRequest::Method::Post); +} + +ResetSystemRequest::~ResetSystemRequest() {} + +std::string ResetSystemRequest::getImageId() const { + return imageId_; +} + +void ResetSystemRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ResetSystemRequest::getClientToken() const { + return clientToken_; +} + +void ResetSystemRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ResetSystemRequest::getInstanceId() const { + return instanceId_; +} + +void ResetSystemRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ResetSystemRequest::getRegionId() const { + return regionId_; +} + +void ResetSystemRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/ResetSystemResult.cc b/swas-open/src/model/ResetSystemResult.cc new file mode 100644 index 000000000..1bdd9d9a8 --- /dev/null +++ b/swas-open/src/model/ResetSystemResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +ResetSystemResult::ResetSystemResult() : + ServiceResult() +{} + +ResetSystemResult::ResetSystemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetSystemResult::~ResetSystemResult() +{} + +void ResetSystemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/RestartDatabaseInstanceRequest.cc b/swas-open/src/model/RestartDatabaseInstanceRequest.cc new file mode 100644 index 000000000..99d132e0a --- /dev/null +++ b/swas-open/src/model/RestartDatabaseInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::RestartDatabaseInstanceRequest; + +RestartDatabaseInstanceRequest::RestartDatabaseInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "RestartDatabaseInstance") { + setMethod(HttpRequest::Method::Post); +} + +RestartDatabaseInstanceRequest::~RestartDatabaseInstanceRequest() {} + +std::string RestartDatabaseInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RestartDatabaseInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RestartDatabaseInstanceRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void RestartDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string RestartDatabaseInstanceRequest::getRegionId() const { + return regionId_; +} + +void RestartDatabaseInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/RestartDatabaseInstanceResult.cc b/swas-open/src/model/RestartDatabaseInstanceResult.cc new file mode 100644 index 000000000..f57085e4c --- /dev/null +++ b/swas-open/src/model/RestartDatabaseInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +RestartDatabaseInstanceResult::RestartDatabaseInstanceResult() : + ServiceResult() +{} + +RestartDatabaseInstanceResult::RestartDatabaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDatabaseInstanceResult::~RestartDatabaseInstanceResult() +{} + +void RestartDatabaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/RunCommandRequest.cc b/swas-open/src/model/RunCommandRequest.cc new file mode 100644 index 000000000..447770a2a --- /dev/null +++ b/swas-open/src/model/RunCommandRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::SWAS_OPEN::Model::RunCommandRequest; + +RunCommandRequest::RunCommandRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "RunCommand") { + setMethod(HttpRequest::Method::Post); +} + +RunCommandRequest::~RunCommandRequest() {} + +std::string RunCommandRequest::getWorkingDir() const { + return workingDir_; +} + +void RunCommandRequest::setWorkingDir(const std::string &workingDir) { + workingDir_ = workingDir; + setParameter(std::string("WorkingDir"), workingDir); +} + +std::string RunCommandRequest::getType() const { + return type_; +} + +void RunCommandRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string RunCommandRequest::getCommandContent() const { + return commandContent_; +} + +void RunCommandRequest::setCommandContent(const std::string &commandContent) { + commandContent_ = commandContent; + setParameter(std::string("CommandContent"), commandContent); +} + +int RunCommandRequest::getTimeout() const { + return timeout_; +} + +void RunCommandRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string RunCommandRequest::getRegionId() const { + return regionId_; +} + +void RunCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string RunCommandRequest::getWindowsPasswordName() const { + return windowsPasswordName_; +} + +void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) { + windowsPasswordName_ = windowsPasswordName; + setParameter(std::string("WindowsPasswordName"), windowsPasswordName); +} + +std::string RunCommandRequest::getInstanceId() const { + return instanceId_; +} + +void RunCommandRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RunCommandRequest::getWorkingUser() const { + return workingUser_; +} + +void RunCommandRequest::setWorkingUser(const std::string &workingUser) { + workingUser_ = workingUser; + setParameter(std::string("WorkingUser"), workingUser); +} + +std::string RunCommandRequest::getName() const { + return name_; +} + +void RunCommandRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::map RunCommandRequest::getParameters() const { + return parameters_; +} + +void RunCommandRequest::setParameters(const std::map ¶meters) { + parameters_ = parameters; + for(auto const &iter1 : parameters) { + setParameter(std::string("Parameters") + "." + iter1.first, iter1.second); + } +} + +bool RunCommandRequest::getEnableParameter() const { + return enableParameter_; +} + +void RunCommandRequest::setEnableParameter(bool enableParameter) { + enableParameter_ = enableParameter; + setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false"); +} + diff --git a/swas-open/src/model/RunCommandResult.cc b/swas-open/src/model/RunCommandResult.cc new file mode 100644 index 000000000..1f416de92 --- /dev/null +++ b/swas-open/src/model/RunCommandResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +RunCommandResult::RunCommandResult() : + ServiceResult() +{} + +RunCommandResult::RunCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunCommandResult::~RunCommandResult() +{} + +void RunCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InvokeId"].isNull()) + invokeId_ = value["InvokeId"].asString(); + +} + +std::string RunCommandResult::getInvokeId()const +{ + return invokeId_; +} + diff --git a/swas-open/src/model/StartDatabaseInstanceRequest.cc b/swas-open/src/model/StartDatabaseInstanceRequest.cc new file mode 100644 index 000000000..ff29d3a79 --- /dev/null +++ b/swas-open/src/model/StartDatabaseInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::StartDatabaseInstanceRequest; + +StartDatabaseInstanceRequest::StartDatabaseInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "StartDatabaseInstance") { + setMethod(HttpRequest::Method::Post); +} + +StartDatabaseInstanceRequest::~StartDatabaseInstanceRequest() {} + +std::string StartDatabaseInstanceRequest::getClientToken() const { + return clientToken_; +} + +void StartDatabaseInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StartDatabaseInstanceRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void StartDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string StartDatabaseInstanceRequest::getRegionId() const { + return regionId_; +} + +void StartDatabaseInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/StartDatabaseInstanceResult.cc b/swas-open/src/model/StartDatabaseInstanceResult.cc new file mode 100644 index 000000000..ed8b2e5f2 --- /dev/null +++ b/swas-open/src/model/StartDatabaseInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +StartDatabaseInstanceResult::StartDatabaseInstanceResult() : + ServiceResult() +{} + +StartDatabaseInstanceResult::StartDatabaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartDatabaseInstanceResult::~StartDatabaseInstanceResult() +{} + +void StartDatabaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/StartInstanceRequest.cc b/swas-open/src/model/StartInstanceRequest.cc new file mode 100644 index 000000000..dd4f6f945 --- /dev/null +++ b/swas-open/src/model/StartInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::StartInstanceRequest; + +StartInstanceRequest::StartInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "StartInstance") { + setMethod(HttpRequest::Method::Post); +} + +StartInstanceRequest::~StartInstanceRequest() {} + +std::string StartInstanceRequest::getClientToken() const { + return clientToken_; +} + +void StartInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StartInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StartInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string StartInstanceRequest::getRegionId() const { + return regionId_; +} + +void StartInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/StartInstanceResult.cc b/swas-open/src/model/StartInstanceResult.cc new file mode 100644 index 000000000..4bd1b2c26 --- /dev/null +++ b/swas-open/src/model/StartInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +StartInstanceResult::StartInstanceResult() : + ServiceResult() +{} + +StartInstanceResult::StartInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartInstanceResult::~StartInstanceResult() +{} + +void StartInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/StopDatabaseInstanceRequest.cc b/swas-open/src/model/StopDatabaseInstanceRequest.cc new file mode 100644 index 000000000..0b3dfbca2 --- /dev/null +++ b/swas-open/src/model/StopDatabaseInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::StopDatabaseInstanceRequest; + +StopDatabaseInstanceRequest::StopDatabaseInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "StopDatabaseInstance") { + setMethod(HttpRequest::Method::Post); +} + +StopDatabaseInstanceRequest::~StopDatabaseInstanceRequest() {} + +std::string StopDatabaseInstanceRequest::getClientToken() const { + return clientToken_; +} + +void StopDatabaseInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StopDatabaseInstanceRequest::getDatabaseInstanceId() const { + return databaseInstanceId_; +} + +void StopDatabaseInstanceRequest::setDatabaseInstanceId(const std::string &databaseInstanceId) { + databaseInstanceId_ = databaseInstanceId; + setParameter(std::string("DatabaseInstanceId"), databaseInstanceId); +} + +std::string StopDatabaseInstanceRequest::getRegionId() const { + return regionId_; +} + +void StopDatabaseInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/StopDatabaseInstanceResult.cc b/swas-open/src/model/StopDatabaseInstanceResult.cc new file mode 100644 index 000000000..6ab8d9dca --- /dev/null +++ b/swas-open/src/model/StopDatabaseInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +StopDatabaseInstanceResult::StopDatabaseInstanceResult() : + ServiceResult() +{} + +StopDatabaseInstanceResult::StopDatabaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopDatabaseInstanceResult::~StopDatabaseInstanceResult() +{} + +void StopDatabaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/StopInstanceRequest.cc b/swas-open/src/model/StopInstanceRequest.cc new file mode 100644 index 000000000..969cd9997 --- /dev/null +++ b/swas-open/src/model/StopInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::StopInstanceRequest; + +StopInstanceRequest::StopInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "StopInstance") { + setMethod(HttpRequest::Method::Post); +} + +StopInstanceRequest::~StopInstanceRequest() {} + +std::string StopInstanceRequest::getClientToken() const { + return clientToken_; +} + +void StopInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StopInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StopInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string StopInstanceRequest::getRegionId() const { + return regionId_; +} + +void StopInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/StopInstanceResult.cc b/swas-open/src/model/StopInstanceResult.cc new file mode 100644 index 000000000..186a24817 --- /dev/null +++ b/swas-open/src/model/StopInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +StopInstanceResult::StopInstanceResult() : + ServiceResult() +{} + +StopInstanceResult::StopInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopInstanceResult::~StopInstanceResult() +{} + +void StopInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/UpdateInstanceAttributeRequest.cc b/swas-open/src/model/UpdateInstanceAttributeRequest.cc new file mode 100644 index 000000000..9557e72dd --- /dev/null +++ b/swas-open/src/model/UpdateInstanceAttributeRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::UpdateInstanceAttributeRequest; + +UpdateInstanceAttributeRequest::UpdateInstanceAttributeRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "UpdateInstanceAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateInstanceAttributeRequest::~UpdateInstanceAttributeRequest() {} + +std::string UpdateInstanceAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateInstanceAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateInstanceAttributeRequest::getPassword() const { + return password_; +} + +void UpdateInstanceAttributeRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string UpdateInstanceAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateInstanceAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateInstanceAttributeRequest::getInstanceName() const { + return instanceName_; +} + +void UpdateInstanceAttributeRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string UpdateInstanceAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateInstanceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/swas-open/src/model/UpdateInstanceAttributeResult.cc b/swas-open/src/model/UpdateInstanceAttributeResult.cc new file mode 100644 index 000000000..c064a3aa6 --- /dev/null +++ b/swas-open/src/model/UpdateInstanceAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +UpdateInstanceAttributeResult::UpdateInstanceAttributeResult() : + ServiceResult() +{} + +UpdateInstanceAttributeResult::UpdateInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateInstanceAttributeResult::~UpdateInstanceAttributeResult() +{} + +void UpdateInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/swas-open/src/model/UpgradeInstanceRequest.cc b/swas-open/src/model/UpgradeInstanceRequest.cc new file mode 100644 index 000000000..6a3b5086d --- /dev/null +++ b/swas-open/src/model/UpgradeInstanceRequest.cc @@ -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 + +using AlibabaCloud::SWAS_OPEN::Model::UpgradeInstanceRequest; + +UpgradeInstanceRequest::UpgradeInstanceRequest() + : RpcServiceRequest("swas-open", "2020-06-01", "UpgradeInstance") { + setMethod(HttpRequest::Method::Post); +} + +UpgradeInstanceRequest::~UpgradeInstanceRequest() {} + +std::string UpgradeInstanceRequest::getClientToken() const { + return clientToken_; +} + +void UpgradeInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpgradeInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void UpgradeInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpgradeInstanceRequest::getRegionId() const { + return regionId_; +} + +void UpgradeInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpgradeInstanceRequest::getPlanId() const { + return planId_; +} + +void UpgradeInstanceRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + diff --git a/swas-open/src/model/UpgradeInstanceResult.cc b/swas-open/src/model/UpgradeInstanceResult.cc new file mode 100644 index 000000000..acd7f872d --- /dev/null +++ b/swas-open/src/model/UpgradeInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::SWAS_OPEN; +using namespace AlibabaCloud::SWAS_OPEN::Model; + +UpgradeInstanceResult::UpgradeInstanceResult() : + ServiceResult() +{} + +UpgradeInstanceResult::UpgradeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeInstanceResult::~UpgradeInstanceResult() +{} + +void UpgradeInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +