diff --git a/VERSION b/VERSION index 57875a7e7..c9a1a55a4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2048 \ No newline at end of file +1.36.2049 \ No newline at end of file diff --git a/ens/CMakeLists.txt b/ens/CMakeLists.txt index e00795d8d..b639b2750 100644 --- a/ens/CMakeLists.txt +++ b/ens/CMakeLists.txt @@ -381,6 +381,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/DescribeStorageVolumeResult.h include/alibabacloud/ens/model/DescribeUserBandWidthDataRequest.h include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.h + include/alibabacloud/ens/model/DescribeVSwitchAttributesRequest.h + include/alibabacloud/ens/model/DescribeVSwitchAttributesResult.h include/alibabacloud/ens/model/DescribeVSwitchesRequest.h include/alibabacloud/ens/model/DescribeVSwitchesResult.h include/alibabacloud/ens/model/DetachDiskRequest.h @@ -425,10 +427,14 @@ set(ens_public_header_model include/alibabacloud/ens/model/ListBucketsResult.h include/alibabacloud/ens/model/ListObjectsRequest.h include/alibabacloud/ens/model/ListObjectsResult.h + include/alibabacloud/ens/model/ListProductAbilitiesRequest.h + include/alibabacloud/ens/model/ListProductAbilitiesResult.h include/alibabacloud/ens/model/ListTagResourcesRequest.h include/alibabacloud/ens/model/ListTagResourcesResult.h include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h + include/alibabacloud/ens/model/ModifyEnsRouteEntryRequest.h + include/alibabacloud/ens/model/ModifyEnsRouteEntryResult.h include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h include/alibabacloud/ens/model/ModifyEpnInstanceResult.h include/alibabacloud/ens/model/ModifyFileSystemRequest.h @@ -962,6 +968,8 @@ set(ens_src src/model/DescribeStorageVolumeResult.cc src/model/DescribeUserBandWidthDataRequest.cc src/model/DescribeUserBandWidthDataResult.cc + src/model/DescribeVSwitchAttributesRequest.cc + src/model/DescribeVSwitchAttributesResult.cc src/model/DescribeVSwitchesRequest.cc src/model/DescribeVSwitchesResult.cc src/model/DetachDiskRequest.cc @@ -1006,10 +1014,14 @@ set(ens_src src/model/ListBucketsResult.cc src/model/ListObjectsRequest.cc src/model/ListObjectsResult.cc + src/model/ListProductAbilitiesRequest.cc + src/model/ListProductAbilitiesResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc src/model/ModifyEnsEipAddressAttributeRequest.cc src/model/ModifyEnsEipAddressAttributeResult.cc + src/model/ModifyEnsRouteEntryRequest.cc + src/model/ModifyEnsRouteEntryResult.cc src/model/ModifyEpnInstanceRequest.cc src/model/ModifyEpnInstanceResult.cc src/model/ModifyFileSystemRequest.cc diff --git a/ens/include/alibabacloud/ens/EnsClient.h b/ens/include/alibabacloud/ens/EnsClient.h index 44b8ef75c..125c1533a 100644 --- a/ens/include/alibabacloud/ens/EnsClient.h +++ b/ens/include/alibabacloud/ens/EnsClient.h @@ -382,6 +382,8 @@ #include "model/DescribeStorageVolumeResult.h" #include "model/DescribeUserBandWidthDataRequest.h" #include "model/DescribeUserBandWidthDataResult.h" +#include "model/DescribeVSwitchAttributesRequest.h" +#include "model/DescribeVSwitchAttributesResult.h" #include "model/DescribeVSwitchesRequest.h" #include "model/DescribeVSwitchesResult.h" #include "model/DetachDiskRequest.h" @@ -426,10 +428,14 @@ #include "model/ListBucketsResult.h" #include "model/ListObjectsRequest.h" #include "model/ListObjectsResult.h" +#include "model/ListProductAbilitiesRequest.h" +#include "model/ListProductAbilitiesResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" #include "model/ModifyEnsEipAddressAttributeRequest.h" #include "model/ModifyEnsEipAddressAttributeResult.h" +#include "model/ModifyEnsRouteEntryRequest.h" +#include "model/ModifyEnsRouteEntryResult.h" #include "model/ModifyEpnInstanceRequest.h" #include "model/ModifyEpnInstanceResult.h" #include "model/ModifyFileSystemRequest.h" @@ -1149,6 +1155,9 @@ namespace AlibabaCloud typedef Outcome DescribeUserBandWidthDataOutcome; typedef std::future DescribeUserBandWidthDataOutcomeCallable; typedef std::function&)> DescribeUserBandWidthDataAsyncHandler; + typedef Outcome DescribeVSwitchAttributesOutcome; + typedef std::future DescribeVSwitchAttributesOutcomeCallable; + typedef std::function&)> DescribeVSwitchAttributesAsyncHandler; typedef Outcome DescribeVSwitchesOutcome; typedef std::future DescribeVSwitchesOutcomeCallable; typedef std::function&)> DescribeVSwitchesAsyncHandler; @@ -1215,12 +1224,18 @@ namespace AlibabaCloud typedef Outcome ListObjectsOutcome; typedef std::future ListObjectsOutcomeCallable; typedef std::function&)> ListObjectsAsyncHandler; + typedef Outcome ListProductAbilitiesOutcome; + typedef std::future ListProductAbilitiesOutcomeCallable; + typedef std::function&)> ListProductAbilitiesAsyncHandler; typedef Outcome ListTagResourcesOutcome; typedef std::future ListTagResourcesOutcomeCallable; typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ModifyEnsEipAddressAttributeOutcome; typedef std::future ModifyEnsEipAddressAttributeOutcomeCallable; typedef std::function&)> ModifyEnsEipAddressAttributeAsyncHandler; + typedef Outcome ModifyEnsRouteEntryOutcome; + typedef std::future ModifyEnsRouteEntryOutcomeCallable; + typedef std::function&)> ModifyEnsRouteEntryAsyncHandler; typedef Outcome ModifyEpnInstanceOutcome; typedef std::future ModifyEpnInstanceOutcomeCallable; typedef std::function&)> ModifyEpnInstanceAsyncHandler; @@ -2021,6 +2036,9 @@ namespace AlibabaCloud DescribeUserBandWidthDataOutcome describeUserBandWidthData(const Model::DescribeUserBandWidthDataRequest &request)const; void describeUserBandWidthDataAsync(const Model::DescribeUserBandWidthDataRequest& request, const DescribeUserBandWidthDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserBandWidthDataOutcomeCallable describeUserBandWidthDataCallable(const Model::DescribeUserBandWidthDataRequest& request) const; + DescribeVSwitchAttributesOutcome describeVSwitchAttributes(const Model::DescribeVSwitchAttributesRequest &request)const; + void describeVSwitchAttributesAsync(const Model::DescribeVSwitchAttributesRequest& request, const DescribeVSwitchAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchAttributesOutcomeCallable describeVSwitchAttributesCallable(const Model::DescribeVSwitchAttributesRequest& request) const; DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; @@ -2087,12 +2105,18 @@ namespace AlibabaCloud ListObjectsOutcome listObjects(const Model::ListObjectsRequest &request)const; void listObjectsAsync(const Model::ListObjectsRequest& request, const ListObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListObjectsOutcomeCallable listObjectsCallable(const Model::ListObjectsRequest& request) const; + ListProductAbilitiesOutcome listProductAbilities(const Model::ListProductAbilitiesRequest &request)const; + void listProductAbilitiesAsync(const Model::ListProductAbilitiesRequest& request, const ListProductAbilitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProductAbilitiesOutcomeCallable listProductAbilitiesCallable(const Model::ListProductAbilitiesRequest& request) const; ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; ModifyEnsEipAddressAttributeOutcome modifyEnsEipAddressAttribute(const Model::ModifyEnsEipAddressAttributeRequest &request)const; void modifyEnsEipAddressAttributeAsync(const Model::ModifyEnsEipAddressAttributeRequest& request, const ModifyEnsEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEnsEipAddressAttributeOutcomeCallable modifyEnsEipAddressAttributeCallable(const Model::ModifyEnsEipAddressAttributeRequest& request) const; + ModifyEnsRouteEntryOutcome modifyEnsRouteEntry(const Model::ModifyEnsRouteEntryRequest &request)const; + void modifyEnsRouteEntryAsync(const Model::ModifyEnsRouteEntryRequest& request, const ModifyEnsRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEnsRouteEntryOutcomeCallable modifyEnsRouteEntryCallable(const Model::ModifyEnsRouteEntryRequest& request) const; ModifyEpnInstanceOutcome modifyEpnInstance(const Model::ModifyEpnInstanceRequest &request)const; void modifyEpnInstanceAsync(const Model::ModifyEpnInstanceRequest& request, const ModifyEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEpnInstanceOutcomeCallable modifyEpnInstanceCallable(const Model::ModifyEpnInstanceRequest& request) const; diff --git a/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h b/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h index 36bba916a..d0a0bf79a 100644 --- a/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h @@ -44,6 +44,8 @@ public: void setInternetChargeType(const std::string &internetChargeType); std::string getName() const; void setName(const std::string &name); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); std::string getInstanceChargeType() const; @@ -57,6 +59,7 @@ private: std::vector tag_; std::string internetChargeType_; std::string name_; + std::string clientToken_; std::string description_; std::string instanceChargeType_; long bandwidth_; diff --git a/ens/include/alibabacloud/ens/model/CreateEnsRouteEntryRequest.h b/ens/include/alibabacloud/ens/model/CreateEnsRouteEntryRequest.h index df8a16b55..fc151c886 100644 --- a/ens/include/alibabacloud/ens/model/CreateEnsRouteEntryRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateEnsRouteEntryRequest.h @@ -32,8 +32,6 @@ public: ~CreateEnsRouteEntryRequest(); std::string getRouteEntryName() const; void setRouteEntryName(const std::string &routeEntryName); - std::string getDescription() const; - void setDescription(const std::string &description); std::string getNextHopId() const; void setNextHopId(const std::string &nextHopId); std::string getNextHopType() const; @@ -42,14 +40,19 @@ public: void setRouteTableId(const std::string &routeTableId); std::string getDestinationCidrBlock() const; void setDestinationCidrBlock(const std::string &destinationCidrBlock); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSourceCidrBlock() const; + void setSourceCidrBlock(const std::string &sourceCidrBlock); private: std::string routeEntryName_; - std::string description_; std::string nextHopId_; std::string nextHopType_; std::string routeTableId_; std::string destinationCidrBlock_; + std::string description_; + std::string sourceCidrBlock_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/CreateImageRequest.h b/ens/include/alibabacloud/ens/model/CreateImageRequest.h index 5f731bbf5..c50b1669f 100644 --- a/ens/include/alibabacloud/ens/model/CreateImageRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateImageRequest.h @@ -36,6 +36,8 @@ public: void setDeleteAfterImageUpload(const std::string &deleteAfterImageUpload); std::string getImageName() const; void setImageName(const std::string &imageName); + std::string getTargetOSSRegionId() const; + void setTargetOSSRegionId(const std::string &targetOSSRegionId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); @@ -43,6 +45,7 @@ private: std::string snapshotId_; std::string deleteAfterImageUpload_; std::string imageName_; + std::string targetOSSRegionId_; std::string instanceId_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h index a176ffb2c..7d7f08d3b 100644 --- a/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h @@ -40,6 +40,8 @@ public: void setVSwitchId(const std::string &vSwitchId); std::string getNetworkId() const; void setNetworkId(const std::string &networkId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getPayType() const; void setPayType(const std::string &payType); @@ -49,6 +51,7 @@ private: std::string loadBalancerSpec_; std::string vSwitchId_; std::string networkId_; + std::string clientToken_; std::string payType_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h index 498b7db27..09012dfb1 100644 --- a/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h @@ -28,16 +28,30 @@ namespace Ens { namespace Model { class ALIBABACLOUD_ENS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest { public: + struct Permissions { + std::string sourcePortRange; + std::string portRange; + std::string ipProtocol; + std::string sourceCidrIp; + std::string description; + int priority; + std::string destCidrIp; + std::string direction; + std::string policy; + }; CreateSecurityGroupRequest(); ~CreateSecurityGroupRequest(); std::string getDescription() const; void setDescription(const std::string &description); std::string getSecurityGroupName() const; void setSecurityGroupName(const std::string &securityGroupName); + std::vector getPermissions() const; + void setPermissions(const std::vector &permissions); private: std::string description_; std::string securityGroupName_; + std::vector permissions_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h b/ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h index e4cb78bf3..303c75d52 100644 --- a/ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateSnatEntryRequest.h @@ -38,6 +38,8 @@ public: void setDestCIDR(const std::string &destCIDR); std::string getSourceVSwitchId() const; void setSourceVSwitchId(const std::string &sourceVSwitchId); + bool getEipAffinity() const; + void setEipAffinity(bool eipAffinity); std::string getSourceNetworkId() const; void setSourceNetworkId(const std::string &sourceNetworkId); std::string getStandbySnatIp() const; @@ -58,6 +60,7 @@ private: std::string type_; std::string destCIDR_; std::string sourceVSwitchId_; + bool eipAffinity_; std::string sourceNetworkId_; std::string standbySnatIp_; std::string sourceCIDR_; diff --git a/ens/include/alibabacloud/ens/model/DeleteNatGatewayRequest.h b/ens/include/alibabacloud/ens/model/DeleteNatGatewayRequest.h index a38c0b649..567a6ec9a 100644 --- a/ens/include/alibabacloud/ens/model/DeleteNatGatewayRequest.h +++ b/ens/include/alibabacloud/ens/model/DeleteNatGatewayRequest.h @@ -30,10 +30,13 @@ class ALIBABACLOUD_ENS_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest public: DeleteNatGatewayRequest(); ~DeleteNatGatewayRequest(); + bool getForceDelete() const; + void setForceDelete(bool forceDelete); std::string getNatGatewayId() const; void setNatGatewayId(const std::string &natGatewayId); private: + bool forceDelete_; std::string natGatewayId_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h index 0942595d8..24a2f634f 100644 --- a/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct SupportResource { + std::vector ability; long canBuyCount; std::string category; std::string ensRegionName; diff --git a/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h index 18e26cc4a..b09f74d0d 100644 --- a/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct ElbAvailableResourceInfoItem { + std::vector ability; std::string area; std::string canBuyCount; std::string enName; diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRouteEntryListResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsRouteEntryListResult.h index 708c8cd4f..9cc396a90 100644 --- a/ens/include/alibabacloud/ens/model/DescribeEnsRouteEntryListResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRouteEntryListResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { std::string nextHopType; std::string nextHopId; + std::string nextHopName; }; std::string status; std::string routeEntryId; @@ -46,6 +47,8 @@ namespace AlibabaCloud std::string routeTableId; std::vector nextHops; std::string routeEntryName; + std::string creationTime; + std::string sourceCidrBlock; std::string destinationCidrBlock; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesRequest.h index 6b5aa71a3..1e23af6d3 100644 --- a/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesRequest.h @@ -30,23 +30,35 @@ class ALIBABACLOUD_ENS_EXPORT DescribeEnsRouteTablesRequest : public RpcServiceR public: DescribeEnsRouteTablesRequest(); ~DescribeEnsRouteTablesRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); + std::string getType() const; + void setType(const std::string &type); + std::string getAssociateType() const; + void setAssociateType(const std::string &associateType); std::string getEnsRegionId() const; void setEnsRegionId(const std::string &ensRegionId); std::string getRouteTableId() const; void setRouteTableId(const std::string &routeTableId); std::string getNetworkId() const; void setNetworkId(const std::string &networkId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); private: - int pageNumber_; - int pageSize_; + std::string type_; + std::string associateType_; std::string ensRegionId_; std::string routeTableId_; std::string networkId_; + int pageNumber_; + std::string routeTableName_; + int pageSize_; + std::vector ensRegionIds_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesResult.h index 7834b86f2..6b07290e7 100644 --- a/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRouteTablesResult.h @@ -34,13 +34,23 @@ namespace AlibabaCloud public: struct RouteTable { + struct AssociatedResource + { + std::string resourceId; + std::string resourceName; + std::string resourceType; + }; std::string status; - std::string type; std::string networkName; std::string routeTableId; + std::string description; std::vector vSwitchIds; - std::string creationTime; + std::vector associatedResources; + std::string associateType; std::string networkId; + std::string type; + std::string creationTime; + bool isDefaultGatewayRouteTable; std::string ensRegionId; std::string routeTableName; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h b/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h index e8a6dc004..c08970484 100644 --- a/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud std::string oSType; std::string imageId; std::string oSName; + std::string regionId; std::string computeType; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h index 987671013..bf2716c29 100644 --- a/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h @@ -32,6 +32,10 @@ namespace AlibabaCloud class ALIBABACLOUD_ENS_EXPORT DescribeImageSharePermissionResult : public ServiceResult { public: + struct Account + { + std::string aliyunUid; + }; DescribeImageSharePermissionResult(); @@ -41,7 +45,7 @@ namespace AlibabaCloud int getPageSize()const; int getPageNumber()const; std::string getImageId()const; - std::vector getAccounts()const; + std::vector getAccounts()const; protected: void parse(const std::string &payload); @@ -50,7 +54,7 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; std::string imageId_; - std::vector accounts_; + std::vector accounts_; }; } diff --git a/ens/include/alibabacloud/ens/model/DescribeImagesResult.h b/ens/include/alibabacloud/ens/model/DescribeImagesResult.h index 6f84a2249..e3b07c321 100644 --- a/ens/include/alibabacloud/ens/model/DescribeImagesResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeImagesResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud std::string imageSize; std::string creationTime; std::string imageId; + std::string regionId; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h index 8f971358f..c52f3d921 100644 --- a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::string description; int forwardPort; std::string listenerProtocol; + int backendServerPort; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersRequest.h index 26faf53e6..f6494d4c3 100644 --- a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersRequest.h @@ -30,16 +30,22 @@ class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerListenersRequest : public RpcS public: DescribeLoadBalancerListenersRequest(); ~DescribeLoadBalancerListenersRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); int getPageNumber() const; void setPageNumber(int pageNumber); int getPageSize() const; void setPageSize(int pageSize); + int getListenerPort() const; + void setListenerPort(int listenerPort); std::string getLoadBalancerId() const; void setLoadBalancerId(const std::string &loadBalancerId); private: + std::string description_; int pageNumber_; int pageSize_; + int listenerPort_; std::string loadBalancerId_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersResult.h index 8d1f2bcd9..4328813da 100644 --- a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerListenersResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string createTime; std::string loadBalancerId; std::string protocol; + int backendServerPort; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h index 8433a4b51..f54a9f967 100644 --- a/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h @@ -46,6 +46,8 @@ public: void setPageNumber(int pageNumber); int getPageSize() const; void setPageSize(int pageSize); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); std::string getAddress() const; void setAddress(const std::string &address); std::string getLoadBalancerStatus() const; @@ -60,6 +62,7 @@ private: std::string networkId_; int pageNumber_; int pageSize_; + std::vector ensRegionIds_; std::string address_; std::string loadBalancerStatus_; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeNatGatewaysRequest.h b/ens/include/alibabacloud/ens/model/DescribeNatGatewaysRequest.h index 0dc35350f..368f2036e 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNatGatewaysRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeNatGatewaysRequest.h @@ -44,6 +44,10 @@ public: void setPageSize(int pageSize); std::string getNatGatewayId() const; void setNatGatewayId(const std::string &natGatewayId); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); + std::vector getNatGatewayIds() const; + void setNatGatewayIds(const std::vector &natGatewayIds); private: std::string ensRegionId_; @@ -53,6 +57,8 @@ private: int pageNumber_; int pageSize_; std::string natGatewayId_; + std::vector ensRegionIds_; + std::vector natGatewayIds_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/DescribeNatGatewaysResult.h b/ens/include/alibabacloud/ens/model/DescribeNatGatewaysResult.h index d4ac66dd8..8862ffa9d 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNatGatewaysResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeNatGatewaysResult.h @@ -34,7 +34,15 @@ namespace AlibabaCloud public: struct NatGateway { + struct IpList + { + std::string usingStatus; + std::string allocationId; + std::string ipAddress; + }; + std::string status; std::string vSwitchId; + std::vector ipLists; std::string creationTime; std::string ensRegionId; std::string networkId; diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h index bab7e28ee..231b4ae69 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h @@ -44,14 +44,22 @@ namespace AlibabaCloud ~DescribeNetworkAttributeResult(); std::string getStatus()const; std::string getNetworkName()const; + std::string getGatewayRouteTableId()const; std::string getDescription()const; std::string getCreatedTime()const; + std::string getRouteTableId()const; std::string getNetworkAclId()const; std::vector getVSwitchIds()const; + std::vector getLoadBalancerIds()const; std::string getCidrBlock()const; - std::string getRouterTableId()const; - std::string getEnsRegionId()const; + std::vector getNetworkInterfaceIds()const; std::string getNetworkId()const; + std::vector getNatGatewayIds()const; + std::vector getRouteTableIds()const; + std::vector getHaVipIds()const; + std::string getRouterTableId()const; + std::vector getInstanceIds()const; + std::string getEnsRegionId()const; std::vector getCloudResources()const; protected: @@ -59,14 +67,22 @@ namespace AlibabaCloud private: std::string status_; std::string networkName_; + std::string gatewayRouteTableId_; std::string description_; std::string createdTime_; + std::string routeTableId_; std::string networkAclId_; std::vector vSwitchIds_; + std::vector loadBalancerIds_; std::string cidrBlock_; - std::string routerTableId_; - std::string ensRegionId_; + std::vector networkInterfaceIds_; std::string networkId_; + std::vector natGatewayIds_; + std::vector routeTableIds_; + std::vector haVipIds_; + std::string routerTableId_; + std::vector instanceIds_; + std::string ensRegionId_; std::vector cloudResources_; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h index 531016ae0..b0eb0a917 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h @@ -46,6 +46,8 @@ public: void setIpv6Address(const std::vector &ipv6Address); std::string getStatus() const; void setStatus(const std::string &status); + std::vector getNetworkInterfaceIds() const; + void setNetworkInterfaceIds(const std::vector &networkInterfaceIds); std::string getSecurityGroupId() const; void setSecurityGroupId(const std::string &securityGroupId); std::string getPageNumber() const; @@ -54,6 +56,8 @@ public: void setShowDetail(bool showDetail); std::string getPageSize() const; void setPageSize(const std::string &pageSize); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); std::string getPrimaryIpAddress() const; void setPrimaryIpAddress(const std::string &primaryIpAddress); std::string getNetworkInterfaceId() const; @@ -68,10 +72,12 @@ private: std::string networkId_; std::vector ipv6Address_; std::string status_; + std::vector networkInterfaceIds_; std::string securityGroupId_; std::string pageNumber_; bool showDetail_; std::string pageSize_; + std::vector ensRegionIds_; std::string primaryIpAddress_; std::string networkInterfaceId_; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h index 4ce9ab53b..7b4f10546 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h @@ -30,23 +30,29 @@ class ALIBABACLOUD_ENS_EXPORT DescribeNetworksRequest : public RpcServiceRequest public: DescribeNetworksRequest(); ~DescribeNetworksRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); std::string getEnsRegionId() const; void setEnsRegionId(const std::string &ensRegionId); + std::vector getNetworkIds() const; + void setNetworkIds(const std::vector &networkIds); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + int getPageNumber() const; + void setPageNumber(int pageNumber); int getPageSize() const; void setPageSize(int pageSize); std::string getNetworkName() const; void setNetworkName(const std::string &networkName); - std::string getNetworkId() const; - void setNetworkId(const std::string &networkId); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); private: - int pageNumber_; std::string ensRegionId_; + std::vector networkIds_; + std::string networkId_; + int pageNumber_; int pageSize_; std::string networkName_; - std::string networkId_; + std::vector ensRegionIds_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h index 079c639d5..ac9b972b0 100644 --- a/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h @@ -36,14 +36,17 @@ namespace AlibabaCloud { std::string status; std::string networkName; + std::string gatewayRouteTableId; std::string description; std::string createdTime; + std::string routeTableId; std::string networkAclId; std::vector vSwitchIds; std::string cidrBlock; + std::string networkId; + std::vector routeTableIds; std::string routerTableId; std::string ensRegionId; - std::string networkId; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h index 0b1b1a2e3..86114acc3 100644 --- a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h @@ -39,6 +39,8 @@ namespace AlibabaCloud std::string securityGroupName; std::string securityGroupId; std::string creationTime; + std::vector networkInterfaceIds; + std::vector instanceIds; }; diff --git a/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h b/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h index 5bb97624c..d300e8223 100644 --- a/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeSelfImagesResult.h @@ -55,18 +55,25 @@ namespace AlibabaCloud std::vector diskDeviceMappings; std::string creationTime; std::string imageId; + std::string regionId; }; DescribeSelfImagesResult(); explicit DescribeSelfImagesResult(const std::string &payload); ~DescribeSelfImagesResult(); + std::string getTotalCount()const; + std::string getPageSize()const; + std::string getPageNumber()const; std::vector getImages()const; int getCode()const; protected: void parse(const std::string &payload); private: + std::string totalCount_; + std::string pageSize_; + std::string pageNumber_; std::vector images_; int code_; diff --git a/ens/include/alibabacloud/ens/model/DescribeSnatAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeSnatAttributeResult.h index c42137216..cffa412d7 100644 --- a/ens/include/alibabacloud/ens/model/DescribeSnatAttributeResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeSnatAttributeResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud int getIdleTimeout()const; std::string getSnatIp()const; std::string getStandbySnatIp()const; + bool getEipAffinity()const; std::string getType()const; std::string getDestCIDR()const; std::string getSnatEntryName()const; @@ -66,6 +67,7 @@ namespace AlibabaCloud int idleTimeout_; std::string snatIp_; std::string standbySnatIp_; + bool eipAffinity_; std::string type_; std::string destCIDR_; std::string snatEntryName_; diff --git a/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesRequest.h b/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesRequest.h index ecbe58563..4879e3f15 100644 --- a/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesRequest.h @@ -34,6 +34,8 @@ public: void setSnatIp(const std::string &snatIp); std::string getSnatEntryId() const; void setSnatEntryId(const std::string &snatEntryId); + std::vector getSnatIps() const; + void setSnatIps(const std::vector &snatIps); std::string getSourceCIDR() const; void setSourceCIDR(const std::string &sourceCIDR); int getPageNumber() const; @@ -50,6 +52,7 @@ public: private: std::string snatIp_; std::string snatEntryId_; + std::vector snatIps_; std::string sourceCIDR_; int pageNumber_; bool showDetail_; diff --git a/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesResult.h b/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesResult.h index d4a1f32b8..bcd6f21cc 100644 --- a/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeSnatTableEntriesResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud int idleTimeout; std::string snatIp; std::string standbySnatIp; + bool eipAffinity; std::string type; std::string destCIDR; std::string snatEntryName; diff --git a/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesRequest.h b/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesRequest.h new file mode 100644 index 000000000..61fbb6b77 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeVSwitchAttributesRequest : public RpcServiceRequest { +public: + DescribeVSwitchAttributesRequest(); + ~DescribeVSwitchAttributesRequest(); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + +private: + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesResult.h b/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesResult.h new file mode 100644 index 000000000..2da15b1e3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeVSwitchAttributesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeVSwitchAttributesResult : public ServiceResult + { + public: + + + DescribeVSwitchAttributesResult(); + explicit DescribeVSwitchAttributesResult(const std::string &payload); + ~DescribeVSwitchAttributesResult(); + std::string getStatus()const; + std::string getDescription()const; + std::string getCreatedTime()const; + std::string getVSwitchId()const; + long getAvailableIpAddressCount()const; + std::vector getLoadBalancerIds()const; + std::string getCidrBlock()const; + std::vector getNetworkInterfaceIds()const; + std::string getNetworkId()const; + std::vector getNatGatewayIds()const; + std::vector getHaVipIds()const; + std::string getVSwitchName()const; + std::vector getInstanceIds()const; + std::string getEnsRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string description_; + std::string createdTime_; + std::string vSwitchId_; + long availableIpAddressCount_; + std::vector loadBalancerIds_; + std::string cidrBlock_; + std::vector networkInterfaceIds_; + std::string networkId_; + std::vector natGatewayIds_; + std::vector haVipIds_; + std::string vSwitchName_; + std::vector instanceIds_; + std::string ensRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h b/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h index 267ac0a47..4768678b7 100644 --- a/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h @@ -30,8 +30,8 @@ class ALIBABACLOUD_ENS_EXPORT DescribeVSwitchesRequest : public RpcServiceReques public: DescribeVSwitchesRequest(); ~DescribeVSwitchesRequest(); - std::string getOrderByParams() const; - void setOrderByParams(const std::string &orderByParams); + std::vector getVSwitchIds() const; + void setVSwitchIds(const std::vector &vSwitchIds); std::string getEnsRegionId() const; void setEnsRegionId(const std::string &ensRegionId); std::string getVSwitchId() const; @@ -42,16 +42,19 @@ public: void setPageNumber(int pageNumber); int getPageSize() const; void setPageSize(int pageSize); + std::vector getEnsRegionIds() const; + void setEnsRegionIds(const std::vector &ensRegionIds); std::string getVSwitchName() const; void setVSwitchName(const std::string &vSwitchName); private: - std::string orderByParams_; + std::vector vSwitchIds_; std::string ensRegionId_; std::string vSwitchId_; std::string networkId_; int pageNumber_; int pageSize_; + std::vector ensRegionIds_; std::string vSwitchName_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/ListProductAbilitiesRequest.h b/ens/include/alibabacloud/ens/model/ListProductAbilitiesRequest.h new file mode 100644 index 000000000..50a983bf7 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListProductAbilitiesRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ListProductAbilitiesRequest : public RpcServiceRequest { +public: + ListProductAbilitiesRequest(); + ~ListProductAbilitiesRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ListProductAbilitiesResult.h b/ens/include/alibabacloud/ens/model/ListProductAbilitiesResult.h new file mode 100644 index 000000000..96af72d25 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListProductAbilitiesResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ListProductAbilitiesResult : public ServiceResult + { + public: + + + ListProductAbilitiesResult(); + explicit ListProductAbilitiesResult(const std::string &payload); + ~ListProductAbilitiesResult(); + std::vector getProductAbilities()const; + + protected: + void parse(const std::string &payload); + private: + std::vector productAbilities_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_LISTPRODUCTABILITIESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryRequest.h b/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryRequest.h new file mode 100644 index 000000000..d246f2978 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyEnsRouteEntryRequest : public RpcServiceRequest { +public: + ModifyEnsRouteEntryRequest(); + ~ModifyEnsRouteEntryRequest(); + std::string getRouteEntryName() const; + void setRouteEntryName(const std::string &routeEntryName); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRouteEntryId() const; + void setRouteEntryId(const std::string &routeEntryId); + +private: + std::string routeEntryName_; + std::string description_; + std::string routeEntryId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryResult.h b/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryResult.h new file mode 100644 index 000000000..775e85d34 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEnsRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyEnsRouteEntryResult : public ServiceResult + { + public: + + + ModifyEnsRouteEntryResult(); + explicit ModifyEnsRouteEntryResult(const std::string &payload); + ~ModifyEnsRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYENSROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyForwardEntryRequest.h b/ens/include/alibabacloud/ens/model/ModifyForwardEntryRequest.h index 4e7b414f6..338ed513e 100644 --- a/ens/include/alibabacloud/ens/model/ModifyForwardEntryRequest.h +++ b/ens/include/alibabacloud/ens/model/ModifyForwardEntryRequest.h @@ -30,17 +30,32 @@ class ALIBABACLOUD_ENS_EXPORT ModifyForwardEntryRequest : public RpcServiceReque public: ModifyForwardEntryRequest(); ~ModifyForwardEntryRequest(); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + int getHealthCheckPort() const; + void setHealthCheckPort(int healthCheckPort); + std::string getExternalPort() const; + void setExternalPort(const std::string &externalPort); std::string getForwardEntryId() const; void setForwardEntryId(const std::string &forwardEntryId); std::string getForwardEntryName() const; void setForwardEntryName(const std::string &forwardEntryName); - int getHealthCheckPort() const; - void setHealthCheckPort(int healthCheckPort); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); private: + std::string internalIp_; + std::string externalIp_; + std::string ipProtocol_; + int healthCheckPort_; + std::string externalPort_; std::string forwardEntryId_; std::string forwardEntryName_; - int healthCheckPort_; + std::string internalPort_; }; } // namespace Model } // namespace Ens diff --git a/ens/include/alibabacloud/ens/model/ModifySnatEntryRequest.h b/ens/include/alibabacloud/ens/model/ModifySnatEntryRequest.h index 152192dc4..7c1df7759 100644 --- a/ens/include/alibabacloud/ens/model/ModifySnatEntryRequest.h +++ b/ens/include/alibabacloud/ens/model/ModifySnatEntryRequest.h @@ -30,6 +30,10 @@ class ALIBABACLOUD_ENS_EXPORT ModifySnatEntryRequest : public RpcServiceRequest public: ModifySnatEntryRequest(); ~ModifySnatEntryRequest(); + std::string getSnatIp() const; + void setSnatIp(const std::string &snatIp); + bool getEipAffinity() const; + void setEipAffinity(bool eipAffinity); std::string getSnatEntryId() const; void setSnatEntryId(const std::string &snatEntryId); std::string getSnatEntryName() const; @@ -38,6 +42,8 @@ public: void setIspAffinity(bool ispAffinity); private: + std::string snatIp_; + bool eipAffinity_; std::string snatEntryId_; std::string snatEntryName_; bool ispAffinity_; diff --git a/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h b/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h index f01f2e398..651ef977a 100644 --- a/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h +++ b/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ReleaseInstanceResult(); explicit ReleaseInstanceResult(const std::string &payload); ~ReleaseInstanceResult(); + std::string getResourceType()const; protected: void parse(const std::string &payload); private: + std::string resourceType_; }; } diff --git a/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h index b0b4d67e6..6b83e2a31 100644 --- a/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h +++ b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h @@ -32,9 +32,12 @@ public: ~UnAssociateEnsEipAddressRequest(); std::string getAllocationId() const; void setAllocationId(const std::string &allocationId); + bool getForce() const; + void setForce(bool force); private: std::string allocationId_; + bool force_; }; } // namespace Model } // namespace Ens diff --git a/ens/src/EnsClient.cc b/ens/src/EnsClient.cc index 43653fea9..1a52b99f5 100644 --- a/ens/src/EnsClient.cc +++ b/ens/src/EnsClient.cc @@ -6531,6 +6531,42 @@ EnsClient::DescribeUserBandWidthDataOutcomeCallable EnsClient::describeUserBandW return task->get_future(); } +EnsClient::DescribeVSwitchAttributesOutcome EnsClient::describeVSwitchAttributes(const DescribeVSwitchAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchAttributesOutcome(DescribeVSwitchAttributesResult(outcome.result())); + else + return DescribeVSwitchAttributesOutcome(outcome.error()); +} + +void EnsClient::describeVSwitchAttributesAsync(const DescribeVSwitchAttributesRequest& request, const DescribeVSwitchAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitchAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeVSwitchAttributesOutcomeCallable EnsClient::describeVSwitchAttributesCallable(const DescribeVSwitchAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitchAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DescribeVSwitchesOutcome EnsClient::describeVSwitches(const DescribeVSwitchesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7323,6 +7359,42 @@ EnsClient::ListObjectsOutcomeCallable EnsClient::listObjectsCallable(const ListO return task->get_future(); } +EnsClient::ListProductAbilitiesOutcome EnsClient::listProductAbilities(const ListProductAbilitiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProductAbilitiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProductAbilitiesOutcome(ListProductAbilitiesResult(outcome.result())); + else + return ListProductAbilitiesOutcome(outcome.error()); +} + +void EnsClient::listProductAbilitiesAsync(const ListProductAbilitiesRequest& request, const ListProductAbilitiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProductAbilities(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ListProductAbilitiesOutcomeCallable EnsClient::listProductAbilitiesCallable(const ListProductAbilitiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProductAbilities(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::ListTagResourcesOutcome EnsClient::listTagResources(const ListTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7395,6 +7467,42 @@ EnsClient::ModifyEnsEipAddressAttributeOutcomeCallable EnsClient::modifyEnsEipAd return task->get_future(); } +EnsClient::ModifyEnsRouteEntryOutcome EnsClient::modifyEnsRouteEntry(const ModifyEnsRouteEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEnsRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEnsRouteEntryOutcome(ModifyEnsRouteEntryResult(outcome.result())); + else + return ModifyEnsRouteEntryOutcome(outcome.error()); +} + +void EnsClient::modifyEnsRouteEntryAsync(const ModifyEnsRouteEntryRequest& request, const ModifyEnsRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEnsRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyEnsRouteEntryOutcomeCallable EnsClient::modifyEnsRouteEntryCallable(const ModifyEnsRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEnsRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::ModifyEpnInstanceOutcome EnsClient::modifyEpnInstance(const ModifyEpnInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ens/src/model/CreateEipInstanceRequest.cc b/ens/src/model/CreateEipInstanceRequest.cc index 8c5cf1854..3b5199757 100644 --- a/ens/src/model/CreateEipInstanceRequest.cc +++ b/ens/src/model/CreateEipInstanceRequest.cc @@ -75,6 +75,15 @@ void CreateEipInstanceRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string CreateEipInstanceRequest::getClientToken() const { + return clientToken_; +} + +void CreateEipInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string CreateEipInstanceRequest::getDescription() const { return description_; } diff --git a/ens/src/model/CreateEnsRouteEntryRequest.cc b/ens/src/model/CreateEnsRouteEntryRequest.cc index 02a839752..ee56e488a 100644 --- a/ens/src/model/CreateEnsRouteEntryRequest.cc +++ b/ens/src/model/CreateEnsRouteEntryRequest.cc @@ -34,15 +34,6 @@ void CreateEnsRouteEntryRequest::setRouteEntryName(const std::string &routeEntry setParameter(std::string("RouteEntryName"), routeEntryName); } -std::string CreateEnsRouteEntryRequest::getDescription() const { - return description_; -} - -void CreateEnsRouteEntryRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - std::string CreateEnsRouteEntryRequest::getNextHopId() const { return nextHopId_; } @@ -79,3 +70,21 @@ void CreateEnsRouteEntryRequest::setDestinationCidrBlock(const std::string &dest setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } +std::string CreateEnsRouteEntryRequest::getDescription() const { + return description_; +} + +void CreateEnsRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateEnsRouteEntryRequest::getSourceCidrBlock() const { + return sourceCidrBlock_; +} + +void CreateEnsRouteEntryRequest::setSourceCidrBlock(const std::string &sourceCidrBlock) { + sourceCidrBlock_ = sourceCidrBlock; + setParameter(std::string("SourceCidrBlock"), sourceCidrBlock); +} + diff --git a/ens/src/model/CreateImageRequest.cc b/ens/src/model/CreateImageRequest.cc index 5df4be7eb..b6105b57f 100644 --- a/ens/src/model/CreateImageRequest.cc +++ b/ens/src/model/CreateImageRequest.cc @@ -52,6 +52,15 @@ void CreateImageRequest::setImageName(const std::string &imageName) { setParameter(std::string("ImageName"), imageName); } +std::string CreateImageRequest::getTargetOSSRegionId() const { + return targetOSSRegionId_; +} + +void CreateImageRequest::setTargetOSSRegionId(const std::string &targetOSSRegionId) { + targetOSSRegionId_ = targetOSSRegionId; + setParameter(std::string("TargetOSSRegionId"), targetOSSRegionId); +} + std::string CreateImageRequest::getInstanceId() const { return instanceId_; } diff --git a/ens/src/model/CreateLoadBalancerRequest.cc b/ens/src/model/CreateLoadBalancerRequest.cc index 3f38466ca..9f3c20a7e 100644 --- a/ens/src/model/CreateLoadBalancerRequest.cc +++ b/ens/src/model/CreateLoadBalancerRequest.cc @@ -70,6 +70,15 @@ void CreateLoadBalancerRequest::setNetworkId(const std::string &networkId) { setParameter(std::string("NetworkId"), networkId); } +std::string CreateLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string CreateLoadBalancerRequest::getPayType() const { return payType_; } diff --git a/ens/src/model/CreateSecurityGroupRequest.cc b/ens/src/model/CreateSecurityGroupRequest.cc index 171b7b02c..63c3fe37f 100644 --- a/ens/src/model/CreateSecurityGroupRequest.cc +++ b/ens/src/model/CreateSecurityGroupRequest.cc @@ -43,3 +43,22 @@ void CreateSecurityGroupRequest::setSecurityGroupName(const std::string &securit setParameter(std::string("SecurityGroupName"), securityGroupName); } +std::vector CreateSecurityGroupRequest::getPermissions() const { + return permissions_; +} + +void CreateSecurityGroupRequest::setPermissions(const std::vector &permissions) { + permissions_ = permissions; + for(int dep1 = 0; dep1 != permissions.size(); dep1++) { + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", permissions[dep1].sourcePortRange); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".PortRange", permissions[dep1].portRange); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", permissions[dep1].ipProtocol); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", permissions[dep1].sourceCidrIp); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Description", permissions[dep1].description); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(permissions[dep1].priority)); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", permissions[dep1].destCidrIp); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Direction", permissions[dep1].direction); + setParameter(std::string("Permissions") + "." + std::to_string(dep1 + 1) + ".Policy", permissions[dep1].policy); + } +} + diff --git a/ens/src/model/CreateSnatEntryRequest.cc b/ens/src/model/CreateSnatEntryRequest.cc index 28a6092b9..a726ee7a0 100644 --- a/ens/src/model/CreateSnatEntryRequest.cc +++ b/ens/src/model/CreateSnatEntryRequest.cc @@ -61,6 +61,15 @@ void CreateSnatEntryRequest::setSourceVSwitchId(const std::string &sourceVSwitch setParameter(std::string("SourceVSwitchId"), sourceVSwitchId); } +bool CreateSnatEntryRequest::getEipAffinity() const { + return eipAffinity_; +} + +void CreateSnatEntryRequest::setEipAffinity(bool eipAffinity) { + eipAffinity_ = eipAffinity; + setParameter(std::string("EipAffinity"), eipAffinity ? "true" : "false"); +} + std::string CreateSnatEntryRequest::getSourceNetworkId() const { return sourceNetworkId_; } diff --git a/ens/src/model/DeleteNatGatewayRequest.cc b/ens/src/model/DeleteNatGatewayRequest.cc index 49b5a58d9..e675d4dfa 100644 --- a/ens/src/model/DeleteNatGatewayRequest.cc +++ b/ens/src/model/DeleteNatGatewayRequest.cc @@ -25,6 +25,15 @@ DeleteNatGatewayRequest::DeleteNatGatewayRequest() DeleteNatGatewayRequest::~DeleteNatGatewayRequest() {} +bool DeleteNatGatewayRequest::getForceDelete() const { + return forceDelete_; +} + +void DeleteNatGatewayRequest::setForceDelete(bool forceDelete) { + forceDelete_ = forceDelete; + setParameter(std::string("ForceDelete"), forceDelete ? "true" : "false"); +} + std::string DeleteNatGatewayRequest::getNatGatewayId() const { return natGatewayId_; } diff --git a/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc b/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc index 1b2573b28..cffdbee28 100644 --- a/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc +++ b/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc @@ -57,6 +57,9 @@ void DescribeCloudDiskAvailableResourceInfoResult::parse(const std::string &payl supportResourcesObject.category = valueSupportResourcesSupportResource["Category"].asString(); if(!valueSupportResourcesSupportResource["DefaultDiskSize"].isNull()) supportResourcesObject.defaultDiskSize = std::stol(valueSupportResourcesSupportResource["DefaultDiskSize"].asString()); + auto allAbility = value["Ability"]["Ability"]; + for (auto value : allAbility) + supportResourcesObject.ability.push_back(value.asString()); supportResources_.push_back(supportResourcesObject); } diff --git a/ens/src/model/DescribeElbAvailableResourceInfoResult.cc b/ens/src/model/DescribeElbAvailableResourceInfoResult.cc index 73bbbb73d..056f66a54 100644 --- a/ens/src/model/DescribeElbAvailableResourceInfoResult.cc +++ b/ens/src/model/DescribeElbAvailableResourceInfoResult.cc @@ -58,6 +58,9 @@ void DescribeElbAvailableResourceInfoResult::parse(const std::string &payload) auto allLoadBalancerSpec = value["LoadBalancerSpec"]["LoadBalancerSpec"]; for (auto value : allLoadBalancerSpec) elbAvailableResourceInfoObject.loadBalancerSpec.push_back(value.asString()); + auto allAbility = value["Ability"]["Ability"]; + for (auto value : allAbility) + elbAvailableResourceInfoObject.ability.push_back(value.asString()); elbAvailableResourceInfo_.push_back(elbAvailableResourceInfoObject); } diff --git a/ens/src/model/DescribeEnsRouteEntryListResult.cc b/ens/src/model/DescribeEnsRouteEntryListResult.cc index 8e61c382d..d9ddb88e4 100644 --- a/ens/src/model/DescribeEnsRouteEntryListResult.cc +++ b/ens/src/model/DescribeEnsRouteEntryListResult.cc @@ -57,6 +57,10 @@ void DescribeEnsRouteEntryListResult::parse(const std::string &payload) routeEntrysObject.routeEntryId = valueRouteEntrysRouteEntry["RouteEntryId"].asString(); if(!valueRouteEntrysRouteEntry["RouteTableId"].isNull()) routeEntrysObject.routeTableId = valueRouteEntrysRouteEntry["RouteTableId"].asString(); + if(!valueRouteEntrysRouteEntry["SourceCidrBlock"].isNull()) + routeEntrysObject.sourceCidrBlock = valueRouteEntrysRouteEntry["SourceCidrBlock"].asString(); + if(!valueRouteEntrysRouteEntry["CreationTime"].isNull()) + routeEntrysObject.creationTime = valueRouteEntrysRouteEntry["CreationTime"].asString(); auto allNextHopsNode = valueRouteEntrysRouteEntry["NextHops"]["NextHop"]; for (auto valueRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { @@ -65,6 +69,8 @@ void DescribeEnsRouteEntryListResult::parse(const std::string &payload) nextHopsObject.nextHopId = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString(); if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) nextHopsObject.nextHopType = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteEntrysRouteEntryNextHopsNextHop["NextHopName"].isNull()) + nextHopsObject.nextHopName = valueRouteEntrysRouteEntryNextHopsNextHop["NextHopName"].asString(); routeEntrysObject.nextHops.push_back(nextHopsObject); } routeEntrys_.push_back(routeEntrysObject); diff --git a/ens/src/model/DescribeEnsRouteTablesRequest.cc b/ens/src/model/DescribeEnsRouteTablesRequest.cc index b6b8c4491..bca5e8d0c 100644 --- a/ens/src/model/DescribeEnsRouteTablesRequest.cc +++ b/ens/src/model/DescribeEnsRouteTablesRequest.cc @@ -25,22 +25,22 @@ DescribeEnsRouteTablesRequest::DescribeEnsRouteTablesRequest() DescribeEnsRouteTablesRequest::~DescribeEnsRouteTablesRequest() {} -int DescribeEnsRouteTablesRequest::getPageNumber() const { - return pageNumber_; +std::string DescribeEnsRouteTablesRequest::getType() const { + return type_; } -void DescribeEnsRouteTablesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +void DescribeEnsRouteTablesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -int DescribeEnsRouteTablesRequest::getPageSize() const { - return pageSize_; +std::string DescribeEnsRouteTablesRequest::getAssociateType() const { + return associateType_; } -void DescribeEnsRouteTablesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); +void DescribeEnsRouteTablesRequest::setAssociateType(const std::string &associateType) { + associateType_ = associateType; + setParameter(std::string("AssociateType"), associateType); } std::string DescribeEnsRouteTablesRequest::getEnsRegionId() const { @@ -70,3 +70,41 @@ void DescribeEnsRouteTablesRequest::setNetworkId(const std::string &networkId) { setParameter(std::string("NetworkId"), networkId); } +int DescribeEnsRouteTablesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEnsRouteTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEnsRouteTablesRequest::getRouteTableName() const { + return routeTableName_; +} + +void DescribeEnsRouteTablesRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); +} + +int DescribeEnsRouteTablesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEnsRouteTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeEnsRouteTablesRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeEnsRouteTablesRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } +} + diff --git a/ens/src/model/DescribeEnsRouteTablesResult.cc b/ens/src/model/DescribeEnsRouteTablesResult.cc index aa9d974a7..0d6558cad 100644 --- a/ens/src/model/DescribeEnsRouteTablesResult.cc +++ b/ens/src/model/DescribeEnsRouteTablesResult.cc @@ -59,6 +59,24 @@ void DescribeEnsRouteTablesResult::parse(const std::string &payload) routeTablesObject.routeTableName = valueRouteTablesRouteTable["RouteTableName"].asString(); if(!valueRouteTablesRouteTable["NetworkName"].isNull()) routeTablesObject.networkName = valueRouteTablesRouteTable["NetworkName"].asString(); + if(!valueRouteTablesRouteTable["AssociateType"].isNull()) + routeTablesObject.associateType = valueRouteTablesRouteTable["AssociateType"].asString(); + if(!valueRouteTablesRouteTable["Description"].isNull()) + routeTablesObject.description = valueRouteTablesRouteTable["Description"].asString(); + if(!valueRouteTablesRouteTable["IsDefaultGatewayRouteTable"].isNull()) + routeTablesObject.isDefaultGatewayRouteTable = valueRouteTablesRouteTable["IsDefaultGatewayRouteTable"].asString() == "true"; + auto allAssociatedResourcesNode = valueRouteTablesRouteTable["AssociatedResources"]["AssociatedResource"]; + for (auto valueRouteTablesRouteTableAssociatedResourcesAssociatedResource : allAssociatedResourcesNode) + { + RouteTable::AssociatedResource associatedResourcesObject; + if(!valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceType"].isNull()) + associatedResourcesObject.resourceType = valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceType"].asString(); + if(!valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceId"].isNull()) + associatedResourcesObject.resourceId = valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceId"].asString(); + if(!valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceName"].isNull()) + associatedResourcesObject.resourceName = valueRouteTablesRouteTableAssociatedResourcesAssociatedResource["ResourceName"].asString(); + routeTablesObject.associatedResources.push_back(associatedResourcesObject); + } auto allVSwitchIds = value["VSwitchIds"]["VSwitch"]; for (auto value : allVSwitchIds) routeTablesObject.vSwitchIds.push_back(value.asString()); diff --git a/ens/src/model/DescribeImageInfosResult.cc b/ens/src/model/DescribeImageInfosResult.cc index f4ba19f7e..4ed88cdf5 100644 --- a/ens/src/model/DescribeImageInfosResult.cc +++ b/ens/src/model/DescribeImageInfosResult.cc @@ -57,6 +57,8 @@ void DescribeImageInfosResult::parse(const std::string &payload) imagesObject.oSType = valueImagesImage["OSType"].asString(); if(!valueImagesImage["ComputeType"].isNull()) imagesObject.computeType = valueImagesImage["ComputeType"].asString(); + if(!valueImagesImage["RegionId"].isNull()) + imagesObject.regionId = valueImagesImage["RegionId"].asString(); auto allDiskDeviceMappingsNode = valueImagesImage["DiskDeviceMappings"]["DiskDeviceMapping"]; for (auto valueImagesImageDiskDeviceMappingsDiskDeviceMapping : allDiskDeviceMappingsNode) { diff --git a/ens/src/model/DescribeImageSharePermissionResult.cc b/ens/src/model/DescribeImageSharePermissionResult.cc index ae814a6c0..57aabd73b 100644 --- a/ens/src/model/DescribeImageSharePermissionResult.cc +++ b/ens/src/model/DescribeImageSharePermissionResult.cc @@ -39,9 +39,14 @@ void DescribeImageSharePermissionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allAccounts = value["Accounts"]["Account"]; - for (const auto &item : allAccounts) - accounts_.push_back(item.asString()); + auto allAccountsNode = value["Accounts"]["Account"]; + for (auto valueAccountsAccount : allAccountsNode) + { + Account accountsObject; + if(!valueAccountsAccount["AliyunUid"].isNull()) + accountsObject.aliyunUid = valueAccountsAccount["AliyunUid"].asString(); + accounts_.push_back(accountsObject); + } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageSize"].isNull()) @@ -73,7 +78,7 @@ std::string DescribeImageSharePermissionResult::getImageId()const return imageId_; } -std::vector DescribeImageSharePermissionResult::getAccounts()const +std::vector DescribeImageSharePermissionResult::getAccounts()const { return accounts_; } diff --git a/ens/src/model/DescribeImagesResult.cc b/ens/src/model/DescribeImagesResult.cc index ac45b5898..b54752c5a 100644 --- a/ens/src/model/DescribeImagesResult.cc +++ b/ens/src/model/DescribeImagesResult.cc @@ -59,6 +59,8 @@ void DescribeImagesResult::parse(const std::string &payload) imagesObject.platform = valueImagesImage["Platform"].asString(); if(!valueImagesImage["SnapshotId"].isNull()) imagesObject.snapshotId = valueImagesImage["SnapshotId"].asString(); + if(!valueImagesImage["RegionId"].isNull()) + imagesObject.regionId = valueImagesImage["RegionId"].asString(); auto allDiskDeviceMappingsNode = valueImagesImage["DiskDeviceMappings"]["DiskDeviceMapping"]; for (auto valueImagesImageDiskDeviceMappingsDiskDeviceMapping : allDiskDeviceMappingsNode) { diff --git a/ens/src/model/DescribeLoadBalancerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerAttributeResult.cc index bd72d3ace..24bee973c 100644 --- a/ens/src/model/DescribeLoadBalancerAttributeResult.cc +++ b/ens/src/model/DescribeLoadBalancerAttributeResult.cc @@ -69,6 +69,8 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) listenerPortsAndProtocolsObject.listenerForward = valueListenerPortsAndProtocolslistener["ListenerForward"].asString(); if(!valueListenerPortsAndProtocolslistener["ForwardPort"].isNull()) listenerPortsAndProtocolsObject.forwardPort = std::stoi(valueListenerPortsAndProtocolslistener["ForwardPort"].asString()); + if(!valueListenerPortsAndProtocolslistener["BackendServerPort"].isNull()) + listenerPortsAndProtocolsObject.backendServerPort = std::stoi(valueListenerPortsAndProtocolslistener["BackendServerPort"].asString()); listenerPortsAndProtocols_.push_back(listenerPortsAndProtocolsObject); } auto allListenerPorts = value["ListenerPorts"]["listenerPort"]; diff --git a/ens/src/model/DescribeLoadBalancerListenersRequest.cc b/ens/src/model/DescribeLoadBalancerListenersRequest.cc index 326baca4f..d3ff36009 100644 --- a/ens/src/model/DescribeLoadBalancerListenersRequest.cc +++ b/ens/src/model/DescribeLoadBalancerListenersRequest.cc @@ -25,6 +25,15 @@ DescribeLoadBalancerListenersRequest::DescribeLoadBalancerListenersRequest() DescribeLoadBalancerListenersRequest::~DescribeLoadBalancerListenersRequest() {} +std::string DescribeLoadBalancerListenersRequest::getDescription() const { + return description_; +} + +void DescribeLoadBalancerListenersRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + int DescribeLoadBalancerListenersRequest::getPageNumber() const { return pageNumber_; } @@ -43,6 +52,15 @@ void DescribeLoadBalancerListenersRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +int DescribeLoadBalancerListenersRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerListenersRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + std::string DescribeLoadBalancerListenersRequest::getLoadBalancerId() const { return loadBalancerId_; } diff --git a/ens/src/model/DescribeLoadBalancerListenersResult.cc b/ens/src/model/DescribeLoadBalancerListenersResult.cc index bc3325b28..7493929a0 100644 --- a/ens/src/model/DescribeLoadBalancerListenersResult.cc +++ b/ens/src/model/DescribeLoadBalancerListenersResult.cc @@ -59,6 +59,8 @@ void DescribeLoadBalancerListenersResult::parse(const std::string &payload) listenersObject.forwardPort = valueListenersListener["ForwardPort"].asString(); if(!valueListenersListener["CreateTime"].isNull()) listenersObject.createTime = valueListenersListener["CreateTime"].asString(); + if(!valueListenersListener["BackendServerPort"].isNull()) + listenersObject.backendServerPort = std::stoi(valueListenersListener["BackendServerPort"].asString()); listeners_.push_back(listenersObject); } if(!value["PageNumber"].isNull()) diff --git a/ens/src/model/DescribeLoadBalancersRequest.cc b/ens/src/model/DescribeLoadBalancersRequest.cc index 8c6814e09..c8740667a 100644 --- a/ens/src/model/DescribeLoadBalancersRequest.cc +++ b/ens/src/model/DescribeLoadBalancersRequest.cc @@ -97,6 +97,17 @@ void DescribeLoadBalancersRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::vector DescribeLoadBalancersRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeLoadBalancersRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } +} + std::string DescribeLoadBalancersRequest::getAddress() const { return address_; } diff --git a/ens/src/model/DescribeNatGatewaysRequest.cc b/ens/src/model/DescribeNatGatewaysRequest.cc index 6d4057dc2..818f16135 100644 --- a/ens/src/model/DescribeNatGatewaysRequest.cc +++ b/ens/src/model/DescribeNatGatewaysRequest.cc @@ -88,3 +88,25 @@ void DescribeNatGatewaysRequest::setNatGatewayId(const std::string &natGatewayId setParameter(std::string("NatGatewayId"), natGatewayId); } +std::vector DescribeNatGatewaysRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeNatGatewaysRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } +} + +std::vector DescribeNatGatewaysRequest::getNatGatewayIds() const { + return natGatewayIds_; +} + +void DescribeNatGatewaysRequest::setNatGatewayIds(const std::vector &natGatewayIds) { + natGatewayIds_ = natGatewayIds; + for(int dep1 = 0; dep1 != natGatewayIds.size(); dep1++) { + setParameter(std::string("NatGatewayIds") + "." + std::to_string(dep1 + 1), natGatewayIds[dep1]); + } +} + diff --git a/ens/src/model/DescribeNatGatewaysResult.cc b/ens/src/model/DescribeNatGatewaysResult.cc index c0060660f..6acfafb12 100644 --- a/ens/src/model/DescribeNatGatewaysResult.cc +++ b/ens/src/model/DescribeNatGatewaysResult.cc @@ -57,6 +57,20 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString(); if(!valueNatGatewaysNatGateway["Spec"].isNull()) natGatewaysObject.spec = valueNatGatewaysNatGateway["Spec"].asString(); + if(!valueNatGatewaysNatGateway["Status"].isNull()) + natGatewaysObject.status = valueNatGatewaysNatGateway["Status"].asString(); + auto allIpListsNode = valueNatGatewaysNatGateway["IpLists"]["IpList"]; + for (auto valueNatGatewaysNatGatewayIpListsIpList : allIpListsNode) + { + NatGateway::IpList ipListsObject; + if(!valueNatGatewaysNatGatewayIpListsIpList["UsingStatus"].isNull()) + ipListsObject.usingStatus = valueNatGatewaysNatGatewayIpListsIpList["UsingStatus"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["IpAddress"].isNull()) + ipListsObject.ipAddress = valueNatGatewaysNatGatewayIpListsIpList["IpAddress"].asString(); + if(!valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].isNull()) + ipListsObject.allocationId = valueNatGatewaysNatGatewayIpListsIpList["AllocationId"].asString(); + natGatewaysObject.ipLists.push_back(ipListsObject); + } natGateways_.push_back(natGatewaysObject); } if(!value["PageNumber"].isNull()) diff --git a/ens/src/model/DescribeNetworkAttributeResult.cc b/ens/src/model/DescribeNetworkAttributeResult.cc index 43546779a..4faf71ed6 100644 --- a/ens/src/model/DescribeNetworkAttributeResult.cc +++ b/ens/src/model/DescribeNetworkAttributeResult.cc @@ -52,6 +52,24 @@ void DescribeNetworkAttributeResult::parse(const std::string &payload) auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (const auto &item : allVSwitchIds) vSwitchIds_.push_back(item.asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; + for (const auto &item : allRouteTableIds) + routeTableIds_.push_back(item.asString()); + auto allNetworkInterfaceIds = value["NetworkInterfaceIds"]["NetworkInterfaceId"]; + for (const auto &item : allNetworkInterfaceIds) + networkInterfaceIds_.push_back(item.asString()); + auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerId"]; + for (const auto &item : allLoadBalancerIds) + loadBalancerIds_.push_back(item.asString()); + auto allNatGatewayIds = value["NatGatewayIds"]["NatGatewayId"]; + for (const auto &item : allNatGatewayIds) + natGatewayIds_.push_back(item.asString()); + auto allHaVipIds = value["HaVipIds"]["HaVipId"]; + for (const auto &item : allHaVipIds) + haVipIds_.push_back(item.asString()); if(!value["EnsRegionId"].isNull()) ensRegionId_ = value["EnsRegionId"].asString(); if(!value["NetworkId"].isNull()) @@ -70,6 +88,10 @@ void DescribeNetworkAttributeResult::parse(const std::string &payload) routerTableId_ = value["RouterTableId"].asString(); if(!value["NetworkAclId"].isNull()) networkAclId_ = value["NetworkAclId"].asString(); + if(!value["RouteTableId"].isNull()) + routeTableId_ = value["RouteTableId"].asString(); + if(!value["GatewayRouteTableId"].isNull()) + gatewayRouteTableId_ = value["GatewayRouteTableId"].asString(); } @@ -83,6 +105,11 @@ std::string DescribeNetworkAttributeResult::getNetworkName()const return networkName_; } +std::string DescribeNetworkAttributeResult::getGatewayRouteTableId()const +{ + return gatewayRouteTableId_; +} + std::string DescribeNetworkAttributeResult::getDescription()const { return description_; @@ -93,6 +120,11 @@ std::string DescribeNetworkAttributeResult::getCreatedTime()const return createdTime_; } +std::string DescribeNetworkAttributeResult::getRouteTableId()const +{ + return routeTableId_; +} + std::string DescribeNetworkAttributeResult::getNetworkAclId()const { return networkAclId_; @@ -103,19 +135,19 @@ std::vector DescribeNetworkAttributeResult::getVSwitchIds()const return vSwitchIds_; } +std::vector DescribeNetworkAttributeResult::getLoadBalancerIds()const +{ + return loadBalancerIds_; +} + std::string DescribeNetworkAttributeResult::getCidrBlock()const { return cidrBlock_; } -std::string DescribeNetworkAttributeResult::getRouterTableId()const +std::vector DescribeNetworkAttributeResult::getNetworkInterfaceIds()const { - return routerTableId_; -} - -std::string DescribeNetworkAttributeResult::getEnsRegionId()const -{ - return ensRegionId_; + return networkInterfaceIds_; } std::string DescribeNetworkAttributeResult::getNetworkId()const @@ -123,6 +155,36 @@ std::string DescribeNetworkAttributeResult::getNetworkId()const return networkId_; } +std::vector DescribeNetworkAttributeResult::getNatGatewayIds()const +{ + return natGatewayIds_; +} + +std::vector DescribeNetworkAttributeResult::getRouteTableIds()const +{ + return routeTableIds_; +} + +std::vector DescribeNetworkAttributeResult::getHaVipIds()const +{ + return haVipIds_; +} + +std::string DescribeNetworkAttributeResult::getRouterTableId()const +{ + return routerTableId_; +} + +std::vector DescribeNetworkAttributeResult::getInstanceIds()const +{ + return instanceIds_; +} + +std::string DescribeNetworkAttributeResult::getEnsRegionId()const +{ + return ensRegionId_; +} + std::vector DescribeNetworkAttributeResult::getCloudResources()const { return cloudResources_; diff --git a/ens/src/model/DescribeNetworkInterfacesRequest.cc b/ens/src/model/DescribeNetworkInterfacesRequest.cc index 2e47587a1..979410d40 100644 --- a/ens/src/model/DescribeNetworkInterfacesRequest.cc +++ b/ens/src/model/DescribeNetworkInterfacesRequest.cc @@ -99,6 +99,17 @@ void DescribeNetworkInterfacesRequest::setStatus(const std::string &status) { setParameter(std::string("Status"), status); } +std::vector DescribeNetworkInterfacesRequest::getNetworkInterfaceIds() const { + return networkInterfaceIds_; +} + +void DescribeNetworkInterfacesRequest::setNetworkInterfaceIds(const std::vector &networkInterfaceIds) { + networkInterfaceIds_ = networkInterfaceIds; + for(int dep1 = 0; dep1 != networkInterfaceIds.size(); dep1++) { + setParameter(std::string("NetworkInterfaceIds") + "." + std::to_string(dep1 + 1), networkInterfaceIds[dep1]); + } +} + std::string DescribeNetworkInterfacesRequest::getSecurityGroupId() const { return securityGroupId_; } @@ -135,6 +146,17 @@ void DescribeNetworkInterfacesRequest::setPageSize(const std::string &pageSize) setParameter(std::string("PageSize"), pageSize); } +std::vector DescribeNetworkInterfacesRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeNetworkInterfacesRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } +} + std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress() const { return primaryIpAddress_; } diff --git a/ens/src/model/DescribeNetworksRequest.cc b/ens/src/model/DescribeNetworksRequest.cc index 0078562f7..a999eac94 100644 --- a/ens/src/model/DescribeNetworksRequest.cc +++ b/ens/src/model/DescribeNetworksRequest.cc @@ -25,15 +25,6 @@ DescribeNetworksRequest::DescribeNetworksRequest() DescribeNetworksRequest::~DescribeNetworksRequest() {} -int DescribeNetworksRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeNetworksRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - std::string DescribeNetworksRequest::getEnsRegionId() const { return ensRegionId_; } @@ -43,6 +34,35 @@ void DescribeNetworksRequest::setEnsRegionId(const std::string &ensRegionId) { setParameter(std::string("EnsRegionId"), ensRegionId); } +std::vector DescribeNetworksRequest::getNetworkIds() const { + return networkIds_; +} + +void DescribeNetworksRequest::setNetworkIds(const std::vector &networkIds) { + networkIds_ = networkIds; + for(int dep1 = 0; dep1 != networkIds.size(); dep1++) { + setParameter(std::string("NetworkIds") + "." + std::to_string(dep1 + 1), networkIds[dep1]); + } +} + +std::string DescribeNetworksRequest::getNetworkId() const { + return networkId_; +} + +void DescribeNetworksRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + +int DescribeNetworksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeNetworksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + int DescribeNetworksRequest::getPageSize() const { return pageSize_; } @@ -61,12 +81,14 @@ void DescribeNetworksRequest::setNetworkName(const std::string &networkName) { setParameter(std::string("NetworkName"), networkName); } -std::string DescribeNetworksRequest::getNetworkId() const { - return networkId_; +std::vector DescribeNetworksRequest::getEnsRegionIds() const { + return ensRegionIds_; } -void DescribeNetworksRequest::setNetworkId(const std::string &networkId) { - networkId_ = networkId; - setParameter(std::string("NetworkId"), networkId); +void DescribeNetworksRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } } diff --git a/ens/src/model/DescribeNetworksResult.cc b/ens/src/model/DescribeNetworksResult.cc index e57de7db3..fe1a7bde7 100644 --- a/ens/src/model/DescribeNetworksResult.cc +++ b/ens/src/model/DescribeNetworksResult.cc @@ -61,9 +61,16 @@ void DescribeNetworksResult::parse(const std::string &payload) networksObject.routerTableId = valueNetworksNetwork["RouterTableId"].asString(); if(!valueNetworksNetwork["NetworkAclId"].isNull()) networksObject.networkAclId = valueNetworksNetwork["NetworkAclId"].asString(); + if(!valueNetworksNetwork["RouteTableId"].isNull()) + networksObject.routeTableId = valueNetworksNetwork["RouteTableId"].asString(); + if(!valueNetworksNetwork["GatewayRouteTableId"].isNull()) + networksObject.gatewayRouteTableId = valueNetworksNetwork["GatewayRouteTableId"].asString(); auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) networksObject.vSwitchIds.push_back(value.asString()); + auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; + for (auto value : allRouteTableIds) + networksObject.routeTableIds.push_back(value.asString()); networks_.push_back(networksObject); } if(!value["TotalCount"].isNull()) diff --git a/ens/src/model/DescribeSecurityGroupsResult.cc b/ens/src/model/DescribeSecurityGroupsResult.cc index 61e0f5596..695e17d29 100644 --- a/ens/src/model/DescribeSecurityGroupsResult.cc +++ b/ens/src/model/DescribeSecurityGroupsResult.cc @@ -53,6 +53,12 @@ void DescribeSecurityGroupsResult::parse(const std::string &payload) securityGroupsObject.securityGroupId = valueSecurityGroupsSecurityGroup["SecurityGroupId"].asString(); if(!valueSecurityGroupsSecurityGroup["SecurityGroupName"].isNull()) securityGroupsObject.securityGroupName = valueSecurityGroupsSecurityGroup["SecurityGroupName"].asString(); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (auto value : allInstanceIds) + securityGroupsObject.instanceIds.push_back(value.asString()); + auto allNetworkInterfaceIds = value["NetworkInterfaceIds"]["NetworkInterfaceId"]; + for (auto value : allNetworkInterfaceIds) + securityGroupsObject.networkInterfaceIds.push_back(value.asString()); securityGroups_.push_back(securityGroupsObject); } if(!value["PageSize"].isNull()) diff --git a/ens/src/model/DescribeSelfImagesResult.cc b/ens/src/model/DescribeSelfImagesResult.cc index dce00e953..de77a40ea 100644 --- a/ens/src/model/DescribeSelfImagesResult.cc +++ b/ens/src/model/DescribeSelfImagesResult.cc @@ -69,6 +69,8 @@ void DescribeSelfImagesResult::parse(const std::string &payload) imagesObject.snapshotId = valueImagesImage["SnapshotId"].asString(); if(!valueImagesImage["ImageStorageSize"].isNull()) imagesObject.imageStorageSize = valueImagesImage["ImageStorageSize"].asString(); + if(!valueImagesImage["RegionId"].isNull()) + imagesObject.regionId = valueImagesImage["RegionId"].asString(); auto allDiskDeviceMappingsNode = valueImagesImage["DiskDeviceMappings"]["DiskDeviceMapping"]; for (auto valueImagesImageDiskDeviceMappingsDiskDeviceMapping : allDiskDeviceMappingsNode) { @@ -87,9 +89,30 @@ void DescribeSelfImagesResult::parse(const std::string &payload) } if(!value["Code"].isNull()) code_ = std::stoi(value["Code"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } +std::string DescribeSelfImagesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeSelfImagesResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeSelfImagesResult::getPageNumber()const +{ + return pageNumber_; +} + std::vector DescribeSelfImagesResult::getImages()const { return images_; diff --git a/ens/src/model/DescribeSnatAttributeResult.cc b/ens/src/model/DescribeSnatAttributeResult.cc index e1a4bcc90..9573ee36e 100644 --- a/ens/src/model/DescribeSnatAttributeResult.cc +++ b/ens/src/model/DescribeSnatAttributeResult.cc @@ -77,6 +77,8 @@ void DescribeSnatAttributeResult::parse(const std::string &payload) destCIDR_ = value["DestCIDR"].asString(); if(!value["IspAffinity"].isNull()) ispAffinity_ = value["IspAffinity"].asString() == "true"; + if(!value["EipAffinity"].isNull()) + eipAffinity_ = value["EipAffinity"].asString() == "true"; } @@ -105,6 +107,11 @@ std::string DescribeSnatAttributeResult::getStandbySnatIp()const return standbySnatIp_; } +bool DescribeSnatAttributeResult::getEipAffinity()const +{ + return eipAffinity_; +} + std::string DescribeSnatAttributeResult::getType()const { return type_; diff --git a/ens/src/model/DescribeSnatTableEntriesRequest.cc b/ens/src/model/DescribeSnatTableEntriesRequest.cc index b12d5d7e9..83afd3f42 100644 --- a/ens/src/model/DescribeSnatTableEntriesRequest.cc +++ b/ens/src/model/DescribeSnatTableEntriesRequest.cc @@ -43,6 +43,17 @@ void DescribeSnatTableEntriesRequest::setSnatEntryId(const std::string &snatEntr setParameter(std::string("SnatEntryId"), snatEntryId); } +std::vector DescribeSnatTableEntriesRequest::getSnatIps() const { + return snatIps_; +} + +void DescribeSnatTableEntriesRequest::setSnatIps(const std::vector &snatIps) { + snatIps_ = snatIps; + for(int dep1 = 0; dep1 != snatIps.size(); dep1++) { + setParameter(std::string("SnatIps") + "." + std::to_string(dep1 + 1), snatIps[dep1]); + } +} + std::string DescribeSnatTableEntriesRequest::getSourceCIDR() const { return sourceCIDR_; } diff --git a/ens/src/model/DescribeSnatTableEntriesResult.cc b/ens/src/model/DescribeSnatTableEntriesResult.cc index a92476a0f..ef4819e8a 100644 --- a/ens/src/model/DescribeSnatTableEntriesResult.cc +++ b/ens/src/model/DescribeSnatTableEntriesResult.cc @@ -67,6 +67,8 @@ void DescribeSnatTableEntriesResult::parse(const std::string &payload) snatTableEntriesObject.destCIDR = valueSnatTableEntriesSnatTableEntry["DestCIDR"].asString(); if(!valueSnatTableEntriesSnatTableEntry["IspAffinity"].isNull()) snatTableEntriesObject.ispAffinity = valueSnatTableEntriesSnatTableEntry["IspAffinity"].asString() == "true"; + if(!valueSnatTableEntriesSnatTableEntry["EipAffinity"].isNull()) + snatTableEntriesObject.eipAffinity = valueSnatTableEntriesSnatTableEntry["EipAffinity"].asString() == "true"; auto allSnatIpsNode = valueSnatTableEntriesSnatTableEntry["SnatIps"]["snatIp"]; for (auto valueSnatTableEntriesSnatTableEntrySnatIpssnatIp : allSnatIpsNode) { diff --git a/ens/src/model/DescribeVSwitchAttributesRequest.cc b/ens/src/model/DescribeVSwitchAttributesRequest.cc new file mode 100644 index 000000000..9cafdcc06 --- /dev/null +++ b/ens/src/model/DescribeVSwitchAttributesRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeVSwitchAttributesRequest; + +DescribeVSwitchAttributesRequest::DescribeVSwitchAttributesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeVSwitchAttributes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVSwitchAttributesRequest::~DescribeVSwitchAttributesRequest() {} + +std::string DescribeVSwitchAttributesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeVSwitchAttributesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + diff --git a/ens/src/model/DescribeVSwitchAttributesResult.cc b/ens/src/model/DescribeVSwitchAttributesResult.cc new file mode 100644 index 000000000..15a7b7318 --- /dev/null +++ b/ens/src/model/DescribeVSwitchAttributesResult.cc @@ -0,0 +1,147 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeVSwitchAttributesResult::DescribeVSwitchAttributesResult() : + ServiceResult() +{} + +DescribeVSwitchAttributesResult::DescribeVSwitchAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchAttributesResult::~DescribeVSwitchAttributesResult() +{} + +void DescribeVSwitchAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + auto allNetworkInterfaceIds = value["NetworkInterfaceIds"]["NetworkInterfaceId"]; + for (const auto &item : allNetworkInterfaceIds) + networkInterfaceIds_.push_back(item.asString()); + auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerId"]; + for (const auto &item : allLoadBalancerIds) + loadBalancerIds_.push_back(item.asString()); + auto allNatGatewayIds = value["NatGatewayIds"]["NatGatewayId"]; + for (const auto &item : allNatGatewayIds) + natGatewayIds_.push_back(item.asString()); + auto allHaVipIds = value["HaVipIds"]["HaVipId"]; + for (const auto &item : allHaVipIds) + haVipIds_.push_back(item.asString()); + if(!value["EnsRegionId"].isNull()) + ensRegionId_ = value["EnsRegionId"].asString(); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchName_ = value["VSwitchName"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["CreatedTime"].isNull()) + createdTime_ = value["CreatedTime"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["AvailableIpAddressCount"].isNull()) + availableIpAddressCount_ = std::stol(value["AvailableIpAddressCount"].asString()); + +} + +std::string DescribeVSwitchAttributesResult::getStatus()const +{ + return status_; +} + +std::string DescribeVSwitchAttributesResult::getDescription()const +{ + return description_; +} + +std::string DescribeVSwitchAttributesResult::getCreatedTime()const +{ + return createdTime_; +} + +std::string DescribeVSwitchAttributesResult::getVSwitchId()const +{ + return vSwitchId_; +} + +long DescribeVSwitchAttributesResult::getAvailableIpAddressCount()const +{ + return availableIpAddressCount_; +} + +std::vector DescribeVSwitchAttributesResult::getLoadBalancerIds()const +{ + return loadBalancerIds_; +} + +std::string DescribeVSwitchAttributesResult::getCidrBlock()const +{ + return cidrBlock_; +} + +std::vector DescribeVSwitchAttributesResult::getNetworkInterfaceIds()const +{ + return networkInterfaceIds_; +} + +std::string DescribeVSwitchAttributesResult::getNetworkId()const +{ + return networkId_; +} + +std::vector DescribeVSwitchAttributesResult::getNatGatewayIds()const +{ + return natGatewayIds_; +} + +std::vector DescribeVSwitchAttributesResult::getHaVipIds()const +{ + return haVipIds_; +} + +std::string DescribeVSwitchAttributesResult::getVSwitchName()const +{ + return vSwitchName_; +} + +std::vector DescribeVSwitchAttributesResult::getInstanceIds()const +{ + return instanceIds_; +} + +std::string DescribeVSwitchAttributesResult::getEnsRegionId()const +{ + return ensRegionId_; +} + diff --git a/ens/src/model/DescribeVSwitchesRequest.cc b/ens/src/model/DescribeVSwitchesRequest.cc index 3a2082c34..5ee5d1d98 100644 --- a/ens/src/model/DescribeVSwitchesRequest.cc +++ b/ens/src/model/DescribeVSwitchesRequest.cc @@ -25,13 +25,15 @@ DescribeVSwitchesRequest::DescribeVSwitchesRequest() DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {} -std::string DescribeVSwitchesRequest::getOrderByParams() const { - return orderByParams_; +std::vector DescribeVSwitchesRequest::getVSwitchIds() const { + return vSwitchIds_; } -void DescribeVSwitchesRequest::setOrderByParams(const std::string &orderByParams) { - orderByParams_ = orderByParams; - setParameter(std::string("OrderByParams"), orderByParams); +void DescribeVSwitchesRequest::setVSwitchIds(const std::vector &vSwitchIds) { + vSwitchIds_ = vSwitchIds; + for(int dep1 = 0; dep1 != vSwitchIds.size(); dep1++) { + setParameter(std::string("VSwitchIds") + "." + std::to_string(dep1 + 1), vSwitchIds[dep1]); + } } std::string DescribeVSwitchesRequest::getEnsRegionId() const { @@ -79,6 +81,17 @@ void DescribeVSwitchesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::vector DescribeVSwitchesRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeVSwitchesRequest::setEnsRegionIds(const std::vector &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + for(int dep1 = 0; dep1 != ensRegionIds.size(); dep1++) { + setParameter(std::string("EnsRegionIds") + "." + std::to_string(dep1 + 1), ensRegionIds[dep1]); + } +} + std::string DescribeVSwitchesRequest::getVSwitchName() const { return vSwitchName_; } diff --git a/ens/src/model/ListProductAbilitiesRequest.cc b/ens/src/model/ListProductAbilitiesRequest.cc new file mode 100644 index 000000000..f3d27086b --- /dev/null +++ b/ens/src/model/ListProductAbilitiesRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ListProductAbilitiesRequest; + +ListProductAbilitiesRequest::ListProductAbilitiesRequest() + : RpcServiceRequest("ens", "2017-11-10", "ListProductAbilities") { + setMethod(HttpRequest::Method::Get); +} + +ListProductAbilitiesRequest::~ListProductAbilitiesRequest() {} + diff --git a/ens/src/model/ListProductAbilitiesResult.cc b/ens/src/model/ListProductAbilitiesResult.cc new file mode 100644 index 000000000..1ca221cac --- /dev/null +++ b/ens/src/model/ListProductAbilitiesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ListProductAbilitiesResult::ListProductAbilitiesResult() : + ServiceResult() +{} + +ListProductAbilitiesResult::ListProductAbilitiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProductAbilitiesResult::~ListProductAbilitiesResult() +{} + +void ListProductAbilitiesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProductAbilities = value["ProductAbilities"]["ProductAbilities"]; + for (const auto &item : allProductAbilities) + productAbilities_.push_back(item.asString()); + +} + +std::vector ListProductAbilitiesResult::getProductAbilities()const +{ + return productAbilities_; +} + diff --git a/ens/src/model/ModifyEnsRouteEntryRequest.cc b/ens/src/model/ModifyEnsRouteEntryRequest.cc new file mode 100644 index 000000000..378ce1d4b --- /dev/null +++ b/ens/src/model/ModifyEnsRouteEntryRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ModifyEnsRouteEntryRequest; + +ModifyEnsRouteEntryRequest::ModifyEnsRouteEntryRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyEnsRouteEntry") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEnsRouteEntryRequest::~ModifyEnsRouteEntryRequest() {} + +std::string ModifyEnsRouteEntryRequest::getRouteEntryName() const { + return routeEntryName_; +} + +void ModifyEnsRouteEntryRequest::setRouteEntryName(const std::string &routeEntryName) { + routeEntryName_ = routeEntryName; + setParameter(std::string("RouteEntryName"), routeEntryName); +} + +std::string ModifyEnsRouteEntryRequest::getDescription() const { + return description_; +} + +void ModifyEnsRouteEntryRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyEnsRouteEntryRequest::getRouteEntryId() const { + return routeEntryId_; +} + +void ModifyEnsRouteEntryRequest::setRouteEntryId(const std::string &routeEntryId) { + routeEntryId_ = routeEntryId; + setParameter(std::string("RouteEntryId"), routeEntryId); +} + diff --git a/ens/src/model/ModifyEnsRouteEntryResult.cc b/ens/src/model/ModifyEnsRouteEntryResult.cc new file mode 100644 index 000000000..2b27cfdf0 --- /dev/null +++ b/ens/src/model/ModifyEnsRouteEntryResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyEnsRouteEntryResult::ModifyEnsRouteEntryResult() : + ServiceResult() +{} + +ModifyEnsRouteEntryResult::ModifyEnsRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEnsRouteEntryResult::~ModifyEnsRouteEntryResult() +{} + +void ModifyEnsRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ModifyForwardEntryRequest.cc b/ens/src/model/ModifyForwardEntryRequest.cc index 38eb69922..89ea04655 100644 --- a/ens/src/model/ModifyForwardEntryRequest.cc +++ b/ens/src/model/ModifyForwardEntryRequest.cc @@ -25,6 +25,51 @@ ModifyForwardEntryRequest::ModifyForwardEntryRequest() ModifyForwardEntryRequest::~ModifyForwardEntryRequest() {} +std::string ModifyForwardEntryRequest::getInternalIp() const { + return internalIp_; +} + +void ModifyForwardEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); +} + +std::string ModifyForwardEntryRequest::getExternalIp() const { + return externalIp_; +} + +void ModifyForwardEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); +} + +std::string ModifyForwardEntryRequest::getIpProtocol() const { + return ipProtocol_; +} + +void ModifyForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +int ModifyForwardEntryRequest::getHealthCheckPort() const { + return healthCheckPort_; +} + +void ModifyForwardEntryRequest::setHealthCheckPort(int healthCheckPort) { + healthCheckPort_ = healthCheckPort; + setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort)); +} + +std::string ModifyForwardEntryRequest::getExternalPort() const { + return externalPort_; +} + +void ModifyForwardEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); +} + std::string ModifyForwardEntryRequest::getForwardEntryId() const { return forwardEntryId_; } @@ -43,12 +88,12 @@ void ModifyForwardEntryRequest::setForwardEntryName(const std::string &forwardEn setParameter(std::string("ForwardEntryName"), forwardEntryName); } -int ModifyForwardEntryRequest::getHealthCheckPort() const { - return healthCheckPort_; +std::string ModifyForwardEntryRequest::getInternalPort() const { + return internalPort_; } -void ModifyForwardEntryRequest::setHealthCheckPort(int healthCheckPort) { - healthCheckPort_ = healthCheckPort; - setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort)); +void ModifyForwardEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } diff --git a/ens/src/model/ModifySnatEntryRequest.cc b/ens/src/model/ModifySnatEntryRequest.cc index 3e675b9ba..116d7f9be 100644 --- a/ens/src/model/ModifySnatEntryRequest.cc +++ b/ens/src/model/ModifySnatEntryRequest.cc @@ -25,6 +25,24 @@ ModifySnatEntryRequest::ModifySnatEntryRequest() ModifySnatEntryRequest::~ModifySnatEntryRequest() {} +std::string ModifySnatEntryRequest::getSnatIp() const { + return snatIp_; +} + +void ModifySnatEntryRequest::setSnatIp(const std::string &snatIp) { + snatIp_ = snatIp; + setParameter(std::string("SnatIp"), snatIp); +} + +bool ModifySnatEntryRequest::getEipAffinity() const { + return eipAffinity_; +} + +void ModifySnatEntryRequest::setEipAffinity(bool eipAffinity) { + eipAffinity_ = eipAffinity; + setParameter(std::string("EipAffinity"), eipAffinity ? "true" : "false"); +} + std::string ModifySnatEntryRequest::getSnatEntryId() const { return snatEntryId_; } diff --git a/ens/src/model/PutBucketRequest.cc b/ens/src/model/PutBucketRequest.cc index be15e9122..fa746dcd7 100644 --- a/ens/src/model/PutBucketRequest.cc +++ b/ens/src/model/PutBucketRequest.cc @@ -31,7 +31,7 @@ std::string PutBucketRequest::getEnsRegionId() const { void PutBucketRequest::setEnsRegionId(const std::string &ensRegionId) { ensRegionId_ = ensRegionId; - setBodyParameter(std::string("EnsRegionId"), ensRegionId); + setParameter(std::string("EnsRegionId"), ensRegionId); } std::string PutBucketRequest::getLogicalBucketType() const { @@ -40,7 +40,7 @@ std::string PutBucketRequest::getLogicalBucketType() const { void PutBucketRequest::setLogicalBucketType(const std::string &logicalBucketType) { logicalBucketType_ = logicalBucketType; - setBodyParameter(std::string("LogicalBucketType"), logicalBucketType); + setParameter(std::string("LogicalBucketType"), logicalBucketType); } std::string PutBucketRequest::getCity() const { @@ -49,7 +49,7 @@ std::string PutBucketRequest::getCity() const { void PutBucketRequest::setCity(const std::string &city) { city_ = city; - setBodyParameter(std::string("City"), city); + setParameter(std::string("City"), city); } std::string PutBucketRequest::getDataRedundancyType() const { @@ -58,7 +58,7 @@ std::string PutBucketRequest::getDataRedundancyType() const { void PutBucketRequest::setDataRedundancyType(const std::string &dataRedundancyType) { dataRedundancyType_ = dataRedundancyType; - setBodyParameter(std::string("DataRedundancyType"), dataRedundancyType); + setParameter(std::string("DataRedundancyType"), dataRedundancyType); } std::string PutBucketRequest::getEndpoint() const { @@ -67,7 +67,7 @@ std::string PutBucketRequest::getEndpoint() const { void PutBucketRequest::setEndpoint(const std::string &endpoint) { endpoint_ = endpoint; - setBodyParameter(std::string("Endpoint"), endpoint); + setParameter(std::string("Endpoint"), endpoint); } std::string PutBucketRequest::getBucketName() const { @@ -76,7 +76,7 @@ std::string PutBucketRequest::getBucketName() const { void PutBucketRequest::setBucketName(const std::string &bucketName) { bucketName_ = bucketName; - setBodyParameter(std::string("BucketName"), bucketName); + setParameter(std::string("BucketName"), bucketName); } std::string PutBucketRequest::getStorageDomainId() const { @@ -85,7 +85,7 @@ std::string PutBucketRequest::getStorageDomainId() const { void PutBucketRequest::setStorageDomainId(const std::string &storageDomainId) { storageDomainId_ = storageDomainId; - setBodyParameter(std::string("StorageDomainId"), storageDomainId); + setParameter(std::string("StorageDomainId"), storageDomainId); } std::string PutBucketRequest::getEngineId() const { @@ -94,7 +94,7 @@ std::string PutBucketRequest::getEngineId() const { void PutBucketRequest::setEngineId(const std::string &engineId) { engineId_ = engineId; - setBodyParameter(std::string("EngineId"), engineId); + setParameter(std::string("EngineId"), engineId); } std::string PutBucketRequest::getBucketAcl() const { @@ -103,7 +103,7 @@ std::string PutBucketRequest::getBucketAcl() const { void PutBucketRequest::setBucketAcl(const std::string &bucketAcl) { bucketAcl_ = bucketAcl; - setBodyParameter(std::string("BucketAcl"), bucketAcl); + setParameter(std::string("BucketAcl"), bucketAcl); } std::string PutBucketRequest::getDispatcherType() const { @@ -112,7 +112,7 @@ std::string PutBucketRequest::getDispatcherType() const { void PutBucketRequest::setDispatcherType(const std::string &dispatcherType) { dispatcherType_ = dispatcherType; - setBodyParameter(std::string("DispatcherType"), dispatcherType); + setParameter(std::string("DispatcherType"), dispatcherType); } std::string PutBucketRequest::getResourceType() const { @@ -121,7 +121,7 @@ std::string PutBucketRequest::getResourceType() const { void PutBucketRequest::setResourceType(const std::string &resourceType) { resourceType_ = resourceType; - setBodyParameter(std::string("ResourceType"), resourceType); + setParameter(std::string("ResourceType"), resourceType); } std::string PutBucketRequest::getStorageClass() const { @@ -130,7 +130,7 @@ std::string PutBucketRequest::getStorageClass() const { void PutBucketRequest::setStorageClass(const std::string &storageClass) { storageClass_ = storageClass; - setBodyParameter(std::string("StorageClass"), storageClass); + setParameter(std::string("StorageClass"), storageClass); } std::string PutBucketRequest::getDispatchScope() const { @@ -139,7 +139,7 @@ std::string PutBucketRequest::getDispatchScope() const { void PutBucketRequest::setDispatchScope(const std::string &dispatchScope) { dispatchScope_ = dispatchScope; - setBodyParameter(std::string("DispatchScope"), dispatchScope); + setParameter(std::string("DispatchScope"), dispatchScope); } std::string PutBucketRequest::getComment() const { @@ -148,6 +148,6 @@ std::string PutBucketRequest::getComment() const { void PutBucketRequest::setComment(const std::string &comment) { comment_ = comment; - setBodyParameter(std::string("Comment"), comment); + setParameter(std::string("Comment"), comment); } diff --git a/ens/src/model/ReleaseInstanceResult.cc b/ens/src/model/ReleaseInstanceResult.cc index be221c38d..98f8afe3c 100644 --- a/ens/src/model/ReleaseInstanceResult.cc +++ b/ens/src/model/ReleaseInstanceResult.cc @@ -39,6 +39,13 @@ void ReleaseInstanceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["ResourceType"].isNull()) + resourceType_ = value["ResourceType"].asString(); } +std::string ReleaseInstanceResult::getResourceType()const +{ + return resourceType_; +} + diff --git a/ens/src/model/UnAssociateEnsEipAddressRequest.cc b/ens/src/model/UnAssociateEnsEipAddressRequest.cc index d2056101b..21f86691f 100644 --- a/ens/src/model/UnAssociateEnsEipAddressRequest.cc +++ b/ens/src/model/UnAssociateEnsEipAddressRequest.cc @@ -34,3 +34,12 @@ void UnAssociateEnsEipAddressRequest::setAllocationId(const std::string &allocat setParameter(std::string("AllocationId"), allocationId); } +bool UnAssociateEnsEipAddressRequest::getForce() const { + return force_; +} + +void UnAssociateEnsEipAddressRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); +} +