diff --git a/VERSION b/VERSION index 91c515938..6e20ade86 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1945 \ No newline at end of file +1.36.1946 \ No newline at end of file diff --git a/ens/CMakeLists.txt b/ens/CMakeLists.txt index 0e4db7128..b201f1fcc 100644 --- a/ens/CMakeLists.txt +++ b/ens/CMakeLists.txt @@ -161,6 +161,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/DeleteSnatIpForSnatEntryResult.h include/alibabacloud/ens/model/DeleteVSwitchRequest.h include/alibabacloud/ens/model/DeleteVSwitchResult.h + include/alibabacloud/ens/model/DeployInstanceSDGRequest.h + include/alibabacloud/ens/model/DeployInstanceSDGResult.h include/alibabacloud/ens/model/DeploySDGRequest.h include/alibabacloud/ens/model/DeploySDGResult.h include/alibabacloud/ens/model/DescribeAICImagesRequest.h @@ -307,6 +309,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/DescribeReservedResourceResult.h include/alibabacloud/ens/model/DescribeResourceTimelineRequest.h include/alibabacloud/ens/model/DescribeResourceTimelineResult.h + include/alibabacloud/ens/model/DescribeSDGRequest.h + include/alibabacloud/ens/model/DescribeSDGResult.h include/alibabacloud/ens/model/DescribeSDGDeploymentStatusRequest.h include/alibabacloud/ens/model/DescribeSDGDeploymentStatusResult.h include/alibabacloud/ens/model/DescribeSDGsRequest.h @@ -367,6 +371,8 @@ 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/ListTagResourcesRequest.h + include/alibabacloud/ens/model/ListTagResourcesResult.h include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h @@ -397,6 +403,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/ModifySnapshotAttributeResult.h include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/ens/model/PreloadRegionSDGRequest.h + include/alibabacloud/ens/model/PreloadRegionSDGResult.h include/alibabacloud/ens/model/PushApplicationDataRequest.h include/alibabacloud/ens/model/PushApplicationDataResult.h include/alibabacloud/ens/model/PutBucketRequest.h @@ -433,6 +441,8 @@ set(ens_public_header_model include/alibabacloud/ens/model/ReleasePrePaidInstanceResult.h include/alibabacloud/ens/model/RemoveBackendServersRequest.h include/alibabacloud/ens/model/RemoveBackendServersResult.h + include/alibabacloud/ens/model/RemoveInstanceSDGRequest.h + include/alibabacloud/ens/model/RemoveInstanceSDGResult.h include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceRequest.h include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceResult.h include/alibabacloud/ens/model/RemoveSDGRequest.h @@ -501,12 +511,18 @@ set(ens_public_header_model include/alibabacloud/ens/model/StopLoadBalancerListenerResult.h include/alibabacloud/ens/model/StopSnatIpForSnatEntryRequest.h include/alibabacloud/ens/model/StopSnatIpForSnatEntryResult.h + include/alibabacloud/ens/model/TagResourcesRequest.h + include/alibabacloud/ens/model/TagResourcesResult.h include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h include/alibabacloud/ens/model/UnassignPrivateIpAddressesRequest.h include/alibabacloud/ens/model/UnassignPrivateIpAddressesResult.h include/alibabacloud/ens/model/UnassociateNetworkAclRequest.h include/alibabacloud/ens/model/UnassociateNetworkAclResult.h + include/alibabacloud/ens/model/UnloadRegionSDGRequest.h + include/alibabacloud/ens/model/UnloadRegionSDGResult.h + include/alibabacloud/ens/model/UntagResourcesRequest.h + include/alibabacloud/ens/model/UntagResourcesResult.h include/alibabacloud/ens/model/UpdateEnsSaleControlRequest.h include/alibabacloud/ens/model/UpdateEnsSaleControlResult.h include/alibabacloud/ens/model/UpgradeAICInstanceImageRequest.h @@ -656,6 +672,8 @@ set(ens_src src/model/DeleteSnatIpForSnatEntryResult.cc src/model/DeleteVSwitchRequest.cc src/model/DeleteVSwitchResult.cc + src/model/DeployInstanceSDGRequest.cc + src/model/DeployInstanceSDGResult.cc src/model/DeploySDGRequest.cc src/model/DeploySDGResult.cc src/model/DescribeAICImagesRequest.cc @@ -802,6 +820,8 @@ set(ens_src src/model/DescribeReservedResourceResult.cc src/model/DescribeResourceTimelineRequest.cc src/model/DescribeResourceTimelineResult.cc + src/model/DescribeSDGRequest.cc + src/model/DescribeSDGResult.cc src/model/DescribeSDGDeploymentStatusRequest.cc src/model/DescribeSDGDeploymentStatusResult.cc src/model/DescribeSDGsRequest.cc @@ -862,6 +882,8 @@ set(ens_src src/model/ListBucketsResult.cc src/model/ListObjectsRequest.cc src/model/ListObjectsResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/ModifyEnsEipAddressAttributeRequest.cc src/model/ModifyEnsEipAddressAttributeResult.cc src/model/ModifyEpnInstanceRequest.cc @@ -892,6 +914,8 @@ set(ens_src src/model/ModifySnapshotAttributeResult.cc src/model/ModifyVSwitchAttributeRequest.cc src/model/ModifyVSwitchAttributeResult.cc + src/model/PreloadRegionSDGRequest.cc + src/model/PreloadRegionSDGResult.cc src/model/PushApplicationDataRequest.cc src/model/PushApplicationDataResult.cc src/model/PutBucketRequest.cc @@ -928,6 +952,8 @@ set(ens_src src/model/ReleasePrePaidInstanceResult.cc src/model/RemoveBackendServersRequest.cc src/model/RemoveBackendServersResult.cc + src/model/RemoveInstanceSDGRequest.cc + src/model/RemoveInstanceSDGResult.cc src/model/RemovePublicIpsFromEpnInstanceRequest.cc src/model/RemovePublicIpsFromEpnInstanceResult.cc src/model/RemoveSDGRequest.cc @@ -996,12 +1022,18 @@ set(ens_src src/model/StopLoadBalancerListenerResult.cc src/model/StopSnatIpForSnatEntryRequest.cc src/model/StopSnatIpForSnatEntryResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc src/model/UnAssociateEnsEipAddressRequest.cc src/model/UnAssociateEnsEipAddressResult.cc src/model/UnassignPrivateIpAddressesRequest.cc src/model/UnassignPrivateIpAddressesResult.cc src/model/UnassociateNetworkAclRequest.cc src/model/UnassociateNetworkAclResult.cc + src/model/UnloadRegionSDGRequest.cc + src/model/UnloadRegionSDGResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/UpdateEnsSaleControlRequest.cc src/model/UpdateEnsSaleControlResult.cc src/model/UpgradeAICInstanceImageRequest.cc diff --git a/ens/include/alibabacloud/ens/EnsClient.h b/ens/include/alibabacloud/ens/EnsClient.h index 29b069e97..1023f88d3 100644 --- a/ens/include/alibabacloud/ens/EnsClient.h +++ b/ens/include/alibabacloud/ens/EnsClient.h @@ -162,6 +162,8 @@ #include "model/DeleteSnatIpForSnatEntryResult.h" #include "model/DeleteVSwitchRequest.h" #include "model/DeleteVSwitchResult.h" +#include "model/DeployInstanceSDGRequest.h" +#include "model/DeployInstanceSDGResult.h" #include "model/DeploySDGRequest.h" #include "model/DeploySDGResult.h" #include "model/DescribeAICImagesRequest.h" @@ -308,6 +310,8 @@ #include "model/DescribeReservedResourceResult.h" #include "model/DescribeResourceTimelineRequest.h" #include "model/DescribeResourceTimelineResult.h" +#include "model/DescribeSDGRequest.h" +#include "model/DescribeSDGResult.h" #include "model/DescribeSDGDeploymentStatusRequest.h" #include "model/DescribeSDGDeploymentStatusResult.h" #include "model/DescribeSDGsRequest.h" @@ -368,6 +372,8 @@ #include "model/ListBucketsResult.h" #include "model/ListObjectsRequest.h" #include "model/ListObjectsResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/ModifyEnsEipAddressAttributeRequest.h" #include "model/ModifyEnsEipAddressAttributeResult.h" #include "model/ModifyEpnInstanceRequest.h" @@ -398,6 +404,8 @@ #include "model/ModifySnapshotAttributeResult.h" #include "model/ModifyVSwitchAttributeRequest.h" #include "model/ModifyVSwitchAttributeResult.h" +#include "model/PreloadRegionSDGRequest.h" +#include "model/PreloadRegionSDGResult.h" #include "model/PushApplicationDataRequest.h" #include "model/PushApplicationDataResult.h" #include "model/PutBucketRequest.h" @@ -434,6 +442,8 @@ #include "model/ReleasePrePaidInstanceResult.h" #include "model/RemoveBackendServersRequest.h" #include "model/RemoveBackendServersResult.h" +#include "model/RemoveInstanceSDGRequest.h" +#include "model/RemoveInstanceSDGResult.h" #include "model/RemovePublicIpsFromEpnInstanceRequest.h" #include "model/RemovePublicIpsFromEpnInstanceResult.h" #include "model/RemoveSDGRequest.h" @@ -502,12 +512,18 @@ #include "model/StopLoadBalancerListenerResult.h" #include "model/StopSnatIpForSnatEntryRequest.h" #include "model/StopSnatIpForSnatEntryResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/UnAssociateEnsEipAddressRequest.h" #include "model/UnAssociateEnsEipAddressResult.h" #include "model/UnassignPrivateIpAddressesRequest.h" #include "model/UnassignPrivateIpAddressesResult.h" #include "model/UnassociateNetworkAclRequest.h" #include "model/UnassociateNetworkAclResult.h" +#include "model/UnloadRegionSDGRequest.h" +#include "model/UnloadRegionSDGResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/UpdateEnsSaleControlRequest.h" #include "model/UpdateEnsSaleControlResult.h" #include "model/UpgradeAICInstanceImageRequest.h" @@ -733,6 +749,9 @@ namespace AlibabaCloud typedef Outcome DeleteVSwitchOutcome; typedef std::future DeleteVSwitchOutcomeCallable; typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome DeployInstanceSDGOutcome; + typedef std::future DeployInstanceSDGOutcomeCallable; + typedef std::function&)> DeployInstanceSDGAsyncHandler; typedef Outcome DeploySDGOutcome; typedef std::future DeploySDGOutcomeCallable; typedef std::function&)> DeploySDGAsyncHandler; @@ -952,6 +971,9 @@ namespace AlibabaCloud typedef Outcome DescribeResourceTimelineOutcome; typedef std::future DescribeResourceTimelineOutcomeCallable; typedef std::function&)> DescribeResourceTimelineAsyncHandler; + typedef Outcome DescribeSDGOutcome; + typedef std::future DescribeSDGOutcomeCallable; + typedef std::function&)> DescribeSDGAsyncHandler; typedef Outcome DescribeSDGDeploymentStatusOutcome; typedef std::future DescribeSDGDeploymentStatusOutcomeCallable; typedef std::function&)> DescribeSDGDeploymentStatusAsyncHandler; @@ -1042,6 +1064,9 @@ namespace AlibabaCloud typedef Outcome ListObjectsOutcome; typedef std::future ListObjectsOutcomeCallable; typedef std::function&)> ListObjectsAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ModifyEnsEipAddressAttributeOutcome; typedef std::future ModifyEnsEipAddressAttributeOutcomeCallable; typedef std::function&)> ModifyEnsEipAddressAttributeAsyncHandler; @@ -1087,6 +1112,9 @@ namespace AlibabaCloud typedef Outcome ModifyVSwitchAttributeOutcome; typedef std::future ModifyVSwitchAttributeOutcomeCallable; typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome PreloadRegionSDGOutcome; + typedef std::future PreloadRegionSDGOutcomeCallable; + typedef std::function&)> PreloadRegionSDGAsyncHandler; typedef Outcome PushApplicationDataOutcome; typedef std::future PushApplicationDataOutcomeCallable; typedef std::function&)> PushApplicationDataAsyncHandler; @@ -1141,6 +1169,9 @@ namespace AlibabaCloud typedef Outcome RemoveBackendServersOutcome; typedef std::future RemoveBackendServersOutcomeCallable; typedef std::function&)> RemoveBackendServersAsyncHandler; + typedef Outcome RemoveInstanceSDGOutcome; + typedef std::future RemoveInstanceSDGOutcomeCallable; + typedef std::function&)> RemoveInstanceSDGAsyncHandler; typedef Outcome RemovePublicIpsFromEpnInstanceOutcome; typedef std::future RemovePublicIpsFromEpnInstanceOutcomeCallable; typedef std::function&)> RemovePublicIpsFromEpnInstanceAsyncHandler; @@ -1243,6 +1274,9 @@ namespace AlibabaCloud typedef Outcome StopSnatIpForSnatEntryOutcome; typedef std::future StopSnatIpForSnatEntryOutcomeCallable; typedef std::function&)> StopSnatIpForSnatEntryAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome UnAssociateEnsEipAddressOutcome; typedef std::future UnAssociateEnsEipAddressOutcomeCallable; typedef std::function&)> UnAssociateEnsEipAddressAsyncHandler; @@ -1252,6 +1286,12 @@ namespace AlibabaCloud typedef Outcome UnassociateNetworkAclOutcome; typedef std::future UnassociateNetworkAclOutcomeCallable; typedef std::function&)> UnassociateNetworkAclAsyncHandler; + typedef Outcome UnloadRegionSDGOutcome; + typedef std::future UnloadRegionSDGOutcomeCallable; + typedef std::function&)> UnloadRegionSDGAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome UpdateEnsSaleControlOutcome; typedef std::future UpdateEnsSaleControlOutcomeCallable; typedef std::function&)> UpdateEnsSaleControlAsyncHandler; @@ -1476,6 +1516,9 @@ namespace AlibabaCloud DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; + DeployInstanceSDGOutcome deployInstanceSDG(const Model::DeployInstanceSDGRequest &request)const; + void deployInstanceSDGAsync(const Model::DeployInstanceSDGRequest& request, const DeployInstanceSDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployInstanceSDGOutcomeCallable deployInstanceSDGCallable(const Model::DeployInstanceSDGRequest& request) const; DeploySDGOutcome deploySDG(const Model::DeploySDGRequest &request)const; void deploySDGAsync(const Model::DeploySDGRequest& request, const DeploySDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeploySDGOutcomeCallable deploySDGCallable(const Model::DeploySDGRequest& request) const; @@ -1695,6 +1738,9 @@ namespace AlibabaCloud DescribeResourceTimelineOutcome describeResourceTimeline(const Model::DescribeResourceTimelineRequest &request)const; void describeResourceTimelineAsync(const Model::DescribeResourceTimelineRequest& request, const DescribeResourceTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeResourceTimelineOutcomeCallable describeResourceTimelineCallable(const Model::DescribeResourceTimelineRequest& request) const; + DescribeSDGOutcome describeSDG(const Model::DescribeSDGRequest &request)const; + void describeSDGAsync(const Model::DescribeSDGRequest& request, const DescribeSDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSDGOutcomeCallable describeSDGCallable(const Model::DescribeSDGRequest& request) const; DescribeSDGDeploymentStatusOutcome describeSDGDeploymentStatus(const Model::DescribeSDGDeploymentStatusRequest &request)const; void describeSDGDeploymentStatusAsync(const Model::DescribeSDGDeploymentStatusRequest& request, const DescribeSDGDeploymentStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSDGDeploymentStatusOutcomeCallable describeSDGDeploymentStatusCallable(const Model::DescribeSDGDeploymentStatusRequest& request) const; @@ -1785,6 +1831,9 @@ 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; + 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; @@ -1830,6 +1879,9 @@ namespace AlibabaCloud ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + PreloadRegionSDGOutcome preloadRegionSDG(const Model::PreloadRegionSDGRequest &request)const; + void preloadRegionSDGAsync(const Model::PreloadRegionSDGRequest& request, const PreloadRegionSDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreloadRegionSDGOutcomeCallable preloadRegionSDGCallable(const Model::PreloadRegionSDGRequest& request) const; PushApplicationDataOutcome pushApplicationData(const Model::PushApplicationDataRequest &request)const; void pushApplicationDataAsync(const Model::PushApplicationDataRequest& request, const PushApplicationDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PushApplicationDataOutcomeCallable pushApplicationDataCallable(const Model::PushApplicationDataRequest& request) const; @@ -1884,6 +1936,9 @@ namespace AlibabaCloud RemoveBackendServersOutcome removeBackendServers(const Model::RemoveBackendServersRequest &request)const; void removeBackendServersAsync(const Model::RemoveBackendServersRequest& request, const RemoveBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveBackendServersOutcomeCallable removeBackendServersCallable(const Model::RemoveBackendServersRequest& request) const; + RemoveInstanceSDGOutcome removeInstanceSDG(const Model::RemoveInstanceSDGRequest &request)const; + void removeInstanceSDGAsync(const Model::RemoveInstanceSDGRequest& request, const RemoveInstanceSDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveInstanceSDGOutcomeCallable removeInstanceSDGCallable(const Model::RemoveInstanceSDGRequest& request) const; RemovePublicIpsFromEpnInstanceOutcome removePublicIpsFromEpnInstance(const Model::RemovePublicIpsFromEpnInstanceRequest &request)const; void removePublicIpsFromEpnInstanceAsync(const Model::RemovePublicIpsFromEpnInstanceRequest& request, const RemovePublicIpsFromEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemovePublicIpsFromEpnInstanceOutcomeCallable removePublicIpsFromEpnInstanceCallable(const Model::RemovePublicIpsFromEpnInstanceRequest& request) const; @@ -1986,6 +2041,9 @@ namespace AlibabaCloud StopSnatIpForSnatEntryOutcome stopSnatIpForSnatEntry(const Model::StopSnatIpForSnatEntryRequest &request)const; void stopSnatIpForSnatEntryAsync(const Model::StopSnatIpForSnatEntryRequest& request, const StopSnatIpForSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopSnatIpForSnatEntryOutcomeCallable stopSnatIpForSnatEntryCallable(const Model::StopSnatIpForSnatEntryRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; UnAssociateEnsEipAddressOutcome unAssociateEnsEipAddress(const Model::UnAssociateEnsEipAddressRequest &request)const; void unAssociateEnsEipAddressAsync(const Model::UnAssociateEnsEipAddressRequest& request, const UnAssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnAssociateEnsEipAddressOutcomeCallable unAssociateEnsEipAddressCallable(const Model::UnAssociateEnsEipAddressRequest& request) const; @@ -1995,6 +2053,12 @@ namespace AlibabaCloud UnassociateNetworkAclOutcome unassociateNetworkAcl(const Model::UnassociateNetworkAclRequest &request)const; void unassociateNetworkAclAsync(const Model::UnassociateNetworkAclRequest& request, const UnassociateNetworkAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnassociateNetworkAclOutcomeCallable unassociateNetworkAclCallable(const Model::UnassociateNetworkAclRequest& request) const; + UnloadRegionSDGOutcome unloadRegionSDG(const Model::UnloadRegionSDGRequest &request)const; + void unloadRegionSDGAsync(const Model::UnloadRegionSDGRequest& request, const UnloadRegionSDGAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnloadRegionSDGOutcomeCallable unloadRegionSDGCallable(const Model::UnloadRegionSDGRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; UpdateEnsSaleControlOutcome updateEnsSaleControl(const Model::UpdateEnsSaleControlRequest &request)const; void updateEnsSaleControlAsync(const Model::UpdateEnsSaleControlRequest& request, const UpdateEnsSaleControlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateEnsSaleControlOutcomeCallable updateEnsSaleControlCallable(const Model::UpdateEnsSaleControlRequest& request) const; diff --git a/ens/include/alibabacloud/ens/model/CreateEnsSaleControlRequest.h b/ens/include/alibabacloud/ens/model/CreateEnsSaleControlRequest.h index 106a07369..9dd8bb006 100644 --- a/ens/include/alibabacloud/ens/model/CreateEnsSaleControlRequest.h +++ b/ens/include/alibabacloud/ens/model/CreateEnsSaleControlRequest.h @@ -51,6 +51,8 @@ public: ~CreateEnsSaleControlRequest(); std::vector getSaleControls() const; void setSaleControls(const std::vector &saleControls); + std::string getCustomAccount() const; + void setCustomAccount(const std::string &customAccount); std::string getCommodityCode() const; void setCommodityCode(const std::string &commodityCode); std::string getAliUidAccount() const; @@ -58,6 +60,7 @@ public: private: std::vector saleControls_; + std::string customAccount_; std::string commodityCode_; std::string aliUidAccount_; }; diff --git a/ens/include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h b/ens/include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h index e596ad582..d5b6b8321 100644 --- a/ens/include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h +++ b/ens/include/alibabacloud/ens/model/DeleteEnsSaleConditionControlRequest.h @@ -42,6 +42,8 @@ public: ~DeleteEnsSaleConditionControlRequest(); std::vector getSaleControls() const; void setSaleControls(const std::vector &saleControls); + std::string getCustomAccount() const; + void setCustomAccount(const std::string &customAccount); std::string getCommodityCode() const; void setCommodityCode(const std::string &commodityCode); std::string getAliUidAccount() const; @@ -49,6 +51,7 @@ public: private: std::vector saleControls_; + std::string customAccount_; std::string commodityCode_; std::string aliUidAccount_; }; diff --git a/ens/include/alibabacloud/ens/model/DeleteEnsSaleControlRequest.h b/ens/include/alibabacloud/ens/model/DeleteEnsSaleControlRequest.h index 438c8f560..7185fb06a 100644 --- a/ens/include/alibabacloud/ens/model/DeleteEnsSaleControlRequest.h +++ b/ens/include/alibabacloud/ens/model/DeleteEnsSaleControlRequest.h @@ -36,6 +36,8 @@ public: ~DeleteEnsSaleControlRequest(); std::vector getSaleControls() const; void setSaleControls(const std::vector &saleControls); + std::string getCustomAccount() const; + void setCustomAccount(const std::string &customAccount); std::string getCommodityCode() const; void setCommodityCode(const std::string &commodityCode); std::string getAliUidAccount() const; @@ -43,6 +45,7 @@ public: private: std::vector saleControls_; + std::string customAccount_; std::string commodityCode_; std::string aliUidAccount_; }; diff --git a/ens/include/alibabacloud/ens/model/DeleteSDGResult.h b/ens/include/alibabacloud/ens/model/DeleteSDGResult.h index 92f82f533..84e900be0 100644 --- a/ens/include/alibabacloud/ens/model/DeleteSDGResult.h +++ b/ens/include/alibabacloud/ens/model/DeleteSDGResult.h @@ -32,15 +32,38 @@ namespace AlibabaCloud class ALIBABACLOUD_ENS_EXPORT DeleteSDGResult : public ServiceResult { public: + struct Data + { + struct Result + { + struct FailedItemsItem + { + struct Item + { + std::string sdgId; + }; + Item item; + std::string errMessage; + }; + std::vector failedItems; + long failedCount; + long successCount; + }; + std::string message; + bool success; + Result result; + }; DeleteSDGResult(); explicit DeleteSDGResult(const std::string &payload); ~DeleteSDGResult(); + Data getData()const; protected: void parse(const std::string &payload); private: + Data data_; }; } diff --git a/ens/include/alibabacloud/ens/model/DeployInstanceSDGRequest.h b/ens/include/alibabacloud/ens/model/DeployInstanceSDGRequest.h new file mode 100644 index 000000000..12eba0a0f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeployInstanceSDGRequest.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_DEPLOYINSTANCESDGREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DEPLOYINSTANCESDGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeployInstanceSDGRequest : public RpcServiceRequest { +public: + DeployInstanceSDGRequest(); + ~DeployInstanceSDGRequest(); + std::string getDeploymentType() const; + void setDeploymentType(const std::string &deploymentType); + std::string getSDGId() const; + void setSDGId(const std::string &sDGId); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + +private: + std::string deploymentType_; + std::string sDGId_; + std::vector instanceIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DEPLOYINSTANCESDGREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeployInstanceSDGResult.h b/ens/include/alibabacloud/ens/model/DeployInstanceSDGResult.h new file mode 100644 index 000000000..0e5cb8e40 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeployInstanceSDGResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DEPLOYINSTANCESDGRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DEPLOYINSTANCESDGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeployInstanceSDGResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + struct FailedItem + { + std::string instanceId; + std::string errMessage; + }; + std::vector failedItems; + long failedCount; + long successCount; + }; + std::string message; + bool success; + Result result; + }; + + + DeployInstanceSDGResult(); + explicit DeployInstanceSDGResult(const std::string &payload); + ~DeployInstanceSDGResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DEPLOYINSTANCESDGRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h index e105101dd..ba301379b 100644 --- a/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h +++ b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h @@ -68,6 +68,8 @@ public: void setPageNumber(int pageNumber); std::string getPageSize() const; void setPageSize(const std::string &pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); std::string getEnsRegionIds() const; void setEnsRegionIds(const std::string &ensRegionIds); @@ -89,6 +91,7 @@ private: std::string searchKey_; int pageNumber_; std::string pageSize_; + std::string instanceType_; std::string ensRegionIds_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h index b5c1e4c66..3aab38033 100644 --- a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h @@ -37,58 +37,60 @@ namespace AlibabaCloud DescribeLoadBalancerHTTPListenerAttributeResult(); explicit DescribeLoadBalancerHTTPListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerHTTPListenerAttributeResult(); - std::string getStatus()const; int getCookieTimeout()const; - std::string getCookie()const; - int getListenerPort()const; - int getRequestTimeout()const; - int getHealthCheckInterval()const; std::string getDescription()const; int getUnhealthyThreshold()const; std::string getScheduler()const; std::string getHealthCheckURI()const; std::string getHealthCheck()const; int getIdleTimeout()const; - int getHealthCheckTimeout()const; - std::string getListenerForward()const; - std::string getStickySession()const; int getHealthCheckConnectPort()const; - int getForwardPort()const; std::string getHealthCheckMethod()const; int getBandwidth()const; - int getHealthyThreshold()const; - std::string getHealthCheckDomain()const; std::string getServerCertificateId()const; std::string getStickySessionType()const; std::string getHealthCheckHttpCode()const; + std::string getStatus()const; + std::string getCookie()const; + int getListenerPort()const; + int getRequestTimeout()const; + int getHealthCheckInterval()const; + int getHealthCheckTimeout()const; + std::string getListenerForward()const; + std::string getStickySession()const; + int getForwardPort()const; + int getHealthyThreshold()const; + std::string getXForwardedFor()const; + std::string getHealthCheckDomain()const; protected: void parse(const std::string &payload); private: - std::string status_; int cookieTimeout_; - std::string cookie_; - int listenerPort_; - int requestTimeout_; - int healthCheckInterval_; std::string description_; int unhealthyThreshold_; std::string scheduler_; std::string healthCheckURI_; std::string healthCheck_; int idleTimeout_; - int healthCheckTimeout_; - std::string listenerForward_; - std::string stickySession_; int healthCheckConnectPort_; - int forwardPort_; std::string healthCheckMethod_; int bandwidth_; - int healthyThreshold_; - std::string healthCheckDomain_; std::string serverCertificateId_; std::string stickySessionType_; std::string healthCheckHttpCode_; + std::string status_; + std::string cookie_; + int listenerPort_; + int requestTimeout_; + int healthCheckInterval_; + int healthCheckTimeout_; + std::string listenerForward_; + std::string stickySession_; + int forwardPort_; + int healthyThreshold_; + std::string xForwardedFor_; + std::string healthCheckDomain_; }; } diff --git a/ens/include/alibabacloud/ens/model/DescribeSDGRequest.h b/ens/include/alibabacloud/ens/model/DescribeSDGRequest.h new file mode 100644 index 000000000..783b6da78 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSDGRequest.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_DESCRIBESDGREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESDGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeSDGRequest : public RpcServiceRequest { +public: + DescribeSDGRequest(); + ~DescribeSDGRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getSDGIds() const; + void setSDGIds(const std::vector &sDGIds); + +private: + int pageNumber_; + int pageSize_; + std::vector sDGIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESDGREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeSDGResult.h b/ens/include/alibabacloud/ens/model/DescribeSDGResult.h new file mode 100644 index 000000000..d43ba4c2f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSDGResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DESCRIBESDGRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESDGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeSDGResult : public ServiceResult + { + public: + struct SDGsItem + { + struct AvaliableRegionIdsItem + { + std::string status; + std::string snapshotId; + std::string creationTime; + std::string regionId; + }; + struct PreloadInfosItem + { + std::string creationTime; + std::string updateTime; + std::string _namespace; + std::string regionId; + int redundantNum; + }; + std::string sDGId; + std::string status; + std::vector avaliableRegionIds; + std::vector preloadInfos; + std::string description; + long size; + std::string creationRegionId; + std::string creationTime; + std::string updateTime; + std::string parentSDGId; + std::string creationInstanceId; + }; + + + DescribeSDGResult(); + explicit DescribeSDGResult(const std::string &payload); + ~DescribeSDGResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSDGs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector sDGs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESDGRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ListTagResourcesRequest.h b/ens/include/alibabacloud/ens/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..5eeb40f8e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListTagResourcesRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ListTagResourcesResult.h b/ens/include/alibabacloud/ens/model/ListTagResourcesResult.h new file mode 100644 index 000000000..526a8a851 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListTagResourcesResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResourcesItem + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/PreloadRegionSDGRequest.h b/ens/include/alibabacloud/ens/model/PreloadRegionSDGRequest.h new file mode 100644 index 000000000..58827b502 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PreloadRegionSDGRequest.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_PRELOADREGIONSDGREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_PRELOADREGIONSDGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT PreloadRegionSDGRequest : public RpcServiceRequest { +public: + PreloadRegionSDGRequest(); + ~PreloadRegionSDGRequest(); + std::vector getDestinationRegionIds() const; + void setDestinationRegionIds(const std::vector &destinationRegionIds); + std::string getSDGId() const; + void setSDGId(const std::string &sDGId); + int getRedundantNum() const; + void setRedundantNum(int redundantNum); + std::vector getNamespaces() const; + void setNamespaces(const std::vector &namespaces); + +private: + std::vector destinationRegionIds_; + std::string sDGId_; + int redundantNum_; + std::vector namespaces_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_PRELOADREGIONSDGREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/PreloadRegionSDGResult.h b/ens/include/alibabacloud/ens/model/PreloadRegionSDGResult.h new file mode 100644 index 000000000..f5bd40892 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PreloadRegionSDGResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_PRELOADREGIONSDGRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_PRELOADREGIONSDGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT PreloadRegionSDGResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + struct FailedItemsItem + { + std::string destinationRegionId; + std::string errorMessage; + }; + std::vector failedItems; + long failedCount; + long successCount; + }; + std::string message; + bool success; + Result result; + }; + + + PreloadRegionSDGResult(); + explicit PreloadRegionSDGResult(const std::string &payload); + ~PreloadRegionSDGResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_PRELOADREGIONSDGRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/PutBucketRequest.h b/ens/include/alibabacloud/ens/model/PutBucketRequest.h index bdb74a66e..7c48a0a77 100644 --- a/ens/include/alibabacloud/ens/model/PutBucketRequest.h +++ b/ens/include/alibabacloud/ens/model/PutBucketRequest.h @@ -54,6 +54,8 @@ public: void setResourceType(const std::string &resourceType); std::string getStorageClass() const; void setStorageClass(const std::string &storageClass); + std::string getDispatchScope() const; + void setDispatchScope(const std::string &dispatchScope); std::string getComment() const; void setComment(const std::string &comment); @@ -70,6 +72,7 @@ private: std::string dispatcherType_; std::string resourceType_; std::string storageClass_; + std::string dispatchScope_; std::string comment_; }; } // namespace Model diff --git a/ens/include/alibabacloud/ens/model/RemoveInstanceSDGRequest.h b/ens/include/alibabacloud/ens/model/RemoveInstanceSDGRequest.h new file mode 100644 index 000000000..1ba2f417b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveInstanceSDGRequest.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_REMOVEINSTANCESDGREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEINSTANCESDGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RemoveInstanceSDGRequest : public RpcServiceRequest { +public: + RemoveInstanceSDGRequest(); + ~RemoveInstanceSDGRequest(); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); + +private: + std::vector instanceIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEINSTANCESDGREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RemoveInstanceSDGResult.h b/ens/include/alibabacloud/ens/model/RemoveInstanceSDGResult.h new file mode 100644 index 000000000..932fa5c5f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveInstanceSDGResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REMOVEINSTANCESDGRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEINSTANCESDGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RemoveInstanceSDGResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + struct FailedItemsItem + { + std::string instanceId; + std::string errMessage; + }; + std::vector failedItems; + long failedCount; + long successCount; + }; + std::string message; + bool success; + Result result; + }; + + + RemoveInstanceSDGResult(); + explicit RemoveInstanceSDGResult(const std::string &payload); + ~RemoveInstanceSDGResult(); + Data getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEINSTANCESDGRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h index fc82527c2..55d63faa6 100644 --- a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h @@ -34,6 +34,8 @@ public: void setHealthCheckTimeout(int healthCheckTimeout); std::string getHealthCheckURI() const; void setHealthCheckURI(const std::string &healthCheckURI); + std::string getXForwardedFor() const; + void setXForwardedFor(const std::string &xForwardedFor); std::string getHealthCheck() const; void setHealthCheck(const std::string &healthCheck); std::string getProtocol() const; @@ -76,6 +78,7 @@ public: private: int healthCheckTimeout_; std::string healthCheckURI_; + std::string xForwardedFor_; std::string healthCheck_; std::string protocol_; std::string cookie_; diff --git a/ens/include/alibabacloud/ens/model/TagResourcesRequest.h b/ens/include/alibabacloud/ens/model/TagResourcesRequest.h new file mode 100644 index 000000000..e8c00a0c6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/TagResourcesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/TagResourcesResult.h b/ens/include/alibabacloud/ens/model/TagResourcesResult.h new file mode 100644 index 000000000..e889b9e68 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/TagResourcesResult.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_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UnloadRegionSDGRequest.h b/ens/include/alibabacloud/ens/model/UnloadRegionSDGRequest.h new file mode 100644 index 000000000..7f94d961c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnloadRegionSDGRequest.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_UNLOADREGIONSDGREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UNLOADREGIONSDGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UnloadRegionSDGRequest : public RpcServiceRequest { +public: + UnloadRegionSDGRequest(); + ~UnloadRegionSDGRequest(); + std::vector getDestinationRegionIds() const; + void setDestinationRegionIds(const std::vector &destinationRegionIds); + std::string getSDGId() const; + void setSDGId(const std::string &sDGId); + std::vector getNamespaces() const; + void setNamespaces(const std::vector &namespaces); + +private: + std::vector destinationRegionIds_; + std::string sDGId_; + std::vector namespaces_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UNLOADREGIONSDGREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UnloadRegionSDGResult.h b/ens/include/alibabacloud/ens/model/UnloadRegionSDGResult.h new file mode 100644 index 000000000..ca6a5f569 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnloadRegionSDGResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_UNLOADREGIONSDGRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UNLOADREGIONSDGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UnloadRegionSDGResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + struct FailedItemsItem + { + std::string destinationRegionId; + std::string errorMessage; + }; + std::vector failedItems; + long failedCount; + long successCount; + }; + std::string message; + bool success; + Result result; + }; + + + UnloadRegionSDGResult(); + explicit UnloadRegionSDGResult(const std::string &payload); + ~UnloadRegionSDGResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UNLOADREGIONSDGRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UntagResourcesRequest.h b/ens/include/alibabacloud/ens/model/UntagResourcesRequest.h new file mode 100644 index 000000000..a8421121b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UntagResourcesRequest.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_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UntagResourcesResult.h b/ens/include/alibabacloud/ens/model/UntagResourcesResult.h new file mode 100644 index 000000000..cc3061cbd --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UntagResourcesResult.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_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UpdateEnsSaleControlRequest.h b/ens/include/alibabacloud/ens/model/UpdateEnsSaleControlRequest.h index a1ca19e2c..73ebbceab 100644 --- a/ens/include/alibabacloud/ens/model/UpdateEnsSaleControlRequest.h +++ b/ens/include/alibabacloud/ens/model/UpdateEnsSaleControlRequest.h @@ -51,6 +51,8 @@ public: ~UpdateEnsSaleControlRequest(); std::vector getSaleControls() const; void setSaleControls(const std::vector &saleControls); + std::string getCustomAccount() const; + void setCustomAccount(const std::string &customAccount); std::string getCommodityCode() const; void setCommodityCode(const std::string &commodityCode); std::string getAliUidAccount() const; @@ -58,6 +60,7 @@ public: private: std::vector saleControls_; + std::string customAccount_; std::string commodityCode_; std::string aliUidAccount_; }; diff --git a/ens/src/EnsClient.cc b/ens/src/EnsClient.cc index 39bc79eb7..4c84d57fd 100644 --- a/ens/src/EnsClient.cc +++ b/ens/src/EnsClient.cc @@ -2571,6 +2571,42 @@ EnsClient::DeleteVSwitchOutcomeCallable EnsClient::deleteVSwitchCallable(const D return task->get_future(); } +EnsClient::DeployInstanceSDGOutcome EnsClient::deployInstanceSDG(const DeployInstanceSDGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployInstanceSDGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployInstanceSDGOutcome(DeployInstanceSDGResult(outcome.result())); + else + return DeployInstanceSDGOutcome(outcome.error()); +} + +void EnsClient::deployInstanceSDGAsync(const DeployInstanceSDGRequest& request, const DeployInstanceSDGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployInstanceSDG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeployInstanceSDGOutcomeCallable EnsClient::deployInstanceSDGCallable(const DeployInstanceSDGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployInstanceSDG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DeploySDGOutcome EnsClient::deploySDG(const DeploySDGRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5199,6 +5235,42 @@ EnsClient::DescribeResourceTimelineOutcomeCallable EnsClient::describeResourceTi return task->get_future(); } +EnsClient::DescribeSDGOutcome EnsClient::describeSDG(const DescribeSDGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSDGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSDGOutcome(DescribeSDGResult(outcome.result())); + else + return DescribeSDGOutcome(outcome.error()); +} + +void EnsClient::describeSDGAsync(const DescribeSDGRequest& request, const DescribeSDGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSDG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeSDGOutcomeCallable EnsClient::describeSDGCallable(const DescribeSDGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSDG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::DescribeSDGDeploymentStatusOutcome EnsClient::describeSDGDeploymentStatus(const DescribeSDGDeploymentStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6279,6 +6351,42 @@ EnsClient::ListObjectsOutcomeCallable EnsClient::listObjectsCallable(const ListO return task->get_future(); } +EnsClient::ListTagResourcesOutcome EnsClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void EnsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ListTagResourcesOutcomeCallable EnsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::ModifyEnsEipAddressAttributeOutcome EnsClient::modifyEnsEipAddressAttribute(const ModifyEnsEipAddressAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6819,6 +6927,42 @@ EnsClient::ModifyVSwitchAttributeOutcomeCallable EnsClient::modifyVSwitchAttribu return task->get_future(); } +EnsClient::PreloadRegionSDGOutcome EnsClient::preloadRegionSDG(const PreloadRegionSDGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreloadRegionSDGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreloadRegionSDGOutcome(PreloadRegionSDGResult(outcome.result())); + else + return PreloadRegionSDGOutcome(outcome.error()); +} + +void EnsClient::preloadRegionSDGAsync(const PreloadRegionSDGRequest& request, const PreloadRegionSDGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preloadRegionSDG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::PreloadRegionSDGOutcomeCallable EnsClient::preloadRegionSDGCallable(const PreloadRegionSDGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preloadRegionSDG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::PushApplicationDataOutcome EnsClient::pushApplicationData(const PushApplicationDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7467,6 +7611,42 @@ EnsClient::RemoveBackendServersOutcomeCallable EnsClient::removeBackendServersCa return task->get_future(); } +EnsClient::RemoveInstanceSDGOutcome EnsClient::removeInstanceSDG(const RemoveInstanceSDGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveInstanceSDGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveInstanceSDGOutcome(RemoveInstanceSDGResult(outcome.result())); + else + return RemoveInstanceSDGOutcome(outcome.error()); +} + +void EnsClient::removeInstanceSDGAsync(const RemoveInstanceSDGRequest& request, const RemoveInstanceSDGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeInstanceSDG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RemoveInstanceSDGOutcomeCallable EnsClient::removeInstanceSDGCallable(const RemoveInstanceSDGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeInstanceSDG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::RemovePublicIpsFromEpnInstanceOutcome EnsClient::removePublicIpsFromEpnInstance(const RemovePublicIpsFromEpnInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8691,6 +8871,42 @@ EnsClient::StopSnatIpForSnatEntryOutcomeCallable EnsClient::stopSnatIpForSnatEnt return task->get_future(); } +EnsClient::TagResourcesOutcome EnsClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void EnsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::TagResourcesOutcomeCallable EnsClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::UnAssociateEnsEipAddressOutcome EnsClient::unAssociateEnsEipAddress(const UnAssociateEnsEipAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8799,6 +9015,78 @@ EnsClient::UnassociateNetworkAclOutcomeCallable EnsClient::unassociateNetworkAcl return task->get_future(); } +EnsClient::UnloadRegionSDGOutcome EnsClient::unloadRegionSDG(const UnloadRegionSDGRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnloadRegionSDGOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnloadRegionSDGOutcome(UnloadRegionSDGResult(outcome.result())); + else + return UnloadRegionSDGOutcome(outcome.error()); +} + +void EnsClient::unloadRegionSDGAsync(const UnloadRegionSDGRequest& request, const UnloadRegionSDGAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unloadRegionSDG(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::UnloadRegionSDGOutcomeCallable EnsClient::unloadRegionSDGCallable(const UnloadRegionSDGRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unloadRegionSDG(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::UntagResourcesOutcome EnsClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void EnsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::UntagResourcesOutcomeCallable EnsClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EnsClient::UpdateEnsSaleControlOutcome EnsClient::updateEnsSaleControl(const UpdateEnsSaleControlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ens/src/model/CreateEnsSaleControlRequest.cc b/ens/src/model/CreateEnsSaleControlRequest.cc index 2b1c2ed1a..d46fcf72f 100644 --- a/ens/src/model/CreateEnsSaleControlRequest.cc +++ b/ens/src/model/CreateEnsSaleControlRequest.cc @@ -48,6 +48,15 @@ void CreateEnsSaleControlRequest::setSaleControls(const std::vector + +using AlibabaCloud::Ens::Model::DeployInstanceSDGRequest; + +DeployInstanceSDGRequest::DeployInstanceSDGRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeployInstanceSDG") { + setMethod(HttpRequest::Method::Post); +} + +DeployInstanceSDGRequest::~DeployInstanceSDGRequest() {} + +std::string DeployInstanceSDGRequest::getDeploymentType() const { + return deploymentType_; +} + +void DeployInstanceSDGRequest::setDeploymentType(const std::string &deploymentType) { + deploymentType_ = deploymentType; + setParameter(std::string("DeploymentType"), deploymentType); +} + +std::string DeployInstanceSDGRequest::getSDGId() const { + return sDGId_; +} + +void DeployInstanceSDGRequest::setSDGId(const std::string &sDGId) { + sDGId_ = sDGId; + setParameter(std::string("SDGId"), sDGId); +} + +std::vector DeployInstanceSDGRequest::getInstanceIds() const { + return instanceIds_; +} + +void DeployInstanceSDGRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; + for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) { + setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]); + } +} + diff --git a/ens/src/model/DeployInstanceSDGResult.cc b/ens/src/model/DeployInstanceSDGResult.cc new file mode 100644 index 000000000..b56a7e78e --- /dev/null +++ b/ens/src/model/DeployInstanceSDGResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeployInstanceSDGResult::DeployInstanceSDGResult() : + ServiceResult() +{} + +DeployInstanceSDGResult::DeployInstanceSDGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployInstanceSDGResult::~DeployInstanceSDGResult() +{} + +void DeployInstanceSDGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + auto resultNode = dataNode["Result"]; + if(!resultNode["FailedCount"].isNull()) + data_.result.failedCount = std::stol(resultNode["FailedCount"].asString()); + if(!resultNode["SuccessCount"].isNull()) + data_.result.successCount = std::stol(resultNode["SuccessCount"].asString()); + auto allFailedItemsNode = resultNode["FailedItems"]["FailedItem"]; + for (auto resultNodeFailedItemsFailedItem : allFailedItemsNode) + { + Data::Result::FailedItem failedItemObject; + if(!resultNodeFailedItemsFailedItem["ErrMessage"].isNull()) + failedItemObject.errMessage = resultNodeFailedItemsFailedItem["ErrMessage"].asString(); + if(!resultNodeFailedItemsFailedItem["InstanceId"].isNull()) + failedItemObject.instanceId = resultNodeFailedItemsFailedItem["InstanceId"].asString(); + data_.result.failedItems.push_back(failedItemObject); + } + +} + +DeployInstanceSDGResult::Data DeployInstanceSDGResult::getData()const +{ + return data_; +} + diff --git a/ens/src/model/DescribeInstancesRequest.cc b/ens/src/model/DescribeInstancesRequest.cc index 8deb5111c..e7c5f1a17 100644 --- a/ens/src/model/DescribeInstancesRequest.cc +++ b/ens/src/model/DescribeInstancesRequest.cc @@ -181,6 +181,15 @@ void DescribeInstancesRequest::setPageSize(const std::string &pageSize) { setParameter(std::string("PageSize"), pageSize); } +std::string DescribeInstancesRequest::getInstanceType() const { + return instanceType_; +} + +void DescribeInstancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + std::string DescribeInstancesRequest::getEnsRegionIds() const { return ensRegionIds_; } diff --git a/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc index 8eb40a323..c469e5144 100644 --- a/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc +++ b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc @@ -87,39 +87,16 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p serverCertificateId_ = value["ServerCertificateId"].asString(); if(!value["HealthCheckMethod"].isNull()) healthCheckMethod_ = value["HealthCheckMethod"].asString(); + if(!value["XForwardedFor"].isNull()) + xForwardedFor_ = value["XForwardedFor"].asString(); } -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStatus()const -{ - return status_; -} - int DescribeLoadBalancerHTTPListenerAttributeResult::getCookieTimeout()const { return cookieTimeout_; } -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getCookie()const -{ - return cookie_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getRequestTimeout()const -{ - return requestTimeout_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckInterval()const -{ - return healthCheckInterval_; -} - std::string DescribeLoadBalancerHTTPListenerAttributeResult::getDescription()const { return description_; @@ -150,31 +127,11 @@ int DescribeLoadBalancerHTTPListenerAttributeResult::getIdleTimeout()const return idleTimeout_; } -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const -{ - return healthCheckTimeout_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getListenerForward()const -{ - return listenerForward_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const -{ - return stickySession_; -} - int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort()const { return healthCheckConnectPort_; } -int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardPort()const -{ - return forwardPort_; -} - std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckMethod()const { return healthCheckMethod_; @@ -185,16 +142,6 @@ int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const return bandwidth_; } -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const -{ - return healthCheckDomain_; -} - std::string DescribeLoadBalancerHTTPListenerAttributeResult::getServerCertificateId()const { return serverCertificateId_; @@ -210,3 +157,63 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpC return healthCheckHttpCode_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getCookie()const +{ + return cookie_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getListenerForward()const +{ + return listenerForward_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardPort()const +{ + return forwardPort_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor()const +{ + return xForwardedFor_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + diff --git a/ens/src/model/DescribeSDGRequest.cc b/ens/src/model/DescribeSDGRequest.cc new file mode 100644 index 000000000..2bcdf28d1 --- /dev/null +++ b/ens/src/model/DescribeSDGRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeSDGRequest; + +DescribeSDGRequest::DescribeSDGRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeSDG") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSDGRequest::~DescribeSDGRequest() {} + +int DescribeSDGRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSDGRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeSDGRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSDGRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeSDGRequest::getSDGIds() const { + return sDGIds_; +} + +void DescribeSDGRequest::setSDGIds(const std::vector &sDGIds) { + sDGIds_ = sDGIds; + for(int dep1 = 0; dep1 != sDGIds.size(); dep1++) { + setParameter(std::string("SDGIds") + "." + std::to_string(dep1 + 1), sDGIds[dep1]); + } +} + diff --git a/ens/src/model/DescribeSDGResult.cc b/ens/src/model/DescribeSDGResult.cc new file mode 100644 index 000000000..d5c6d8a87 --- /dev/null +++ b/ens/src/model/DescribeSDGResult.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeSDGResult::DescribeSDGResult() : + ServiceResult() +{} + +DescribeSDGResult::DescribeSDGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSDGResult::~DescribeSDGResult() +{} + +void DescribeSDGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSDGsNode = value["SDGs"]["SDGsItem"]; + for (auto valueSDGsSDGsItem : allSDGsNode) + { + SDGsItem sDGsObject; + if(!valueSDGsSDGsItem["CreationInstanceId"].isNull()) + sDGsObject.creationInstanceId = valueSDGsSDGsItem["CreationInstanceId"].asString(); + if(!valueSDGsSDGsItem["CreationRegionId"].isNull()) + sDGsObject.creationRegionId = valueSDGsSDGsItem["CreationRegionId"].asString(); + if(!valueSDGsSDGsItem["CreationTime"].isNull()) + sDGsObject.creationTime = valueSDGsSDGsItem["CreationTime"].asString(); + if(!valueSDGsSDGsItem["Description"].isNull()) + sDGsObject.description = valueSDGsSDGsItem["Description"].asString(); + if(!valueSDGsSDGsItem["ParentSDGId"].isNull()) + sDGsObject.parentSDGId = valueSDGsSDGsItem["ParentSDGId"].asString(); + if(!valueSDGsSDGsItem["SDGId"].isNull()) + sDGsObject.sDGId = valueSDGsSDGsItem["SDGId"].asString(); + if(!valueSDGsSDGsItem["Size"].isNull()) + sDGsObject.size = std::stol(valueSDGsSDGsItem["Size"].asString()); + if(!valueSDGsSDGsItem["Status"].isNull()) + sDGsObject.status = valueSDGsSDGsItem["Status"].asString(); + if(!valueSDGsSDGsItem["UpdateTime"].isNull()) + sDGsObject.updateTime = valueSDGsSDGsItem["UpdateTime"].asString(); + auto allAvaliableRegionIdsNode = valueSDGsSDGsItem["AvaliableRegionIds"]["AvaliableRegionIdsItem"]; + for (auto valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem : allAvaliableRegionIdsNode) + { + SDGsItem::AvaliableRegionIdsItem avaliableRegionIdsObject; + if(!valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["CreationTime"].isNull()) + avaliableRegionIdsObject.creationTime = valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["CreationTime"].asString(); + if(!valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["RegionId"].isNull()) + avaliableRegionIdsObject.regionId = valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["RegionId"].asString(); + if(!valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["SnapshotId"].isNull()) + avaliableRegionIdsObject.snapshotId = valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["SnapshotId"].asString(); + if(!valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["Status"].isNull()) + avaliableRegionIdsObject.status = valueSDGsSDGsItemAvaliableRegionIdsAvaliableRegionIdsItem["Status"].asString(); + sDGsObject.avaliableRegionIds.push_back(avaliableRegionIdsObject); + } + auto allPreloadInfosNode = valueSDGsSDGsItem["PreloadInfos"]["PreloadInfosItem"]; + for (auto valueSDGsSDGsItemPreloadInfosPreloadInfosItem : allPreloadInfosNode) + { + SDGsItem::PreloadInfosItem preloadInfosObject; + if(!valueSDGsSDGsItemPreloadInfosPreloadInfosItem["RegionId"].isNull()) + preloadInfosObject.regionId = valueSDGsSDGsItemPreloadInfosPreloadInfosItem["RegionId"].asString(); + if(!valueSDGsSDGsItemPreloadInfosPreloadInfosItem["Namespace"].isNull()) + preloadInfosObject._namespace = valueSDGsSDGsItemPreloadInfosPreloadInfosItem["Namespace"].asString(); + if(!valueSDGsSDGsItemPreloadInfosPreloadInfosItem["RedundantNum"].isNull()) + preloadInfosObject.redundantNum = std::stoi(valueSDGsSDGsItemPreloadInfosPreloadInfosItem["RedundantNum"].asString()); + if(!valueSDGsSDGsItemPreloadInfosPreloadInfosItem["CreationTime"].isNull()) + preloadInfosObject.creationTime = valueSDGsSDGsItemPreloadInfosPreloadInfosItem["CreationTime"].asString(); + if(!valueSDGsSDGsItemPreloadInfosPreloadInfosItem["UpdateTime"].isNull()) + preloadInfosObject.updateTime = valueSDGsSDGsItemPreloadInfosPreloadInfosItem["UpdateTime"].asString(); + sDGsObject.preloadInfos.push_back(preloadInfosObject); + } + sDGs_.push_back(sDGsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeSDGResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSDGResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSDGResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSDGResult::getSDGs()const +{ + return sDGs_; +} + diff --git a/ens/src/model/DescribeSDGsRequest.cc b/ens/src/model/DescribeSDGsRequest.cc index 3c9207ae5..162a20cbb 100644 --- a/ens/src/model/DescribeSDGsRequest.cc +++ b/ens/src/model/DescribeSDGsRequest.cc @@ -20,7 +20,7 @@ using AlibabaCloud::Ens::Model::DescribeSDGsRequest; DescribeSDGsRequest::DescribeSDGsRequest() : RpcServiceRequest("ens", "2017-11-10", "DescribeSDGs") { - setMethod(HttpRequest::Method::Get); + setMethod(HttpRequest::Method::Post); } DescribeSDGsRequest::~DescribeSDGsRequest() {} diff --git a/ens/src/model/ListTagResourcesRequest.cc b/ens/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..85b5a916d --- /dev/null +++ b/ens/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ens", "2017-11-10", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ens/src/model/ListTagResourcesResult.cc b/ens/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..6ab19bb25 --- /dev/null +++ b/ens/src/model/ListTagResourcesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResourcesItem"]; + for (auto valueTagResourcesTagResourcesItem : allTagResourcesNode) + { + TagResourcesItem tagResourcesObject; + if(!valueTagResourcesTagResourcesItem["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResourcesItem["ResourceId"].asString(); + if(!valueTagResourcesTagResourcesItem["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResourcesItem["ResourceType"].asString(); + if(!valueTagResourcesTagResourcesItem["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResourcesItem["TagKey"].asString(); + if(!valueTagResourcesTagResourcesItem["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResourcesItem["TagValue"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/ens/src/model/PreloadRegionSDGRequest.cc b/ens/src/model/PreloadRegionSDGRequest.cc new file mode 100644 index 000000000..af4f85704 --- /dev/null +++ b/ens/src/model/PreloadRegionSDGRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::PreloadRegionSDGRequest; + +PreloadRegionSDGRequest::PreloadRegionSDGRequest() + : RpcServiceRequest("ens", "2017-11-10", "PreloadRegionSDG") { + setMethod(HttpRequest::Method::Post); +} + +PreloadRegionSDGRequest::~PreloadRegionSDGRequest() {} + +std::vector PreloadRegionSDGRequest::getDestinationRegionIds() const { + return destinationRegionIds_; +} + +void PreloadRegionSDGRequest::setDestinationRegionIds(const std::vector &destinationRegionIds) { + destinationRegionIds_ = destinationRegionIds; + for(int dep1 = 0; dep1 != destinationRegionIds.size(); dep1++) { + setParameter(std::string("DestinationRegionIds") + "." + std::to_string(dep1 + 1), destinationRegionIds[dep1]); + } +} + +std::string PreloadRegionSDGRequest::getSDGId() const { + return sDGId_; +} + +void PreloadRegionSDGRequest::setSDGId(const std::string &sDGId) { + sDGId_ = sDGId; + setParameter(std::string("SDGId"), sDGId); +} + +int PreloadRegionSDGRequest::getRedundantNum() const { + return redundantNum_; +} + +void PreloadRegionSDGRequest::setRedundantNum(int redundantNum) { + redundantNum_ = redundantNum; + setParameter(std::string("RedundantNum"), std::to_string(redundantNum)); +} + +std::vector PreloadRegionSDGRequest::getNamespaces() const { + return namespaces_; +} + +void PreloadRegionSDGRequest::setNamespaces(const std::vector &namespaces) { + namespaces_ = namespaces; + for(int dep1 = 0; dep1 != namespaces.size(); dep1++) { + setParameter(std::string("Namespaces") + "." + std::to_string(dep1 + 1), namespaces[dep1]); + } +} + diff --git a/ens/src/model/PreloadRegionSDGResult.cc b/ens/src/model/PreloadRegionSDGResult.cc new file mode 100644 index 000000000..dbd7c1e45 --- /dev/null +++ b/ens/src/model/PreloadRegionSDGResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +PreloadRegionSDGResult::PreloadRegionSDGResult() : + ServiceResult() +{} + +PreloadRegionSDGResult::PreloadRegionSDGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreloadRegionSDGResult::~PreloadRegionSDGResult() +{} + +void PreloadRegionSDGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + auto resultNode = dataNode["Result"]; + if(!resultNode["FailedCount"].isNull()) + data_.result.failedCount = std::stol(resultNode["FailedCount"].asString()); + if(!resultNode["SuccessCount"].isNull()) + data_.result.successCount = std::stol(resultNode["SuccessCount"].asString()); + auto allFailedItemsNode = resultNode["FailedItems"]["FailedItemsItem"]; + for (auto resultNodeFailedItemsFailedItemsItem : allFailedItemsNode) + { + Data::Result::FailedItemsItem failedItemsItemObject; + if(!resultNodeFailedItemsFailedItemsItem["ErrorMessage"].isNull()) + failedItemsItemObject.errorMessage = resultNodeFailedItemsFailedItemsItem["ErrorMessage"].asString(); + if(!resultNodeFailedItemsFailedItemsItem["DestinationRegionId"].isNull()) + failedItemsItemObject.destinationRegionId = resultNodeFailedItemsFailedItemsItem["DestinationRegionId"].asString(); + data_.result.failedItems.push_back(failedItemsItemObject); + } + +} + +PreloadRegionSDGResult::Data PreloadRegionSDGResult::getData()const +{ + return data_; +} + diff --git a/ens/src/model/PutBucketRequest.cc b/ens/src/model/PutBucketRequest.cc index 61ba0d7d7..be15e9122 100644 --- a/ens/src/model/PutBucketRequest.cc +++ b/ens/src/model/PutBucketRequest.cc @@ -133,6 +133,15 @@ void PutBucketRequest::setStorageClass(const std::string &storageClass) { setBodyParameter(std::string("StorageClass"), storageClass); } +std::string PutBucketRequest::getDispatchScope() const { + return dispatchScope_; +} + +void PutBucketRequest::setDispatchScope(const std::string &dispatchScope) { + dispatchScope_ = dispatchScope; + setBodyParameter(std::string("DispatchScope"), dispatchScope); +} + std::string PutBucketRequest::getComment() const { return comment_; } diff --git a/ens/src/model/RemoveInstanceSDGRequest.cc b/ens/src/model/RemoveInstanceSDGRequest.cc new file mode 100644 index 000000000..626c22a79 --- /dev/null +++ b/ens/src/model/RemoveInstanceSDGRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::RemoveInstanceSDGRequest; + +RemoveInstanceSDGRequest::RemoveInstanceSDGRequest() + : RpcServiceRequest("ens", "2017-11-10", "RemoveInstanceSDG") { + setMethod(HttpRequest::Method::Post); +} + +RemoveInstanceSDGRequest::~RemoveInstanceSDGRequest() {} + +std::vector RemoveInstanceSDGRequest::getInstanceIds() const { + return instanceIds_; +} + +void RemoveInstanceSDGRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; + for(int dep1 = 0; dep1 != instanceIds.size(); dep1++) { + setParameter(std::string("InstanceIds") + "." + std::to_string(dep1 + 1), instanceIds[dep1]); + } +} + diff --git a/ens/src/model/RemoveInstanceSDGResult.cc b/ens/src/model/RemoveInstanceSDGResult.cc new file mode 100644 index 000000000..44bd43e21 --- /dev/null +++ b/ens/src/model/RemoveInstanceSDGResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RemoveInstanceSDGResult::RemoveInstanceSDGResult() : + ServiceResult() +{} + +RemoveInstanceSDGResult::RemoveInstanceSDGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveInstanceSDGResult::~RemoveInstanceSDGResult() +{} + +void RemoveInstanceSDGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + auto resultNode = dataNode["Result"]; + if(!resultNode["FailedCount"].isNull()) + data_.result.failedCount = std::stol(resultNode["FailedCount"].asString()); + if(!resultNode["SuccessCount"].isNull()) + data_.result.successCount = std::stol(resultNode["SuccessCount"].asString()); + auto allFailedItemsNode = resultNode["FailedItems"]["FailedItemsItem"]; + for (auto resultNodeFailedItemsFailedItemsItem : allFailedItemsNode) + { + Data::Result::FailedItemsItem failedItemsItemObject; + if(!resultNodeFailedItemsFailedItemsItem["ErrMessage"].isNull()) + failedItemsItemObject.errMessage = resultNodeFailedItemsFailedItemsItem["ErrMessage"].asString(); + if(!resultNodeFailedItemsFailedItemsItem["InstanceId"].isNull()) + failedItemsItemObject.instanceId = resultNodeFailedItemsFailedItemsItem["InstanceId"].asString(); + data_.result.failedItems.push_back(failedItemsItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +RemoveInstanceSDGResult::Data RemoveInstanceSDGResult::getData()const +{ + return data_; +} + +int RemoveInstanceSDGResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc b/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc index 2a2583849..036151acf 100644 --- a/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc +++ b/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc @@ -43,6 +43,15 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckURI(const std::s setParameter(std::string("HealthCheckURI"), healthCheckURI); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor() const { + return xForwardedFor_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor(const std::string &xForwardedFor) { + xForwardedFor_ = xForwardedFor; + setParameter(std::string("XForwardedFor"), xForwardedFor); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck() const { return healthCheck_; } diff --git a/ens/src/model/TagResourcesRequest.cc b/ens/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..1cd3b1fe9 --- /dev/null +++ b/ens/src/model/TagResourcesRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ens", "2017-11-10", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ens/src/model/TagResourcesResult.cc b/ens/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..257d104c3 --- /dev/null +++ b/ens/src/model/TagResourcesResult.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; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::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/UnloadRegionSDGRequest.cc b/ens/src/model/UnloadRegionSDGRequest.cc new file mode 100644 index 000000000..a32edba63 --- /dev/null +++ b/ens/src/model/UnloadRegionSDGRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::UnloadRegionSDGRequest; + +UnloadRegionSDGRequest::UnloadRegionSDGRequest() + : RpcServiceRequest("ens", "2017-11-10", "UnloadRegionSDG") { + setMethod(HttpRequest::Method::Post); +} + +UnloadRegionSDGRequest::~UnloadRegionSDGRequest() {} + +std::vector UnloadRegionSDGRequest::getDestinationRegionIds() const { + return destinationRegionIds_; +} + +void UnloadRegionSDGRequest::setDestinationRegionIds(const std::vector &destinationRegionIds) { + destinationRegionIds_ = destinationRegionIds; + for(int dep1 = 0; dep1 != destinationRegionIds.size(); dep1++) { + setParameter(std::string("DestinationRegionIds") + "." + std::to_string(dep1 + 1), destinationRegionIds[dep1]); + } +} + +std::string UnloadRegionSDGRequest::getSDGId() const { + return sDGId_; +} + +void UnloadRegionSDGRequest::setSDGId(const std::string &sDGId) { + sDGId_ = sDGId; + setParameter(std::string("SDGId"), sDGId); +} + +std::vector UnloadRegionSDGRequest::getNamespaces() const { + return namespaces_; +} + +void UnloadRegionSDGRequest::setNamespaces(const std::vector &namespaces) { + namespaces_ = namespaces; + for(int dep1 = 0; dep1 != namespaces.size(); dep1++) { + setParameter(std::string("Namespaces") + "." + std::to_string(dep1 + 1), namespaces[dep1]); + } +} + diff --git a/ens/src/model/UnloadRegionSDGResult.cc b/ens/src/model/UnloadRegionSDGResult.cc new file mode 100644 index 000000000..d899eaf19 --- /dev/null +++ b/ens/src/model/UnloadRegionSDGResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +UnloadRegionSDGResult::UnloadRegionSDGResult() : + ServiceResult() +{} + +UnloadRegionSDGResult::UnloadRegionSDGResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnloadRegionSDGResult::~UnloadRegionSDGResult() +{} + +void UnloadRegionSDGResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + auto resultNode = dataNode["Result"]; + if(!resultNode["FailedCount"].isNull()) + data_.result.failedCount = std::stol(resultNode["FailedCount"].asString()); + if(!resultNode["SuccessCount"].isNull()) + data_.result.successCount = std::stol(resultNode["SuccessCount"].asString()); + auto allFailedItemsNode = resultNode["FailedItems"]["FailedItemsItem"]; + for (auto resultNodeFailedItemsFailedItemsItem : allFailedItemsNode) + { + Data::Result::FailedItemsItem failedItemsItemObject; + if(!resultNodeFailedItemsFailedItemsItem["ErrorMessage"].isNull()) + failedItemsItemObject.errorMessage = resultNodeFailedItemsFailedItemsItem["ErrorMessage"].asString(); + if(!resultNodeFailedItemsFailedItemsItem["DestinationRegionId"].isNull()) + failedItemsItemObject.destinationRegionId = resultNodeFailedItemsFailedItemsItem["DestinationRegionId"].asString(); + data_.result.failedItems.push_back(failedItemsItemObject); + } + +} + +UnloadRegionSDGResult::Data UnloadRegionSDGResult::getData()const +{ + return data_; +} + diff --git a/ens/src/model/UntagResourcesRequest.cc b/ens/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..ef5202be8 --- /dev/null +++ b/ens/src/model/UntagResourcesRequest.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ens", "2017-11-10", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/ens/src/model/UntagResourcesResult.cc b/ens/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..2a54d198a --- /dev/null +++ b/ens/src/model/UntagResourcesResult.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; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::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/UpdateEnsSaleControlRequest.cc b/ens/src/model/UpdateEnsSaleControlRequest.cc index 7cce91a9a..9e8c3db17 100644 --- a/ens/src/model/UpdateEnsSaleControlRequest.cc +++ b/ens/src/model/UpdateEnsSaleControlRequest.cc @@ -48,6 +48,15 @@ void UpdateEnsSaleControlRequest::setSaleControls(const std::vector