From ac4c81dcb50fc98f097dce7038034c0ddb661f59 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 6 Jan 2023 03:07:52 +0000 Subject: [PATCH] Add error code for ModifyInstanceNetworkSpec. --- VERSION | 2 +- ecs/CMakeLists.txt | 12 +- ecs/include/alibabacloud/ecs/EcsClient.h | 24 +- .../ecs/model/AssignIpv6AddressesRequest.h | 6 + .../ecs/model/AssignIpv6AddressesResult.h | 2 + .../model/AssignPrivateIpAddressesRequest.h | 6 + .../model/AssignPrivateIpAddressesResult.h | 1 + .../ecs/model/AttachNetworkInterfaceRequest.h | 3 + .../ecs/model/CopySnapshotRequest.h | 14 ++ .../model/CreateAutoSnapshotPolicyRequest.h | 3 + .../ecs/model/CreateCommandRequest.h | 15 ++ ...reateDedicatedBlockStorageClusterRequest.h | 84 ------- ...CreateDedicatedBlockStorageClusterResult.h | 53 ----- .../ecs/model/CreateDiskRequest.h | 74 +++--- .../ecs/model/CreateImageRequest.h | 14 ++ .../ecs/model/CreateLaunchTemplateRequest.h | 3 + .../CreateLaunchTemplateVersionRequest.h | 3 + .../ecs/model/CreateNetworkInterfaceRequest.h | 78 +++--- .../ecs/model/CreateNetworkInterfaceResult.h | 12 + .../ecs/model/CreateSnapshotGroupRequest.h | 3 + .../ecs/model/CreateSnapshotRequest.h | 11 + ...ribeDedicatedBlockStorageClustersRequest.h | 72 ------ ...cribeDedicatedBlockStorageClustersResult.h | 71 ------ ...escribeDiagnosticReportAttributesRequest.h | 45 ++++ ...DescribeDiagnosticReportAttributesResult.h | 88 +++++++ .../ecs/model/DescribeInstanceTypesResult.h | 6 + .../ecs/model/DescribeInstancesResult.h | 10 + .../model/DescribeInvocationResultsRequest.h | 3 + .../ecs/model/DescribeInvocationsRequest.h | 3 + .../DescribeLaunchTemplateVersionsResult.h | 1 + .../DescribeNetworkInterfaceAttributeResult.h | 13 + .../model/DescribeNetworkInterfacesResult.h | 11 + .../DescribeSecurityGroupAttributeResult.h | 1 + .../model/DescribeSendFileResultsRequest.h | 3 + .../ecs/model/DescribeTasksRequest.h | 3 + .../ecs/model/DescribeTasksResult.h | 1 + .../ecs/model/InvokeCommandRequest.h | 21 ++ .../ModifyInstanceMetadataOptionsRequest.h | 3 + .../model/ModifyPrepayInstanceSpecRequest.h | 3 + .../ModifySecurityGroupEgressRuleRequest.h | 3 + .../model/ModifySecurityGroupRuleRequest.h | 3 + ...PurchaseReservedInstancesOfferingRequest.h | 6 + .../ecs/model/ReleasePublicIpAddressRequest.h | 18 +- .../ecs/model/ReleasePublicIpAddressResult.h | 2 + .../ecs/model/RenewReservedInstancesRequest.h | 6 + .../ecs/model/ReplaceSystemDiskRequest.h | 17 ++ .../model/RevokeSecurityGroupEgressRequest.h | 3 + .../ecs/model/RevokeSecurityGroupRequest.h | 3 + .../ecs/model/RunCommandRequest.h | 3 + .../ecs/model/RunInstancesRequest.h | 1 + .../alibabacloud/ecs/model/SendFileRequest.h | 3 + .../ecs/model/UnassignIpv6AddressesRequest.h | 3 + .../model/UnassignPrivateIpAddressesRequest.h | 3 + ecs/src/EcsClient.cc | 114 +++------ ecs/src/model/AssignIpv6AddressesRequest.cc | 17 ++ ecs/src/model/AssignIpv6AddressesResult.cc | 8 + .../model/AssignPrivateIpAddressesRequest.cc | 17 ++ .../model/AssignPrivateIpAddressesResult.cc | 3 + .../model/AttachNetworkInterfaceRequest.cc | 9 + ecs/src/model/CopySnapshotRequest.cc | 33 +++ .../model/CreateAutoSnapshotPolicyRequest.cc | 9 + ecs/src/model/CreateCommandRequest.cc | 29 +++ ...eateDedicatedBlockStorageClusterRequest.cc | 162 ------------- ...reateDedicatedBlockStorageClusterResult.cc | 58 ----- ecs/src/model/CreateDiskRequest.cc | 223 ++++++++++-------- ecs/src/model/CreateImageRequest.cc | 33 +++ ecs/src/model/CreateLaunchTemplateRequest.cc | 9 + .../CreateLaunchTemplateVersionRequest.cc | 9 + .../model/CreateNetworkInterfaceRequest.cc | 194 ++++++++------- ecs/src/model/CreateNetworkInterfaceResult.cc | 26 ++ ecs/src/model/CreateSnapshotGroupRequest.cc | 9 + ecs/src/model/CreateSnapshotRequest.cc | 24 ++ ...ibeDedicatedBlockStorageClustersRequest.cc | 124 ---------- ...ribeDedicatedBlockStorageClustersResult.cc | 85 ------- ...scribeDiagnosticReportAttributesRequest.cc | 45 ++++ ...escribeDiagnosticReportAttributesResult.cc | 154 ++++++++++++ ecs/src/model/DescribeInstanceTypesResult.cc | 10 + ecs/src/model/DescribeInstancesResult.cc | 16 ++ .../model/DescribeInvocationResultsRequest.cc | 9 + ecs/src/model/DescribeInvocationsRequest.cc | 9 + .../DescribeLaunchTemplateVersionsResult.cc | 2 + ...DescribeNetworkInterfaceAttributeResult.cc | 28 +++ .../model/DescribeNetworkInterfacesResult.cc | 18 ++ .../DescribeSecurityGroupAttributeResult.cc | 2 + .../model/DescribeSendFileResultsRequest.cc | 9 + ecs/src/model/DescribeTasksRequest.cc | 8 + ecs/src/model/DescribeTasksResult.cc | 2 + ecs/src/model/InvokeCommandRequest.cc | 47 ++++ .../ModifyInstanceMetadataOptionsRequest.cc | 9 + .../model/ModifyPrepayInstanceSpecRequest.cc | 9 + .../ModifySecurityGroupEgressRuleRequest.cc | 9 + .../model/ModifySecurityGroupRuleRequest.cc | 9 + ...urchaseReservedInstancesOfferingRequest.cc | 18 ++ .../model/ReleasePublicIpAddressRequest.cc | 38 +-- ecs/src/model/ReleasePublicIpAddressResult.cc | 7 + .../model/RenewReservedInstancesRequest.cc | 18 ++ ecs/src/model/ReplaceSystemDiskRequest.cc | 42 ++++ .../model/RevokeSecurityGroupEgressRequest.cc | 8 + ecs/src/model/RevokeSecurityGroupRequest.cc | 8 + ecs/src/model/RunCommandRequest.cc | 9 + ecs/src/model/RunInstancesRequest.cc | 1 + ecs/src/model/SendFileRequest.cc | 9 + ecs/src/model/UnassignIpv6AddressesRequest.cc | 8 + .../UnassignPrivateIpAddressesRequest.cc | 8 + 104 files changed, 1520 insertions(+), 1099 deletions(-) delete mode 100644 ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h delete mode 100644 ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterResult.h delete mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h delete mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesResult.h delete mode 100644 ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc delete mode 100644 ecs/src/model/CreateDedicatedBlockStorageClusterResult.cc delete mode 100644 ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc delete mode 100644 ecs/src/model/DescribeDedicatedBlockStorageClustersResult.cc create mode 100644 ecs/src/model/DescribeDiagnosticReportAttributesRequest.cc create mode 100644 ecs/src/model/DescribeDiagnosticReportAttributesResult.cc diff --git a/VERSION b/VERSION index 41bc6cf22..e7bcb3586 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1414 \ No newline at end of file +1.36.1415 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index 36eb9ae4b..ea4b8025d 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -89,8 +89,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/CreateCapacityReservationResult.h include/alibabacloud/ecs/model/CreateCommandRequest.h include/alibabacloud/ecs/model/CreateCommandResult.h - include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h - include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterResult.h include/alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h include/alibabacloud/ecs/model/CreateDedicatedHostClusterResult.h include/alibabacloud/ecs/model/CreateDemandRequest.h @@ -263,8 +261,6 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeClustersResult.h include/alibabacloud/ecs/model/DescribeCommandsRequest.h include/alibabacloud/ecs/model/DescribeCommandsResult.h - include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h - include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersResult.h include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewResult.h include/alibabacloud/ecs/model/DescribeDedicatedHostClustersRequest.h @@ -283,6 +279,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DescribeDiagnosticMetricSetsResult.h include/alibabacloud/ecs/model/DescribeDiagnosticMetricsRequest.h include/alibabacloud/ecs/model/DescribeDiagnosticMetricsResult.h + include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesRequest.h + include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesResult.h include/alibabacloud/ecs/model/DescribeDiagnosticReportsRequest.h include/alibabacloud/ecs/model/DescribeDiagnosticReportsResult.h include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h @@ -782,8 +780,6 @@ set(ecs_src src/model/CreateCapacityReservationResult.cc src/model/CreateCommandRequest.cc src/model/CreateCommandResult.cc - src/model/CreateDedicatedBlockStorageClusterRequest.cc - src/model/CreateDedicatedBlockStorageClusterResult.cc src/model/CreateDedicatedHostClusterRequest.cc src/model/CreateDedicatedHostClusterResult.cc src/model/CreateDemandRequest.cc @@ -956,8 +952,6 @@ set(ecs_src src/model/DescribeClustersResult.cc src/model/DescribeCommandsRequest.cc src/model/DescribeCommandsResult.cc - src/model/DescribeDedicatedBlockStorageClustersRequest.cc - src/model/DescribeDedicatedBlockStorageClustersResult.cc src/model/DescribeDedicatedHostAutoRenewRequest.cc src/model/DescribeDedicatedHostAutoRenewResult.cc src/model/DescribeDedicatedHostClustersRequest.cc @@ -976,6 +970,8 @@ set(ecs_src src/model/DescribeDiagnosticMetricSetsResult.cc src/model/DescribeDiagnosticMetricsRequest.cc src/model/DescribeDiagnosticMetricsResult.cc + src/model/DescribeDiagnosticReportAttributesRequest.cc + src/model/DescribeDiagnosticReportAttributesResult.cc src/model/DescribeDiagnosticReportsRequest.cc src/model/DescribeDiagnosticReportsResult.cc src/model/DescribeDiskMonitorDataRequest.cc diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index c164bef03..91cd4333f 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -90,8 +90,6 @@ #include "model/CreateCapacityReservationResult.h" #include "model/CreateCommandRequest.h" #include "model/CreateCommandResult.h" -#include "model/CreateDedicatedBlockStorageClusterRequest.h" -#include "model/CreateDedicatedBlockStorageClusterResult.h" #include "model/CreateDedicatedHostClusterRequest.h" #include "model/CreateDedicatedHostClusterResult.h" #include "model/CreateDemandRequest.h" @@ -264,8 +262,6 @@ #include "model/DescribeClustersResult.h" #include "model/DescribeCommandsRequest.h" #include "model/DescribeCommandsResult.h" -#include "model/DescribeDedicatedBlockStorageClustersRequest.h" -#include "model/DescribeDedicatedBlockStorageClustersResult.h" #include "model/DescribeDedicatedHostAutoRenewRequest.h" #include "model/DescribeDedicatedHostAutoRenewResult.h" #include "model/DescribeDedicatedHostClustersRequest.h" @@ -284,6 +280,8 @@ #include "model/DescribeDiagnosticMetricSetsResult.h" #include "model/DescribeDiagnosticMetricsRequest.h" #include "model/DescribeDiagnosticMetricsResult.h" +#include "model/DescribeDiagnosticReportAttributesRequest.h" +#include "model/DescribeDiagnosticReportAttributesResult.h" #include "model/DescribeDiagnosticReportsRequest.h" #include "model/DescribeDiagnosticReportsResult.h" #include "model/DescribeDiskMonitorDataRequest.h" @@ -823,9 +821,6 @@ namespace AlibabaCloud typedef Outcome CreateCommandOutcome; typedef std::future CreateCommandOutcomeCallable; typedef std::function&)> CreateCommandAsyncHandler; - typedef Outcome CreateDedicatedBlockStorageClusterOutcome; - typedef std::future CreateDedicatedBlockStorageClusterOutcomeCallable; - typedef std::function&)> CreateDedicatedBlockStorageClusterAsyncHandler; typedef Outcome CreateDedicatedHostClusterOutcome; typedef std::future CreateDedicatedHostClusterOutcomeCallable; typedef std::function&)> CreateDedicatedHostClusterAsyncHandler; @@ -1084,9 +1079,6 @@ namespace AlibabaCloud typedef Outcome DescribeCommandsOutcome; typedef std::future DescribeCommandsOutcomeCallable; typedef std::function&)> DescribeCommandsAsyncHandler; - typedef Outcome DescribeDedicatedBlockStorageClustersOutcome; - typedef std::future DescribeDedicatedBlockStorageClustersOutcomeCallable; - typedef std::function&)> DescribeDedicatedBlockStorageClustersAsyncHandler; typedef Outcome DescribeDedicatedHostAutoRenewOutcome; typedef std::future DescribeDedicatedHostAutoRenewOutcomeCallable; typedef std::function&)> DescribeDedicatedHostAutoRenewAsyncHandler; @@ -1114,6 +1106,9 @@ namespace AlibabaCloud typedef Outcome DescribeDiagnosticMetricsOutcome; typedef std::future DescribeDiagnosticMetricsOutcomeCallable; typedef std::function&)> DescribeDiagnosticMetricsAsyncHandler; + typedef Outcome DescribeDiagnosticReportAttributesOutcome; + typedef std::future DescribeDiagnosticReportAttributesOutcomeCallable; + typedef std::function&)> DescribeDiagnosticReportAttributesAsyncHandler; typedef Outcome DescribeDiagnosticReportsOutcome; typedef std::future DescribeDiagnosticReportsOutcomeCallable; typedef std::function&)> DescribeDiagnosticReportsAsyncHandler; @@ -1863,9 +1858,6 @@ namespace AlibabaCloud CreateCommandOutcome createCommand(const Model::CreateCommandRequest &request)const; void createCommandAsync(const Model::CreateCommandRequest& request, const CreateCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCommandOutcomeCallable createCommandCallable(const Model::CreateCommandRequest& request) const; - CreateDedicatedBlockStorageClusterOutcome createDedicatedBlockStorageCluster(const Model::CreateDedicatedBlockStorageClusterRequest &request)const; - void createDedicatedBlockStorageClusterAsync(const Model::CreateDedicatedBlockStorageClusterRequest& request, const CreateDedicatedBlockStorageClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDedicatedBlockStorageClusterOutcomeCallable createDedicatedBlockStorageClusterCallable(const Model::CreateDedicatedBlockStorageClusterRequest& request) const; CreateDedicatedHostClusterOutcome createDedicatedHostCluster(const Model::CreateDedicatedHostClusterRequest &request)const; void createDedicatedHostClusterAsync(const Model::CreateDedicatedHostClusterRequest& request, const CreateDedicatedHostClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDedicatedHostClusterOutcomeCallable createDedicatedHostClusterCallable(const Model::CreateDedicatedHostClusterRequest& request) const; @@ -2124,9 +2116,6 @@ namespace AlibabaCloud DescribeCommandsOutcome describeCommands(const Model::DescribeCommandsRequest &request)const; void describeCommandsAsync(const Model::DescribeCommandsRequest& request, const DescribeCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCommandsOutcomeCallable describeCommandsCallable(const Model::DescribeCommandsRequest& request) const; - DescribeDedicatedBlockStorageClustersOutcome describeDedicatedBlockStorageClusters(const Model::DescribeDedicatedBlockStorageClustersRequest &request)const; - void describeDedicatedBlockStorageClustersAsync(const Model::DescribeDedicatedBlockStorageClustersRequest& request, const DescribeDedicatedBlockStorageClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDedicatedBlockStorageClustersOutcomeCallable describeDedicatedBlockStorageClustersCallable(const Model::DescribeDedicatedBlockStorageClustersRequest& request) const; DescribeDedicatedHostAutoRenewOutcome describeDedicatedHostAutoRenew(const Model::DescribeDedicatedHostAutoRenewRequest &request)const; void describeDedicatedHostAutoRenewAsync(const Model::DescribeDedicatedHostAutoRenewRequest& request, const DescribeDedicatedHostAutoRenewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDedicatedHostAutoRenewOutcomeCallable describeDedicatedHostAutoRenewCallable(const Model::DescribeDedicatedHostAutoRenewRequest& request) const; @@ -2154,6 +2143,9 @@ namespace AlibabaCloud DescribeDiagnosticMetricsOutcome describeDiagnosticMetrics(const Model::DescribeDiagnosticMetricsRequest &request)const; void describeDiagnosticMetricsAsync(const Model::DescribeDiagnosticMetricsRequest& request, const DescribeDiagnosticMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDiagnosticMetricsOutcomeCallable describeDiagnosticMetricsCallable(const Model::DescribeDiagnosticMetricsRequest& request) const; + DescribeDiagnosticReportAttributesOutcome describeDiagnosticReportAttributes(const Model::DescribeDiagnosticReportAttributesRequest &request)const; + void describeDiagnosticReportAttributesAsync(const Model::DescribeDiagnosticReportAttributesRequest& request, const DescribeDiagnosticReportAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosticReportAttributesOutcomeCallable describeDiagnosticReportAttributesCallable(const Model::DescribeDiagnosticReportAttributesRequest& request) const; DescribeDiagnosticReportsOutcome describeDiagnosticReports(const Model::DescribeDiagnosticReportsRequest &request)const; void describeDiagnosticReportsAsync(const Model::DescribeDiagnosticReportsRequest& request, const DescribeDiagnosticReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDiagnosticReportsOutcomeCallable describeDiagnosticReportsCallable(const Model::DescribeDiagnosticReportsRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h index 12af7206a..5875c1bf8 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h @@ -32,6 +32,10 @@ public: ~AssignIpv6AddressesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getIpv6Prefix() const; + void setIpv6Prefix(const std::vector &ipv6Prefix); + int getIpv6PrefixCount() const; + void setIpv6PrefixCount(int ipv6PrefixCount); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -49,6 +53,8 @@ public: private: long resourceOwnerId_; + std::vector ipv6Prefix_; + int ipv6PrefixCount_; std::string regionId_; std::string resourceOwnerAccount_; int ipv6AddressCount_; diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h index 9234fd99a..1f98fe073 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesResult.h @@ -38,12 +38,14 @@ namespace AlibabaCloud explicit AssignIpv6AddressesResult(const std::string &payload); ~AssignIpv6AddressesResult(); std::vector getIpv6Sets()const; + std::vector getIpv6PrefixSets()const; std::string getNetworkInterfaceId()const; protected: void parse(const std::string &payload); private: std::vector ipv6Sets_; + std::vector ipv6PrefixSets_; std::string networkInterfaceId_; }; diff --git a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h index d73062895..cab16755a 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h @@ -32,6 +32,8 @@ public: ~AssignPrivateIpAddressesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getIpv4Prefix() const; + void setIpv4Prefix(const std::vector &ipv4Prefix); std::string getClientToken() const; void setClientToken(const std::string &clientToken); int getSecondaryPrivateIpAddressCount() const; @@ -44,6 +46,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + int getIpv4PrefixCount() const; + void setIpv4PrefixCount(int ipv4PrefixCount); std::vector getPrivateIpAddress() const; void setPrivateIpAddress(const std::vector &privateIpAddress); std::string getNetworkInterfaceId() const; @@ -51,12 +55,14 @@ public: private: long resourceOwnerId_; + std::vector ipv4Prefix_; std::string clientToken_; int secondaryPrivateIpAddressCount_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + int ipv4PrefixCount_; std::vector privateIpAddress_; std::string networkInterfaceId_; }; diff --git a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h index be60f26e3..39e5876ec 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h +++ b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::vector privateIpSet; std::string networkInterfaceId; + std::vector ipv4PrefixSet; }; diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h index 1be354e3e..e3b61814e 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h @@ -44,6 +44,8 @@ public: void setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady); long getOwnerId() const; void setOwnerId(long ownerId); + int getNetworkCardIndex() const; + void setNetworkCardIndex(int networkCardIndex); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getNetworkInterfaceId() const; @@ -57,6 +59,7 @@ private: std::string ownerAccount_; bool waitForNetworkConfigurationReady_; long ownerId_; + int networkCardIndex_; std::string instanceId_; std::string networkInterfaceId_; }; diff --git a/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h index f41e30334..3916402ea 100644 --- a/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h @@ -32,6 +32,11 @@ public: std::string key; std::string value; }; + struct Arn { + std::string roleType; + std::string rolearn; + long assumeRoleFor; + }; CopySnapshotRequest(); ~CopySnapshotRequest(); long getResourceOwnerId() const; @@ -46,6 +51,8 @@ public: void setRegionId(const std::string ®ionId); std::vector getTag() const; void setTag(const std::vector &tag); + std::vector getArn() const; + void setArn(const std::vector &arn); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; @@ -54,8 +61,12 @@ public: void setDestinationSnapshotName(const std::string &destinationSnapshotName); std::string getDestinationSnapshotDescription() const; void setDestinationSnapshotDescription(const std::string &destinationSnapshotDescription); + bool getEncrypted() const; + void setEncrypted(bool encrypted); int getRetentionDays() const; void setRetentionDays(int retentionDays); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); private: long resourceOwnerId_; @@ -64,11 +75,14 @@ private: std::string resourceGroupId_; std::string regionId_; std::vector tag_; + std::vector arn_; std::string resourceOwnerAccount_; long ownerId_; std::string destinationSnapshotName_; std::string destinationSnapshotDescription_; + bool encrypted_; int retentionDays_; + std::string kMSKeyId_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h index 3735ebc4a..6f523d5f5 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h @@ -46,6 +46,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getStorageLocationArn() const; + void setStorageLocationArn(const std::string &storageLocationArn); std::vector getTag() const; void setTag(const std::vector &tag); bool getEnableCrossRegionCopy() const; @@ -68,6 +70,7 @@ private: std::string repeatWeekdays_; std::string resourceGroupId_; std::string regionId_; + std::string storageLocationArn_; std::vector tag_; bool enableCrossRegionCopy_; std::string resourceOwnerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h index c919b12c0..963201cc5 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h @@ -28,10 +28,21 @@ namespace Ecs { namespace Model { class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest { public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct Tag { + std::string key; + std::string value; + }; CreateCommandRequest(); ~CreateCommandRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::string getWorkingDir() const; void setWorkingDir(const std::string &workingDir); std::string getDescription() const; @@ -46,6 +57,8 @@ public: void setRegionId(const std::string ®ionId); std::string getContentEncoding() const; void setContentEncoding(const std::string &contentEncoding); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -59,6 +72,7 @@ public: private: long resourceOwnerId_; + std::vector systemTag_; std::string workingDir_; std::string description_; std::string type_; @@ -66,6 +80,7 @@ private: long timeout_; std::string regionId_; std::string contentEncoding_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h deleted file mode 100644 index fef50fb86..000000000 --- a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Ecs { -namespace Model { -class ALIBABACLOUD_ECS_EXPORT CreateDedicatedBlockStorageClusterRequest : public RpcServiceRequest { -public: - CreateDedicatedBlockStorageClusterRequest(); - ~CreateDedicatedBlockStorageClusterRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDedicatedBlockStorageClusterName() const; - void setDedicatedBlockStorageClusterName(const std::string &dedicatedBlockStorageClusterName); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getType() const; - void setType(const std::string &type); - int getCapacity() const; - void setCapacity(int capacity); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPeriod() const; - void setPeriod(int period); - std::string getFromApp() const; - void setFromApp(const std::string &fromApp); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getPeriodUnit() const; - void setPeriodUnit(const std::string &periodUnit); - std::string getZoneId() const; - void setZoneId(const std::string &zoneId); - std::string getCategory() const; - void setCategory(const std::string &category); - -private: - long resourceOwnerId_; - std::string dedicatedBlockStorageClusterName_; - std::string clientToken_; - std::string description_; - std::string type_; - int capacity_; - std::string regionId_; - int period_; - std::string fromApp_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string zoneId_; - std::string category_; -}; -} // namespace Model -} // namespace Ecs -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterResult.h b/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterResult.h deleted file mode 100644 index 26bba370b..000000000 --- a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDedicatedBlockStorageClusterResult : public ServiceResult - { - public: - - - CreateDedicatedBlockStorageClusterResult(); - explicit CreateDedicatedBlockStorageClusterResult(const std::string &payload); - ~CreateDedicatedBlockStorageClusterResult(); - std::string getDedicatedBlockStorageClusterOrderId()const; - std::string getDedicatedBlockStorageClusterId()const; - - protected: - void parse(const std::string &payload); - private: - std::string dedicatedBlockStorageClusterOrderId_; - std::string dedicatedBlockStorageClusterId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h index ff3a6c8ae..35f593e36 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h @@ -32,6 +32,11 @@ public: std::string value; std::string key; }; + struct SystemTag { + std::string scope; + std::string value; + std::string key; + }; struct Arn { std::string rolearn; std::string roleType; @@ -41,28 +46,42 @@ public: ~CreateDiskRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId() const; - void setSnapshotId(const std::string &snapshotId); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); std::string getEncryptAlgorithm() const; void setEncryptAlgorithm(const std::string &encryptAlgorithm); - std::string getDescription() const; - void setDescription(const std::string &description); std::string getDiskName() const; void setDiskName(const std::string &diskName); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); + int getStorageSetPartitionNumber() const; + void setStorageSetPartitionNumber(int storageSetPartitionNumber); + std::vector getTag() const; + void setTag(const std::vector &tag); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getProvisionedIops() const; + void setProvisionedIops(long provisionedIops); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getSize() const; + void setSize(int size); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStorageClusterId() const; + void setStorageClusterId(const std::string &storageClusterId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + std::string getDescription() const; + void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getDiskCategory() const; void setDiskCategory(const std::string &diskCategory); - int getStorageSetPartitionNumber() const; - void setStorageSetPartitionNumber(int storageSetPartitionNumber); std::string getMultiAttach() const; void setMultiAttach(const std::string &multiAttach); - std::vector getTag() const; - void setTag(const std::vector &tag); std::string getAdvancedFeatures() const; void setAdvancedFeatures(const std::string &advancedFeatures); std::vector getArn() const; @@ -73,54 +92,43 @@ public: void setPerformanceLevel(const std::string &performanceLevel); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); bool getBurstingEnabled() const; void setBurstingEnabled(bool burstingEnabled); - long getProvisionedIops() const; - void setProvisionedIops(long provisionedIops); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); std::string getStorageSetId() const; void setStorageSetId(const std::string &storageSetId); - int getSize() const; - void setSize(int size); bool getEncrypted() const; void setEncrypted(bool encrypted); - std::string getZoneId() const; - void setZoneId(const std::string &zoneId); - std::string getStorageClusterId() const; - void setStorageClusterId(const std::string &storageClusterId); std::string getKMSKeyId() const; void setKMSKeyId(const std::string &kMSKeyId); private: long resourceOwnerId_; - std::string snapshotId_; - std::string clientToken_; std::string encryptAlgorithm_; - std::string description_; std::string diskName_; std::string resourceGroupId_; + int storageSetPartitionNumber_; + std::vector tag_; + long ownerId_; + long provisionedIops_; + std::string instanceId_; + int size_; + std::string zoneId_; + std::string storageClusterId_; + std::string snapshotId_; + std::string clientToken_; + std::vector systemTag_; + std::string description_; std::string regionId_; std::string diskCategory_; - int storageSetPartitionNumber_; std::string multiAttach_; - std::vector tag_; std::string advancedFeatures_; std::vector arn_; std::string resourceOwnerAccount_; std::string performanceLevel_; std::string ownerAccount_; - long ownerId_; bool burstingEnabled_; - long provisionedIops_; - std::string instanceId_; std::string storageSetId_; - int size_; bool encrypted_; - std::string zoneId_; - std::string storageClusterId_; std::string kMSKeyId_; }; } // namespace Model diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h index 4d5e88788..1430a0614 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h @@ -34,6 +34,11 @@ public: std::string diskType; std::string device; }; + struct SystemTag { + std::string scope; + std::string value; + std::string key; + }; struct Tag { std::string value; std::string key; @@ -48,6 +53,8 @@ public: void setSnapshotId(const std::string &snapshotId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::string getDescription() const; void setDescription(const std::string &description); std::string getPlatform() const; @@ -60,10 +67,14 @@ public: void setRegionId(const std::string ®ionId); std::string getImageName() const; void setImageName(const std::string &imageName); + std::string getStorageLocationArn() const; + void setStorageLocationArn(const std::string &storageLocationArn); std::vector getTag() const; void setTag(const std::vector &tag); std::string getArchitecture() const; void setArchitecture(const std::string &architecture); + std::string getDetectionStrategy() const; + void setDetectionStrategy(const std::string &detectionStrategy); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -82,14 +93,17 @@ private: long resourceOwnerId_; std::string snapshotId_; std::string clientToken_; + std::vector systemTag_; std::string description_; std::string platform_; std::string resourceGroupId_; std::string bootMode_; std::string regionId_; std::string imageName_; + std::string storageLocationArn_; std::vector tag_; std::string architecture_; + std::string detectionStrategy_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h index cd9f08e3c..22d928dce 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h @@ -169,6 +169,8 @@ public: void setVpcId(const std::string &vpcId); std::string getSystemDiskDescription() const; void setSystemDiskDescription(const std::string &systemDiskDescription); + std::string getSystemDiskEncrypted() const; + void setSystemDiskEncrypted(const std::string &systemDiskEncrypted); private: std::string launchTemplateName_; @@ -225,6 +227,7 @@ private: int systemDiskSize_; std::string vpcId_; std::string systemDiskDescription_; + std::string systemDiskEncrypted_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h index 6db4dbef2..e0a04dab5 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h @@ -163,6 +163,8 @@ public: void setVpcId(const std::string &vpcId); std::string getSystemDiskDescription() const; void setSystemDiskDescription(const std::string &systemDiskDescription); + std::string getSystemDiskEncrypted() const; + void setSystemDiskEncrypted(const std::string &systemDiskEncrypted); private: std::string launchTemplateName_; @@ -218,6 +220,7 @@ private: int systemDiskSize_; std::string vpcId_; std::string systemDiskDescription_; + std::string systemDiskEncrypted_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h index c94317d41..bb1caf411 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h @@ -38,76 +38,88 @@ public: void setQueueNumber(int queueNumber); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getSecurityGroupId() const; - void setSecurityGroupId(const std::string &securityGroupId); - std::string getDescription() const; - void setDescription(const std::string &description); + std::vector getIpv4Prefix() const; + void setIpv4Prefix(const std::vector &ipv4Prefix); int getSecondaryPrivateIpAddressCount() const; void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount); std::string getBusinessType() const; void setBusinessType(const std::string &businessType); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getInstanceType() const; - void setInstanceType(const std::string &instanceType); std::vector getTag() const; void setTag(const std::vector &tag); std::string getNetworkInterfaceName() const; void setNetworkInterfaceName(const std::string &networkInterfaceName); bool getVisible() const; void setVisible(bool visible); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); int getIpv6AddressCount() const; void setIpv6AddressCount(int ipv6AddressCount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - int getQueuePairNumber() const; - void setQueuePairNumber(int queuePairNumber); long getOwnerId() const; void setOwnerId(long ownerId); - std::vector getSecurityGroupIds() const; - void setSecurityGroupIds(const std::vector &securityGroupIds); - std::string getNetworkInterfaceTrafficMode() const; - void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode); std::string getVSwitchId() const; void setVSwitchId(const std::string &vSwitchId); std::vector getPrivateIpAddress() const; void setPrivateIpAddress(const std::vector &privateIpAddress); - std::string getPrimaryIpAddress() const; - void setPrimaryIpAddress(const std::string &primaryIpAddress); std::vector getIpv6Address() const; void setIpv6Address(const std::vector &ipv6Address); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getIpv6Prefix() const; + void setIpv6Prefix(const std::vector &ipv6Prefix); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getIpv6PrefixCount() const; + void setIpv6PrefixCount(int ipv6PrefixCount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getQueuePairNumber() const; + void setQueuePairNumber(int queuePairNumber); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getNetworkInterfaceTrafficMode() const; + void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode); + int getIpv4PrefixCount() const; + void setIpv4PrefixCount(int ipv4PrefixCount); + std::string getPrimaryIpAddress() const; + void setPrimaryIpAddress(const std::string &primaryIpAddress); private: int queueNumber_; long resourceOwnerId_; - std::string clientToken_; - std::string securityGroupId_; - std::string description_; + std::vector ipv4Prefix_; int secondaryPrivateIpAddressCount_; std::string businessType_; std::string resourceGroupId_; - std::string regionId_; - std::string instanceType_; std::vector tag_; std::string networkInterfaceName_; bool visible_; - std::string resourceOwnerAccount_; int ipv6AddressCount_; - std::string ownerAccount_; - int queuePairNumber_; long ownerId_; - std::vector securityGroupIds_; - std::string networkInterfaceTrafficMode_; std::string vSwitchId_; std::vector privateIpAddress_; - std::string primaryIpAddress_; std::vector ipv6Address_; + std::string clientToken_; + std::vector ipv6Prefix_; + std::string securityGroupId_; + std::string description_; + int ipv6PrefixCount_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int queuePairNumber_; + std::vector securityGroupIds_; + std::string networkInterfaceTrafficMode_; + int ipv4PrefixCount_; + std::string primaryIpAddress_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h index f54598655..9f581f4a1 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h @@ -46,6 +46,14 @@ namespace AlibabaCloud { std::string ipv6Address; }; + struct Ipv4PrefixSet + { + std::string ipv4Prefix; + }; + struct Ipv6PrefixSet + { + std::string ipv6Prefix; + }; CreateNetworkInterfaceResult(); @@ -67,7 +75,9 @@ namespace AlibabaCloud std::vector getIpv6Sets()const; std::string getVpcId()const; std::string getOwnerId()const; + std::vector getIpv6PrefixSets()const; std::vector getTags()const; + std::vector getIpv4PrefixSets()const; std::vector getPrivateIpSets()const; protected: @@ -89,7 +99,9 @@ namespace AlibabaCloud std::vector ipv6Sets_; std::string vpcId_; std::string ownerId_; + std::vector ipv6PrefixSets_; std::vector tags_; + std::vector ipv4PrefixSets_; std::vector privateIpSets_; }; diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h index ab52793ff..7867b6d80 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h @@ -48,6 +48,8 @@ public: void setInstantAccessRetentionDays(int instantAccessRetentionDays); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getStorageLocationArn() const; + void setStorageLocationArn(const std::string &storageLocationArn); std::vector getDiskId() const; void setDiskId(const std::vector &diskId); std::vector getTag() const; @@ -71,6 +73,7 @@ private: std::string resourceGroupId_; int instantAccessRetentionDays_; std::string regionId_; + std::string storageLocationArn_; std::vector diskId_; std::vector tag_; std::string resourceOwnerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h index 99de1f368..cff00cbf4 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h @@ -28,6 +28,11 @@ namespace Ecs { namespace Model { class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public RpcServiceRequest { public: + struct SystemTag { + std::string scope; + std::string value; + std::string key; + }; struct Tag { std::string value; std::string key; @@ -40,6 +45,8 @@ public: void setClientToken(const std::string &clientToken); bool getInstantAccess() const; void setInstantAccess(bool instantAccess); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::string getDescription() const; void setDescription(const std::string &description); std::string getSnapshotName() const; @@ -48,6 +55,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); int getInstantAccessRetentionDays() const; void setInstantAccessRetentionDays(int instantAccessRetentionDays); + std::string getStorageLocationArn() const; + void setStorageLocationArn(const std::string &storageLocationArn); std::string getDiskId() const; void setDiskId(const std::string &diskId); std::vector getTag() const; @@ -67,10 +76,12 @@ private: long resourceOwnerId_; std::string clientToken_; bool instantAccess_; + std::vector systemTag_; std::string description_; std::string snapshotName_; std::string resourceGroupId_; int instantAccessRetentionDays_; + std::string storageLocationArn_; std::string diskId_; std::vector tag_; std::string resourceOwnerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h deleted file mode 100644 index dc37b87e1..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Ecs { -namespace Model { -class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedBlockStorageClustersRequest : public RpcServiceRequest { -public: - DescribeDedicatedBlockStorageClustersRequest(); - ~DescribeDedicatedBlockStorageClustersRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::vector getDedicatedBlockStorageClusterId() const; - void setDedicatedBlockStorageClusterId(const std::vector &dedicatedBlockStorageClusterId); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getZoneId() const; - void setZoneId(const std::string &zoneId); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getCategory() const; - void setCategory(const std::string &category); - std::vector getStatus() const; - void setStatus(const std::vector &status); - -private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::vector dedicatedBlockStorageClusterId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - int maxResults_; - std::string category_; - std::vector status_; -}; -} // namespace Model -} // namespace Ecs -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersResult.h deleted file mode 100644 index 8ee7db7bc..000000000 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSRESULT_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedBlockStorageClustersResult : public ServiceResult - { - public: - struct DedicatedBlockStorageCluster - { - struct DedicatedBlockStorageClusterCapacity - { - long availableCapacity; - long totalCapacity; - }; - std::string status; - std::string type; - std::string description; - std::string category; - std::string zoneId; - std::string dedicatedBlockStorageClusterId; - std::string expiredTime; - std::string createTime; - std::string dedicatedBlockStorageClusterName; - DedicatedBlockStorageClusterCapacity dedicatedBlockStorageClusterCapacity; - }; - - - DescribeDedicatedBlockStorageClustersResult(); - explicit DescribeDedicatedBlockStorageClustersResult(const std::string &payload); - ~DescribeDedicatedBlockStorageClustersResult(); - std::vector getDedicatedBlockStorageClusters()const; - std::string getNextToken()const; - - protected: - void parse(const std::string &payload); - private: - std::vector dedicatedBlockStorageClusters_; - std::string nextToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesRequest.h new file mode 100644 index 000000000..c6ec692ea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesRequest.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_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDiagnosticReportAttributesRequest : public RpcServiceRequest { +public: + DescribeDiagnosticReportAttributesRequest(); + ~DescribeDiagnosticReportAttributesRequest(); + std::string getReportId() const; + void setReportId(const std::string &reportId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string reportId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesResult.h new file mode 100644 index 000000000..cfd34585f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiagnosticReportAttributesResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDiagnosticReportAttributesResult : public ServiceResult + { + public: + struct MetricResult + { + struct Issue + { + std::string occurrenceTime; + std::string additional; + std::string severity; + std::string issueId; + }; + std::string status; + std::string metricId; + std::vector issues; + std::string severity; + std::string metricCategory; + }; + + + DescribeDiagnosticReportAttributesResult(); + explicit DescribeDiagnosticReportAttributesResult(const std::string &payload); + ~DescribeDiagnosticReportAttributesResult(); + std::string getStatus()const; + std::string getEndTime()const; + std::string getResourceId()const; + std::string getMetricSetId()const; + std::vector getMetricResults()const; + std::string getCreationTime()const; + std::string getStartTime()const; + std::string getAttributes()const; + std::string getReportId()const; + std::string getResourceType()const; + std::string getSeverity()const; + std::string getFinishedTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string endTime_; + std::string resourceId_; + std::string metricSetId_; + std::vector metricResults_; + std::string creationTime_; + std::string startTime_; + std::string attributes_; + std::string reportId_; + std::string resourceType_; + std::string severity_; + std::string finishedTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h index c45233c45..3b0ab825b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h @@ -34,6 +34,10 @@ namespace AlibabaCloud public: struct InstanceType { + struct NetworkCardInfo + { + int networkCardIndex; + }; long instancePpsTx; std::string nvmeSupport; int primaryEniQueueNumber; @@ -60,6 +64,7 @@ namespace AlibabaCloud int eniTotalQuantity; int cpuCoreCount; int initialCredit; + int networkCardQuantity; std::string instanceCategory; int eniQuantity; int gPUAmount; @@ -68,6 +73,7 @@ namespace AlibabaCloud int queuePairNumber; int baselineCredit; std::string instanceFamilyLevel; + std::vector networkCards; float cpuTurboFrequency; int eniPrivateIpAddressQuantity; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h index e81c79a31..7b6e2b95f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h @@ -96,11 +96,21 @@ namespace AlibabaCloud { std::string ipv6Address; }; + struct Ipv4PrefixSet + { + std::string ipv4Prefix; + }; + struct Ipv6PrefixSet + { + std::string ipv6Prefix; + }; std::string type; std::vector ipv6Sets; + std::vector ipv6PrefixSets; std::string primaryIpAddress; std::string macAddress; std::string networkInterfaceId; + std::vector ipv4PrefixSets; std::vector privateIpSets; }; struct LockReason diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h index aef6b746a..4e9f8a7fa 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h @@ -40,6 +40,8 @@ public: void setCommandId(const std::string &commandId); long getPageNumber() const; void setPageNumber(long pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getContentEncoding() const; @@ -67,6 +69,7 @@ private: long resourceOwnerId_; std::string commandId_; long pageNumber_; + std::string resourceGroupId_; std::string regionId_; std::string contentEncoding_; long pageSize_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h index fc90b44c1..9dd6c21f1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h @@ -44,6 +44,8 @@ public: void setCommandId(const std::string &commandId); long getPageNumber() const; void setPageNumber(long pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getContentEncoding() const; @@ -77,6 +79,7 @@ private: bool includeOutput_; std::string commandId_; long pageNumber_; + std::string resourceGroupId_; std::string regionId_; std::string contentEncoding_; std::string repeatMode_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h index 29b9f16bb..7208d2f91 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h @@ -78,6 +78,7 @@ namespace AlibabaCloud std::string instanceChargeType; long systemDiskProvisionedIops; int spotDuration; + std::string systemDiskEncrypted; std::string systemDiskAutoSnapshotPolicyId; std::string ramRoleName; std::string systemDiskPerformanceLevel; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h index acce46b00..d2f6f96f3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string instanceId; int deviceIndex; std::vector memberNetworkInterfaceIds; + int networkCardIndex; std::string trunkNetworkInterfaceId; }; struct BondInterfaceSpecification @@ -76,6 +77,14 @@ namespace AlibabaCloud { std::string ipv6Address; }; + struct Ipv4PrefixSet + { + std::string ipv4Prefix; + }; + struct Ipv6PrefixSet + { + std::string ipv6Prefix; + }; struct Tag { std::string tagKey; @@ -110,8 +119,10 @@ namespace AlibabaCloud int getQueuePairNumber()const; int getQueueNumber()const; std::string getVpcId()const; + std::vector getIpv6PrefixSets()const; BondInterfaceSpecification getBondInterfaceSpecification()const; std::string getCreationTime()const; + std::vector getIpv4PrefixSets()const; std::vector getPrivateIpSets()const; protected: @@ -141,8 +152,10 @@ namespace AlibabaCloud int queuePairNumber_; int queueNumber_; std::string vpcId_; + std::vector ipv6PrefixSets_; BondInterfaceSpecification bondInterfaceSpecification_; std::string creationTime_; + std::vector ipv4PrefixSets_; std::vector privateIpSets_; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h index b80115001..0b17da87f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud { std::string instanceId; int deviceIndex; + int networkCardIndex; std::string trunkNetworkInterfaceId; }; struct PrivateIpSet @@ -60,6 +61,14 @@ namespace AlibabaCloud { std::string ipv6Address; }; + struct Ipv4PrefixSet + { + std::string ipv4Prefix; + }; + struct Ipv6PrefixSet + { + std::string ipv6Prefix; + }; struct Tag { std::string tagKey; @@ -88,7 +97,9 @@ namespace AlibabaCloud int queuePairNumber; int queueNumber; std::string vpcId; + std::vector ipv6PrefixSets; std::string creationTime; + std::vector ipv4PrefixSets; std::vector privateIpSets; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h index b2b738e4b..d303e8469 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud std::string sourceCidrIp; std::string sourcePrefixListName; std::string ipProtocol; + std::string securityGroupRuleId; std::string destCidrIp; std::string destGroupName; std::string ipv6DestCidrIp; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h index 660b5a450..1bc5bc4ce 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); long getPageNumber() const; void setPageNumber(long pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); long getPageSize() const; @@ -54,6 +56,7 @@ public: private: long resourceOwnerId_; long pageNumber_; + std::string resourceGroupId_; std::string regionId_; long pageSize_; std::string invokeId_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h index 42ec8903d..f1cbdbf36 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h @@ -54,6 +54,8 @@ public: void setOwnerId(long ownerId); std::string getTaskAction() const; void setTaskAction(const std::string &taskAction); + std::vector getResourceIds() const; + void setResourceIds(const std::vector &resourceIds); private: long resourceOwnerId_; @@ -68,6 +70,7 @@ private: std::string endTime_; long ownerId_; std::string taskAction_; + std::vector resourceIds_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h index bf157036d..8ec7b627f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Task { std::string taskId; + std::string resourceId; std::string supportCancel; std::string taskAction; std::string creationTime; diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h index 8b151ea7f..39025f631 100644 --- a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h @@ -28,22 +28,39 @@ namespace Ecs { namespace Model { class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public RpcServiceRequest { public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct Tag { + std::string key; + std::string value; + }; InvokeCommandRequest(); ~InvokeCommandRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getContainerName() const; void setContainerName(const std::string &containerName); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); std::string getCommandId() const; void setCommandId(const std::string &commandId); + long getTimeout() const; + void setTimeout(long timeout); std::string getFrequency() const; void setFrequency(const std::string &frequency); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getRepeatMode() const; void setRepeatMode(const std::string &repeatMode); std::string getWindowsPasswordName() const; void setWindowsPasswordName(const std::string &windowsPasswordName); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getTimed() const; void setTimed(bool timed); std::string getResourceOwnerAccount() const; @@ -64,11 +81,15 @@ public: private: long resourceOwnerId_; std::string containerName_; + std::vector systemTag_; std::string commandId_; + long timeout_; std::string frequency_; + std::string resourceGroupId_; std::string regionId_; std::string repeatMode_; std::string windowsPasswordName_; + std::vector tag_; bool timed_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h index f80adbb82..e855e7a3b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h @@ -32,6 +32,8 @@ public: ~ModifyInstanceMetadataOptionsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceMetadataTags() const; + void setInstanceMetadataTags(const std::string &instanceMetadataTags); int getHttpPutResponseHopLimit() const; void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); std::string getRegionId() const; @@ -49,6 +51,7 @@ public: private: long resourceOwnerId_; + std::string instanceMetadataTags_; int httpPutResponseHopLimit_; std::string regionId_; std::string httpEndpoint_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h index ab8e88d99..563b6321b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getCouponNo() const; + void setCouponNo(const std::string &couponNo); std::string getOperatorType() const; void setOperatorType(const std::string &operatorType); std::string getSystemDiskCategory() const; @@ -64,6 +66,7 @@ public: private: long resourceOwnerId_; std::string clientToken_; + std::string couponNo_; std::string operatorType_; std::string systemDiskCategory_; std::string rebootTime_; diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h index 53355762f..8136f8c1b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h @@ -74,6 +74,8 @@ public: void setDestCidrIp(const std::string &destCidrIp); long getDestGroupOwnerId() const; void setDestGroupOwnerId(long destGroupOwnerId); + std::string getSecurityGroupRuleId() const; + void setSecurityGroupRuleId(const std::string &securityGroupRuleId); private: std::string nicType_; @@ -98,6 +100,7 @@ private: std::string destGroupOwnerAccount_; std::string destCidrIp_; long destGroupOwnerId_; + std::string securityGroupRuleId_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h index f62897835..199407e7a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h @@ -74,6 +74,8 @@ public: void setDestCidrIp(const std::string &destCidrIp); std::string getSourceGroupId() const; void setSourceGroupId(const std::string &sourceGroupId); + std::string getSecurityGroupRuleId() const; + void setSecurityGroupRuleId(const std::string &securityGroupRuleId); private: std::string nicType_; @@ -98,6 +100,7 @@ private: std::string priority_; std::string destCidrIp_; std::string sourceGroupId_; + std::string securityGroupRuleId_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h index a22dc8ea1..7eff39883 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h @@ -52,6 +52,8 @@ public: void setInstanceType(const std::string &instanceType); std::vector getTag() const; void setTag(const std::vector &tag); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); int getPeriod() const; void setPeriod(int period); std::string getResourceOwnerAccount() const; @@ -64,6 +66,8 @@ public: void setPeriodUnit(const std::string &periodUnit); std::string getOfferingType() const; void setOfferingType(const std::string &offeringType); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); std::string getZoneId() const; void setZoneId(const std::string &zoneId); std::string getReservedInstanceName() const; @@ -81,12 +85,14 @@ private: std::string scope_; std::string instanceType_; std::vector tag_; + int autoRenewPeriod_; int period_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string periodUnit_; std::string offeringType_; + bool autoRenew_; std::string zoneId_; std::string reservedInstanceName_; int instanceAmount_; diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h index cc3487733..ad1778348 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h @@ -30,24 +30,18 @@ class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public RpcServiceR public: ReleasePublicIpAddressRequest(); ~ReleasePublicIpAddressRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getPublicIpAddress() const; void setPublicIpAddress(const std::string &publicIpAddress); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; + std::string regionId_; + bool dryRun_; std::string publicIpAddress_; std::string instanceId_; }; diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h index 37098fe19..219d9affb 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ReleasePublicIpAddressResult(); explicit ReleasePublicIpAddressResult(const std::string &payload); ~ReleasePublicIpAddressResult(); + std::string getRemainTimes()const; protected: void parse(const std::string &payload); private: + std::string remainTimes_; }; } diff --git a/ecs/include/alibabacloud/ecs/model/RenewReservedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RenewReservedInstancesRequest.h index bbb3b06e0..a21d29176 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewReservedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RenewReservedInstancesRequest.h @@ -36,6 +36,8 @@ public: 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); std::string getResourceOwnerAccount() const; @@ -48,17 +50,21 @@ public: void setPeriodUnit(const std::string &periodUnit); std::vector getReservedInstanceId() const; void setReservedInstanceId(const std::vector &reservedInstanceId); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); private: long resourceOwnerId_; std::string clientToken_; std::string regionId_; + int autoRenewPeriod_; int period_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string periodUnit_; std::vector reservedInstanceId_; + bool autoRenew_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h index 5d5352ddc..4b0d548f8 100644 --- a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h @@ -28,6 +28,11 @@ namespace Ecs { namespace Model { class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public RpcServiceRequest { public: + struct Arn { + std::string rolearn; + std::string roleType; + long assumeRoleFor; + }; ReplaceSystemDiskRequest(); ~ReplaceSystemDiskRequest(); long getResourceOwnerId() const; @@ -36,6 +41,8 @@ public: void setImageId(const std::string &imageId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getEncryptAlgorithm() const; + void setEncryptAlgorithm(const std::string &encryptAlgorithm); std::string getSecurityEnhancementStrategy() const; void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); std::string getKeyPairName() const; @@ -50,6 +57,8 @@ public: void setPasswordInherit(bool passwordInherit); std::string getDiskId() const; void setDiskId(const std::string &diskId); + std::vector getArn() const; + void setArn(const std::vector &arn); std::string getArchitecture() const; void setArchitecture(const std::string &architecture); std::string getResourceOwnerAccount() const; @@ -62,6 +71,10 @@ public: void setInstanceId(const std::string &instanceId); int getSystemDiskSize() const; void setSystemDiskSize(int systemDiskSize); + bool getEncrypted() const; + void setEncrypted(bool encrypted); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); bool getUseAdditionalService() const; void setUseAdditionalService(bool useAdditionalService); @@ -69,6 +82,7 @@ private: long resourceOwnerId_; std::string imageId_; std::string clientToken_; + std::string encryptAlgorithm_; std::string securityEnhancementStrategy_; std::string keyPairName_; std::string platform_; @@ -76,12 +90,15 @@ private: bool loginAsNonRoot_; bool passwordInherit_; std::string diskId_; + std::vector arn_; std::string architecture_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string instanceId_; int systemDiskSize_; + bool encrypted_; + std::string kMSKeyId_; bool useAdditionalService_; }; } // namespace Model diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h index fa7e5cb6c..aadd02a40 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h @@ -93,6 +93,8 @@ public: void setDestCidrIp(const std::string &destCidrIp); long getDestGroupOwnerId() const; void setDestGroupOwnerId(long destGroupOwnerId); + std::vector getSecurityGroupRuleId() const; + void setSecurityGroupRuleId(const std::vector &securityGroupRuleId); private: std::string nicType_; @@ -118,6 +120,7 @@ private: std::string destGroupOwnerAccount_; std::string destCidrIp_; long destGroupOwnerId_; + std::vector securityGroupRuleId_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h index ae02f6929..c48c29d66 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -93,6 +93,8 @@ public: void setDestCidrIp(const std::string &destCidrIp); std::string getSourceGroupId() const; void setSourceGroupId(const std::string &sourceGroupId); + std::vector getSecurityGroupRuleId() const; + void setSecurityGroupRuleId(const std::vector &securityGroupRuleId); private: std::string nicType_; @@ -118,6 +120,7 @@ private: std::string priority_; std::string destCidrIp_; std::string sourceGroupId_; + std::vector securityGroupRuleId_; }; } // namespace Model } // namespace Ecs diff --git a/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h b/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h index a92b0eb3b..7d13cb3a6 100644 --- a/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h @@ -50,6 +50,8 @@ public: void setTimeout(long timeout); std::string getFrequency() const; void setFrequency(const std::string &frequency); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getContentEncoding() const; @@ -92,6 +94,7 @@ private: std::string commandContent_; long timeout_; std::string frequency_; + std::string resourceGroupId_; std::string regionId_; std::string contentEncoding_; std::string repeatMode_; diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index 6c2244376..9003f044a 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -59,6 +59,7 @@ public: long queuePairNumber; std::string instanceType; long ipv6AddressCount; + int networkCardIndex; }; struct DataDisk { std::string performanceLevel; diff --git a/ecs/include/alibabacloud/ecs/model/SendFileRequest.h b/ecs/include/alibabacloud/ecs/model/SendFileRequest.h index 080abdd54..263b71da1 100644 --- a/ecs/include/alibabacloud/ecs/model/SendFileRequest.h +++ b/ecs/include/alibabacloud/ecs/model/SendFileRequest.h @@ -38,6 +38,8 @@ public: void setTimeout(long timeout); std::string getContent() const; void setContent(const std::string &content); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getFileOwner() const; @@ -68,6 +70,7 @@ private: std::string description_; long timeout_; std::string content_; + std::string resourceGroupId_; std::string regionId_; std::string fileOwner_; bool overwrite_; diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h index 622ead7de..e32753dfe 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h @@ -32,6 +32,8 @@ public: ~UnassignIpv6AddressesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getIpv6Prefix() const; + void setIpv6Prefix(const std::vector &ipv6Prefix); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -47,6 +49,7 @@ public: private: long resourceOwnerId_; + std::vector ipv6Prefix_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h index 414e17eac..97aae83ab 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h @@ -32,6 +32,8 @@ public: ~UnassignPrivateIpAddressesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getIpv4Prefix() const; + void setIpv4Prefix(const std::vector &ipv4Prefix); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -47,6 +49,7 @@ public: private: long resourceOwnerId_; + std::vector ipv4Prefix_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index d4c8b038b..311a2cd39 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -31,21 +31,21 @@ EcsClient::EcsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ecs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } EcsClient::EcsClient(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, "ecs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } EcsClient::EcsClient(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, "ecs"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } EcsClient::~EcsClient() @@ -1275,42 +1275,6 @@ EcsClient::CreateCommandOutcomeCallable EcsClient::createCommandCallable(const C return task->get_future(); } -EcsClient::CreateDedicatedBlockStorageClusterOutcome EcsClient::createDedicatedBlockStorageCluster(const CreateDedicatedBlockStorageClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDedicatedBlockStorageClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDedicatedBlockStorageClusterOutcome(CreateDedicatedBlockStorageClusterResult(outcome.result())); - else - return CreateDedicatedBlockStorageClusterOutcome(outcome.error()); -} - -void EcsClient::createDedicatedBlockStorageClusterAsync(const CreateDedicatedBlockStorageClusterRequest& request, const CreateDedicatedBlockStorageClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDedicatedBlockStorageCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::CreateDedicatedBlockStorageClusterOutcomeCallable EcsClient::createDedicatedBlockStorageClusterCallable(const CreateDedicatedBlockStorageClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDedicatedBlockStorageCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::CreateDedicatedHostClusterOutcome EcsClient::createDedicatedHostCluster(const CreateDedicatedHostClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4407,42 +4371,6 @@ EcsClient::DescribeCommandsOutcomeCallable EcsClient::describeCommandsCallable(c return task->get_future(); } -EcsClient::DescribeDedicatedBlockStorageClustersOutcome EcsClient::describeDedicatedBlockStorageClusters(const DescribeDedicatedBlockStorageClustersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDedicatedBlockStorageClustersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDedicatedBlockStorageClustersOutcome(DescribeDedicatedBlockStorageClustersResult(outcome.result())); - else - return DescribeDedicatedBlockStorageClustersOutcome(outcome.error()); -} - -void EcsClient::describeDedicatedBlockStorageClustersAsync(const DescribeDedicatedBlockStorageClustersRequest& request, const DescribeDedicatedBlockStorageClustersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDedicatedBlockStorageClusters(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -EcsClient::DescribeDedicatedBlockStorageClustersOutcomeCallable EcsClient::describeDedicatedBlockStorageClustersCallable(const DescribeDedicatedBlockStorageClustersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDedicatedBlockStorageClusters(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - EcsClient::DescribeDedicatedHostAutoRenewOutcome EcsClient::describeDedicatedHostAutoRenew(const DescribeDedicatedHostAutoRenewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,6 +4695,42 @@ EcsClient::DescribeDiagnosticMetricsOutcomeCallable EcsClient::describeDiagnosti return task->get_future(); } +EcsClient::DescribeDiagnosticReportAttributesOutcome EcsClient::describeDiagnosticReportAttributes(const DescribeDiagnosticReportAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosticReportAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosticReportAttributesOutcome(DescribeDiagnosticReportAttributesResult(outcome.result())); + else + return DescribeDiagnosticReportAttributesOutcome(outcome.error()); +} + +void EcsClient::describeDiagnosticReportAttributesAsync(const DescribeDiagnosticReportAttributesRequest& request, const DescribeDiagnosticReportAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosticReportAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDiagnosticReportAttributesOutcomeCallable EcsClient::describeDiagnosticReportAttributesCallable(const DescribeDiagnosticReportAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosticReportAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeDiagnosticReportsOutcome EcsClient::describeDiagnosticReports(const DescribeDiagnosticReportsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/AssignIpv6AddressesRequest.cc b/ecs/src/model/AssignIpv6AddressesRequest.cc index 05254d18a..16670099c 100644 --- a/ecs/src/model/AssignIpv6AddressesRequest.cc +++ b/ecs/src/model/AssignIpv6AddressesRequest.cc @@ -34,6 +34,23 @@ void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector AssignIpv6AddressesRequest::getIpv6Prefix() const { + return ipv6Prefix_; +} + +void AssignIpv6AddressesRequest::setIpv6Prefix(const std::vector &ipv6Prefix) { + ipv6Prefix_ = ipv6Prefix; +} + +int AssignIpv6AddressesRequest::getIpv6PrefixCount() const { + return ipv6PrefixCount_; +} + +void AssignIpv6AddressesRequest::setIpv6PrefixCount(int ipv6PrefixCount) { + ipv6PrefixCount_ = ipv6PrefixCount; + setParameter(std::string("Ipv6PrefixCount"), std::to_string(ipv6PrefixCount)); +} + std::string AssignIpv6AddressesRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/AssignIpv6AddressesResult.cc b/ecs/src/model/AssignIpv6AddressesResult.cc index 3f76c9eeb..55ee7631b 100644 --- a/ecs/src/model/AssignIpv6AddressesResult.cc +++ b/ecs/src/model/AssignIpv6AddressesResult.cc @@ -42,6 +42,9 @@ void AssignIpv6AddressesResult::parse(const std::string &payload) auto allIpv6Sets = value["Ipv6Sets"]["Ipv6Address"]; for (const auto &item : allIpv6Sets) ipv6Sets_.push_back(item.asString()); + auto allIpv6PrefixSets = value["Ipv6PrefixSets"]["Ipv6Prefix"]; + for (const auto &item : allIpv6PrefixSets) + ipv6PrefixSets_.push_back(item.asString()); if(!value["NetworkInterfaceId"].isNull()) networkInterfaceId_ = value["NetworkInterfaceId"].asString(); @@ -52,6 +55,11 @@ std::vector AssignIpv6AddressesResult::getIpv6Sets()const return ipv6Sets_; } +std::vector AssignIpv6AddressesResult::getIpv6PrefixSets()const +{ + return ipv6PrefixSets_; +} + std::string AssignIpv6AddressesResult::getNetworkInterfaceId()const { return networkInterfaceId_; diff --git a/ecs/src/model/AssignPrivateIpAddressesRequest.cc b/ecs/src/model/AssignPrivateIpAddressesRequest.cc index ad24f51ea..58240ed24 100644 --- a/ecs/src/model/AssignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/AssignPrivateIpAddressesRequest.cc @@ -34,6 +34,14 @@ void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector AssignPrivateIpAddressesRequest::getIpv4Prefix() const { + return ipv4Prefix_; +} + +void AssignPrivateIpAddressesRequest::setIpv4Prefix(const std::vector &ipv4Prefix) { + ipv4Prefix_ = ipv4Prefix; +} + std::string AssignPrivateIpAddressesRequest::getClientToken() const { return clientToken_; } @@ -88,6 +96,15 @@ void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +int AssignPrivateIpAddressesRequest::getIpv4PrefixCount() const { + return ipv4PrefixCount_; +} + +void AssignPrivateIpAddressesRequest::setIpv4PrefixCount(int ipv4PrefixCount) { + ipv4PrefixCount_ = ipv4PrefixCount; + setParameter(std::string("Ipv4PrefixCount"), std::to_string(ipv4PrefixCount)); +} + std::vector AssignPrivateIpAddressesRequest::getPrivateIpAddress() const { return privateIpAddress_; } diff --git a/ecs/src/model/AssignPrivateIpAddressesResult.cc b/ecs/src/model/AssignPrivateIpAddressesResult.cc index 177f09efe..9f495bd5e 100644 --- a/ecs/src/model/AssignPrivateIpAddressesResult.cc +++ b/ecs/src/model/AssignPrivateIpAddressesResult.cc @@ -45,6 +45,9 @@ void AssignPrivateIpAddressesResult::parse(const std::string &payload) auto allPrivateIpSet = assignedPrivateIpAddressesSetNode["PrivateIpSet"]["PrivateIpAddress"]; for (auto value : allPrivateIpSet) assignedPrivateIpAddressesSet_.privateIpSet.push_back(value.asString()); + auto allIpv4PrefixSet = assignedPrivateIpAddressesSetNode["Ipv4PrefixSet"]["Ipv4Prefixes"]; + for (auto value : allIpv4PrefixSet) + assignedPrivateIpAddressesSet_.ipv4PrefixSet.push_back(value.asString()); } diff --git a/ecs/src/model/AttachNetworkInterfaceRequest.cc b/ecs/src/model/AttachNetworkInterfaceRequest.cc index cef54f6b6..3fd0187a2 100644 --- a/ecs/src/model/AttachNetworkInterfaceRequest.cc +++ b/ecs/src/model/AttachNetworkInterfaceRequest.cc @@ -88,6 +88,15 @@ void AttachNetworkInterfaceRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +int AttachNetworkInterfaceRequest::getNetworkCardIndex() const { + return networkCardIndex_; +} + +void AttachNetworkInterfaceRequest::setNetworkCardIndex(int networkCardIndex) { + networkCardIndex_ = networkCardIndex; + setParameter(std::string("NetworkCardIndex"), std::to_string(networkCardIndex)); +} + std::string AttachNetworkInterfaceRequest::getInstanceId() const { return instanceId_; } diff --git a/ecs/src/model/CopySnapshotRequest.cc b/ecs/src/model/CopySnapshotRequest.cc index 31cfc195a..3cd2d694e 100644 --- a/ecs/src/model/CopySnapshotRequest.cc +++ b/ecs/src/model/CopySnapshotRequest.cc @@ -84,6 +84,21 @@ void CopySnapshotRequest::setTag(const std::vector &ta } } +std::vector CopySnapshotRequest::getArn() const { + return arn_; +} + +void CopySnapshotRequest::setArn(const std::vector &arn) { + arn_ = arn; + for(int dep1 = 0; dep1 != arn.size(); dep1++) { + auto arnObj = arn.at(dep1); + std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1); + setParameter(arnObjStr + ".RoleType", arnObj.roleType); + setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); + setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); + } +} + std::string CopySnapshotRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -120,6 +135,15 @@ void CopySnapshotRequest::setDestinationSnapshotDescription(const std::string &d setParameter(std::string("DestinationSnapshotDescription"), destinationSnapshotDescription); } +bool CopySnapshotRequest::getEncrypted() const { + return encrypted_; +} + +void CopySnapshotRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); +} + int CopySnapshotRequest::getRetentionDays() const { return retentionDays_; } @@ -129,3 +153,12 @@ void CopySnapshotRequest::setRetentionDays(int retentionDays) { setParameter(std::string("RetentionDays"), std::to_string(retentionDays)); } +std::string CopySnapshotRequest::getKMSKeyId() const { + return kMSKeyId_; +} + +void CopySnapshotRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); +} + diff --git a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc index e320d6957..4eb0ecbe0 100644 --- a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc @@ -79,6 +79,15 @@ void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("regionId"), regionId); } +std::string CreateAutoSnapshotPolicyRequest::getStorageLocationArn() const { + return storageLocationArn_; +} + +void CreateAutoSnapshotPolicyRequest::setStorageLocationArn(const std::string &storageLocationArn) { + storageLocationArn_ = storageLocationArn; + setParameter(std::string("StorageLocationArn"), storageLocationArn); +} + std::vector CreateAutoSnapshotPolicyRequest::getTag() const { return tag_; } diff --git a/ecs/src/model/CreateCommandRequest.cc b/ecs/src/model/CreateCommandRequest.cc index 1161b130a..efb6f314f 100644 --- a/ecs/src/model/CreateCommandRequest.cc +++ b/ecs/src/model/CreateCommandRequest.cc @@ -34,6 +34,21 @@ void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector CreateCommandRequest::getSystemTag() const { + return systemTag_; +} + +void CreateCommandRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } +} + std::string CreateCommandRequest::getWorkingDir() const { return workingDir_; } @@ -97,6 +112,20 @@ void CreateCommandRequest::setContentEncoding(const std::string &contentEncoding setParameter(std::string("ContentEncoding"), contentEncoding); } +std::vector CreateCommandRequest::getTag() const { + return tag_; +} + +void CreateCommandRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::string CreateCommandRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc b/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc deleted file mode 100644 index 04733c8c1..000000000 --- a/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Ecs::Model::CreateDedicatedBlockStorageClusterRequest; - -CreateDedicatedBlockStorageClusterRequest::CreateDedicatedBlockStorageClusterRequest() - : RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedBlockStorageCluster") { - setMethod(HttpRequest::Method::Post); -} - -CreateDedicatedBlockStorageClusterRequest::~CreateDedicatedBlockStorageClusterRequest() {} - -long CreateDedicatedBlockStorageClusterRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getDedicatedBlockStorageClusterName() const { - return dedicatedBlockStorageClusterName_; -} - -void CreateDedicatedBlockStorageClusterRequest::setDedicatedBlockStorageClusterName(const std::string &dedicatedBlockStorageClusterName) { - dedicatedBlockStorageClusterName_ = dedicatedBlockStorageClusterName; - setParameter(std::string("DedicatedBlockStorageClusterName"), dedicatedBlockStorageClusterName); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getClientToken() const { - return clientToken_; -} - -void CreateDedicatedBlockStorageClusterRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getDescription() const { - return description_; -} - -void CreateDedicatedBlockStorageClusterRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getType() const { - return type_; -} - -void CreateDedicatedBlockStorageClusterRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -int CreateDedicatedBlockStorageClusterRequest::getCapacity() const { - return capacity_; -} - -void CreateDedicatedBlockStorageClusterRequest::setCapacity(int capacity) { - capacity_ = capacity; - setParameter(std::string("Capacity"), std::to_string(capacity)); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getRegionId() const { - return regionId_; -} - -void CreateDedicatedBlockStorageClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int CreateDedicatedBlockStorageClusterRequest::getPeriod() const { - return period_; -} - -void CreateDedicatedBlockStorageClusterRequest::setPeriod(int period) { - period_ = period; - setParameter(std::string("Period"), std::to_string(period)); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getFromApp() const { - return fromApp_; -} - -void CreateDedicatedBlockStorageClusterRequest::setFromApp(const std::string &fromApp) { - fromApp_ = fromApp; - setParameter(std::string("FromApp"), fromApp); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateDedicatedBlockStorageClusterRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long CreateDedicatedBlockStorageClusterRequest::getOwnerId() const { - return ownerId_; -} - -void CreateDedicatedBlockStorageClusterRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getPeriodUnit() const { - return periodUnit_; -} - -void CreateDedicatedBlockStorageClusterRequest::setPeriodUnit(const std::string &periodUnit) { - periodUnit_ = periodUnit; - setParameter(std::string("PeriodUnit"), periodUnit); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getZoneId() const { - return zoneId_; -} - -void CreateDedicatedBlockStorageClusterRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -std::string CreateDedicatedBlockStorageClusterRequest::getCategory() const { - return category_; -} - -void CreateDedicatedBlockStorageClusterRequest::setCategory(const std::string &category) { - category_ = category; - setParameter(std::string("Category"), category); -} - diff --git a/ecs/src/model/CreateDedicatedBlockStorageClusterResult.cc b/ecs/src/model/CreateDedicatedBlockStorageClusterResult.cc deleted file mode 100644 index 5d08f1d59..000000000 --- a/ecs/src/model/CreateDedicatedBlockStorageClusterResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -CreateDedicatedBlockStorageClusterResult::CreateDedicatedBlockStorageClusterResult() : - ServiceResult() -{} - -CreateDedicatedBlockStorageClusterResult::CreateDedicatedBlockStorageClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDedicatedBlockStorageClusterResult::~CreateDedicatedBlockStorageClusterResult() -{} - -void CreateDedicatedBlockStorageClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DedicatedBlockStorageClusterOrderId"].isNull()) - dedicatedBlockStorageClusterOrderId_ = value["DedicatedBlockStorageClusterOrderId"].asString(); - if(!value["DedicatedBlockStorageClusterId"].isNull()) - dedicatedBlockStorageClusterId_ = value["DedicatedBlockStorageClusterId"].asString(); - -} - -std::string CreateDedicatedBlockStorageClusterResult::getDedicatedBlockStorageClusterOrderId()const -{ - return dedicatedBlockStorageClusterOrderId_; -} - -std::string CreateDedicatedBlockStorageClusterResult::getDedicatedBlockStorageClusterId()const -{ - return dedicatedBlockStorageClusterId_; -} - diff --git a/ecs/src/model/CreateDiskRequest.cc b/ecs/src/model/CreateDiskRequest.cc index 8e7ee6f3f..c072f1c41 100644 --- a/ecs/src/model/CreateDiskRequest.cc +++ b/ecs/src/model/CreateDiskRequest.cc @@ -34,24 +34,6 @@ void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateDiskRequest::getSnapshotId() const { - return snapshotId_; -} - -void CreateDiskRequest::setSnapshotId(const std::string &snapshotId) { - snapshotId_ = snapshotId; - setParameter(std::string("SnapshotId"), snapshotId); -} - -std::string CreateDiskRequest::getClientToken() const { - return clientToken_; -} - -void CreateDiskRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - std::string CreateDiskRequest::getEncryptAlgorithm() const { return encryptAlgorithm_; } @@ -61,15 +43,6 @@ void CreateDiskRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm); } -std::string CreateDiskRequest::getDescription() const { - return description_; -} - -void CreateDiskRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - std::string CreateDiskRequest::getDiskName() const { return diskName_; } @@ -88,6 +61,125 @@ void CreateDiskRequest::setResourceGroupId(const std::string &resourceGroupId) { setParameter(std::string("ResourceGroupId"), resourceGroupId); } +int CreateDiskRequest::getStorageSetPartitionNumber() const { + return storageSetPartitionNumber_; +} + +void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { + storageSetPartitionNumber_ = storageSetPartitionNumber; + setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); +} + +std::vector CreateDiskRequest::getTag() const { + return tag_; +} + +void CreateDiskRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +long CreateDiskRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long CreateDiskRequest::getProvisionedIops() const { + return provisionedIops_; +} + +void CreateDiskRequest::setProvisionedIops(long provisionedIops) { + provisionedIops_ = provisionedIops; + setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops)); +} + +std::string CreateDiskRequest::getInstanceId() const { + return instanceId_; +} + +void CreateDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int CreateDiskRequest::getSize() const { + return size_; +} + +void CreateDiskRequest::setSize(int size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); +} + +std::string CreateDiskRequest::getZoneId() const { + return zoneId_; +} + +void CreateDiskRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateDiskRequest::getStorageClusterId() const { + return storageClusterId_; +} + +void CreateDiskRequest::setStorageClusterId(const std::string &storageClusterId) { + storageClusterId_ = storageClusterId; + setParameter(std::string("StorageClusterId"), storageClusterId); +} + +std::string CreateDiskRequest::getSnapshotId() const { + return snapshotId_; +} + +void CreateDiskRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); +} + +std::string CreateDiskRequest::getClientToken() const { + return clientToken_; +} + +void CreateDiskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateDiskRequest::getSystemTag() const { + return systemTag_; +} + +void CreateDiskRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + } +} + +std::string CreateDiskRequest::getDescription() const { + return description_; +} + +void CreateDiskRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + std::string CreateDiskRequest::getRegionId() const { return regionId_; } @@ -106,15 +198,6 @@ void CreateDiskRequest::setDiskCategory(const std::string &diskCategory) { setParameter(std::string("DiskCategory"), diskCategory); } -int CreateDiskRequest::getStorageSetPartitionNumber() const { - return storageSetPartitionNumber_; -} - -void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { - storageSetPartitionNumber_ = storageSetPartitionNumber; - setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); -} - std::string CreateDiskRequest::getMultiAttach() const { return multiAttach_; } @@ -124,20 +207,6 @@ void CreateDiskRequest::setMultiAttach(const std::string &multiAttach) { setParameter(std::string("MultiAttach"), multiAttach); } -std::vector CreateDiskRequest::getTag() const { - return tag_; -} - -void CreateDiskRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - std::string CreateDiskRequest::getAdvancedFeatures() const { return advancedFeatures_; } @@ -189,15 +258,6 @@ void CreateDiskRequest::setOwnerAccount(const std::string &ownerAccount) { setParameter(std::string("OwnerAccount"), ownerAccount); } -long CreateDiskRequest::getOwnerId() const { - return ownerId_; -} - -void CreateDiskRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - bool CreateDiskRequest::getBurstingEnabled() const { return burstingEnabled_; } @@ -207,24 +267,6 @@ void CreateDiskRequest::setBurstingEnabled(bool burstingEnabled) { setParameter(std::string("BurstingEnabled"), burstingEnabled ? "true" : "false"); } -long CreateDiskRequest::getProvisionedIops() const { - return provisionedIops_; -} - -void CreateDiskRequest::setProvisionedIops(long provisionedIops) { - provisionedIops_ = provisionedIops; - setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops)); -} - -std::string CreateDiskRequest::getInstanceId() const { - return instanceId_; -} - -void CreateDiskRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - std::string CreateDiskRequest::getStorageSetId() const { return storageSetId_; } @@ -234,15 +276,6 @@ void CreateDiskRequest::setStorageSetId(const std::string &storageSetId) { setParameter(std::string("StorageSetId"), storageSetId); } -int CreateDiskRequest::getSize() const { - return size_; -} - -void CreateDiskRequest::setSize(int size) { - size_ = size; - setParameter(std::string("Size"), std::to_string(size)); -} - bool CreateDiskRequest::getEncrypted() const { return encrypted_; } @@ -252,24 +285,6 @@ void CreateDiskRequest::setEncrypted(bool encrypted) { setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); } -std::string CreateDiskRequest::getZoneId() const { - return zoneId_; -} - -void CreateDiskRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -std::string CreateDiskRequest::getStorageClusterId() const { - return storageClusterId_; -} - -void CreateDiskRequest::setStorageClusterId(const std::string &storageClusterId) { - storageClusterId_ = storageClusterId; - setParameter(std::string("StorageClusterId"), storageClusterId); -} - std::string CreateDiskRequest::getKMSKeyId() const { return kMSKeyId_; } diff --git a/ecs/src/model/CreateImageRequest.cc b/ecs/src/model/CreateImageRequest.cc index a64211d43..e9a6e4a4b 100644 --- a/ecs/src/model/CreateImageRequest.cc +++ b/ecs/src/model/CreateImageRequest.cc @@ -68,6 +68,21 @@ void CreateImageRequest::setClientToken(const std::string &clientToken) { setParameter(std::string("ClientToken"), clientToken); } +std::vector CreateImageRequest::getSystemTag() const { + return systemTag_; +} + +void CreateImageRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + } +} + std::string CreateImageRequest::getDescription() const { return description_; } @@ -122,6 +137,15 @@ void CreateImageRequest::setImageName(const std::string &imageName) { setParameter(std::string("ImageName"), imageName); } +std::string CreateImageRequest::getStorageLocationArn() const { + return storageLocationArn_; +} + +void CreateImageRequest::setStorageLocationArn(const std::string &storageLocationArn) { + storageLocationArn_ = storageLocationArn; + setParameter(std::string("StorageLocationArn"), storageLocationArn); +} + std::vector CreateImageRequest::getTag() const { return tag_; } @@ -145,6 +169,15 @@ void CreateImageRequest::setArchitecture(const std::string &architecture) { setParameter(std::string("Architecture"), architecture); } +std::string CreateImageRequest::getDetectionStrategy() const { + return detectionStrategy_; +} + +void CreateImageRequest::setDetectionStrategy(const std::string &detectionStrategy) { + detectionStrategy_ = detectionStrategy; + setParameter(std::string("DetectionStrategy"), detectionStrategy); +} + std::string CreateImageRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/ecs/src/model/CreateLaunchTemplateRequest.cc b/ecs/src/model/CreateLaunchTemplateRequest.cc index 597261ebd..d3670ac8e 100644 --- a/ecs/src/model/CreateLaunchTemplateRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateRequest.cc @@ -545,3 +545,12 @@ void CreateLaunchTemplateRequest::setSystemDiskDescription(const std::string &sy setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } +std::string CreateLaunchTemplateRequest::getSystemDiskEncrypted() const { + return systemDiskEncrypted_; +} + +void CreateLaunchTemplateRequest::setSystemDiskEncrypted(const std::string &systemDiskEncrypted) { + systemDiskEncrypted_ = systemDiskEncrypted; + setParameter(std::string("SystemDisk.Encrypted"), systemDiskEncrypted); +} + diff --git a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc index 699095d65..afa9c6ffa 100644 --- a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc @@ -531,3 +531,12 @@ void CreateLaunchTemplateVersionRequest::setSystemDiskDescription(const std::str setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } +std::string CreateLaunchTemplateVersionRequest::getSystemDiskEncrypted() const { + return systemDiskEncrypted_; +} + +void CreateLaunchTemplateVersionRequest::setSystemDiskEncrypted(const std::string &systemDiskEncrypted) { + systemDiskEncrypted_ = systemDiskEncrypted; + setParameter(std::string("SystemDisk.Encrypted"), systemDiskEncrypted); +} + diff --git a/ecs/src/model/CreateNetworkInterfaceRequest.cc b/ecs/src/model/CreateNetworkInterfaceRequest.cc index 98164444b..1626e0460 100644 --- a/ecs/src/model/CreateNetworkInterfaceRequest.cc +++ b/ecs/src/model/CreateNetworkInterfaceRequest.cc @@ -43,31 +43,12 @@ void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateNetworkInterfaceRequest::getClientToken() const { - return clientToken_; +std::vector CreateNetworkInterfaceRequest::getIpv4Prefix() const { + return ipv4Prefix_; } -void CreateNetworkInterfaceRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateNetworkInterfaceRequest::getSecurityGroupId() const { - return securityGroupId_; -} - -void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string &securityGroupId) { - securityGroupId_ = securityGroupId; - setParameter(std::string("SecurityGroupId"), securityGroupId); -} - -std::string CreateNetworkInterfaceRequest::getDescription() const { - return description_; -} - -void CreateNetworkInterfaceRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); +void CreateNetworkInterfaceRequest::setIpv4Prefix(const std::vector &ipv4Prefix) { + ipv4Prefix_ = ipv4Prefix; } int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount() const { @@ -97,24 +78,6 @@ void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string &resour setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateNetworkInterfaceRequest::getRegionId() const { - return regionId_; -} - -void CreateNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateNetworkInterfaceRequest::getInstanceType() const { - return instanceType_; -} - -void CreateNetworkInterfaceRequest::setInstanceType(const std::string &instanceType) { - instanceType_ = instanceType; - setParameter(std::string("InstanceType"), instanceType); -} - std::vector CreateNetworkInterfaceRequest::getTag() const { return tag_; } @@ -147,15 +110,6 @@ void CreateNetworkInterfaceRequest::setVisible(bool visible) { setParameter(std::string("Visible"), visible ? "true" : "false"); } -std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - int CreateNetworkInterfaceRequest::getIpv6AddressCount() const { return ipv6AddressCount_; } @@ -165,6 +119,111 @@ void CreateNetworkInterfaceRequest::setIpv6AddressCount(int ipv6AddressCount) { setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount)); } +long CreateNetworkInterfaceRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNetworkInterfaceRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::vector CreateNetworkInterfaceRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { + privateIpAddress_ = privateIpAddress; +} + +std::vector CreateNetworkInterfaceRequest::getIpv6Address() const { + return ipv6Address_; +} + +void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; +} + +std::string CreateNetworkInterfaceRequest::getClientToken() const { + return clientToken_; +} + +void CreateNetworkInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateNetworkInterfaceRequest::getIpv6Prefix() const { + return ipv6Prefix_; +} + +void CreateNetworkInterfaceRequest::setIpv6Prefix(const std::vector &ipv6Prefix) { + ipv6Prefix_ = ipv6Prefix; +} + +std::string CreateNetworkInterfaceRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string CreateNetworkInterfaceRequest::getDescription() const { + return description_; +} + +void CreateNetworkInterfaceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateNetworkInterfaceRequest::getIpv6PrefixCount() const { + return ipv6PrefixCount_; +} + +void CreateNetworkInterfaceRequest::setIpv6PrefixCount(int ipv6PrefixCount) { + ipv6PrefixCount_ = ipv6PrefixCount; + setParameter(std::string("Ipv6PrefixCount"), std::to_string(ipv6PrefixCount)); +} + +std::string CreateNetworkInterfaceRequest::getRegionId() const { + return regionId_; +} + +void CreateNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateNetworkInterfaceRequest::getInstanceType() const { + return instanceType_; +} + +void CreateNetworkInterfaceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + std::string CreateNetworkInterfaceRequest::getOwnerAccount() const { return ownerAccount_; } @@ -183,15 +242,6 @@ void CreateNetworkInterfaceRequest::setQueuePairNumber(int queuePairNumber) { setParameter(std::string("QueuePairNumber"), std::to_string(queuePairNumber)); } -long CreateNetworkInterfaceRequest::getOwnerId() const { - return ownerId_; -} - -void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::vector CreateNetworkInterfaceRequest::getSecurityGroupIds() const { return securityGroupIds_; } @@ -209,21 +259,13 @@ void CreateNetworkInterfaceRequest::setNetworkInterfaceTrafficMode(const std::st setParameter(std::string("NetworkInterfaceTrafficMode"), networkInterfaceTrafficMode); } -std::string CreateNetworkInterfaceRequest::getVSwitchId() const { - return vSwitchId_; +int CreateNetworkInterfaceRequest::getIpv4PrefixCount() const { + return ipv4PrefixCount_; } -void CreateNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); -} - -std::vector CreateNetworkInterfaceRequest::getPrivateIpAddress() const { - return privateIpAddress_; -} - -void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { - privateIpAddress_ = privateIpAddress; +void CreateNetworkInterfaceRequest::setIpv4PrefixCount(int ipv4PrefixCount) { + ipv4PrefixCount_ = ipv4PrefixCount; + setParameter(std::string("Ipv4PrefixCount"), std::to_string(ipv4PrefixCount)); } std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress() const { @@ -235,11 +277,3 @@ void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string &prima setParameter(std::string("PrimaryIpAddress"), primaryIpAddress); } -std::vector CreateNetworkInterfaceRequest::getIpv6Address() const { - return ipv6Address_; -} - -void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector &ipv6Address) { - ipv6Address_ = ipv6Address; -} - diff --git a/ecs/src/model/CreateNetworkInterfaceResult.cc b/ecs/src/model/CreateNetworkInterfaceResult.cc index c6019c23f..21119bdd5 100644 --- a/ecs/src/model/CreateNetworkInterfaceResult.cc +++ b/ecs/src/model/CreateNetworkInterfaceResult.cc @@ -67,6 +67,22 @@ void CreateNetworkInterfaceResult::parse(const std::string &payload) ipv6SetsObject.ipv6Address = valueIpv6SetsIpv6Set["Ipv6Address"].asString(); ipv6Sets_.push_back(ipv6SetsObject); } + auto allIpv4PrefixSetsNode = value["Ipv4PrefixSets"]["Ipv4PrefixSet"]; + for (auto valueIpv4PrefixSetsIpv4PrefixSet : allIpv4PrefixSetsNode) + { + Ipv4PrefixSet ipv4PrefixSetsObject; + if(!valueIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].isNull()) + ipv4PrefixSetsObject.ipv4Prefix = valueIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].asString(); + ipv4PrefixSets_.push_back(ipv4PrefixSetsObject); + } + auto allIpv6PrefixSetsNode = value["Ipv6PrefixSets"]["Ipv6PrefixSet"]; + for (auto valueIpv6PrefixSetsIpv6PrefixSet : allIpv6PrefixSetsNode) + { + Ipv6PrefixSet ipv6PrefixSetsObject; + if(!valueIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].isNull()) + ipv6PrefixSetsObject.ipv6Prefix = valueIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].asString(); + ipv6PrefixSets_.push_back(ipv6PrefixSetsObject); + } auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; for (const auto &item : allSecurityGroupIds) securityGroupIds_.push_back(item.asString()); @@ -181,11 +197,21 @@ std::string CreateNetworkInterfaceResult::getOwnerId()const return ownerId_; } +std::vector CreateNetworkInterfaceResult::getIpv6PrefixSets()const +{ + return ipv6PrefixSets_; +} + std::vector CreateNetworkInterfaceResult::getTags()const { return tags_; } +std::vector CreateNetworkInterfaceResult::getIpv4PrefixSets()const +{ + return ipv4PrefixSets_; +} + std::vector CreateNetworkInterfaceResult::getPrivateIpSets()const { return privateIpSets_; diff --git a/ecs/src/model/CreateSnapshotGroupRequest.cc b/ecs/src/model/CreateSnapshotGroupRequest.cc index a487fbed2..50584dac0 100644 --- a/ecs/src/model/CreateSnapshotGroupRequest.cc +++ b/ecs/src/model/CreateSnapshotGroupRequest.cc @@ -87,6 +87,15 @@ void CreateSnapshotGroupRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string CreateSnapshotGroupRequest::getStorageLocationArn() const { + return storageLocationArn_; +} + +void CreateSnapshotGroupRequest::setStorageLocationArn(const std::string &storageLocationArn) { + storageLocationArn_ = storageLocationArn; + setParameter(std::string("StorageLocationArn"), storageLocationArn); +} + std::vector CreateSnapshotGroupRequest::getDiskId() const { return diskId_; } diff --git a/ecs/src/model/CreateSnapshotRequest.cc b/ecs/src/model/CreateSnapshotRequest.cc index 0115aeaff..f1fb9c47f 100644 --- a/ecs/src/model/CreateSnapshotRequest.cc +++ b/ecs/src/model/CreateSnapshotRequest.cc @@ -52,6 +52,21 @@ void CreateSnapshotRequest::setInstantAccess(bool instantAccess) { setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false"); } +std::vector CreateSnapshotRequest::getSystemTag() const { + return systemTag_; +} + +void CreateSnapshotRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + } +} + std::string CreateSnapshotRequest::getDescription() const { return description_; } @@ -88,6 +103,15 @@ void CreateSnapshotRequest::setInstantAccessRetentionDays(int instantAccessReten setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays)); } +std::string CreateSnapshotRequest::getStorageLocationArn() const { + return storageLocationArn_; +} + +void CreateSnapshotRequest::setStorageLocationArn(const std::string &storageLocationArn) { + storageLocationArn_ = storageLocationArn; + setParameter(std::string("StorageLocationArn"), storageLocationArn); +} + std::string CreateSnapshotRequest::getDiskId() const { return diskId_; } diff --git a/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc b/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc deleted file mode 100644 index 3df441542..000000000 --- a/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Ecs::Model::DescribeDedicatedBlockStorageClustersRequest; - -DescribeDedicatedBlockStorageClustersRequest::DescribeDedicatedBlockStorageClustersRequest() - : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedBlockStorageClusters") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedBlockStorageClustersRequest::~DescribeDedicatedBlockStorageClustersRequest() {} - -long DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getRegionId() const { - return regionId_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getNextToken() const { - return nextToken_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::vector DescribeDedicatedBlockStorageClustersRequest::getDedicatedBlockStorageClusterId() const { - return dedicatedBlockStorageClusterId_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setDedicatedBlockStorageClusterId(const std::vector &dedicatedBlockStorageClusterId) { - dedicatedBlockStorageClusterId_ = dedicatedBlockStorageClusterId; -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeDedicatedBlockStorageClustersRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getZoneId() const { - return zoneId_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -int DescribeDedicatedBlockStorageClustersRequest::getMaxResults() const { - return maxResults_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string DescribeDedicatedBlockStorageClustersRequest::getCategory() const { - return category_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setCategory(const std::string &category) { - category_ = category; - setParameter(std::string("Category"), category); -} - -std::vector DescribeDedicatedBlockStorageClustersRequest::getStatus() const { - return status_; -} - -void DescribeDedicatedBlockStorageClustersRequest::setStatus(const std::vector &status) { - status_ = status; -} - diff --git a/ecs/src/model/DescribeDedicatedBlockStorageClustersResult.cc b/ecs/src/model/DescribeDedicatedBlockStorageClustersResult.cc deleted file mode 100644 index 849113753..000000000 --- a/ecs/src/model/DescribeDedicatedBlockStorageClustersResult.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Ecs; -using namespace AlibabaCloud::Ecs::Model; - -DescribeDedicatedBlockStorageClustersResult::DescribeDedicatedBlockStorageClustersResult() : - ServiceResult() -{} - -DescribeDedicatedBlockStorageClustersResult::DescribeDedicatedBlockStorageClustersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedBlockStorageClustersResult::~DescribeDedicatedBlockStorageClustersResult() -{} - -void DescribeDedicatedBlockStorageClustersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDedicatedBlockStorageClustersNode = value["DedicatedBlockStorageClusters"]["DedicatedBlockStorageCluster"]; - for (auto valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster : allDedicatedBlockStorageClustersNode) - { - DedicatedBlockStorageCluster dedicatedBlockStorageClustersObject; - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Status"].isNull()) - dedicatedBlockStorageClustersObject.status = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Status"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Type"].isNull()) - dedicatedBlockStorageClustersObject.type = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Type"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Description"].isNull()) - dedicatedBlockStorageClustersObject.description = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Description"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["ExpiredTime"].isNull()) - dedicatedBlockStorageClustersObject.expiredTime = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["ExpiredTime"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["CreateTime"].isNull()) - dedicatedBlockStorageClustersObject.createTime = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["CreateTime"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["ZoneId"].isNull()) - dedicatedBlockStorageClustersObject.zoneId = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["ZoneId"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Category"].isNull()) - dedicatedBlockStorageClustersObject.category = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["Category"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["DedicatedBlockStorageClusterName"].isNull()) - dedicatedBlockStorageClustersObject.dedicatedBlockStorageClusterName = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["DedicatedBlockStorageClusterName"].asString(); - if(!valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["DedicatedBlockStorageClusterId"].isNull()) - dedicatedBlockStorageClustersObject.dedicatedBlockStorageClusterId = valueDedicatedBlockStorageClustersDedicatedBlockStorageCluster["DedicatedBlockStorageClusterId"].asString(); - auto dedicatedBlockStorageClusterCapacityNode = value["DedicatedBlockStorageClusterCapacity"]; - if(!dedicatedBlockStorageClusterCapacityNode["TotalCapacity"].isNull()) - dedicatedBlockStorageClustersObject.dedicatedBlockStorageClusterCapacity.totalCapacity = std::stol(dedicatedBlockStorageClusterCapacityNode["TotalCapacity"].asString()); - if(!dedicatedBlockStorageClusterCapacityNode["AvailableCapacity"].isNull()) - dedicatedBlockStorageClustersObject.dedicatedBlockStorageClusterCapacity.availableCapacity = std::stol(dedicatedBlockStorageClusterCapacityNode["AvailableCapacity"].asString()); - dedicatedBlockStorageClusters_.push_back(dedicatedBlockStorageClustersObject); - } - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - -} - -std::vector DescribeDedicatedBlockStorageClustersResult::getDedicatedBlockStorageClusters()const -{ - return dedicatedBlockStorageClusters_; -} - -std::string DescribeDedicatedBlockStorageClustersResult::getNextToken()const -{ - return nextToken_; -} - diff --git a/ecs/src/model/DescribeDiagnosticReportAttributesRequest.cc b/ecs/src/model/DescribeDiagnosticReportAttributesRequest.cc new file mode 100644 index 000000000..dd76bad5a --- /dev/null +++ b/ecs/src/model/DescribeDiagnosticReportAttributesRequest.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::Ecs::Model::DescribeDiagnosticReportAttributesRequest; + +DescribeDiagnosticReportAttributesRequest::DescribeDiagnosticReportAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDiagnosticReportAttributes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosticReportAttributesRequest::~DescribeDiagnosticReportAttributesRequest() {} + +std::string DescribeDiagnosticReportAttributesRequest::getReportId() const { + return reportId_; +} + +void DescribeDiagnosticReportAttributesRequest::setReportId(const std::string &reportId) { + reportId_ = reportId; + setParameter(std::string("ReportId"), reportId); +} + +std::string DescribeDiagnosticReportAttributesRequest::getRegionId() const { + return regionId_; +} + +void DescribeDiagnosticReportAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ecs/src/model/DescribeDiagnosticReportAttributesResult.cc b/ecs/src/model/DescribeDiagnosticReportAttributesResult.cc new file mode 100644 index 000000000..9c32fbd32 --- /dev/null +++ b/ecs/src/model/DescribeDiagnosticReportAttributesResult.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDiagnosticReportAttributesResult::DescribeDiagnosticReportAttributesResult() : + ServiceResult() +{} + +DescribeDiagnosticReportAttributesResult::DescribeDiagnosticReportAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosticReportAttributesResult::~DescribeDiagnosticReportAttributesResult() +{} + +void DescribeDiagnosticReportAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricResultsNode = value["MetricResults"]["MetricResult"]; + for (auto valueMetricResultsMetricResult : allMetricResultsNode) + { + MetricResult metricResultsObject; + if(!valueMetricResultsMetricResult["MetricId"].isNull()) + metricResultsObject.metricId = valueMetricResultsMetricResult["MetricId"].asString(); + if(!valueMetricResultsMetricResult["MetricCategory"].isNull()) + metricResultsObject.metricCategory = valueMetricResultsMetricResult["MetricCategory"].asString(); + if(!valueMetricResultsMetricResult["Severity"].isNull()) + metricResultsObject.severity = valueMetricResultsMetricResult["Severity"].asString(); + if(!valueMetricResultsMetricResult["Status"].isNull()) + metricResultsObject.status = valueMetricResultsMetricResult["Status"].asString(); + auto allIssuesNode = valueMetricResultsMetricResult["Issues"]["Issue"]; + for (auto valueMetricResultsMetricResultIssuesIssue : allIssuesNode) + { + MetricResult::Issue issuesObject; + if(!valueMetricResultsMetricResultIssuesIssue["IssueId"].isNull()) + issuesObject.issueId = valueMetricResultsMetricResultIssuesIssue["IssueId"].asString(); + if(!valueMetricResultsMetricResultIssuesIssue["Severity"].isNull()) + issuesObject.severity = valueMetricResultsMetricResultIssuesIssue["Severity"].asString(); + if(!valueMetricResultsMetricResultIssuesIssue["Additional"].isNull()) + issuesObject.additional = valueMetricResultsMetricResultIssuesIssue["Additional"].asString(); + if(!valueMetricResultsMetricResultIssuesIssue["OccurrenceTime"].isNull()) + issuesObject.occurrenceTime = valueMetricResultsMetricResultIssuesIssue["OccurrenceTime"].asString(); + metricResultsObject.issues.push_back(issuesObject); + } + metricResults_.push_back(metricResultsObject); + } + if(!value["ResourceId"].isNull()) + resourceId_ = value["ResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourceType_ = value["ResourceType"].asString(); + if(!value["ReportId"].isNull()) + reportId_ = value["ReportId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["FinishedTime"].isNull()) + finishedTime_ = value["FinishedTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["Severity"].isNull()) + severity_ = value["Severity"].asString(); + if(!value["MetricSetId"].isNull()) + metricSetId_ = value["MetricSetId"].asString(); + if(!value["Attributes"].isNull()) + attributes_ = value["Attributes"].asString(); + +} + +std::string DescribeDiagnosticReportAttributesResult::getStatus()const +{ + return status_; +} + +std::string DescribeDiagnosticReportAttributesResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDiagnosticReportAttributesResult::getResourceId()const +{ + return resourceId_; +} + +std::string DescribeDiagnosticReportAttributesResult::getMetricSetId()const +{ + return metricSetId_; +} + +std::vector DescribeDiagnosticReportAttributesResult::getMetricResults()const +{ + return metricResults_; +} + +std::string DescribeDiagnosticReportAttributesResult::getCreationTime()const +{ + return creationTime_; +} + +std::string DescribeDiagnosticReportAttributesResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDiagnosticReportAttributesResult::getAttributes()const +{ + return attributes_; +} + +std::string DescribeDiagnosticReportAttributesResult::getReportId()const +{ + return reportId_; +} + +std::string DescribeDiagnosticReportAttributesResult::getResourceType()const +{ + return resourceType_; +} + +std::string DescribeDiagnosticReportAttributesResult::getSeverity()const +{ + return severity_; +} + +std::string DescribeDiagnosticReportAttributesResult::getFinishedTime()const +{ + return finishedTime_; +} + diff --git a/ecs/src/model/DescribeInstanceTypesResult.cc b/ecs/src/model/DescribeInstanceTypesResult.cc index 8d68c794b..168a2c5ef 100644 --- a/ecs/src/model/DescribeInstanceTypesResult.cc +++ b/ecs/src/model/DescribeInstanceTypesResult.cc @@ -115,6 +115,16 @@ void DescribeInstanceTypesResult::parse(const std::string &payload) instanceTypesObject.cpuArchitecture = valueInstanceTypesInstanceType["CpuArchitecture"].asString(); if(!valueInstanceTypesInstanceType["GPUMemorySize"].isNull()) instanceTypesObject.gPUMemorySize = std::stof(valueInstanceTypesInstanceType["GPUMemorySize"].asString()); + if(!valueInstanceTypesInstanceType["NetworkCardQuantity"].isNull()) + instanceTypesObject.networkCardQuantity = std::stoi(valueInstanceTypesInstanceType["NetworkCardQuantity"].asString()); + auto allNetworkCardsNode = valueInstanceTypesInstanceType["NetworkCards"]["NetworkCardInfo"]; + for (auto valueInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo : allNetworkCardsNode) + { + InstanceType::NetworkCardInfo networkCardsObject; + if(!valueInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo["NetworkCardIndex"].isNull()) + networkCardsObject.networkCardIndex = std::stoi(valueInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo["NetworkCardIndex"].asString()); + instanceTypesObject.networkCards.push_back(networkCardsObject); + } instanceTypes_.push_back(instanceTypesObject); } if(!value["NextToken"].isNull()) diff --git a/ecs/src/model/DescribeInstancesResult.cc b/ecs/src/model/DescribeInstancesResult.cc index 245eb1e47..3731b6653 100644 --- a/ecs/src/model/DescribeInstancesResult.cc +++ b/ecs/src/model/DescribeInstancesResult.cc @@ -167,6 +167,22 @@ void DescribeInstancesResult::parse(const std::string &payload) ipv6SetsObject.ipv6Address = valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set["Ipv6Address"].asString(); networkInterfacesObject.ipv6Sets.push_back(ipv6SetsObject); } + auto allIpv4PrefixSetsNode = valueInstancesInstanceNetworkInterfacesNetworkInterface["Ipv4PrefixSets"]["Ipv4PrefixSet"]; + for (auto valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet : allIpv4PrefixSetsNode) + { + Instance::NetworkInterface::Ipv4PrefixSet ipv4PrefixSetsObject; + if(!valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].isNull()) + ipv4PrefixSetsObject.ipv4Prefix = valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].asString(); + networkInterfacesObject.ipv4PrefixSets.push_back(ipv4PrefixSetsObject); + } + auto allIpv6PrefixSetsNode = valueInstancesInstanceNetworkInterfacesNetworkInterface["Ipv6PrefixSets"]["Ipv6PrefixSet"]; + for (auto valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet : allIpv6PrefixSetsNode) + { + Instance::NetworkInterface::Ipv6PrefixSet ipv6PrefixSetsObject; + if(!valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].isNull()) + ipv6PrefixSetsObject.ipv6Prefix = valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].asString(); + networkInterfacesObject.ipv6PrefixSets.push_back(ipv6PrefixSetsObject); + } instancesObject.networkInterfaces.push_back(networkInterfacesObject); } auto allOperationLocksNode = valueInstancesInstance["OperationLocks"]["LockReason"]; diff --git a/ecs/src/model/DescribeInvocationResultsRequest.cc b/ecs/src/model/DescribeInvocationResultsRequest.cc index 0c2a85f92..e4da7ee59 100644 --- a/ecs/src/model/DescribeInvocationResultsRequest.cc +++ b/ecs/src/model/DescribeInvocationResultsRequest.cc @@ -52,6 +52,15 @@ void DescribeInvocationResultsRequest::setPageNumber(long pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeInvocationResultsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeInvocationResultsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeInvocationResultsRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/DescribeInvocationsRequest.cc b/ecs/src/model/DescribeInvocationsRequest.cc index 3b5e3f3c7..a00154416 100644 --- a/ecs/src/model/DescribeInvocationsRequest.cc +++ b/ecs/src/model/DescribeInvocationsRequest.cc @@ -70,6 +70,15 @@ void DescribeInvocationsRequest::setPageNumber(long pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeInvocationsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeInvocationsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeInvocationsRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc index 68d4dfa3f..7d9f99234 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc @@ -142,6 +142,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) launchTemplateVersionSetsObject.launchTemplateData.systemDiskProvisionedIops = std::stol(launchTemplateDataNode["SystemDisk.ProvisionedIops"].asString()); if(!launchTemplateDataNode["SystemDisk.BurstingEnabled"].isNull()) launchTemplateVersionSetsObject.launchTemplateData.systemDiskBurstingEnabled = launchTemplateDataNode["SystemDisk.BurstingEnabled"].asString() == "true"; + if(!launchTemplateDataNode["SystemDisk.Encrypted"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskEncrypted = launchTemplateDataNode["SystemDisk.Encrypted"].asString(); auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"]; for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode) { diff --git a/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc b/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc index 862637a83..d2c8dd792 100644 --- a/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc +++ b/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc @@ -62,6 +62,22 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload) ipv6SetsObject.ipv6Address = valueIpv6SetsIpv6Set["Ipv6Address"].asString(); ipv6Sets_.push_back(ipv6SetsObject); } + auto allIpv4PrefixSetsNode = value["Ipv4PrefixSets"]["Ipv4PrefixSet"]; + for (auto valueIpv4PrefixSetsIpv4PrefixSet : allIpv4PrefixSetsNode) + { + Ipv4PrefixSet ipv4PrefixSetsObject; + if(!valueIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].isNull()) + ipv4PrefixSetsObject.ipv4Prefix = valueIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].asString(); + ipv4PrefixSets_.push_back(ipv4PrefixSetsObject); + } + auto allIpv6PrefixSetsNode = value["Ipv6PrefixSets"]["Ipv6PrefixSet"]; + for (auto valueIpv6PrefixSetsIpv6PrefixSet : allIpv6PrefixSetsNode) + { + Ipv6PrefixSet ipv6PrefixSetsObject; + if(!valueIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].isNull()) + ipv6PrefixSetsObject.ipv6Prefix = valueIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].asString(); + ipv6PrefixSets_.push_back(ipv6PrefixSetsObject); + } auto allTagsNode = value["Tags"]["Tag"]; for (auto valueTagsTag : allTagsNode) { @@ -84,6 +100,8 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload) attachment_.instanceId = attachmentNode["InstanceId"].asString(); if(!attachmentNode["TrunkNetworkInterfaceId"].isNull()) attachment_.trunkNetworkInterfaceId = attachmentNode["TrunkNetworkInterfaceId"].asString(); + if(!attachmentNode["NetworkCardIndex"].isNull()) + attachment_.networkCardIndex = std::stoi(attachmentNode["NetworkCardIndex"].asString()); auto allMemberNetworkInterfaceIds = attachmentNode["MemberNetworkInterfaceIds"]["MemberNetworkInterfaceId"]; for (auto value : allMemberNetworkInterfaceIds) attachment_.memberNetworkInterfaceIds.push_back(value.asString()); @@ -273,6 +291,11 @@ std::string DescribeNetworkInterfaceAttributeResult::getVpcId()const return vpcId_; } +std::vector DescribeNetworkInterfaceAttributeResult::getIpv6PrefixSets()const +{ + return ipv6PrefixSets_; +} + DescribeNetworkInterfaceAttributeResult::BondInterfaceSpecification DescribeNetworkInterfaceAttributeResult::getBondInterfaceSpecification()const { return bondInterfaceSpecification_; @@ -283,6 +306,11 @@ std::string DescribeNetworkInterfaceAttributeResult::getCreationTime()const return creationTime_; } +std::vector DescribeNetworkInterfaceAttributeResult::getIpv4PrefixSets()const +{ + return ipv4PrefixSets_; +} + std::vector DescribeNetworkInterfaceAttributeResult::getPrivateIpSets()const { return privateIpSets_; diff --git a/ecs/src/model/DescribeNetworkInterfacesResult.cc b/ecs/src/model/DescribeNetworkInterfacesResult.cc index 868d5fe7d..962e1950c 100644 --- a/ecs/src/model/DescribeNetworkInterfacesResult.cc +++ b/ecs/src/model/DescribeNetworkInterfacesResult.cc @@ -104,6 +104,22 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload) ipv6SetsObject.ipv6Address = valueNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set["Ipv6Address"].asString(); networkInterfaceSetsObject.ipv6Sets.push_back(ipv6SetsObject); } + auto allIpv4PrefixSetsNode = valueNetworkInterfaceSetsNetworkInterfaceSet["Ipv4PrefixSets"]["Ipv4PrefixSet"]; + for (auto valueNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet : allIpv4PrefixSetsNode) + { + NetworkInterfaceSet::Ipv4PrefixSet ipv4PrefixSetsObject; + if(!valueNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].isNull()) + ipv4PrefixSetsObject.ipv4Prefix = valueNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet["Ipv4Prefix"].asString(); + networkInterfaceSetsObject.ipv4PrefixSets.push_back(ipv4PrefixSetsObject); + } + auto allIpv6PrefixSetsNode = valueNetworkInterfaceSetsNetworkInterfaceSet["Ipv6PrefixSets"]["Ipv6PrefixSet"]; + for (auto valueNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet : allIpv6PrefixSetsNode) + { + NetworkInterfaceSet::Ipv6PrefixSet ipv6PrefixSetsObject; + if(!valueNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].isNull()) + ipv6PrefixSetsObject.ipv6Prefix = valueNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet["Ipv6Prefix"].asString(); + networkInterfaceSetsObject.ipv6PrefixSets.push_back(ipv6PrefixSetsObject); + } auto allTagsNode = valueNetworkInterfaceSetsNetworkInterfaceSet["Tags"]["Tag"]; for (auto valueNetworkInterfaceSetsNetworkInterfaceSetTagsTag : allTagsNode) { @@ -126,6 +142,8 @@ void DescribeNetworkInterfacesResult::parse(const std::string &payload) networkInterfaceSetsObject.attachment.instanceId = attachmentNode["InstanceId"].asString(); if(!attachmentNode["TrunkNetworkInterfaceId"].isNull()) networkInterfaceSetsObject.attachment.trunkNetworkInterfaceId = attachmentNode["TrunkNetworkInterfaceId"].asString(); + if(!attachmentNode["NetworkCardIndex"].isNull()) + networkInterfaceSetsObject.attachment.networkCardIndex = std::stoi(attachmentNode["NetworkCardIndex"].asString()); auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; for (auto value : allSecurityGroupIds) networkInterfaceSetsObject.securityGroupIds.push_back(value.asString()); diff --git a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc index cbe73101f..2c72d623f 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc @@ -43,6 +43,8 @@ void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) for (auto valuePermissionsPermission : allPermissionsNode) { Permission permissionsObject; + if(!valuePermissionsPermission["SecurityGroupRuleId"].isNull()) + permissionsObject.securityGroupRuleId = valuePermissionsPermission["SecurityGroupRuleId"].asString(); if(!valuePermissionsPermission["Direction"].isNull()) permissionsObject.direction = valuePermissionsPermission["Direction"].asString(); if(!valuePermissionsPermission["SourceGroupId"].isNull()) diff --git a/ecs/src/model/DescribeSendFileResultsRequest.cc b/ecs/src/model/DescribeSendFileResultsRequest.cc index 1db6fd7be..900ee44fb 100644 --- a/ecs/src/model/DescribeSendFileResultsRequest.cc +++ b/ecs/src/model/DescribeSendFileResultsRequest.cc @@ -43,6 +43,15 @@ void DescribeSendFileResultsRequest::setPageNumber(long pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeSendFileResultsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeSendFileResultsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeSendFileResultsRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/DescribeTasksRequest.cc b/ecs/src/model/DescribeTasksRequest.cc index a10e683b4..041a7ade6 100644 --- a/ecs/src/model/DescribeTasksRequest.cc +++ b/ecs/src/model/DescribeTasksRequest.cc @@ -133,3 +133,11 @@ void DescribeTasksRequest::setTaskAction(const std::string &taskAction) { setParameter(std::string("TaskAction"), taskAction); } +std::vector DescribeTasksRequest::getResourceIds() const { + return resourceIds_; +} + +void DescribeTasksRequest::setResourceIds(const std::vector &resourceIds) { + resourceIds_ = resourceIds; +} + diff --git a/ecs/src/model/DescribeTasksResult.cc b/ecs/src/model/DescribeTasksResult.cc index 777d2b2da..1fcbc6a29 100644 --- a/ecs/src/model/DescribeTasksResult.cc +++ b/ecs/src/model/DescribeTasksResult.cc @@ -55,6 +55,8 @@ void DescribeTasksResult::parse(const std::string &payload) taskSetObject.taskId = valueTaskSetTask["TaskId"].asString(); if(!valueTaskSetTask["TaskAction"].isNull()) taskSetObject.taskAction = valueTaskSetTask["TaskAction"].asString(); + if(!valueTaskSetTask["ResourceId"].isNull()) + taskSetObject.resourceId = valueTaskSetTask["ResourceId"].asString(); taskSet_.push_back(taskSetObject); } if(!value["PageSize"].isNull()) diff --git a/ecs/src/model/InvokeCommandRequest.cc b/ecs/src/model/InvokeCommandRequest.cc index ec8d4d446..432b2b33b 100644 --- a/ecs/src/model/InvokeCommandRequest.cc +++ b/ecs/src/model/InvokeCommandRequest.cc @@ -43,6 +43,21 @@ void InvokeCommandRequest::setContainerName(const std::string &containerName) { setParameter(std::string("ContainerName"), containerName); } +std::vector InvokeCommandRequest::getSystemTag() const { + return systemTag_; +} + +void InvokeCommandRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } +} + std::string InvokeCommandRequest::getCommandId() const { return commandId_; } @@ -52,6 +67,15 @@ void InvokeCommandRequest::setCommandId(const std::string &commandId) { setParameter(std::string("CommandId"), commandId); } +long InvokeCommandRequest::getTimeout() const { + return timeout_; +} + +void InvokeCommandRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + std::string InvokeCommandRequest::getFrequency() const { return frequency_; } @@ -61,6 +85,15 @@ void InvokeCommandRequest::setFrequency(const std::string &frequency) { setParameter(std::string("Frequency"), frequency); } +std::string InvokeCommandRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void InvokeCommandRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string InvokeCommandRequest::getRegionId() const { return regionId_; } @@ -88,6 +121,20 @@ void InvokeCommandRequest::setWindowsPasswordName(const std::string &windowsPass setParameter(std::string("WindowsPasswordName"), windowsPasswordName); } +std::vector InvokeCommandRequest::getTag() const { + return tag_; +} + +void InvokeCommandRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool InvokeCommandRequest::getTimed() const { return timed_; } diff --git a/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc b/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc index 4e02e4137..cd9a7d379 100644 --- a/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc +++ b/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc @@ -34,6 +34,15 @@ void ModifyInstanceMetadataOptionsRequest::setResourceOwnerId(long resourceOwner setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyInstanceMetadataOptionsRequest::getInstanceMetadataTags() const { + return instanceMetadataTags_; +} + +void ModifyInstanceMetadataOptionsRequest::setInstanceMetadataTags(const std::string &instanceMetadataTags) { + instanceMetadataTags_ = instanceMetadataTags; + setParameter(std::string("InstanceMetadataTags"), instanceMetadataTags); +} + int ModifyInstanceMetadataOptionsRequest::getHttpPutResponseHopLimit() const { return httpPutResponseHopLimit_; } diff --git a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc index 6e75cd919..076205a69 100644 --- a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc +++ b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc @@ -43,6 +43,15 @@ void ModifyPrepayInstanceSpecRequest::setClientToken(const std::string &clientTo setParameter(std::string("ClientToken"), clientToken); } +std::string ModifyPrepayInstanceSpecRequest::getCouponNo() const { + return couponNo_; +} + +void ModifyPrepayInstanceSpecRequest::setCouponNo(const std::string &couponNo) { + couponNo_ = couponNo; + setParameter(std::string("CouponNo"), couponNo); +} + std::string ModifyPrepayInstanceSpecRequest::getOperatorType() const { return operatorType_; } diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc index 6c04ada86..439cbdd5b 100644 --- a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc @@ -223,3 +223,12 @@ void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerId(long destGroupOwn setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId)); } +std::string ModifySecurityGroupEgressRuleRequest::getSecurityGroupRuleId() const { + return securityGroupRuleId_; +} + +void ModifySecurityGroupEgressRuleRequest::setSecurityGroupRuleId(const std::string &securityGroupRuleId) { + securityGroupRuleId_ = securityGroupRuleId; + setParameter(std::string("SecurityGroupRuleId"), securityGroupRuleId); +} + diff --git a/ecs/src/model/ModifySecurityGroupRuleRequest.cc b/ecs/src/model/ModifySecurityGroupRuleRequest.cc index 07c211c4e..8e57de7a3 100644 --- a/ecs/src/model/ModifySecurityGroupRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupRuleRequest.cc @@ -223,3 +223,12 @@ void ModifySecurityGroupRuleRequest::setSourceGroupId(const std::string &sourceG setParameter(std::string("SourceGroupId"), sourceGroupId); } +std::string ModifySecurityGroupRuleRequest::getSecurityGroupRuleId() const { + return securityGroupRuleId_; +} + +void ModifySecurityGroupRuleRequest::setSecurityGroupRuleId(const std::string &securityGroupRuleId) { + securityGroupRuleId_ = securityGroupRuleId; + setParameter(std::string("SecurityGroupRuleId"), securityGroupRuleId); +} + diff --git a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc index 277da9c82..7aa0b5717 100644 --- a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc +++ b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc @@ -111,6 +111,15 @@ void PurchaseReservedInstancesOfferingRequest::setTag(const std::vector ReplaceSystemDiskRequest::getArn() const { + return arn_; +} + +void ReplaceSystemDiskRequest::setArn(const std::vector &arn) { + arn_ = arn; + for(int dep1 = 0; dep1 != arn.size(); dep1++) { + auto arnObj = arn.at(dep1); + std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1); + setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); + setParameter(arnObjStr + ".RoleType", arnObj.roleType); + setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); + } +} + std::string ReplaceSystemDiskRequest::getArchitecture() const { return architecture_; } @@ -169,6 +193,24 @@ void ReplaceSystemDiskRequest::setSystemDiskSize(int systemDiskSize) { setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } +bool ReplaceSystemDiskRequest::getEncrypted() const { + return encrypted_; +} + +void ReplaceSystemDiskRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); +} + +std::string ReplaceSystemDiskRequest::getKMSKeyId() const { + return kMSKeyId_; +} + +void ReplaceSystemDiskRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); +} + bool ReplaceSystemDiskRequest::getUseAdditionalService() const { return useAdditionalService_; } diff --git a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc index 82b74e589..f717d048b 100644 --- a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc @@ -248,3 +248,11 @@ void RevokeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId)); } +std::vector RevokeSecurityGroupEgressRequest::getSecurityGroupRuleId() const { + return securityGroupRuleId_; +} + +void RevokeSecurityGroupEgressRequest::setSecurityGroupRuleId(const std::vector &securityGroupRuleId) { + securityGroupRuleId_ = securityGroupRuleId; +} + diff --git a/ecs/src/model/RevokeSecurityGroupRequest.cc b/ecs/src/model/RevokeSecurityGroupRequest.cc index cd0b12b7e..582cf7a89 100644 --- a/ecs/src/model/RevokeSecurityGroupRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupRequest.cc @@ -248,3 +248,11 @@ void RevokeSecurityGroupRequest::setSourceGroupId(const std::string &sourceGroup setParameter(std::string("SourceGroupId"), sourceGroupId); } +std::vector RevokeSecurityGroupRequest::getSecurityGroupRuleId() const { + return securityGroupRuleId_; +} + +void RevokeSecurityGroupRequest::setSecurityGroupRuleId(const std::vector &securityGroupRuleId) { + securityGroupRuleId_ = securityGroupRuleId; +} + diff --git a/ecs/src/model/RunCommandRequest.cc b/ecs/src/model/RunCommandRequest.cc index 26da60a14..555440fa7 100644 --- a/ecs/src/model/RunCommandRequest.cc +++ b/ecs/src/model/RunCommandRequest.cc @@ -97,6 +97,15 @@ void RunCommandRequest::setFrequency(const std::string &frequency) { setParameter(std::string("Frequency"), frequency); } +std::string RunCommandRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void RunCommandRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string RunCommandRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index f2b8b5305..15d40772c 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -723,6 +723,7 @@ void RunInstancesRequest::setNetworkInterface(const std::vector UnassignIpv6AddressesRequest::getIpv6Prefix() const { + return ipv6Prefix_; +} + +void UnassignIpv6AddressesRequest::setIpv6Prefix(const std::vector &ipv6Prefix) { + ipv6Prefix_ = ipv6Prefix; +} + std::string UnassignIpv6AddressesRequest::getRegionId() const { return regionId_; } diff --git a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc index d3945cd82..011f3389e 100644 --- a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc @@ -34,6 +34,14 @@ void UnassignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector UnassignPrivateIpAddressesRequest::getIpv4Prefix() const { + return ipv4Prefix_; +} + +void UnassignPrivateIpAddressesRequest::setIpv4Prefix(const std::vector &ipv4Prefix) { + ipv4Prefix_ = ipv4Prefix; +} + std::string UnassignPrivateIpAddressesRequest::getRegionId() const { return regionId_; }