From 84adbb2cb80f5538d66ca81d32d4b35e6dd871ec Mon Sep 17 00:00:00 2001 From: "yixiong.jxy" Date: Tue, 28 Aug 2018 16:48:49 +0800 Subject: [PATCH] =?UTF-8?q?SLB=20SDK=20Auto=20Released=20By=20laysong.sl,V?= =?UTF-8?q?ersion=EF=BC=9A1.23.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yixiong.jxy --- CHANGELOG | 3 + VERSION | 2 +- slb/CMakeLists.txt | 52 ++ slb/include/alibabacloud/slb/SlbClient.h | 104 ++++ .../model/AddAccessControlListEntryRequest.h | 75 +++ .../model/AddAccessControlListEntryResult.h | 49 ++ .../slb/model/AddBackendServersResult.h | 22 +- .../AddVServerGroupBackendServersResult.h | 24 +- .../model/CreateAccessControlListRequest.h | 75 +++ .../slb/model/CreateAccessControlListResult.h | 51 ++ .../slb/model/CreateDomainExtensionRequest.h | 78 +++ .../slb/model/CreateDomainExtensionResult.h | 53 ++ .../CreateLoadBalancerHTTPListenerRequest.h | 27 + .../CreateLoadBalancerHTTPSListenerRequest.h | 27 + .../slb/model/CreateLoadBalancerRequest.h | 69 +-- .../slb/model/CreateLoadBalancerResult.h | 34 +- .../CreateLoadBalancerTCPListenerRequest.h | 15 + .../CreateLoadBalancerUDPListenerRequest.h | 57 +- .../CreateMasterSlaveServerGroupResult.h | 26 +- .../CreateMasterSlaveVServerGroupResult.h | 26 +- .../slb/model/CreateRulesResult.h | 14 +- .../slb/model/CreateVServerGroupResult.h | 24 +- .../model/DeleteAccessControlListRequest.h | 72 +++ .../slb/model/DeleteAccessControlListResult.h | 49 ++ .../slb/model/DeleteDomainExtensionRequest.h | 69 +++ .../slb/model/DeleteDomainExtensionResult.h | 49 ++ ...escribeAccessControlListAttributeRequest.h | 75 +++ ...DescribeAccessControlListAttributeResult.h | 71 +++ .../model/DescribeAccessControlListsRequest.h | 81 +++ .../model/DescribeAccessControlListsResult.h | 57 ++ .../slb/model/DescribeCACertificatesResult.h | 27 +- .../model/DescribeDomainExtensionsRequest.h | 75 +++ .../model/DescribeDomainExtensionsResult.h | 57 ++ .../slb/model/DescribeHealthStatusResult.h | 21 +- ...ribeListenerAccessControlAttributeResult.h | 8 +- .../DescribeLoadBalancerAttributeResult.h | 150 +++--- ...escribeLoadBalancerAutoReleaseTimeResult.h | 4 +- ...eLoadBalancerHTTPListenerAttributeResult.h | 132 +++-- ...LoadBalancerHTTPSListenerAttributeResult.h | 148 ++++-- ...beLoadBalancerTCPListenerAttributeResult.h | 94 ++-- ...beLoadBalancerUDPListenerAttributeResult.h | 78 +-- .../DescribeLoadBalancersRelatedEcsResult.h | 94 ++-- .../slb/model/DescribeLoadBalancersRequest.h | 75 +-- .../slb/model/DescribeLoadBalancersResult.h | 57 +- ...ibeMasterSlaveServerGroupAttributeResult.h | 30 +- .../DescribeMasterSlaveServerGroupsRequest.h | 3 + .../DescribeMasterSlaveServerGroupsResult.h | 24 +- ...beMasterSlaveVServerGroupAttributeResult.h | 30 +- .../DescribeMasterSlaveVServerGroupsResult.h | 14 +- .../slb/model/DescribeRegionsRequest.h | 3 + .../slb/model/DescribeRegionsResult.h | 15 +- .../slb/model/DescribeRuleAttributeResult.h | 54 +- .../slb/model/DescribeRulesResult.h | 35 +- .../model/DescribeServerCertificatesResult.h | 36 +- .../slb/model/DescribeSlbQuotasRequest.h | 66 +++ .../slb/model/DescribeSlbQuotasResult.h | 57 ++ .../slb/model/DescribeTagsResult.h | 28 +- .../DescribeVServerGroupAttributeResult.h | 28 +- .../slb/model/DescribeVServerGroupsRequest.h | 6 + .../slb/model/DescribeVServerGroupsResult.h | 32 +- .../slb/model/DescribeZonesResult.h | 26 +- .../ModifyLoadBalancerInstanceSpecResult.h | 4 +- .../ModifyLoadBalancerInternetSpecResult.h | 4 +- .../model/ModifyLoadBalancerPayTypeResult.h | 4 +- .../ModifyVServerGroupBackendServersResult.h | 24 +- .../RemoveAccessControlListEntryRequest.h | 75 +++ .../RemoveAccessControlListEntryResult.h | 49 ++ .../slb/model/RemoveBackendServersResult.h | 21 +- .../RemoveVServerGroupBackendServersResult.h | 24 +- .../SetAccessControlListAttributeRequest.h | 75 +++ .../SetAccessControlListAttributeResult.h | 51 ++ .../slb/model/SetAutoRenewStatusRequest.h | 78 +++ .../slb/model/SetAutoRenewStatusResult.h | 49 ++ .../slb/model/SetBackendServersResult.h | 22 +- .../SetDomainExtensionAttributeRequest.h | 72 +++ .../model/SetDomainExtensionAttributeResult.h | 49 ++ ...LoadBalancerHTTPListenerAttributeRequest.h | 21 + ...oadBalancerHTTPSListenerAttributeRequest.h | 27 + ...tLoadBalancerTCPListenerAttributeRequest.h | 15 + ...tLoadBalancerUDPListenerAttributeRequest.h | 15 + .../alibabacloud/slb/model/SetRuleRequest.h | 66 ++- .../model/SetVServerGroupAttributeResult.h | 28 +- .../slb/model/UploadCACertificateResult.h | 30 +- .../slb/model/UploadServerCertificateResult.h | 52 +- slb/src/SlbClient.cc | 468 +++++++++++++++++ .../model/AddAccessControlListEntryRequest.cc | 137 +++++ .../model/AddAccessControlListEntryResult.cc | 45 ++ slb/src/model/AddBackendServersResult.cc | 52 +- .../AddVServerGroupBackendServersResult.cc | 56 +- .../model/CreateAccessControlListRequest.cc | 137 +++++ .../model/CreateAccessControlListResult.cc | 52 ++ slb/src/model/CreateDomainExtensionRequest.cc | 148 ++++++ slb/src/model/CreateDomainExtensionResult.cc | 59 +++ .../CreateLoadBalancerHTTPListenerRequest.cc | 99 ++++ .../CreateLoadBalancerHTTPSListenerRequest.cc | 99 ++++ slb/src/model/CreateLoadBalancerRequest.cc | 241 +++++---- slb/src/model/CreateLoadBalancerResult.cc | 119 +++-- .../CreateLoadBalancerTCPListenerRequest.cc | 55 ++ .../CreateLoadBalancerUDPListenerRequest.cc | 209 +++++--- .../CreateMasterSlaveServerGroupResult.cc | 60 ++- .../CreateMasterSlaveVServerGroupResult.cc | 60 ++- slb/src/model/CreateRulesResult.cc | 30 +- slb/src/model/CreateVServerGroupResult.cc | 56 +- .../model/DeleteAccessControlListRequest.cc | 126 +++++ .../model/DeleteAccessControlListResult.cc | 45 ++ slb/src/model/DeleteDomainExtensionRequest.cc | 115 ++++ slb/src/model/DeleteDomainExtensionResult.cc | 45 ++ ...scribeAccessControlListAttributeRequest.cc | 137 +++++ ...escribeAccessControlListAttributeResult.cc | 100 ++++ .../DescribeAccessControlListsRequest.cc | 159 ++++++ .../model/DescribeAccessControlListsResult.cc | 62 +++ slb/src/model/DescribeCACertificatesResult.cc | 56 +- .../model/DescribeDomainExtensionsRequest.cc | 137 +++++ .../model/DescribeDomainExtensionsResult.cc | 62 +++ slb/src/model/DescribeHealthStatusResult.cc | 44 +- ...ibeListenerAccessControlAttributeResult.cc | 28 +- .../DescribeLoadBalancerAttributeResult.cc | 461 ++++++++-------- ...scribeLoadBalancerAutoReleaseTimeResult.cc | 14 +- ...LoadBalancerHTTPListenerAttributeResult.cc | 448 +++++++++------- ...oadBalancerHTTPSListenerAttributeResult.cc | 493 +++++++++++------- ...eLoadBalancerTCPListenerAttributeResult.cc | 329 ++++++------ ...eLoadBalancerUDPListenerAttributeResult.cc | 273 +++++----- .../DescribeLoadBalancersRelatedEcsResult.cc | 182 +++---- slb/src/model/DescribeLoadBalancersRequest.cc | 263 ++++++---- slb/src/model/DescribeLoadBalancersResult.cc | 134 ++--- ...beMasterSlaveServerGroupAttributeResult.cc | 74 +-- .../DescribeMasterSlaveServerGroupsRequest.cc | 11 + .../DescribeMasterSlaveServerGroupsResult.cc | 41 +- ...eMasterSlaveVServerGroupAttributeResult.cc | 74 +-- .../DescribeMasterSlaveVServerGroupsResult.cc | 30 +- slb/src/model/DescribeRegionsRequest.cc | 11 + slb/src/model/DescribeRegionsResult.cc | 32 +- slb/src/model/DescribeRuleAttributeResult.cc | 189 +++++-- slb/src/model/DescribeRulesResult.cc | 72 ++- .../model/DescribeServerCertificatesResult.cc | 75 +-- slb/src/model/DescribeSlbQuotasRequest.cc | 104 ++++ slb/src/model/DescribeSlbQuotasResult.cc | 62 +++ slb/src/model/DescribeTagsResult.cc | 76 +-- .../DescribeVServerGroupAttributeResult.cc | 70 +-- slb/src/model/DescribeVServerGroupsRequest.cc | 22 + slb/src/model/DescribeVServerGroupsResult.cc | 55 +- slb/src/model/DescribeZonesResult.cc | 50 +- .../ModifyLoadBalancerInstanceSpecResult.cc | 14 +- .../ModifyLoadBalancerInternetSpecResult.cc | 14 +- .../model/ModifyLoadBalancerPayTypeResult.cc | 14 +- .../ModifyVServerGroupBackendServersResult.cc | 56 +- .../RemoveAccessControlListEntryRequest.cc | 137 +++++ .../RemoveAccessControlListEntryResult.cc | 45 ++ slb/src/model/RemoveBackendServersResult.cc | 50 +- .../RemoveVServerGroupBackendServersResult.cc | 56 +- .../SetAccessControlListAttributeRequest.cc | 137 +++++ .../SetAccessControlListAttributeResult.cc | 52 ++ slb/src/model/SetAutoRenewStatusRequest.cc | 148 ++++++ slb/src/model/SetAutoRenewStatusResult.cc | 45 ++ slb/src/model/SetBackendServersResult.cc | 52 +- .../SetDomainExtensionAttributeRequest.cc | 126 +++++ .../SetDomainExtensionAttributeResult.cc | 45 ++ ...oadBalancerHTTPListenerAttributeRequest.cc | 77 +++ ...adBalancerHTTPSListenerAttributeRequest.cc | 99 ++++ ...LoadBalancerTCPListenerAttributeRequest.cc | 55 ++ ...LoadBalancerUDPListenerAttributeRequest.cc | 55 ++ slb/src/model/SetRuleRequest.cc | 218 +++++++- .../model/SetVServerGroupAttributeResult.cc | 70 +-- slb/src/model/UploadCACertificateResult.cc | 105 ++-- .../model/UploadServerCertificateResult.cc | 183 ++++--- 165 files changed, 9670 insertions(+), 2918 deletions(-) create mode 100644 slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h create mode 100644 slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeSlbQuotasResult.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetAutoRenewStatusRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetAutoRenewStatusResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h create mode 100644 slb/src/model/AddAccessControlListEntryRequest.cc create mode 100644 slb/src/model/AddAccessControlListEntryResult.cc create mode 100644 slb/src/model/CreateAccessControlListRequest.cc create mode 100644 slb/src/model/CreateAccessControlListResult.cc create mode 100644 slb/src/model/CreateDomainExtensionRequest.cc create mode 100644 slb/src/model/CreateDomainExtensionResult.cc create mode 100644 slb/src/model/DeleteAccessControlListRequest.cc create mode 100644 slb/src/model/DeleteAccessControlListResult.cc create mode 100644 slb/src/model/DeleteDomainExtensionRequest.cc create mode 100644 slb/src/model/DeleteDomainExtensionResult.cc create mode 100644 slb/src/model/DescribeAccessControlListAttributeRequest.cc create mode 100644 slb/src/model/DescribeAccessControlListAttributeResult.cc create mode 100644 slb/src/model/DescribeAccessControlListsRequest.cc create mode 100644 slb/src/model/DescribeAccessControlListsResult.cc create mode 100644 slb/src/model/DescribeDomainExtensionsRequest.cc create mode 100644 slb/src/model/DescribeDomainExtensionsResult.cc create mode 100644 slb/src/model/DescribeSlbQuotasRequest.cc create mode 100644 slb/src/model/DescribeSlbQuotasResult.cc create mode 100644 slb/src/model/RemoveAccessControlListEntryRequest.cc create mode 100644 slb/src/model/RemoveAccessControlListEntryResult.cc create mode 100644 slb/src/model/SetAccessControlListAttributeRequest.cc create mode 100644 slb/src/model/SetAccessControlListAttributeResult.cc create mode 100644 slb/src/model/SetAutoRenewStatusRequest.cc create mode 100644 slb/src/model/SetAutoRenewStatusResult.cc create mode 100644 slb/src/model/SetDomainExtensionAttributeRequest.cc create mode 100644 slb/src/model/SetDomainExtensionAttributeResult.cc diff --git a/CHANGELOG b/CHANGELOG index 19999c583..242634382 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2018-08-28 Version: 1.23.4 +1, Add param for DescribeRegions,support AcceptLanguage,RegionEndpoint. + 2018-08-27 Version: 1.23.3 1, add Ess alarm task api, CreateAlarm, DeleteAlarm, DescribeAlarms, DeleteAlarm, EnableAlarm, DisableAlarm diff --git a/VERSION b/VERSION index b544c0997..8cb07451d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.23.3 \ No newline at end of file +1.23.4 \ No newline at end of file diff --git a/slb/CMakeLists.txt b/slb/CMakeLists.txt index d5238a01e..a7ca626ad 100644 --- a/slb/CMakeLists.txt +++ b/slb/CMakeLists.txt @@ -21,6 +21,8 @@ set(slb_public_header include/alibabacloud/slb/SlbExport.h ) set(slb_public_header_model + include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h + include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsRequest.h @@ -53,6 +55,8 @@ set(slb_public_header_model include/alibabacloud/slb/model/CreateLoadBalancerResult.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeResult.h + include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h + include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h include/alibabacloud/slb/model/SetLoadBalancerAutoReleaseTimeRequest.h include/alibabacloud/slb/model/SetLoadBalancerAutoReleaseTimeResult.h include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h @@ -63,6 +67,8 @@ set(slb_public_header_model include/alibabacloud/slb/model/DescribeZonesResult.h include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h + include/alibabacloud/slb/model/SetAutoRenewStatusRequest.h + include/alibabacloud/slb/model/SetAutoRenewStatusResult.h include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h include/alibabacloud/slb/model/DeleteLoadBalancerListenerResult.h include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h @@ -87,8 +93,12 @@ set(slb_public_header_model include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerResult.h include/alibabacloud/slb/model/RemoveBackendServersRequest.h include/alibabacloud/slb/model/RemoveBackendServersResult.h + include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h + include/alibabacloud/slb/model/AddAccessControlListEntryResult.h include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h + include/alibabacloud/slb/model/DescribeSlbQuotasResult.h include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h include/alibabacloud/slb/model/DeleteRulesRequest.h @@ -101,6 +111,8 @@ set(slb_public_header_model include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h include/alibabacloud/slb/model/SetBackendServersRequest.h include/alibabacloud/slb/model/SetBackendServersResult.h + include/alibabacloud/slb/model/DeleteAccessControlListRequest.h + include/alibabacloud/slb/model/DeleteAccessControlListResult.h include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.h include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h @@ -111,8 +123,16 @@ set(slb_public_header_model include/alibabacloud/slb/model/SetServerCertificateNameResult.h include/alibabacloud/slb/model/DeleteCACertificateRequest.h include/alibabacloud/slb/model/DeleteCACertificateResult.h + include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h + include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerResult.h + include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h + include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h + include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h + include/alibabacloud/slb/model/DescribeAccessControlListsResult.h + include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h + include/alibabacloud/slb/model/DeleteDomainExtensionResult.h include/alibabacloud/slb/model/SetRuleRequest.h include/alibabacloud/slb/model/SetRuleResult.h include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h @@ -131,6 +151,10 @@ set(slb_public_header_model include/alibabacloud/slb/model/DescribeServerCertificatesResult.h include/alibabacloud/slb/model/DescribeRulesRequest.h include/alibabacloud/slb/model/DescribeRulesResult.h + include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h + include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h + include/alibabacloud/slb/model/CreateDomainExtensionRequest.h + include/alibabacloud/slb/model/CreateDomainExtensionResult.h include/alibabacloud/slb/model/DescribeRuleAttributeRequest.h include/alibabacloud/slb/model/DescribeRuleAttributeResult.h include/alibabacloud/slb/model/UploadServerCertificateRequest.h @@ -145,6 +169,8 @@ set(slb_public_header_model include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h + include/alibabacloud/slb/model/CreateAccessControlListRequest.h + include/alibabacloud/slb/model/CreateAccessControlListResult.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.h @@ -164,6 +190,8 @@ set(slb_public_header_model set(slb_src src/SlbClient.cc + src/model/SetDomainExtensionAttributeRequest.cc + src/model/SetDomainExtensionAttributeResult.cc src/model/CreateLoadBalancerUDPListenerRequest.cc src/model/CreateLoadBalancerUDPListenerResult.cc src/model/DescribeMasterSlaveVServerGroupsRequest.cc @@ -196,6 +224,8 @@ set(slb_src src/model/CreateLoadBalancerResult.cc src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc src/model/SetLoadBalancerHTTPListenerAttributeResult.cc + src/model/DescribeDomainExtensionsRequest.cc + src/model/DescribeDomainExtensionsResult.cc src/model/SetLoadBalancerAutoReleaseTimeRequest.cc src/model/SetLoadBalancerAutoReleaseTimeResult.cc src/model/SetListenerAccessControlStatusRequest.cc @@ -206,6 +236,8 @@ set(slb_src src/model/DescribeZonesResult.cc src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc + src/model/SetAutoRenewStatusRequest.cc + src/model/SetAutoRenewStatusResult.cc src/model/DeleteLoadBalancerListenerRequest.cc src/model/DeleteLoadBalancerListenerResult.cc src/model/DescribeVServerGroupsRequest.cc @@ -230,8 +262,12 @@ set(slb_src src/model/CreateLoadBalancerHTTPListenerResult.cc src/model/RemoveBackendServersRequest.cc src/model/RemoveBackendServersResult.cc + src/model/AddAccessControlListEntryRequest.cc + src/model/AddAccessControlListEntryResult.cc src/model/ModifyVServerGroupBackendServersRequest.cc src/model/ModifyVServerGroupBackendServersResult.cc + src/model/DescribeSlbQuotasRequest.cc + src/model/DescribeSlbQuotasResult.cc src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc src/model/DeleteRulesRequest.cc @@ -244,6 +280,8 @@ set(slb_src src/model/CreateMasterSlaveVServerGroupResult.cc src/model/SetBackendServersRequest.cc src/model/SetBackendServersResult.cc + src/model/DeleteAccessControlListRequest.cc + src/model/DeleteAccessControlListResult.cc src/model/RemoveVServerGroupBackendServersRequest.cc src/model/RemoveVServerGroupBackendServersResult.cc src/model/DescribeLoadBalancerAttributeRequest.cc @@ -254,8 +292,16 @@ set(slb_src src/model/SetServerCertificateNameResult.cc src/model/DeleteCACertificateRequest.cc src/model/DeleteCACertificateResult.cc + src/model/SetAccessControlListAttributeRequest.cc + src/model/SetAccessControlListAttributeResult.cc src/model/CreateLoadBalancerTCPListenerRequest.cc src/model/CreateLoadBalancerTCPListenerResult.cc + src/model/DescribeAccessControlListAttributeRequest.cc + src/model/DescribeAccessControlListAttributeResult.cc + src/model/DescribeAccessControlListsRequest.cc + src/model/DescribeAccessControlListsResult.cc + src/model/DeleteDomainExtensionRequest.cc + src/model/DeleteDomainExtensionResult.cc src/model/SetRuleRequest.cc src/model/SetRuleResult.cc src/model/DescribeMasterSlaveServerGroupsRequest.cc @@ -274,6 +320,10 @@ set(slb_src src/model/DescribeServerCertificatesResult.cc src/model/DescribeRulesRequest.cc src/model/DescribeRulesResult.cc + src/model/RemoveAccessControlListEntryRequest.cc + src/model/RemoveAccessControlListEntryResult.cc + src/model/CreateDomainExtensionRequest.cc + src/model/CreateDomainExtensionResult.cc src/model/DescribeRuleAttributeRequest.cc src/model/DescribeRuleAttributeResult.cc src/model/UploadServerCertificateRequest.cc @@ -288,6 +338,8 @@ set(slb_src src/model/SetVServerGroupAttributeResult.cc src/model/ModifyLoadBalancerInternetSpecRequest.cc src/model/ModifyLoadBalancerInternetSpecResult.cc + src/model/CreateAccessControlListRequest.cc + src/model/CreateAccessControlListResult.cc src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc diff --git a/slb/include/alibabacloud/slb/SlbClient.h b/slb/include/alibabacloud/slb/SlbClient.h index b380ea3a3..ce645a2d1 100644 --- a/slb/include/alibabacloud/slb/SlbClient.h +++ b/slb/include/alibabacloud/slb/SlbClient.h @@ -22,6 +22,8 @@ #include #include #include "SlbExport.h" +#include "model/SetDomainExtensionAttributeRequest.h" +#include "model/SetDomainExtensionAttributeResult.h" #include "model/CreateLoadBalancerUDPListenerRequest.h" #include "model/CreateLoadBalancerUDPListenerResult.h" #include "model/DescribeMasterSlaveVServerGroupsRequest.h" @@ -54,6 +56,8 @@ #include "model/CreateLoadBalancerResult.h" #include "model/SetLoadBalancerHTTPListenerAttributeRequest.h" #include "model/SetLoadBalancerHTTPListenerAttributeResult.h" +#include "model/DescribeDomainExtensionsRequest.h" +#include "model/DescribeDomainExtensionsResult.h" #include "model/SetLoadBalancerAutoReleaseTimeRequest.h" #include "model/SetLoadBalancerAutoReleaseTimeResult.h" #include "model/SetListenerAccessControlStatusRequest.h" @@ -64,6 +68,8 @@ #include "model/DescribeZonesResult.h" #include "model/SetLoadBalancerHTTPSListenerAttributeRequest.h" #include "model/SetLoadBalancerHTTPSListenerAttributeResult.h" +#include "model/SetAutoRenewStatusRequest.h" +#include "model/SetAutoRenewStatusResult.h" #include "model/DeleteLoadBalancerListenerRequest.h" #include "model/DeleteLoadBalancerListenerResult.h" #include "model/DescribeVServerGroupsRequest.h" @@ -88,8 +94,12 @@ #include "model/CreateLoadBalancerHTTPListenerResult.h" #include "model/RemoveBackendServersRequest.h" #include "model/RemoveBackendServersResult.h" +#include "model/AddAccessControlListEntryRequest.h" +#include "model/AddAccessControlListEntryResult.h" #include "model/ModifyVServerGroupBackendServersRequest.h" #include "model/ModifyVServerGroupBackendServersResult.h" +#include "model/DescribeSlbQuotasRequest.h" +#include "model/DescribeSlbQuotasResult.h" #include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h" #include "model/DescribeLoadBalancerUDPListenerAttributeResult.h" #include "model/DeleteRulesRequest.h" @@ -102,6 +112,8 @@ #include "model/CreateMasterSlaveVServerGroupResult.h" #include "model/SetBackendServersRequest.h" #include "model/SetBackendServersResult.h" +#include "model/DeleteAccessControlListRequest.h" +#include "model/DeleteAccessControlListResult.h" #include "model/RemoveVServerGroupBackendServersRequest.h" #include "model/RemoveVServerGroupBackendServersResult.h" #include "model/DescribeLoadBalancerAttributeRequest.h" @@ -112,8 +124,16 @@ #include "model/SetServerCertificateNameResult.h" #include "model/DeleteCACertificateRequest.h" #include "model/DeleteCACertificateResult.h" +#include "model/SetAccessControlListAttributeRequest.h" +#include "model/SetAccessControlListAttributeResult.h" #include "model/CreateLoadBalancerTCPListenerRequest.h" #include "model/CreateLoadBalancerTCPListenerResult.h" +#include "model/DescribeAccessControlListAttributeRequest.h" +#include "model/DescribeAccessControlListAttributeResult.h" +#include "model/DescribeAccessControlListsRequest.h" +#include "model/DescribeAccessControlListsResult.h" +#include "model/DeleteDomainExtensionRequest.h" +#include "model/DeleteDomainExtensionResult.h" #include "model/SetRuleRequest.h" #include "model/SetRuleResult.h" #include "model/DescribeMasterSlaveServerGroupsRequest.h" @@ -132,6 +152,10 @@ #include "model/DescribeServerCertificatesResult.h" #include "model/DescribeRulesRequest.h" #include "model/DescribeRulesResult.h" +#include "model/RemoveAccessControlListEntryRequest.h" +#include "model/RemoveAccessControlListEntryResult.h" +#include "model/CreateDomainExtensionRequest.h" +#include "model/CreateDomainExtensionResult.h" #include "model/DescribeRuleAttributeRequest.h" #include "model/DescribeRuleAttributeResult.h" #include "model/UploadServerCertificateRequest.h" @@ -146,6 +170,8 @@ #include "model/SetVServerGroupAttributeResult.h" #include "model/ModifyLoadBalancerInternetSpecRequest.h" #include "model/ModifyLoadBalancerInternetSpecResult.h" +#include "model/CreateAccessControlListRequest.h" +#include "model/CreateAccessControlListResult.h" #include "model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h" #include "model/DescribeLoadBalancerHTTPSListenerAttributeResult.h" #include "model/DescribeMasterSlaveServerGroupAttributeRequest.h" @@ -171,6 +197,9 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT SlbClient : public RpcServiceClient { public: + typedef Outcome SetDomainExtensionAttributeOutcome; + typedef std::future SetDomainExtensionAttributeOutcomeCallable; + typedef std::function&)> SetDomainExtensionAttributeAsyncHandler; typedef Outcome CreateLoadBalancerUDPListenerOutcome; typedef std::future CreateLoadBalancerUDPListenerOutcomeCallable; typedef std::function&)> CreateLoadBalancerUDPListenerAsyncHandler; @@ -219,6 +248,9 @@ namespace AlibabaCloud typedef Outcome SetLoadBalancerHTTPListenerAttributeOutcome; typedef std::future SetLoadBalancerHTTPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerHTTPListenerAttributeAsyncHandler; + typedef Outcome DescribeDomainExtensionsOutcome; + typedef std::future DescribeDomainExtensionsOutcomeCallable; + typedef std::function&)> DescribeDomainExtensionsAsyncHandler; typedef Outcome SetLoadBalancerAutoReleaseTimeOutcome; typedef std::future SetLoadBalancerAutoReleaseTimeOutcomeCallable; typedef std::function&)> SetLoadBalancerAutoReleaseTimeAsyncHandler; @@ -234,6 +266,9 @@ namespace AlibabaCloud typedef Outcome SetLoadBalancerHTTPSListenerAttributeOutcome; typedef std::future SetLoadBalancerHTTPSListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerHTTPSListenerAttributeAsyncHandler; + typedef Outcome SetAutoRenewStatusOutcome; + typedef std::future SetAutoRenewStatusOutcomeCallable; + typedef std::function&)> SetAutoRenewStatusAsyncHandler; typedef Outcome DeleteLoadBalancerListenerOutcome; typedef std::future DeleteLoadBalancerListenerOutcomeCallable; typedef std::function&)> DeleteLoadBalancerListenerAsyncHandler; @@ -270,9 +305,15 @@ namespace AlibabaCloud typedef Outcome RemoveBackendServersOutcome; typedef std::future RemoveBackendServersOutcomeCallable; typedef std::function&)> RemoveBackendServersAsyncHandler; + typedef Outcome AddAccessControlListEntryOutcome; + typedef std::future AddAccessControlListEntryOutcomeCallable; + typedef std::function&)> AddAccessControlListEntryAsyncHandler; typedef Outcome ModifyVServerGroupBackendServersOutcome; typedef std::future ModifyVServerGroupBackendServersOutcomeCallable; typedef std::function&)> ModifyVServerGroupBackendServersAsyncHandler; + typedef Outcome DescribeSlbQuotasOutcome; + typedef std::future DescribeSlbQuotasOutcomeCallable; + typedef std::function&)> DescribeSlbQuotasAsyncHandler; typedef Outcome DescribeLoadBalancerUDPListenerAttributeOutcome; typedef std::future DescribeLoadBalancerUDPListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerUDPListenerAttributeAsyncHandler; @@ -291,6 +332,9 @@ namespace AlibabaCloud typedef Outcome SetBackendServersOutcome; typedef std::future SetBackendServersOutcomeCallable; typedef std::function&)> SetBackendServersAsyncHandler; + typedef Outcome DeleteAccessControlListOutcome; + typedef std::future DeleteAccessControlListOutcomeCallable; + typedef std::function&)> DeleteAccessControlListAsyncHandler; typedef Outcome RemoveVServerGroupBackendServersOutcome; typedef std::future RemoveVServerGroupBackendServersOutcomeCallable; typedef std::function&)> RemoveVServerGroupBackendServersAsyncHandler; @@ -306,9 +350,21 @@ namespace AlibabaCloud typedef Outcome DeleteCACertificateOutcome; typedef std::future DeleteCACertificateOutcomeCallable; typedef std::function&)> DeleteCACertificateAsyncHandler; + typedef Outcome SetAccessControlListAttributeOutcome; + typedef std::future SetAccessControlListAttributeOutcomeCallable; + typedef std::function&)> SetAccessControlListAttributeAsyncHandler; typedef Outcome CreateLoadBalancerTCPListenerOutcome; typedef std::future CreateLoadBalancerTCPListenerOutcomeCallable; typedef std::function&)> CreateLoadBalancerTCPListenerAsyncHandler; + typedef Outcome DescribeAccessControlListAttributeOutcome; + typedef std::future DescribeAccessControlListAttributeOutcomeCallable; + typedef std::function&)> DescribeAccessControlListAttributeAsyncHandler; + typedef Outcome DescribeAccessControlListsOutcome; + typedef std::future DescribeAccessControlListsOutcomeCallable; + typedef std::function&)> DescribeAccessControlListsAsyncHandler; + typedef Outcome DeleteDomainExtensionOutcome; + typedef std::future DeleteDomainExtensionOutcomeCallable; + typedef std::function&)> DeleteDomainExtensionAsyncHandler; typedef Outcome SetRuleOutcome; typedef std::future SetRuleOutcomeCallable; typedef std::function&)> SetRuleAsyncHandler; @@ -336,6 +392,12 @@ namespace AlibabaCloud typedef Outcome DescribeRulesOutcome; typedef std::future DescribeRulesOutcomeCallable; typedef std::function&)> DescribeRulesAsyncHandler; + typedef Outcome RemoveAccessControlListEntryOutcome; + typedef std::future RemoveAccessControlListEntryOutcomeCallable; + typedef std::function&)> RemoveAccessControlListEntryAsyncHandler; + typedef Outcome CreateDomainExtensionOutcome; + typedef std::future CreateDomainExtensionOutcomeCallable; + typedef std::function&)> CreateDomainExtensionAsyncHandler; typedef Outcome DescribeRuleAttributeOutcome; typedef std::future DescribeRuleAttributeOutcomeCallable; typedef std::function&)> DescribeRuleAttributeAsyncHandler; @@ -357,6 +419,9 @@ namespace AlibabaCloud typedef Outcome ModifyLoadBalancerInternetSpecOutcome; typedef std::future ModifyLoadBalancerInternetSpecOutcomeCallable; typedef std::function&)> ModifyLoadBalancerInternetSpecAsyncHandler; + typedef Outcome CreateAccessControlListOutcome; + typedef std::future CreateAccessControlListOutcomeCallable; + typedef std::function&)> CreateAccessControlListAsyncHandler; typedef Outcome DescribeLoadBalancerHTTPSListenerAttributeOutcome; typedef std::future DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler; @@ -386,6 +451,9 @@ namespace AlibabaCloud SlbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); SlbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~SlbClient(); + SetDomainExtensionAttributeOutcome setDomainExtensionAttribute(const Model::SetDomainExtensionAttributeRequest &request)const; + void setDomainExtensionAttributeAsync(const Model::SetDomainExtensionAttributeRequest& request, const SetDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainExtensionAttributeOutcomeCallable setDomainExtensionAttributeCallable(const Model::SetDomainExtensionAttributeRequest& request) const; CreateLoadBalancerUDPListenerOutcome createLoadBalancerUDPListener(const Model::CreateLoadBalancerUDPListenerRequest &request)const; void createLoadBalancerUDPListenerAsync(const Model::CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerUDPListenerOutcomeCallable createLoadBalancerUDPListenerCallable(const Model::CreateLoadBalancerUDPListenerRequest& request) const; @@ -434,6 +502,9 @@ namespace AlibabaCloud SetLoadBalancerHTTPListenerAttributeOutcome setLoadBalancerHTTPListenerAttribute(const Model::SetLoadBalancerHTTPListenerAttributeRequest &request)const; void setLoadBalancerHTTPListenerAttributeAsync(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request, const SetLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerHTTPListenerAttributeOutcomeCallable setLoadBalancerHTTPListenerAttributeCallable(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request) const; + DescribeDomainExtensionsOutcome describeDomainExtensions(const Model::DescribeDomainExtensionsRequest &request)const; + void describeDomainExtensionsAsync(const Model::DescribeDomainExtensionsRequest& request, const DescribeDomainExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainExtensionsOutcomeCallable describeDomainExtensionsCallable(const Model::DescribeDomainExtensionsRequest& request) const; SetLoadBalancerAutoReleaseTimeOutcome setLoadBalancerAutoReleaseTime(const Model::SetLoadBalancerAutoReleaseTimeRequest &request)const; void setLoadBalancerAutoReleaseTimeAsync(const Model::SetLoadBalancerAutoReleaseTimeRequest& request, const SetLoadBalancerAutoReleaseTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerAutoReleaseTimeOutcomeCallable setLoadBalancerAutoReleaseTimeCallable(const Model::SetLoadBalancerAutoReleaseTimeRequest& request) const; @@ -449,6 +520,9 @@ namespace AlibabaCloud SetLoadBalancerHTTPSListenerAttributeOutcome setLoadBalancerHTTPSListenerAttribute(const Model::SetLoadBalancerHTTPSListenerAttributeRequest &request)const; void setLoadBalancerHTTPSListenerAttributeAsync(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request, const SetLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerHTTPSListenerAttributeOutcomeCallable setLoadBalancerHTTPSListenerAttributeCallable(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request) const; + SetAutoRenewStatusOutcome setAutoRenewStatus(const Model::SetAutoRenewStatusRequest &request)const; + void setAutoRenewStatusAsync(const Model::SetAutoRenewStatusRequest& request, const SetAutoRenewStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAutoRenewStatusOutcomeCallable setAutoRenewStatusCallable(const Model::SetAutoRenewStatusRequest& request) const; DeleteLoadBalancerListenerOutcome deleteLoadBalancerListener(const Model::DeleteLoadBalancerListenerRequest &request)const; void deleteLoadBalancerListenerAsync(const Model::DeleteLoadBalancerListenerRequest& request, const DeleteLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLoadBalancerListenerOutcomeCallable deleteLoadBalancerListenerCallable(const Model::DeleteLoadBalancerListenerRequest& request) const; @@ -485,9 +559,15 @@ 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; + AddAccessControlListEntryOutcome addAccessControlListEntry(const Model::AddAccessControlListEntryRequest &request)const; + void addAccessControlListEntryAsync(const Model::AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAccessControlListEntryOutcomeCallable addAccessControlListEntryCallable(const Model::AddAccessControlListEntryRequest& request) const; ModifyVServerGroupBackendServersOutcome modifyVServerGroupBackendServers(const Model::ModifyVServerGroupBackendServersRequest &request)const; void modifyVServerGroupBackendServersAsync(const Model::ModifyVServerGroupBackendServersRequest& request, const ModifyVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVServerGroupBackendServersOutcomeCallable modifyVServerGroupBackendServersCallable(const Model::ModifyVServerGroupBackendServersRequest& request) const; + DescribeSlbQuotasOutcome describeSlbQuotas(const Model::DescribeSlbQuotasRequest &request)const; + void describeSlbQuotasAsync(const Model::DescribeSlbQuotasRequest& request, const DescribeSlbQuotasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlbQuotasOutcomeCallable describeSlbQuotasCallable(const Model::DescribeSlbQuotasRequest& request) const; DescribeLoadBalancerUDPListenerAttributeOutcome describeLoadBalancerUDPListenerAttribute(const Model::DescribeLoadBalancerUDPListenerAttributeRequest &request)const; void describeLoadBalancerUDPListenerAttributeAsync(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerUDPListenerAttributeOutcomeCallable describeLoadBalancerUDPListenerAttributeCallable(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request) const; @@ -506,6 +586,9 @@ namespace AlibabaCloud SetBackendServersOutcome setBackendServers(const Model::SetBackendServersRequest &request)const; void setBackendServersAsync(const Model::SetBackendServersRequest& request, const SetBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetBackendServersOutcomeCallable setBackendServersCallable(const Model::SetBackendServersRequest& request) const; + DeleteAccessControlListOutcome deleteAccessControlList(const Model::DeleteAccessControlListRequest &request)const; + void deleteAccessControlListAsync(const Model::DeleteAccessControlListRequest& request, const DeleteAccessControlListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessControlListOutcomeCallable deleteAccessControlListCallable(const Model::DeleteAccessControlListRequest& request) const; RemoveVServerGroupBackendServersOutcome removeVServerGroupBackendServers(const Model::RemoveVServerGroupBackendServersRequest &request)const; void removeVServerGroupBackendServersAsync(const Model::RemoveVServerGroupBackendServersRequest& request, const RemoveVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveVServerGroupBackendServersOutcomeCallable removeVServerGroupBackendServersCallable(const Model::RemoveVServerGroupBackendServersRequest& request) const; @@ -521,9 +604,21 @@ namespace AlibabaCloud DeleteCACertificateOutcome deleteCACertificate(const Model::DeleteCACertificateRequest &request)const; void deleteCACertificateAsync(const Model::DeleteCACertificateRequest& request, const DeleteCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCACertificateOutcomeCallable deleteCACertificateCallable(const Model::DeleteCACertificateRequest& request) const; + SetAccessControlListAttributeOutcome setAccessControlListAttribute(const Model::SetAccessControlListAttributeRequest &request)const; + void setAccessControlListAttributeAsync(const Model::SetAccessControlListAttributeRequest& request, const SetAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAccessControlListAttributeOutcomeCallable setAccessControlListAttributeCallable(const Model::SetAccessControlListAttributeRequest& request) const; CreateLoadBalancerTCPListenerOutcome createLoadBalancerTCPListener(const Model::CreateLoadBalancerTCPListenerRequest &request)const; void createLoadBalancerTCPListenerAsync(const Model::CreateLoadBalancerTCPListenerRequest& request, const CreateLoadBalancerTCPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerTCPListenerOutcomeCallable createLoadBalancerTCPListenerCallable(const Model::CreateLoadBalancerTCPListenerRequest& request) const; + DescribeAccessControlListAttributeOutcome describeAccessControlListAttribute(const Model::DescribeAccessControlListAttributeRequest &request)const; + void describeAccessControlListAttributeAsync(const Model::DescribeAccessControlListAttributeRequest& request, const DescribeAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessControlListAttributeOutcomeCallable describeAccessControlListAttributeCallable(const Model::DescribeAccessControlListAttributeRequest& request) const; + DescribeAccessControlListsOutcome describeAccessControlLists(const Model::DescribeAccessControlListsRequest &request)const; + void describeAccessControlListsAsync(const Model::DescribeAccessControlListsRequest& request, const DescribeAccessControlListsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessControlListsOutcomeCallable describeAccessControlListsCallable(const Model::DescribeAccessControlListsRequest& request) const; + DeleteDomainExtensionOutcome deleteDomainExtension(const Model::DeleteDomainExtensionRequest &request)const; + void deleteDomainExtensionAsync(const Model::DeleteDomainExtensionRequest& request, const DeleteDomainExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainExtensionOutcomeCallable deleteDomainExtensionCallable(const Model::DeleteDomainExtensionRequest& request) const; SetRuleOutcome setRule(const Model::SetRuleRequest &request)const; void setRuleAsync(const Model::SetRuleRequest& request, const SetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetRuleOutcomeCallable setRuleCallable(const Model::SetRuleRequest& request) const; @@ -551,6 +646,12 @@ namespace AlibabaCloud DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; + RemoveAccessControlListEntryOutcome removeAccessControlListEntry(const Model::RemoveAccessControlListEntryRequest &request)const; + void removeAccessControlListEntryAsync(const Model::RemoveAccessControlListEntryRequest& request, const RemoveAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAccessControlListEntryOutcomeCallable removeAccessControlListEntryCallable(const Model::RemoveAccessControlListEntryRequest& request) const; + CreateDomainExtensionOutcome createDomainExtension(const Model::CreateDomainExtensionRequest &request)const; + void createDomainExtensionAsync(const Model::CreateDomainExtensionRequest& request, const CreateDomainExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDomainExtensionOutcomeCallable createDomainExtensionCallable(const Model::CreateDomainExtensionRequest& request) const; DescribeRuleAttributeOutcome describeRuleAttribute(const Model::DescribeRuleAttributeRequest &request)const; void describeRuleAttributeAsync(const Model::DescribeRuleAttributeRequest& request, const DescribeRuleAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRuleAttributeOutcomeCallable describeRuleAttributeCallable(const Model::DescribeRuleAttributeRequest& request) const; @@ -572,6 +673,9 @@ namespace AlibabaCloud ModifyLoadBalancerInternetSpecOutcome modifyLoadBalancerInternetSpec(const Model::ModifyLoadBalancerInternetSpecRequest &request)const; void modifyLoadBalancerInternetSpecAsync(const Model::ModifyLoadBalancerInternetSpecRequest& request, const ModifyLoadBalancerInternetSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLoadBalancerInternetSpecOutcomeCallable modifyLoadBalancerInternetSpecCallable(const Model::ModifyLoadBalancerInternetSpecRequest& request) const; + CreateAccessControlListOutcome createAccessControlList(const Model::CreateAccessControlListRequest &request)const; + void createAccessControlListAsync(const Model::CreateAccessControlListRequest& request, const CreateAccessControlListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccessControlListOutcomeCallable createAccessControlListCallable(const Model::CreateAccessControlListRequest& request) const; DescribeLoadBalancerHTTPSListenerAttributeOutcome describeLoadBalancerHTTPSListenerAttribute(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest &request)const; void describeLoadBalancerHTTPSListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable describeLoadBalancerHTTPSListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request) const; diff --git a/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h new file mode 100644 index 000000000..faf199db5 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddAccessControlListEntryRequest : public RpcServiceRequest + { + + public: + AddAccessControlListEntryRequest(); + ~AddAccessControlListEntryRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAclEntrys()const; + void setAclEntrys(const std::string& aclEntrys); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string aclEntrys_; + long ownerId_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h new file mode 100644 index 000000000..16f09f755 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.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_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddAccessControlListEntryResult : public ServiceResult + { + public: + + + AddAccessControlListEntryResult(); + explicit AddAccessControlListEntryResult(const std::string &payload); + ~AddAccessControlListEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h index b512fe4db..ff42d17bf 100644 --- a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h @@ -32,24 +32,28 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT AddBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - std::string weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + std::string serverIp; + std::string weight; + }; AddBackendServersResult(); explicit AddBackendServersResult(const std::string &payload); ~AddBackendServersResult(); - std::string getLoadBalancerId()const; - std::vector getBackendServers()const; + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string loadBalancerId_; - std::vector backendServers_; + std::string loadBalancerId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h index 8f6d81873..c312a20c1 100644 --- a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h @@ -32,25 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT AddVServerGroupBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; AddVServerGroupBackendServersResult(); explicit AddVServerGroupBackendServersResult(const std::string &payload); ~AddVServerGroupBackendServersResult(); - std::string getVServerGroupId()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::vector backendServers_; + std::string vServerGroupId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h new file mode 100644 index 000000000..76b1a4056 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateAccessControlListRequest : public RpcServiceRequest + { + + public: + CreateAccessControlListRequest(); + ~CreateAccessControlListRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName()const; + void setAclName(const std::string& aclName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAddressIPVersion()const; + void setAddressIPVersion(const std::string& addressIPVersion); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclName_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string addressIPVersion_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h b/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h new file mode 100644 index 000000000..6662ddc12 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.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_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateAccessControlListResult : public ServiceResult + { + public: + + + CreateAccessControlListResult(); + explicit CreateAccessControlListResult(const std::string &payload); + ~CreateAccessControlListResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h b/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h new file mode 100644 index 000000000..05281a412 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateDomainExtensionRequest : public RpcServiceRequest + { + + public: + CreateDomainExtensionRequest(); + ~CreateDomainExtensionRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getListenerPort()const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomain()const; + void setDomain(const std::string& domain); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getServerCertificateId()const; + void setServerCertificateId(const std::string& serverCertificateId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + long resourceOwnerId_; + int listenerPort_; + std::string loadBalancerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string domain_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h b/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h new file mode 100644 index 000000000..b84f80250 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateDomainExtensionResult : public ServiceResult + { + public: + + + CreateDomainExtensionResult(); + explicit CreateDomainExtensionResult(const std::string &payload); + ~CreateDomainExtensionResult(); + int getListenerPort()const; + std::string getDomainExtensionId()const; + + protected: + void parse(const std::string &payload); + private: + int listenerPort_; + std::string domainExtensionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h index 516b744e9..80d3486dc 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h @@ -41,18 +41,28 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); int getHealthCheckTimeout()const; void setHealthCheckTimeout(int healthCheckTimeout); + std::string getListenerForward()const; + void setListenerForward(const std::string& listenerForward); std::string getXForwardedFor()const; void setXForwardedFor(const std::string& xForwardedFor); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getHealthCheck()const; void setHealthCheck(const std::string& healthCheck); + int getForwardPort()const; + void setForwardPort(int forwardPort); int getMaxConnection()const; void setMaxConnection(int maxConnection); std::string getRegionId()const; @@ -61,8 +71,12 @@ namespace AlibabaCloud void setCookieTimeout(int cookieTimeout); std::string getStickySessionType()const; void setStickySessionType(const std::string& stickySessionType); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getCookie()const; @@ -75,6 +89,8 @@ namespace AlibabaCloud void setStickySession(const std::string& stickySession); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); + int getRequestTimeout()const; + void setRequestTimeout(int requestTimeout); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getGzip()const; @@ -83,6 +99,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getTags()const; void setTags(const std::string& tags); + int getIdleTimeout()const; + void setIdleTimeout(int idleTimeout); std::string getLoadBalancerId()const; void setLoadBalancerId(const std::string& loadBalancerId); std::string getXForwardedFor_SLBIP()const; @@ -104,27 +122,36 @@ namespace AlibabaCloud std::string access_key_id_; long resourceOwnerId_; int healthCheckTimeout_; + std::string listenerForward_; std::string xForwardedFor_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string healthCheck_; + int forwardPort_; int maxConnection_; std::string regionId_; int cookieTimeout_; std::string stickySessionType_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string cookie_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; std::string healthCheckDomain_; + int requestTimeout_; std::string ownerAccount_; std::string gzip_; long ownerId_; std::string tags_; + int idleTimeout_; std::string loadBalancerId_; std::string xForwardedFor_SLBIP_; int backendServerPort_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h index 35be70fc1..4a53f67fe 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h @@ -45,24 +45,36 @@ namespace AlibabaCloud void setXForwardedFor(const std::string& xForwardedFor); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getHealthCheck()const; void setHealthCheck(const std::string& healthCheck); int getMaxConnection()const; void setMaxConnection(int maxConnection); + std::string getEnableHttp2()const; + void setEnableHttp2(const std::string& enableHttp2); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getCookieTimeout()const; void setCookieTimeout(int cookieTimeout); std::string getStickySessionType()const; void setStickySessionType(const std::string& stickySessionType); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getCookie()const; @@ -75,10 +87,14 @@ namespace AlibabaCloud void setStickySession(const std::string& stickySession); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); + int getRequestTimeout()const; + void setRequestTimeout(int requestTimeout); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getGzip()const; void setGzip(const std::string& gzip); + std::string getTLSCipherPolicy()const; + void setTLSCipherPolicy(const std::string& tLSCipherPolicy); long getOwnerId()const; void setOwnerId(long ownerId); std::string getServerCertificateId()const; @@ -87,6 +103,8 @@ namespace AlibabaCloud void setCACertificateId(const std::string& cACertificateId); std::string getTags()const; void setTags(const std::string& tags); + int getIdleTimeout()const; + void setIdleTimeout(int idleTimeout); std::string getLoadBalancerId()const; void setLoadBalancerId(const std::string& loadBalancerId); std::string getXForwardedFor_SLBIP()const; @@ -110,27 +128,36 @@ namespace AlibabaCloud int healthCheckTimeout_; std::string xForwardedFor_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string healthCheck_; int maxConnection_; + std::string enableHttp2_; std::string regionId_; int cookieTimeout_; std::string stickySessionType_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string cookie_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; std::string healthCheckDomain_; + int requestTimeout_; std::string ownerAccount_; std::string gzip_; + std::string tLSCipherPolicy_; long ownerId_; std::string serverCertificateId_; std::string cACertificateId_; std::string tags_; + int idleTimeout_; std::string loadBalancerId_; std::string xForwardedFor_SLBIP_; int backendServerPort_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h index 4aaf308c5..4d575bf1c 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h @@ -37,46 +37,48 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); - std::string getLoadBalancerSpec()const; - void setLoadBalancerSpec(const std::string& loadBalancerSpec); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getBandwidth()const; - void setBandwidth(int bandwidth); std::string getClientToken()const; void setClientToken(const std::string& clientToken); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); + std::string getAddressIPVersion()const; + void setAddressIPVersion(const std::string& addressIPVersion); std::string getMasterZoneId()const; void setMasterZoneId(const std::string& masterZoneId); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); int getDuration()const; void setDuration(int duration); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getLoadBalancerName()const; void setLoadBalancerName(const std::string& loadBalancerName); - std::string getEnableVpcVipFlow()const; - void setEnableVpcVipFlow(const std::string& enableVpcVipFlow); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); std::string getAddressType()const; void setAddressType(const std::string& addressType); std::string getSlaveZoneId()const; void setSlaveZoneId(const std::string& slaveZoneId); + std::string getLoadBalancerSpec()const; + void setLoadBalancerSpec(const std::string& loadBalancerSpec); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getEnableVpcVipFlow()const; + void setEnableVpcVipFlow(const std::string& enableVpcVipFlow); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); std::string getPayType()const; void setPayType(const std::string& payType); std::string getPricingCycle()const; @@ -84,26 +86,27 @@ namespace AlibabaCloud private: std::string access_key_id_; - std::string loadBalancerSpec_; long resourceOwnerId_; - bool autoPay_; - std::string resourceOwnerAccount_; - int bandwidth_; std::string clientToken_; - std::string ownerAccount_; - long ownerId_; + std::string addressIPVersion_; std::string masterZoneId_; - std::string tags_; - std::string vSwitchId_; int duration_; std::string resourceGroupId_; std::string loadBalancerName_; - std::string enableVpcVipFlow_; std::string regionId_; - std::string internetChargeType_; - std::string vpcId_; std::string addressType_; std::string slaveZoneId_; + std::string loadBalancerSpec_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string vSwitchId_; + std::string enableVpcVipFlow_; + std::string internetChargeType_; + std::string vpcId_; std::string payType_; std::string pricingCycle_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h index 550dc6dda..8a9199eaf 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h @@ -37,26 +37,28 @@ namespace AlibabaCloud CreateLoadBalancerResult(); explicit CreateLoadBalancerResult(const std::string &payload); ~CreateLoadBalancerResult(); - std::string getLoadBalancerName()const; - std::string getResourceGroupId()const; - std::string getAddress()const; - std::string getVpcId()const; - std::string getNetworkType()const; - std::string getVSwitchId()const; - std::string getLoadBalancerId()const; - long getOrderId()const; + std::string getLoadBalancerName()const; + std::string getResourceGroupId()const; + std::string getAddress()const; + std::string getVpcId()const; + std::string getNetworkType()const; + std::string getVSwitchId()const; + std::string getAddressIPVersion()const; + std::string getLoadBalancerId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: - std::string loadBalancerName_; - std::string resourceGroupId_; - std::string address_; - std::string vpcId_; - std::string networkType_; - std::string vSwitchId_; - std::string loadBalancerId_; - long orderId_; + std::string loadBalancerName_; + std::string resourceGroupId_; + std::string address_; + std::string vpcId_; + std::string networkType_; + std::string vSwitchId_; + std::string addressIPVersion_; + std::string loadBalancerId_; + long orderId_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h index 0d4db1eb0..44493863f 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h @@ -43,12 +43,18 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); int getEstablishedTimeout()const; void setEstablishedTimeout(int establishedTimeout); int getMaxConnection()const; @@ -57,8 +63,12 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); int getPersistenceTimeout()const; void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getHealthCheckType()const; @@ -93,14 +103,19 @@ namespace AlibabaCloud int healthCheckConnectTimeout_; long resourceOwnerId_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; int establishedTimeout_; int maxConnection_; std::string regionId_; int persistenceTimeout_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string healthCheckType_; std::string resourceOwnerAccount_; diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h index 3307a1002..03032593b 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h @@ -37,12 +37,34 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); - std::string getVServerGroupId()const; - void setVServerGroupId(const std::string& vServerGroupId); int getHealthCheckConnectTimeout()const; void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getDescription()const; + void setDescription(const std::string& description); + int getUnhealthyThreshold()const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold()const; + void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); + std::string getScheduler()const; + void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); + int getMaxConnection()const; + void setMaxConnection(int maxConnection); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPersistenceTimeout()const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); + std::string getVServerGroupId()const; + void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getResourceOwnerAccount()const; @@ -51,32 +73,20 @@ namespace AlibabaCloud void setBandwidth(int bandwidth); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); - int getUnhealthyThreshold()const; - void setUnhealthyThreshold(int unhealthyThreshold); long getOwnerId()const; void setOwnerId(long ownerId); - int getHealthyThreshold()const; - void setHealthyThreshold(int healthyThreshold); std::string getTags()const; void setTags(const std::string& tags); - std::string getScheduler()const; - void setScheduler(const std::string& scheduler); std::string getLoadBalancerId()const; void setLoadBalancerId(const std::string& loadBalancerId); - int getMaxConnection()const; - void setMaxConnection(int maxConnection); std::string getMasterSlaveServerGroupId()const; void setMasterSlaveServerGroupId(const std::string& masterSlaveServerGroupId); std::string getHealthCheckReq()const; void setHealthCheckReq(const std::string& healthCheckReq); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); int getBackendServerPort()const; void setBackendServerPort(int backendServerPort); int getHealthCheckInterval()const; void setHealthCheckInterval(int healthCheckInterval); - int getPersistenceTimeout()const; - void setPersistenceTimeout(int persistenceTimeout); std::string getHealthCheckExp()const; void setHealthCheckExp(const std::string& healthCheckExp); int getHealthCheckConnectPort()const; @@ -84,26 +94,31 @@ namespace AlibabaCloud private: std::string access_key_id_; - std::string vServerGroupId_; int healthCheckConnectTimeout_; long resourceOwnerId_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string aclStatus_; + std::string scheduler_; + std::string aclType_; + int maxConnection_; + std::string regionId_; + int persistenceTimeout_; + std::string vpcIds_; + std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string resourceOwnerAccount_; int bandwidth_; std::string ownerAccount_; - int unhealthyThreshold_; long ownerId_; - int healthyThreshold_; std::string tags_; - std::string scheduler_; std::string loadBalancerId_; - int maxConnection_; std::string masterSlaveServerGroupId_; std::string healthCheckReq_; - std::string regionId_; int backendServerPort_; int healthCheckInterval_; - int persistenceTimeout_; std::string healthCheckExp_; int healthCheckConnectPort_; diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h index 5f9b3184a..64eeb3638 100644 --- a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h @@ -32,26 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT CreateMasterSlaveServerGroupResult : public ServiceResult { public: - struct MasterSlaveBackendServer - { - std::string serverType; - std::string serverId; - int port; - int weight; - }; + struct MasterSlaveBackendServer + { + std::string serverType; + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; CreateMasterSlaveServerGroupResult(); explicit CreateMasterSlaveServerGroupResult(const std::string &payload); ~CreateMasterSlaveServerGroupResult(); - std::string getMasterSlaveServerGroupId()const; - std::vector getMasterSlaveBackendServers()const; + std::string getMasterSlaveServerGroupId()const; + std::vector getMasterSlaveBackendServers()const; protected: void parse(const std::string &payload); private: - std::string masterSlaveServerGroupId_; - std::vector masterSlaveBackendServers_; + std::string masterSlaveServerGroupId_; + std::vector masterSlaveBackendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h index 0e17bef0c..a4604ec32 100644 --- a/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveVServerGroupResult.h @@ -32,26 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT CreateMasterSlaveVServerGroupResult : public ServiceResult { public: - struct MasterSlaveBackendServer - { - std::string serverId; - int port; - int isBackup; - int weight; - }; + struct MasterSlaveBackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int isBackup; + int weight; + }; CreateMasterSlaveVServerGroupResult(); explicit CreateMasterSlaveVServerGroupResult(const std::string &payload); ~CreateMasterSlaveVServerGroupResult(); - std::string getMasterSlaveVServerGroupId()const; - std::vector getMasterSlaveBackendServers()const; + std::string getMasterSlaveVServerGroupId()const; + std::vector getMasterSlaveBackendServers()const; protected: void parse(const std::string &payload); private: - std::string masterSlaveVServerGroupId_; - std::vector masterSlaveBackendServers_; + std::string masterSlaveVServerGroupId_; + std::vector masterSlaveBackendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateRulesResult.h b/slb/include/alibabacloud/slb/model/CreateRulesResult.h index 0b401e1c5..460701096 100644 --- a/slb/include/alibabacloud/slb/model/CreateRulesResult.h +++ b/slb/include/alibabacloud/slb/model/CreateRulesResult.h @@ -32,22 +32,22 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT CreateRulesResult : public ServiceResult { public: - struct Rule - { - std::string ruleId; - std::string ruleName; - }; + struct Rule + { + std::string ruleId; + std::string ruleName; + }; CreateRulesResult(); explicit CreateRulesResult(const std::string &payload); ~CreateRulesResult(); - std::vector getRules()const; + std::vector getRules()const; protected: void parse(const std::string &payload); private: - std::vector rules_; + std::vector rules_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h index d062af799..763d6fac8 100644 --- a/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h +++ b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h @@ -32,25 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT CreateVServerGroupResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; CreateVServerGroupResult(); explicit CreateVServerGroupResult(const std::string &payload); ~CreateVServerGroupResult(); - std::string getVServerGroupId()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::vector backendServers_; + std::string vServerGroupId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h b/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h new file mode 100644 index 000000000..232f86314 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteAccessControlListRequest : public RpcServiceRequest + { + + public: + DeleteAccessControlListRequest(); + ~DeleteAccessControlListRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h b/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h new file mode 100644 index 000000000..0ad254091 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.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_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteAccessControlListResult : public ServiceResult + { + public: + + + DeleteAccessControlListResult(); + explicit DeleteAccessControlListResult(const std::string &payload); + ~DeleteAccessControlListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h new file mode 100644 index 000000000..6596d9910 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteDomainExtensionRequest : public RpcServiceRequest + { + + public: + DeleteDomainExtensionRequest(); + ~DeleteDomainExtensionRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getDomainExtensionId()const; + void setDomainExtensionId(const std::string& domainExtensionId); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string domainExtensionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h new file mode 100644 index 000000000..d09fb2da8 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.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_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteDomainExtensionResult : public ServiceResult + { + public: + + + DeleteDomainExtensionResult(); + explicit DeleteDomainExtensionResult(const std::string &payload); + ~DeleteDomainExtensionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h new file mode 100644 index 000000000..37327d9cd --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListAttributeRequest : public RpcServiceRequest + { + + public: + DescribeAccessControlListAttributeRequest(); + ~DescribeAccessControlListAttributeRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAclEntryComment()const; + void setAclEntryComment(const std::string& aclEntryComment); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string aclEntryComment_; + long ownerId_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h new file mode 100644 index 000000000..8cabf476b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListAttributeResult : public ServiceResult + { + public: + struct AclEntry + { + std::string aclEntryComment; + std::string aclEntryIP; + }; + struct RelatedListener + { + int listenerPort; + std::string loadBalancerId; + std::string aclType; + std::string protocol; + }; + + + DescribeAccessControlListAttributeResult(); + explicit DescribeAccessControlListAttributeResult(const std::string &payload); + ~DescribeAccessControlListAttributeResult(); + std::vector getAclEntrys()const; + std::string getAclId()const; + std::string getAddressIPVersion()const; + std::vector getRelatedListeners()const; + std::string getAclName()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclEntrys_; + std::string aclId_; + std::string addressIPVersion_; + std::vector relatedListeners_; + std::string aclName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h new file mode 100644 index 000000000..53ccbaf2c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListsRequest : public RpcServiceRequest + { + + public: + DescribeAccessControlListsRequest(); + ~DescribeAccessControlListsRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName()const; + void setAclName(const std::string& aclName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAddressIPVersion()const; + void setAddressIPVersion(const std::string& addressIPVersion); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string addressIPVersion_; + int pageNumber_; + std::string accessKeyId_; + std::string tags_; + std::string regionId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h new file mode 100644 index 000000000..e48716e34 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListsResult : public ServiceResult + { + public: + struct Acl + { + std::string aclId; + std::string addressIPVersion; + std::string aclName; + }; + + + DescribeAccessControlListsResult(); + explicit DescribeAccessControlListsResult(const std::string &payload); + ~DescribeAccessControlListsResult(); + std::vector getAcls()const; + + protected: + void parse(const std::string &payload); + private: + std::vector acls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h index 509e00b0e..88cfc42ad 100644 --- a/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h @@ -32,27 +32,30 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeCACertificatesResult : public ServiceResult { public: - struct CACertificate - { - std::string fingerprint; - std::string resourceGroupId; - std::string cACertificateId; - std::string createTime; - std::string cACertificateName; - std::string regionId; - long createTimeStamp; - }; + struct CACertificate + { + std::string fingerprint; + std::string resourceGroupId; + long expireTimeStamp; + std::string cACertificateId; + std::string createTime; + std::string cACertificateName; + std::string regionId; + std::string expireTime; + long createTimeStamp; + std::string commonName; + }; DescribeCACertificatesResult(); explicit DescribeCACertificatesResult(const std::string &payload); ~DescribeCACertificatesResult(); - std::vector getCACertificates()const; + std::vector getCACertificates()const; protected: void parse(const std::string &payload); private: - std::vector cACertificates_; + std::vector cACertificates_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h new file mode 100644 index 000000000..8a1c61404 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionsRequest : public RpcServiceRequest + { + + public: + DescribeDomainExtensionsRequest(); + ~DescribeDomainExtensionsRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getListenerPort()const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getDomainExtensionId()const; + void setDomainExtensionId(const std::string& domainExtensionId); + + private: + std::string access_key_id_; + long resourceOwnerId_; + int listenerPort_; + std::string loadBalancerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string domainExtensionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h new file mode 100644 index 000000000..d782f4002 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionsResult : public ServiceResult + { + public: + struct DomainExtension + { + std::string domainExtensionId; + std::string serverCertificateId; + std::string domain; + }; + + + DescribeDomainExtensionsResult(); + explicit DescribeDomainExtensionsResult(const std::string &payload); + ~DescribeDomainExtensionsResult(); + std::vector getDomainExtensions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector domainExtensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h index 4865f185c..66639ae40 100644 --- a/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h @@ -32,24 +32,27 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeHealthStatusResult : public ServiceResult { public: - struct BackendServer - { - int listenerPort; - std::string serverId; - int port; - std::string serverHealthStatus; - }; + struct BackendServer + { + int listenerPort; + std::string type; + std::string serverId; + std::string eniHost; + int port; + std::string serverIp; + std::string serverHealthStatus; + }; DescribeHealthStatusResult(); explicit DescribeHealthStatusResult(const std::string &payload); ~DescribeHealthStatusResult(); - std::vector getBackendServers()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::vector backendServers_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h index 53ec7bcb1..3eef3bf8c 100644 --- a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h @@ -37,14 +37,14 @@ namespace AlibabaCloud DescribeListenerAccessControlAttributeResult(); explicit DescribeListenerAccessControlAttributeResult(const std::string &payload); ~DescribeListenerAccessControlAttributeResult(); - std::string getAccessControlStatus()const; - std::string getSourceItems()const; + std::string getAccessControlStatus()const; + std::string getSourceItems()const; protected: void parse(const std::string &payload); private: - std::string accessControlStatus_; - std::string sourceItems_; + std::string accessControlStatus_; + std::string sourceItems_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h index 34ef1f8fa..9fa43997c 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h @@ -32,82 +32,98 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerAttributeResult : public ServiceResult { public: - struct ListenerPortAndProtocal - { - int listenerPort; - std::string listenerProtocal; - }; - struct ListenerPortAndProtocol - { - int listenerPort; - std::string listenerProtocol; - }; - struct BackendServer - { - std::string serverId; - int weight; - }; + struct ListenerPortAndProtocal + { + int listenerPort; + std::string listenerProtocal; + }; + struct ListenerPortAndProtocol + { + std::string listenerForward; + int listenerPort; + int forwardPort; + std::string listenerProtocol; + }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + std::string serverIp; + int weight; + }; DescribeLoadBalancerAttributeResult(); explicit DescribeLoadBalancerAttributeResult(const std::string &payload); ~DescribeLoadBalancerAttributeResult(); - std::vector getListenerPortsAndProtocal()const; - std::string getResourceGroupId()const; - std::string getAddress()const; - std::string getEndTime()const; - std::vector getListenerPortsAndProtocol()const; - std::string getLoadBalancerId()const; - std::vector getBackendServers()const; - std::string getLoadBalancerSpec()const; - std::string getNetworkType()const; - int getBandwidth()const; - std::vector getListenerPorts()const; - std::string getMasterZoneId()const; - std::string getVSwitchId()const; - std::string getCreateTime()const; - std::string getPayType()const; - std::string getSlaveZoneId()const; - std::string getInternetChargeType()const; - std::string getRegionIdAlias()const; - std::string getLoadBalancerName()const; - std::string getVpcId()const; - long getEndTimeStamp()const; - std::string getRegionId()const; - std::string getAddressType()const; - std::string getLoadBalancerStatus()const; - long getCreateTimeStamp()const; - long getAutoReleaseTime()const; + int getRenewalDuration()const; + std::vector getListenerPortsAndProtocal()const; + std::string getResourceGroupId()const; + std::string getAddress()const; + std::string getEndTime()const; + std::string getAddressIPVersion()const; + std::vector getListenerPortsAndProtocol()const; + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; + std::string getLoadBalancerSpec()const; + std::string getNetworkType()const; + int getBandwidth()const; + std::vector getListenerPorts()const; + std::string getMasterZoneId()const; + std::string getCloudType()const; + std::string getVSwitchId()const; + std::string getCreateTime()const; + std::string getRenewalStatus()const; + std::string getRenewalCycUnit()const; + std::string getPayType()const; + std::string getSlaveZoneId()const; + std::string getInternetChargeType()const; + std::string getRegionIdAlias()const; + std::string getLoadBalancerName()const; + std::string getVpcId()const; + long getEndTimeStamp()const; + std::string getRegionId()const; + std::string getAddressType()const; + std::string getLoadBalancerStatus()const; + long getCreateTimeStamp()const; + long getAutoReleaseTime()const; protected: void parse(const std::string &payload); private: - std::vector listenerPortsAndProtocal_; - std::string resourceGroupId_; - std::string address_; - std::string endTime_; - std::vector listenerPortsAndProtocol_; - std::string loadBalancerId_; - std::vector backendServers_; - std::string loadBalancerSpec_; - std::string networkType_; - int bandwidth_; - std::vector listenerPorts_; - std::string masterZoneId_; - std::string vSwitchId_; - std::string createTime_; - std::string payType_; - std::string slaveZoneId_; - std::string internetChargeType_; - std::string regionIdAlias_; - std::string loadBalancerName_; - std::string vpcId_; - long endTimeStamp_; - std::string regionId_; - std::string addressType_; - std::string loadBalancerStatus_; - long createTimeStamp_; - long autoReleaseTime_; + int renewalDuration_; + std::vector listenerPortsAndProtocal_; + std::string resourceGroupId_; + std::string address_; + std::string endTime_; + std::string addressIPVersion_; + std::vector listenerPortsAndProtocol_; + std::string loadBalancerId_; + std::vector backendServers_; + std::string loadBalancerSpec_; + std::string networkType_; + int bandwidth_; + std::vector listenerPorts_; + std::string masterZoneId_; + std::string cloudType_; + std::string vSwitchId_; + std::string createTime_; + std::string renewalStatus_; + std::string renewalCycUnit_; + std::string payType_; + std::string slaveZoneId_; + std::string internetChargeType_; + std::string regionIdAlias_; + std::string loadBalancerName_; + std::string vpcId_; + long endTimeStamp_; + std::string regionId_; + std::string addressType_; + std::string loadBalancerStatus_; + long createTimeStamp_; + long autoReleaseTime_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAutoReleaseTimeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAutoReleaseTimeResult.h index 799d59989..59c8c438b 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAutoReleaseTimeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAutoReleaseTimeResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud DescribeLoadBalancerAutoReleaseTimeResult(); explicit DescribeLoadBalancerAutoReleaseTimeResult(const std::string &payload); ~DescribeLoadBalancerAutoReleaseTimeResult(); - long getAutoReleaseTime()const; + long getAutoReleaseTime()const; protected: void parse(const std::string &payload); private: - long autoReleaseTime_; + long autoReleaseTime_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h index 486db74d9..90675e397 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h @@ -32,67 +32,95 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerHTTPListenerAttributeResult : public ServiceResult { public: + struct Rule + { + std::string vServerGroupId; + std::string ruleId; + std::string domain; + std::string ruleName; + std::string url; + }; DescribeLoadBalancerHTTPListenerAttributeResult(); explicit DescribeLoadBalancerHTTPListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerHTTPListenerAttributeResult(); - int getCookieTimeout()const; - int getMaxConnection()const; - std::string getVServerGroupId()const; - int getUnhealthyThreshold()const; - std::string getScheduler()const; - std::string getHealthCheckURI()const; - std::string getHealthCheck()const; - int getBackendServerPort()const; - std::string getXForwardedFor_SLBID()const; - int getHealthCheckConnectPort()const; - int getBandwidth()const; - std::string getSecurityStatus()const; - std::string getGzip()const; - std::string getStickySessionType()const; - std::string getXForwardedFor_SLBIP()const; - std::string getHealthCheckHttpCode()const; - std::string getStatus()const; - std::string getCookie()const; - int getListenerPort()const; - int getHealthCheckInterval()const; - int getHealthCheckTimeout()const; - std::string getStickySession()const; - int getHealthyThreshold()const; - std::string getXForwardedFor()const; - std::string getHealthCheckDomain()const; - std::string getXForwardedFor_proto()const; + int getCookieTimeout()const; + int getMaxConnection()const; + std::string getVServerGroupId()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + int getIdleTimeout()const; + int getBackendServerPort()const; + std::string getXForwardedFor_SLBID()const; + int getHealthCheckConnectPort()const; + int getBandwidth()const; + std::string getSecurityStatus()const; + std::string getGzip()const; + std::string getStickySessionType()const; + std::string getXForwardedFor_SLBIP()const; + std::string getHealthCheckHttpCode()const; + std::string getStatus()const; + std::string getCookie()const; + int getListenerPort()const; + int getRequestTimeout()const; + int getHealthCheckInterval()const; + std::string getAclId()const; + int getHealthCheckTimeout()const; + std::vector getRules()const; + std::string getListenerForward()const; + std::string getStickySession()const; + std::string getAclStatus()const; + int getForwardPort()const; + std::string getVpcIds()const; + int getHealthyThreshold()const; + std::string getXForwardedFor()const; + std::string getHealthCheckDomain()const; + std::string getXForwardedFor_proto()const; + std::string getAclType()const; protected: void parse(const std::string &payload); private: - int cookieTimeout_; - int maxConnection_; - std::string vServerGroupId_; - int unhealthyThreshold_; - std::string scheduler_; - std::string healthCheckURI_; - std::string healthCheck_; - int backendServerPort_; - std::string xForwardedFor_SLBID_; - int healthCheckConnectPort_; - int bandwidth_; - std::string securityStatus_; - std::string gzip_; - std::string stickySessionType_; - std::string xForwardedFor_SLBIP_; - std::string healthCheckHttpCode_; - std::string status_; - std::string cookie_; - int listenerPort_; - int healthCheckInterval_; - int healthCheckTimeout_; - std::string stickySession_; - int healthyThreshold_; - std::string xForwardedFor_; - std::string healthCheckDomain_; - std::string xForwardedFor_proto_; + int cookieTimeout_; + int maxConnection_; + std::string vServerGroupId_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + int idleTimeout_; + int backendServerPort_; + std::string xForwardedFor_SLBID_; + int healthCheckConnectPort_; + int bandwidth_; + std::string securityStatus_; + std::string gzip_; + std::string stickySessionType_; + std::string xForwardedFor_SLBIP_; + std::string healthCheckHttpCode_; + std::string status_; + std::string cookie_; + int listenerPort_; + int requestTimeout_; + int healthCheckInterval_; + std::string aclId_; + int healthCheckTimeout_; + std::vector rules_; + std::string listenerForward_; + std::string stickySession_; + std::string aclStatus_; + int forwardPort_; + std::string vpcIds_; + int healthyThreshold_; + std::string xForwardedFor_; + std::string healthCheckDomain_; + std::string xForwardedFor_proto_; + std::string aclType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h index cf62a599b..d9ec4fbd2 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h @@ -32,71 +32,107 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerHTTPSListenerAttributeResult : public ServiceResult { public: + struct Rule + { + std::string vServerGroupId; + std::string ruleId; + std::string domain; + std::string ruleName; + std::string url; + }; + struct DomainExtension + { + std::string domainExtensionId; + std::string serverCertificateId; + std::string domain; + }; DescribeLoadBalancerHTTPSListenerAttributeResult(); explicit DescribeLoadBalancerHTTPSListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerHTTPSListenerAttributeResult(); - int getCookieTimeout()const; - int getMaxConnection()const; - std::string getVServerGroupId()const; - int getUnhealthyThreshold()const; - std::string getScheduler()const; - std::string getHealthCheckURI()const; - std::string getHealthCheck()const; - int getBackendServerPort()const; - std::string getXForwardedFor_SLBID()const; - int getHealthCheckConnectPort()const; - int getBandwidth()const; - std::string getSecurityStatus()const; - std::string getGzip()const; - std::string getServerCertificateId()const; - std::string getStickySessionType()const; - std::string getXForwardedFor_SLBIP()const; - std::string getHealthCheckHttpCode()const; - std::string getStatus()const; - std::string getCookie()const; - int getListenerPort()const; - int getHealthCheckInterval()const; - std::string getCACertificateId()const; - int getHealthCheckTimeout()const; - std::string getStickySession()const; - int getHealthyThreshold()const; - std::string getXForwardedFor()const; - std::string getHealthCheckDomain()const; - std::string getXForwardedFor_proto()const; + int getCookieTimeout()const; + int getMaxConnection()const; + std::string getVServerGroupId()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::vector getDomainExtensions()const; + std::string getHealthCheck()const; + int getIdleTimeout()const; + int getBackendServerPort()const; + std::string getXForwardedFor_SLBID()const; + int getHealthCheckConnectPort()const; + int getBandwidth()const; + std::string getSecurityStatus()const; + std::string getGzip()const; + std::string getServerCertificateId()const; + std::string getStickySessionType()const; + std::string getXForwardedFor_SLBIP()const; + std::string getHealthCheckHttpCode()const; + std::string getStatus()const; + std::string getCookie()const; + int getListenerPort()const; + int getRequestTimeout()const; + int getHealthCheckInterval()const; + std::string getTLSCipherPolicy()const; + std::string getCACertificateId()const; + std::string getAclId()const; + int getHealthCheckTimeout()const; + std::vector getRules()const; + std::string getStickySession()const; + std::string getAclStatus()const; + std::string getVpcIds()const; + int getHealthyThreshold()const; + std::string getXForwardedFor()const; + std::string getHealthCheckDomain()const; + std::string getXForwardedFor_proto()const; + std::string getAclType()const; + std::string getEnableHttp2()const; protected: void parse(const std::string &payload); private: - int cookieTimeout_; - int maxConnection_; - std::string vServerGroupId_; - int unhealthyThreshold_; - std::string scheduler_; - std::string healthCheckURI_; - std::string healthCheck_; - int backendServerPort_; - std::string xForwardedFor_SLBID_; - int healthCheckConnectPort_; - int bandwidth_; - std::string securityStatus_; - std::string gzip_; - std::string serverCertificateId_; - std::string stickySessionType_; - std::string xForwardedFor_SLBIP_; - std::string healthCheckHttpCode_; - std::string status_; - std::string cookie_; - int listenerPort_; - int healthCheckInterval_; - std::string cACertificateId_; - int healthCheckTimeout_; - std::string stickySession_; - int healthyThreshold_; - std::string xForwardedFor_; - std::string healthCheckDomain_; - std::string xForwardedFor_proto_; + int cookieTimeout_; + int maxConnection_; + std::string vServerGroupId_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::vector domainExtensions_; + std::string healthCheck_; + int idleTimeout_; + int backendServerPort_; + std::string xForwardedFor_SLBID_; + int healthCheckConnectPort_; + int bandwidth_; + std::string securityStatus_; + std::string gzip_; + std::string serverCertificateId_; + std::string stickySessionType_; + std::string xForwardedFor_SLBIP_; + std::string healthCheckHttpCode_; + std::string status_; + std::string cookie_; + int listenerPort_; + int requestTimeout_; + int healthCheckInterval_; + std::string tLSCipherPolicy_; + std::string cACertificateId_; + std::string aclId_; + int healthCheckTimeout_; + std::vector rules_; + std::string stickySession_; + std::string aclStatus_; + std::string vpcIds_; + int healthyThreshold_; + std::string xForwardedFor_; + std::string healthCheckDomain_; + std::string xForwardedFor_proto_; + std::string aclType_; + std::string enableHttp2_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h index dba62e607..8eb4f2fb8 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h @@ -37,52 +37,62 @@ namespace AlibabaCloud DescribeLoadBalancerTCPListenerAttributeResult(); explicit DescribeLoadBalancerTCPListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerTCPListenerAttributeResult(); - std::string getStatus()const; - int getMaxConnection()const; - int getListenerPort()const; - std::string getVServerGroupId()const; - std::string getSynProxy()const; - int getHealthCheckInterval()const; - int getUnhealthyThreshold()const; - std::string getScheduler()const; - std::string getHealthCheckURI()const; - std::string getHealthCheck()const; - int getHealthCheckConnectTimeout()const; - int getBackendServerPort()const; - int getPersistenceTimeout()const; - int getHealthCheckConnectPort()const; - int getBandwidth()const; - int getHealthyThreshold()const; - std::string getHealthCheckDomain()const; - std::string getMasterSlaveServerGroupId()const; - std::string getHealthCheckHttpCode()const; - std::string getHealthCheckType()const; - int getEstablishedTimeout()const; + int getMaxConnection()const; + std::string getVServerGroupId()const; + std::string getSynProxy()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + int getBackendServerPort()const; + int getPersistenceTimeout()const; + int getHealthCheckConnectPort()const; + int getBandwidth()const; + std::string getHealthCheckHttpCode()const; + int getEstablishedTimeout()const; + std::string getStatus()const; + int getListenerPort()const; + int getHealthCheckInterval()const; + std::string getAclId()const; + int getHealthCheckConnectTimeout()const; + std::string getAclStatus()const; + std::string getVpcIds()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getMasterSlaveServerGroupId()const; + std::string getAclType()const; + std::string getHealthCheckType()const; protected: void parse(const std::string &payload); private: - std::string status_; - int maxConnection_; - int listenerPort_; - std::string vServerGroupId_; - std::string synProxy_; - int healthCheckInterval_; - int unhealthyThreshold_; - std::string scheduler_; - std::string healthCheckURI_; - std::string healthCheck_; - int healthCheckConnectTimeout_; - int backendServerPort_; - int persistenceTimeout_; - int healthCheckConnectPort_; - int bandwidth_; - int healthyThreshold_; - std::string healthCheckDomain_; - std::string masterSlaveServerGroupId_; - std::string healthCheckHttpCode_; - std::string healthCheckType_; - int establishedTimeout_; + int maxConnection_; + std::string vServerGroupId_; + std::string synProxy_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + int backendServerPort_; + int persistenceTimeout_; + int healthCheckConnectPort_; + int bandwidth_; + std::string healthCheckHttpCode_; + int establishedTimeout_; + std::string status_; + int listenerPort_; + int healthCheckInterval_; + std::string aclId_; + int healthCheckConnectTimeout_; + std::string aclStatus_; + std::string vpcIds_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string masterSlaveServerGroupId_; + std::string aclType_; + std::string healthCheckType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h index adcb6b18a..7f2f56f18 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h @@ -37,44 +37,54 @@ namespace AlibabaCloud DescribeLoadBalancerUDPListenerAttributeResult(); explicit DescribeLoadBalancerUDPListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerUDPListenerAttributeResult(); - std::string getStatus()const; - int getMaxConnection()const; - int getListenerPort()const; - std::string getVServerGroupId()const; - int getHealthCheckInterval()const; - int getUnhealthyThreshold()const; - std::string getScheduler()const; - std::string getHealthCheck()const; - int getHealthCheckConnectTimeout()const; - int getBackendServerPort()const; - int getPersistenceTimeout()const; - int getHealthCheckConnectPort()const; - std::string getHealthCheckReq()const; - int getBandwidth()const; - int getHealthyThreshold()const; - std::string getHealthCheckExp()const; - std::string getMasterSlaveServerGroupId()const; + std::string getStatus()const; + int getMaxConnection()const; + int getListenerPort()const; + std::string getVServerGroupId()const; + int getHealthCheckInterval()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getAclId()const; + std::string getHealthCheck()const; + int getHealthCheckConnectTimeout()const; + int getBackendServerPort()const; + int getPersistenceTimeout()const; + int getHealthCheckConnectPort()const; + std::string getHealthCheckReq()const; + std::string getAclStatus()const; + std::string getVpcIds()const; + int getBandwidth()const; + int getHealthyThreshold()const; + std::string getHealthCheckExp()const; + std::string getMasterSlaveServerGroupId()const; + std::string getAclType()const; protected: void parse(const std::string &payload); private: - std::string status_; - int maxConnection_; - int listenerPort_; - std::string vServerGroupId_; - int healthCheckInterval_; - int unhealthyThreshold_; - std::string scheduler_; - std::string healthCheck_; - int healthCheckConnectTimeout_; - int backendServerPort_; - int persistenceTimeout_; - int healthCheckConnectPort_; - std::string healthCheckReq_; - int bandwidth_; - int healthyThreshold_; - std::string healthCheckExp_; - std::string masterSlaveServerGroupId_; + std::string status_; + int maxConnection_; + int listenerPort_; + std::string vServerGroupId_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string aclId_; + std::string healthCheck_; + int healthCheckConnectTimeout_; + int backendServerPort_; + int persistenceTimeout_; + int healthCheckConnectPort_; + std::string healthCheckReq_; + std::string aclStatus_; + std::string vpcIds_; + int bandwidth_; + int healthyThreshold_; + std::string healthCheckExp_; + std::string masterSlaveServerGroupId_; + std::string aclType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRelatedEcsResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRelatedEcsResult.h index 79a897a5c..582d66486 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRelatedEcsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRelatedEcsResult.h @@ -32,62 +32,62 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancersRelatedEcsResult : public ServiceResult { public: - struct LoadBalancer - { - struct MasterSlaveVServerGroup - { - struct BackendServer - { - std::string networkType; - std::string vmName; - int port; - int weight; - }; - std::string groupName; - std::vector backendServers1; - std::string groupId; - }; - struct VServerGroup - { - struct BackendServer3 - { - std::string networkType; - std::string vmName; - int port; - int weight; - }; - std::string groupName; - std::vector backendServers2; - std::string groupId; - }; - struct BackendServer4 - { - std::string networkType; - std::string vmName; - int port; - int weight; - }; - std::string loadBalancerId; - std::vector masterSlaveVServerGroups; - std::vector vServerGroups; - int count; - std::vector backendServers; - }; + struct LoadBalancer + { + struct MasterSlaveVServerGroup + { + struct BackendServer + { + std::string networkType; + std::string vmName; + int port; + int weight; + }; + std::string groupName; + std::vector backendServers1; + std::string groupId; + }; + struct VServerGroup + { + struct BackendServer3 + { + std::string networkType; + std::string vmName; + int port; + int weight; + }; + std::string groupName; + std::vector backendServers2; + std::string groupId; + }; + struct BackendServer4 + { + std::string networkType; + std::string vmName; + int port; + int weight; + }; + std::string loadBalancerId; + std::vector masterSlaveVServerGroups; + std::vector vServerGroups; + int count; + std::vector backendServers; + }; DescribeLoadBalancersRelatedEcsResult(); explicit DescribeLoadBalancersRelatedEcsResult(const std::string &payload); ~DescribeLoadBalancersRelatedEcsResult(); - std::string getMessage()const; - std::vector getLoadBalancers()const; - bool getSuccess()const; + std::string getMessage()const; + std::vector getLoadBalancers()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string message_; - std::vector loadBalancers_; - bool success_; + std::string message_; + std::vector loadBalancers_; + bool success_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h index 9cac4b159..f93e55357 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h @@ -39,72 +39,81 @@ namespace AlibabaCloud void setAccess_key_id(const std::string& access_key_id); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getAddress()const; - void setAddress(const std::string& address); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); std::string getNetworkType()const; void setNetworkType(const std::string& networkType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getServerId()const; - void setServerId(const std::string& serverId); + std::string getAddressIPVersion()const; + void setAddressIPVersion(const std::string& addressIPVersion); std::string getMasterZoneId()const; void setMasterZoneId(const std::string& masterZoneId); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getServerIntranetAddress()const; - void setServerIntranetAddress(const std::string& serverIntranetAddress); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); std::string getResourceGroupId()const; void setResourceGroupId(const std::string& resourceGroupId); std::string getLoadBalancerName()const; void setLoadBalancerName(const std::string& loadBalancerName); - std::string getLoadBalancerId()const; - void setLoadBalancerId(const std::string& loadBalancerId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); int getPageSize()const; void setPageSize(int pageSize); std::string getAddressType()const; void setAddressType(const std::string& addressType); std::string getSlaveZoneId()const; void setSlaveZoneId(const std::string& slaveZoneId); + std::string getFuzzy()const; + void setFuzzy(const std::string& fuzzy); + std::string getAddress()const; + void setAddress(const std::string& address); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getServerId()const; + void setServerId(const std::string& serverId); + std::string getLoadBalancerStatus()const; + void setLoadBalancerStatus(const std::string& loadBalancerStatus); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getServerIntranetAddress()const; + void setServerIntranetAddress(const std::string& serverIntranetAddress); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); std::string getPayType()const; void setPayType(const std::string& payType); private: std::string access_key_id_; long resourceOwnerId_; - std::string address_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; std::string networkType_; - long ownerId_; - std::string serverId_; + std::string addressIPVersion_; std::string masterZoneId_; int pageNumber_; - std::string tags_; - std::string serverIntranetAddress_; - std::string vSwitchId_; std::string resourceGroupId_; std::string loadBalancerName_; - std::string loadBalancerId_; std::string regionId_; - std::string internetChargeType_; - std::string vpcId_; int pageSize_; std::string addressType_; std::string slaveZoneId_; + std::string fuzzy_; + std::string address_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string serverId_; + std::string loadBalancerStatus_; + std::string tags_; + std::string serverIntranetAddress_; + std::string vSwitchId_; + std::string loadBalancerId_; + std::string internetChargeType_; + std::string vpcId_; std::string payType_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h index 5af745ca3..2e22ef4f3 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h @@ -32,43 +32,44 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancersResult : public ServiceResult { public: - struct LoadBalancer - { - std::string address; - std::string resourceGroupId; - std::string vSwitchId; - std::string createTime; - std::string loadBalancerId; - std::string payType; - std::string slaveZoneId; - std::string internetChargeType; - std::string regionIdAlias; - std::string loadBalancerName; - std::string vpcId; - std::string networkType; - std::string regionId; - std::string addressType; - std::string loadBalancerStatus; - std::string masterZoneId; - long createTimeStamp; - }; + struct LoadBalancer + { + std::string address; + std::string resourceGroupId; + std::string vSwitchId; + std::string createTime; + std::string addressIPVersion; + std::string loadBalancerId; + std::string payType; + std::string slaveZoneId; + std::string internetChargeType; + std::string regionIdAlias; + std::string loadBalancerName; + std::string vpcId; + std::string networkType; + std::string regionId; + std::string addressType; + std::string loadBalancerStatus; + std::string masterZoneId; + long createTimeStamp; + }; DescribeLoadBalancersResult(); explicit DescribeLoadBalancersResult(const std::string &payload); ~DescribeLoadBalancersResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getLoadBalancers()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getLoadBalancers()const; protected: void parse(const std::string &payload); private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector loadBalancers_; + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector loadBalancers_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h index c014a02ad..61683861f 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h @@ -32,28 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupAttributeResult : public ServiceResult { public: - struct MasterSlaveBackendServer - { - std::string serverType; - std::string serverId; - int port; - int weight; - }; + struct MasterSlaveBackendServer + { + std::string serverType; + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; DescribeMasterSlaveServerGroupAttributeResult(); explicit DescribeMasterSlaveServerGroupAttributeResult(const std::string &payload); ~DescribeMasterSlaveServerGroupAttributeResult(); - std::string getMasterSlaveServerGroupId()const; - std::string getMasterSlaveServerGroupName()const; - std::vector getMasterSlaveBackendServers()const; + std::string getMasterSlaveServerGroupId()const; + std::string getMasterSlaveServerGroupName()const; + std::vector getMasterSlaveBackendServers()const; protected: void parse(const std::string &payload); private: - std::string masterSlaveServerGroupId_; - std::string masterSlaveServerGroupName_; - std::vector masterSlaveBackendServers_; + std::string masterSlaveServerGroupId_; + std::string masterSlaveServerGroupName_; + std::vector masterSlaveBackendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h index ac72ffa0b..ac9901874 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); + bool getIncludeListener()const; + void setIncludeListener(bool includeListener); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud std::string loadBalancerId_; std::string resourceOwnerAccount_; std::string regionId_; + bool includeListener_; std::string ownerAccount_; long ownerId_; std::string tags_; diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h index ad3dacc36..e853600e6 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h @@ -32,22 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupsResult : public ServiceResult { public: - struct MasterSlaveServerGroup - { - std::string masterSlaveServerGroupId; - std::string masterSlaveServerGroupName; - }; + struct MasterSlaveServerGroup + { + struct AssociatedObjects + { + struct Listener + { + int port; + std::string protocol; + }; + std::vector listeners; + }; + AssociatedObjects associatedObjects; + std::string masterSlaveServerGroupId; + std::string masterSlaveServerGroupName; + }; DescribeMasterSlaveServerGroupsResult(); explicit DescribeMasterSlaveServerGroupsResult(const std::string &payload); ~DescribeMasterSlaveServerGroupsResult(); - std::vector getMasterSlaveServerGroups()const; + std::vector getMasterSlaveServerGroups()const; protected: void parse(const std::string &payload); private: - std::vector masterSlaveServerGroups_; + std::vector masterSlaveServerGroups_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h index 567e62c77..2843d17ec 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupAttributeResult.h @@ -32,28 +32,32 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveVServerGroupAttributeResult : public ServiceResult { public: - struct MasterSlaveBackendServer - { - std::string serverId; - int port; - int isBackup; - int weight; - }; + struct MasterSlaveBackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int isBackup; + int weight; + }; DescribeMasterSlaveVServerGroupAttributeResult(); explicit DescribeMasterSlaveVServerGroupAttributeResult(const std::string &payload); ~DescribeMasterSlaveVServerGroupAttributeResult(); - std::string getMasterSlaveVServerGroupId()const; - std::vector getMasterSlaveBackendServers()const; - std::string getMasterSlaveVServerGroupName()const; + std::string getMasterSlaveVServerGroupId()const; + std::vector getMasterSlaveBackendServers()const; + std::string getMasterSlaveVServerGroupName()const; protected: void parse(const std::string &payload); private: - std::string masterSlaveVServerGroupId_; - std::vector masterSlaveBackendServers_; - std::string masterSlaveVServerGroupName_; + std::string masterSlaveVServerGroupId_; + std::vector masterSlaveBackendServers_; + std::string masterSlaveVServerGroupName_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsResult.h index e59b9d4bd..94bedfbe0 100644 --- a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveVServerGroupsResult.h @@ -32,22 +32,22 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveVServerGroupsResult : public ServiceResult { public: - struct MasterSlaveVServerGroup - { - std::string masterSlaveVServerGroupId; - std::string masterSlaveVServerGroupName; - }; + struct MasterSlaveVServerGroup + { + std::string masterSlaveVServerGroupId; + std::string masterSlaveVServerGroupName; + }; DescribeMasterSlaveVServerGroupsResult(); explicit DescribeMasterSlaveVServerGroupsResult(const std::string &payload); ~DescribeMasterSlaveVServerGroupsResult(); - std::vector getMasterSlaveVServerGroups()const; + std::vector getMasterSlaveVServerGroups()const; protected: void parse(const std::string &payload); private: - std::vector masterSlaveVServerGroups_; + std::vector masterSlaveVServerGroups_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h b/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h index ed82ff482..599b988a6 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); + std::string getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); long getOwnerId()const; void setOwnerId(long ownerId); std::string getTags()const; @@ -56,6 +58,7 @@ namespace AlibabaCloud std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string acceptLanguage_; long ownerId_; std::string tags_; diff --git a/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h b/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h index 48cef1061..9138a3bae 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h @@ -32,22 +32,23 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeRegionsResult : public ServiceResult { public: - struct Region - { - std::string regionId; - std::string localName; - }; + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; DescribeRegionsResult(); explicit DescribeRegionsResult(const std::string &payload); ~DescribeRegionsResult(); - std::vector getRegions()const; + std::vector getRegions()const; protected: void parse(const std::string &payload); private: - std::vector regions_; + std::vector regions_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h index 2fd66745a..4f900eca1 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h @@ -37,22 +37,52 @@ namespace AlibabaCloud DescribeRuleAttributeResult(); explicit DescribeRuleAttributeResult(const std::string &payload); ~DescribeRuleAttributeResult(); - std::string getListenerPort()const; - std::string getVServerGroupId()const; - std::string getLoadBalancerId()const; - std::string getDomain()const; - std::string getRuleName()const; - std::string getUrl()const; + int getCookieTimeout()const; + std::string getCookie()const; + std::string getListenerPort()const; + std::string getVServerGroupId()const; + int getHealthCheckInterval()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + std::string getLoadBalancerId()const; + int getHealthCheckTimeout()const; + std::string getUrl()const; + std::string getStickySession()const; + int getHealthCheckConnectPort()const; + int getHealthyThreshold()const; + std::string getListenerSync()const; + std::string getHealthCheckDomain()const; + std::string getStickySessionType()const; + std::string getDomain()const; + std::string getHealthCheckHttpCode()const; + std::string getRuleName()const; protected: void parse(const std::string &payload); private: - std::string listenerPort_; - std::string vServerGroupId_; - std::string loadBalancerId_; - std::string domain_; - std::string ruleName_; - std::string url_; + int cookieTimeout_; + std::string cookie_; + std::string listenerPort_; + std::string vServerGroupId_; + int healthCheckInterval_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + std::string loadBalancerId_; + int healthCheckTimeout_; + std::string url_; + std::string stickySession_; + int healthCheckConnectPort_; + int healthyThreshold_; + std::string listenerSync_; + std::string healthCheckDomain_; + std::string stickySessionType_; + std::string domain_; + std::string healthCheckHttpCode_; + std::string ruleName_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeRulesResult.h b/slb/include/alibabacloud/slb/model/DescribeRulesResult.h index 4d0cbb58a..46ef0ccbc 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRulesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeRulesResult.h @@ -32,25 +32,40 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeRulesResult : public ServiceResult { public: - struct Rule - { - std::string vServerGroupId; - std::string ruleId; - std::string domain; - std::string ruleName; - std::string url; - }; + struct Rule + { + int cookieTimeout; + std::string cookie; + std::string vServerGroupId; + int healthCheckInterval; + int unhealthyThreshold; + std::string scheduler; + std::string healthCheckURI; + std::string ruleId; + std::string healthCheck; + int healthCheckTimeout; + std::string url; + std::string stickySession; + int healthCheckConnectPort; + int healthyThreshold; + std::string listenerSync; + std::string healthCheckDomain; + std::string stickySessionType; + std::string domain; + std::string healthCheckHttpCode; + std::string ruleName; + }; DescribeRulesResult(); explicit DescribeRulesResult(const std::string &payload); ~DescribeRulesResult(); - std::vector getRules()const; + std::vector getRules()const; protected: void parse(const std::string &payload); private: - std::vector rules_; + std::vector rules_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h index 0533e59c2..8b94bbc11 100644 --- a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h @@ -32,31 +32,35 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeServerCertificatesResult : public ServiceResult { public: - struct ServerCertificate - { - std::string regionIdAlias; - std::string fingerprint; - std::string aliCloudCertificateName; - std::string resourceGroupId; - int isAliCloudCertificate; - std::string createTime; - std::string serverCertificateId; - std::string serverCertificateName; - std::string regionId; - long createTimeStamp; - std::string aliCloudCertificateId; - }; + struct ServerCertificate + { + std::string fingerprint; + std::string resourceGroupId; + long expireTimeStamp; + std::string createTime; + std::vector subjectAlternativeNames; + std::string aliCloudCertificateId; + std::string regionIdAlias; + std::string aliCloudCertificateName; + int isAliCloudCertificate; + std::string serverCertificateId; + std::string serverCertificateName; + std::string regionId; + std::string expireTime; + long createTimeStamp; + std::string commonName; + }; DescribeServerCertificatesResult(); explicit DescribeServerCertificatesResult(const std::string &payload); ~DescribeServerCertificatesResult(); - std::vector getServerCertificates()const; + std::vector getServerCertificates()const; protected: void parse(const std::string &payload); private: - std::vector serverCertificates_; + std::vector serverCertificates_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h b/slb/include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h new file mode 100644 index 000000000..44ee0ea9c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeSlbQuotasRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeSlbQuotasRequest : public RpcServiceRequest + { + + public: + DescribeSlbQuotasRequest(); + ~DescribeSlbQuotasRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeSlbQuotasResult.h b/slb/include/alibabacloud/slb/model/DescribeSlbQuotasResult.h new file mode 100644 index 000000000..3f729b767 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeSlbQuotasResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeSlbQuotasResult : public ServiceResult + { + public: + struct Quota + { + std::string quotaName; + std::string comment; + std::string max; + }; + + + DescribeSlbQuotasResult(); + explicit DescribeSlbQuotasResult(const std::string &payload); + ~DescribeSlbQuotasResult(); + std::vector getQuotas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector quotas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBESLBQUOTASRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeTagsResult.h b/slb/include/alibabacloud/slb/model/DescribeTagsResult.h index f6c55d737..811d66c61 100644 --- a/slb/include/alibabacloud/slb/model/DescribeTagsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeTagsResult.h @@ -32,29 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeTagsResult : public ServiceResult { public: - struct TagSet - { - int instanceCount; - std::string tagKey; - std::string tagValue; - }; + struct TagSet + { + int instanceCount; + std::string tagKey; + std::string tagValue; + }; DescribeTagsResult(); explicit DescribeTagsResult(const std::string &payload); ~DescribeTagsResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getTagSets()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getTagSets()const; protected: void parse(const std::string &payload); private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector tagSets_; + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector tagSets_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h index ba4730035..7146ef246 100644 --- a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h @@ -32,27 +32,31 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupAttributeResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; DescribeVServerGroupAttributeResult(); explicit DescribeVServerGroupAttributeResult(const std::string &payload); ~DescribeVServerGroupAttributeResult(); - std::string getVServerGroupId()const; - std::string getVServerGroupName()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::string getVServerGroupName()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::string vServerGroupName_; - std::vector backendServers_; + std::string vServerGroupId_; + std::string vServerGroupName_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h index 6908e4212..7e7073fc0 100644 --- a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); + bool getIncludeRule()const; + void setIncludeRule(bool includeRule); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); std::string getLoadBalancerId()const; @@ -45,6 +47,8 @@ namespace AlibabaCloud void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getRegionId()const; void setRegionId(const std::string& regionId); + bool getIncludeListener()const; + void setIncludeListener(bool includeListener); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; @@ -54,10 +58,12 @@ namespace AlibabaCloud private: std::string access_key_id_; + bool includeRule_; long resourceOwnerId_; std::string loadBalancerId_; std::string resourceOwnerAccount_; std::string regionId_; + bool includeListener_; std::string ownerAccount_; long ownerId_; std::string tags_; diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h index c5afd86e5..c96b152cd 100644 --- a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h @@ -32,22 +32,40 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupsResult : public ServiceResult { public: - struct VServerGroup - { - std::string vServerGroupId; - std::string vServerGroupName; - }; + struct VServerGroup + { + struct AssociatedObjects + { + struct Listener + { + int port; + std::string protocol; + }; + struct Rule + { + std::string ruleId; + std::string domain; + std::string url; + std::string ruleName; + }; + std::vector listeners; + std::vector rules; + }; + std::string vServerGroupId; + AssociatedObjects associatedObjects; + std::string vServerGroupName; + }; DescribeVServerGroupsResult(); explicit DescribeVServerGroupsResult(const std::string &payload); ~DescribeVServerGroupsResult(); - std::vector getVServerGroups()const; + std::vector getVServerGroups()const; protected: void parse(const std::string &payload); private: - std::vector vServerGroups_; + std::vector vServerGroups_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeZonesResult.h b/slb/include/alibabacloud/slb/model/DescribeZonesResult.h index 2e811d9ca..c63acc082 100644 --- a/slb/include/alibabacloud/slb/model/DescribeZonesResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeZonesResult.h @@ -32,28 +32,28 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeZonesResult : public ServiceResult { public: - struct Zone - { - struct SlaveZone - { - std::string zoneId; - std::string localName; - }; - std::vector slaveZones; - std::string zoneId; - std::string localName; - }; + struct Zone + { + struct SlaveZone + { + std::string zoneId; + std::string localName; + }; + std::vector slaveZones; + std::string zoneId; + std::string localName; + }; DescribeZonesResult(); explicit DescribeZonesResult(const std::string &payload); ~DescribeZonesResult(); - std::vector getZones()const; + std::vector getZones()const; protected: void parse(const std::string &payload); private: - std::vector zones_; + std::vector zones_; }; } diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h index a84ada56c..e0f0aafc0 100644 --- a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud ModifyLoadBalancerInstanceSpecResult(); explicit ModifyLoadBalancerInstanceSpecResult(const std::string &payload); ~ModifyLoadBalancerInstanceSpecResult(); - long getOrderId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: - long orderId_; + long orderId_; }; } diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h index 194d20bc8..cd5354917 100644 --- a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud ModifyLoadBalancerInternetSpecResult(); explicit ModifyLoadBalancerInternetSpecResult(const std::string &payload); ~ModifyLoadBalancerInternetSpecResult(); - long getOrderId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: - long orderId_; + long orderId_; }; } diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h index 33e61e3fa..4520007cb 100644 --- a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud ModifyLoadBalancerPayTypeResult(); explicit ModifyLoadBalancerPayTypeResult(const std::string &payload); ~ModifyLoadBalancerPayTypeResult(); - long getOrderId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: - long orderId_; + long orderId_; }; } diff --git a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h index d321d92cc..6ae9556ec 100644 --- a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h @@ -32,25 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT ModifyVServerGroupBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; ModifyVServerGroupBackendServersResult(); explicit ModifyVServerGroupBackendServersResult(const std::string &payload); ~ModifyVServerGroupBackendServersResult(); - std::string getVServerGroupId()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::vector backendServers_; + std::string vServerGroupId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h new file mode 100644 index 000000000..2fb3735b1 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveAccessControlListEntryRequest : public RpcServiceRequest + { + + public: + RemoveAccessControlListEntryRequest(); + ~RemoveAccessControlListEntryRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAclEntrys()const; + void setAclEntrys(const std::string& aclEntrys); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + std::string aclId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string aclEntrys_; + long ownerId_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h new file mode 100644 index 000000000..bb7f56a37 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.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_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveAccessControlListEntryResult : public ServiceResult + { + public: + + + RemoveAccessControlListEntryResult(); + explicit RemoveAccessControlListEntryResult(const std::string &payload); + ~RemoveAccessControlListEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h index 4583400f4..78180073e 100644 --- a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h @@ -32,24 +32,27 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT RemoveBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string serverIp; + int weight; + }; RemoveBackendServersResult(); explicit RemoveBackendServersResult(const std::string &payload); ~RemoveBackendServersResult(); - std::string getLoadBalancerId()const; - std::vector getBackendServers()const; + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string loadBalancerId_; - std::vector backendServers_; + std::string loadBalancerId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h index df72d2ced..9b07a0901 100644 --- a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h @@ -32,25 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT RemoveVServerGroupBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; RemoveVServerGroupBackendServersResult(); explicit RemoveVServerGroupBackendServersResult(const std::string &payload); ~RemoveVServerGroupBackendServersResult(); - std::string getVServerGroupId()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::vector backendServers_; + std::string vServerGroupId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h new file mode 100644 index 000000000..cfb664578 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAccessControlListAttributeRequest : public RpcServiceRequest + { + + public: + SetAccessControlListAttributeRequest(); + ~SetAccessControlListAttributeRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + std::string getAclId()const; + void setAclId(const std::string& aclId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName()const; + void setAclName(const std::string& aclName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + std::string aclId_; + long resourceOwnerId_; + std::string aclName_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h new file mode 100644 index 000000000..cdde6d6a0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.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_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAccessControlListAttributeResult : public ServiceResult + { + public: + + + SetAccessControlListAttributeResult(); + explicit SetAccessControlListAttributeResult(const std::string &payload); + ~SetAccessControlListAttributeResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetAutoRenewStatusRequest.h b/slb/include/alibabacloud/slb/model/SetAutoRenewStatusRequest.h new file mode 100644 index 000000000..94487daba --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAutoRenewStatusRequest.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SLB_MODEL_SETAUTORENEWSTATUSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETAUTORENEWSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAutoRenewStatusRequest : public RpcServiceRequest + { + + public: + SetAutoRenewStatusRequest(); + ~SetAutoRenewStatusRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getRenewalDuration()const; + void setRenewalDuration(int renewalDuration); + std::string getLoadBalancerId()const; + void setLoadBalancerId(const std::string& loadBalancerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRenewalStatus()const; + void setRenewalStatus(const std::string& renewalStatus); + std::string getRenewalCycUnit()const; + void setRenewalCycUnit(const std::string& renewalCycUnit); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string access_key_id_; + long resourceOwnerId_; + int renewalDuration_; + std::string loadBalancerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string renewalStatus_; + std::string renewalCycUnit_; + long ownerId_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETAUTORENEWSTATUSREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetAutoRenewStatusResult.h b/slb/include/alibabacloud/slb/model/SetAutoRenewStatusResult.h new file mode 100644 index 000000000..c9743f7fb --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAutoRenewStatusResult.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_SLB_MODEL_SETAUTORENEWSTATUSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETAUTORENEWSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAutoRenewStatusResult : public ServiceResult + { + public: + + + SetAutoRenewStatusResult(); + explicit SetAutoRenewStatusResult(const std::string &payload); + ~SetAutoRenewStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETAUTORENEWSTATUSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetBackendServersResult.h b/slb/include/alibabacloud/slb/model/SetBackendServersResult.h index ac2610ec6..5de78c6e7 100644 --- a/slb/include/alibabacloud/slb/model/SetBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/SetBackendServersResult.h @@ -32,24 +32,28 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT SetBackendServersResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - std::string weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + std::string serverIp; + std::string weight; + }; SetBackendServersResult(); explicit SetBackendServersResult(const std::string &payload); ~SetBackendServersResult(); - std::string getLoadBalancerId()const; - std::vector getBackendServers()const; + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string loadBalancerId_; - std::vector backendServers_; + std::string loadBalancerId_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h new file mode 100644 index 000000000..c2f114ebc --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetDomainExtensionAttributeRequest : public RpcServiceRequest + { + + public: + SetDomainExtensionAttributeRequest(); + ~SetDomainExtensionAttributeRequest(); + + std::string getAccess_key_id()const; + void setAccess_key_id(const std::string& access_key_id); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getServerCertificateId()const; + void setServerCertificateId(const std::string& serverCertificateId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getDomainExtensionId()const; + void setDomainExtensionId(const std::string& domainExtensionId); + + private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; + std::string domainExtensionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h new file mode 100644 index 000000000..426dd6aa9 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.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_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetDomainExtensionAttributeResult : public ServiceResult + { + public: + + + SetDomainExtensionAttributeResult(); + explicit SetDomainExtensionAttributeResult(const std::string &payload); + ~SetDomainExtensionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h index f0b516a5c..d04b7520d 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h @@ -45,12 +45,18 @@ namespace AlibabaCloud void setXForwardedFor(const std::string& xForwardedFor); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getHealthCheck()const; void setHealthCheck(const std::string& healthCheck); int getMaxConnection()const; @@ -61,8 +67,12 @@ namespace AlibabaCloud void setCookieTimeout(int cookieTimeout); std::string getStickySessionType()const; void setStickySessionType(const std::string& stickySessionType); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getCookie()const; @@ -75,6 +85,8 @@ namespace AlibabaCloud void setStickySession(const std::string& stickySession); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); + int getRequestTimeout()const; + void setRequestTimeout(int requestTimeout); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getGzip()const; @@ -83,6 +95,8 @@ namespace AlibabaCloud void setOwnerId(long ownerId); std::string getTags()const; void setTags(const std::string& tags); + int getIdleTimeout()const; + void setIdleTimeout(int idleTimeout); std::string getLoadBalancerId()const; void setLoadBalancerId(const std::string& loadBalancerId); std::string getXForwardedFor_SLBIP()const; @@ -106,25 +120,32 @@ namespace AlibabaCloud int healthCheckTimeout_; std::string xForwardedFor_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string healthCheck_; int maxConnection_; std::string regionId_; int cookieTimeout_; std::string stickySessionType_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string cookie_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; std::string healthCheckDomain_; + int requestTimeout_; std::string ownerAccount_; std::string gzip_; long ownerId_; std::string tags_; + int idleTimeout_; std::string loadBalancerId_; std::string xForwardedFor_SLBIP_; int healthCheckInterval_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h index 3f71aed1a..927496747 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h @@ -45,24 +45,36 @@ namespace AlibabaCloud void setXForwardedFor(const std::string& xForwardedFor); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getHealthCheck()const; void setHealthCheck(const std::string& healthCheck); int getMaxConnection()const; void setMaxConnection(int maxConnection); + std::string getEnableHttp2()const; + void setEnableHttp2(const std::string& enableHttp2); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getCookieTimeout()const; void setCookieTimeout(int cookieTimeout); std::string getStickySessionType()const; void setStickySessionType(const std::string& stickySessionType); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getCookie()const; @@ -75,10 +87,14 @@ namespace AlibabaCloud void setStickySession(const std::string& stickySession); std::string getHealthCheckDomain()const; void setHealthCheckDomain(const std::string& healthCheckDomain); + int getRequestTimeout()const; + void setRequestTimeout(int requestTimeout); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); std::string getGzip()const; void setGzip(const std::string& gzip); + std::string getTLSCipherPolicy()const; + void setTLSCipherPolicy(const std::string& tLSCipherPolicy); long getOwnerId()const; void setOwnerId(long ownerId); std::string getServerCertificateId()const; @@ -87,6 +103,8 @@ namespace AlibabaCloud void setCACertificateId(const std::string& cACertificateId); std::string getTags()const; void setTags(const std::string& tags); + int getIdleTimeout()const; + void setIdleTimeout(int idleTimeout); std::string getLoadBalancerId()const; void setLoadBalancerId(const std::string& loadBalancerId); std::string getXForwardedFor_SLBIP()const; @@ -110,27 +128,36 @@ namespace AlibabaCloud int healthCheckTimeout_; std::string xForwardedFor_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string healthCheck_; int maxConnection_; + std::string enableHttp2_; std::string regionId_; int cookieTimeout_; std::string stickySessionType_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string cookie_; std::string resourceOwnerAccount_; int bandwidth_; std::string stickySession_; std::string healthCheckDomain_; + int requestTimeout_; std::string ownerAccount_; std::string gzip_; + std::string tLSCipherPolicy_; long ownerId_; std::string serverCertificateId_; std::string cACertificateId_; std::string tags_; + int idleTimeout_; std::string loadBalancerId_; std::string xForwardedFor_SLBIP_; int healthCheckInterval_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h index 5897618de..bb32a58fe 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h @@ -43,12 +43,18 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getHealthCheckURI()const; void setHealthCheckURI(const std::string& healthCheckURI); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getMasterSlaveServerGroup()const; void setMasterSlaveServerGroup(const std::string& masterSlaveServerGroup); int getEstablishedTimeout()const; @@ -59,8 +65,12 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); int getPersistenceTimeout()const; void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getHealthCheckType()const; @@ -97,15 +107,20 @@ namespace AlibabaCloud int healthCheckConnectTimeout_; long resourceOwnerId_; std::string healthCheckURI_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string masterSlaveServerGroup_; int establishedTimeout_; int maxConnection_; std::string regionId_; int persistenceTimeout_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string healthCheckType_; std::string resourceOwnerAccount_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h index 102ad472a..3e7f7aa08 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h @@ -41,12 +41,18 @@ namespace AlibabaCloud void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getDescription()const; + void setDescription(const std::string& description); int getUnhealthyThreshold()const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold()const; void setHealthyThreshold(int healthyThreshold); + std::string getAclStatus()const; + void setAclStatus(const std::string& aclStatus); std::string getScheduler()const; void setScheduler(const std::string& scheduler); + std::string getAclType()const; + void setAclType(const std::string& aclType); std::string getMasterSlaveServerGroup()const; void setMasterSlaveServerGroup(const std::string& masterSlaveServerGroup); int getMaxConnection()const; @@ -55,8 +61,12 @@ namespace AlibabaCloud void setRegionId(const std::string& regionId); int getPersistenceTimeout()const; void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds()const; + void setVpcIds(const std::string& vpcIds); std::string getVServerGroupId()const; void setVServerGroupId(const std::string& vServerGroupId); + std::string getAclId()const; + void setAclId(const std::string& aclId); int getListenerPort()const; void setListenerPort(int listenerPort); std::string getResourceOwnerAccount()const; @@ -88,14 +98,19 @@ namespace AlibabaCloud std::string access_key_id_; int healthCheckConnectTimeout_; long resourceOwnerId_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; + std::string aclStatus_; std::string scheduler_; + std::string aclType_; std::string masterSlaveServerGroup_; int maxConnection_; std::string regionId_; int persistenceTimeout_; + std::string vpcIds_; std::string vServerGroupId_; + std::string aclId_; int listenerPort_; std::string resourceOwnerAccount_; int bandwidth_; diff --git a/slb/include/alibabacloud/slb/model/SetRuleRequest.h b/slb/include/alibabacloud/slb/model/SetRuleRequest.h index 0f3d9d108..1693ea416 100644 --- a/slb/include/alibabacloud/slb/model/SetRuleRequest.h +++ b/slb/include/alibabacloud/slb/model/SetRuleRequest.h @@ -37,33 +37,81 @@ namespace AlibabaCloud std::string getAccess_key_id()const; void setAccess_key_id(const std::string& access_key_id); - std::string getVServerGroupId()const; - void setVServerGroupId(const std::string& vServerGroupId); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getHealthCheckTimeout()const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getHealthCheckURI()const; + void setHealthCheckURI(const std::string& healthCheckURI); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + int getUnhealthyThreshold()const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold()const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler()const; + void setScheduler(const std::string& scheduler); + std::string getHealthCheck()const; + void setHealthCheck(const std::string& healthCheck); std::string getRegionId()const; void setRegionId(const std::string& regionId); + std::string getListenerSync()const; + void setListenerSync(const std::string& listenerSync); + int getCookieTimeout()const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType()const; + void setStickySessionType(const std::string& stickySessionType); + std::string getVServerGroupId()const; + void setVServerGroupId(const std::string& vServerGroupId); + std::string getCookie()const; + void setCookie(const std::string& cookie); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getStickySession()const; + void setStickySession(const std::string& stickySession); + std::string getHealthCheckDomain()const; + void setHealthCheckDomain(const std::string& healthCheckDomain); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getRuleId()const; - void setRuleId(const std::string& ruleId); std::string getTags()const; void setTags(const std::string& tags); + int getHealthCheckInterval()const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + int getHealthCheckConnectPort()const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode()const; + void setHealthCheckHttpCode(const std::string& healthCheckHttpCode); private: std::string access_key_id_; - std::string vServerGroupId_; long resourceOwnerId_; - std::string resourceOwnerAccount_; + int healthCheckTimeout_; + std::string healthCheckURI_; + std::string ruleName_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string healthCheck_; std::string regionId_; + std::string listenerSync_; + int cookieTimeout_; + std::string stickySessionType_; + std::string vServerGroupId_; + std::string cookie_; + std::string resourceOwnerAccount_; + std::string stickySession_; + std::string healthCheckDomain_; std::string ownerAccount_; long ownerId_; - std::string ruleId_; std::string tags_; + int healthCheckInterval_; + std::string ruleId_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; }; } diff --git a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h index 8c55b8aa5..322cbe707 100644 --- a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h @@ -32,27 +32,31 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT SetVServerGroupAttributeResult : public ServiceResult { public: - struct BackendServer - { - std::string serverId; - int port; - int weight; - }; + struct BackendServer + { + std::string type; + std::string serverId; + std::string vpcId; + std::string eniHost; + int port; + std::string serverIp; + int weight; + }; SetVServerGroupAttributeResult(); explicit SetVServerGroupAttributeResult(const std::string &payload); ~SetVServerGroupAttributeResult(); - std::string getVServerGroupId()const; - std::string getVServerGroupName()const; - std::vector getBackendServers()const; + std::string getVServerGroupId()const; + std::string getVServerGroupName()const; + std::vector getBackendServers()const; protected: void parse(const std::string &payload); private: - std::string vServerGroupId_; - std::string vServerGroupName_; - std::vector backendServers_; + std::string vServerGroupId_; + std::string vServerGroupName_; + std::vector backendServers_; }; } diff --git a/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h b/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h index 4a444fa05..5e8bec109 100644 --- a/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h +++ b/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h @@ -37,22 +37,28 @@ namespace AlibabaCloud UploadCACertificateResult(); explicit UploadCACertificateResult(const std::string &payload); ~UploadCACertificateResult(); - std::string getFingerprint()const; - std::string getResourceGroupId()const; - std::string getCACertificateId()const; - std::string getCreateTime()const; - std::string getCACertificateName()const; - long getCreateTimeStamp()const; + std::string getFingerprint()const; + std::string getResourceGroupId()const; + long getExpireTimeStamp()const; + std::string getCACertificateId()const; + std::string getCreateTime()const; + std::string getCACertificateName()const; + std::string getExpireTime()const; + long getCreateTimeStamp()const; + std::string getCommonName()const; protected: void parse(const std::string &payload); private: - std::string fingerprint_; - std::string resourceGroupId_; - std::string cACertificateId_; - std::string createTime_; - std::string cACertificateName_; - long createTimeStamp_; + std::string fingerprint_; + std::string resourceGroupId_; + long expireTimeStamp_; + std::string cACertificateId_; + std::string createTime_; + std::string cACertificateName_; + std::string expireTime_; + long createTimeStamp_; + std::string commonName_; }; } diff --git a/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h b/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h index fe31fef3f..82e7682f5 100644 --- a/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h +++ b/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h @@ -37,32 +37,40 @@ namespace AlibabaCloud UploadServerCertificateResult(); explicit UploadServerCertificateResult(const std::string &payload); ~UploadServerCertificateResult(); - std::string getRegionIdAlias()const; - std::string getFingerprint()const; - std::string getAliCloudCertificateName()const; - std::string getResourceGroupId()const; - int getIsAliCloudCertificate()const; - std::string getCreateTime()const; - std::string getServerCertificateId()const; - std::string getServerCertificateName()const; - std::string getRegionId()const; - long getCreateTimeStamp()const; - std::string getAliCloudCertificateId()const; + std::string getFingerprint()const; + std::string getResourceGroupId()const; + long getExpireTimeStamp()const; + std::string getCreateTime()const; + std::vector getSubjectAlternativeNames()const; + std::string getAliCloudCertificateId()const; + std::string getRegionIdAlias()const; + std::string getAliCloudCertificateName()const; + int getIsAliCloudCertificate()const; + std::string getServerCertificateId()const; + std::string getServerCertificateName()const; + std::string getRegionId()const; + std::string getExpireTime()const; + long getCreateTimeStamp()const; + std::string getCommonName()const; protected: void parse(const std::string &payload); private: - std::string regionIdAlias_; - std::string fingerprint_; - std::string aliCloudCertificateName_; - std::string resourceGroupId_; - int isAliCloudCertificate_; - std::string createTime_; - std::string serverCertificateId_; - std::string serverCertificateName_; - std::string regionId_; - long createTimeStamp_; - std::string aliCloudCertificateId_; + std::string fingerprint_; + std::string resourceGroupId_; + long expireTimeStamp_; + std::string createTime_; + std::vector subjectAlternativeNames_; + std::string aliCloudCertificateId_; + std::string regionIdAlias_; + std::string aliCloudCertificateName_; + int isAliCloudCertificate_; + std::string serverCertificateId_; + std::string serverCertificateName_; + std::string regionId_; + std::string expireTime_; + long createTimeStamp_; + std::string commonName_; }; } diff --git a/slb/src/SlbClient.cc b/slb/src/SlbClient.cc index 6d881abc7..c1ef46c86 100644 --- a/slb/src/SlbClient.cc +++ b/slb/src/SlbClient.cc @@ -51,6 +51,42 @@ SlbClient::SlbClient(const std::string & accessKeyId, const std::string & access SlbClient::~SlbClient() {} +SlbClient::SetDomainExtensionAttributeOutcome SlbClient::setDomainExtensionAttribute(const SetDomainExtensionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainExtensionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainExtensionAttributeOutcome(SetDomainExtensionAttributeResult(outcome.result())); + else + return SetDomainExtensionAttributeOutcome(outcome.error()); +} + +void SlbClient::setDomainExtensionAttributeAsync(const SetDomainExtensionAttributeRequest& request, const SetDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainExtensionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetDomainExtensionAttributeOutcomeCallable SlbClient::setDomainExtensionAttributeCallable(const SetDomainExtensionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainExtensionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::CreateLoadBalancerUDPListenerOutcome SlbClient::createLoadBalancerUDPListener(const CreateLoadBalancerUDPListenerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +663,42 @@ SlbClient::SetLoadBalancerHTTPListenerAttributeOutcomeCallable SlbClient::setLoa return task->get_future(); } +SlbClient::DescribeDomainExtensionsOutcome SlbClient::describeDomainExtensions(const DescribeDomainExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainExtensionsOutcome(DescribeDomainExtensionsResult(outcome.result())); + else + return DescribeDomainExtensionsOutcome(outcome.error()); +} + +void SlbClient::describeDomainExtensionsAsync(const DescribeDomainExtensionsRequest& request, const DescribeDomainExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeDomainExtensionsOutcomeCallable SlbClient::describeDomainExtensionsCallable(const DescribeDomainExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::SetLoadBalancerAutoReleaseTimeOutcome SlbClient::setLoadBalancerAutoReleaseTime(const SetLoadBalancerAutoReleaseTimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +879,42 @@ SlbClient::SetLoadBalancerHTTPSListenerAttributeOutcomeCallable SlbClient::setLo return task->get_future(); } +SlbClient::SetAutoRenewStatusOutcome SlbClient::setAutoRenewStatus(const SetAutoRenewStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAutoRenewStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAutoRenewStatusOutcome(SetAutoRenewStatusResult(outcome.result())); + else + return SetAutoRenewStatusOutcome(outcome.error()); +} + +void SlbClient::setAutoRenewStatusAsync(const SetAutoRenewStatusRequest& request, const SetAutoRenewStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAutoRenewStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetAutoRenewStatusOutcomeCallable SlbClient::setAutoRenewStatusCallable(const SetAutoRenewStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAutoRenewStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DeleteLoadBalancerListenerOutcome SlbClient::deleteLoadBalancerListener(const DeleteLoadBalancerListenerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1347,42 @@ SlbClient::RemoveBackendServersOutcomeCallable SlbClient::removeBackendServersCa return task->get_future(); } +SlbClient::AddAccessControlListEntryOutcome SlbClient::addAccessControlListEntry(const AddAccessControlListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAccessControlListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAccessControlListEntryOutcome(AddAccessControlListEntryResult(outcome.result())); + else + return AddAccessControlListEntryOutcome(outcome.error()); +} + +void SlbClient::addAccessControlListEntryAsync(const AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAccessControlListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddAccessControlListEntryOutcomeCallable SlbClient::addAccessControlListEntryCallable(const AddAccessControlListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAccessControlListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::ModifyVServerGroupBackendServersOutcome SlbClient::modifyVServerGroupBackendServers(const ModifyVServerGroupBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1419,42 @@ SlbClient::ModifyVServerGroupBackendServersOutcomeCallable SlbClient::modifyVSer return task->get_future(); } +SlbClient::DescribeSlbQuotasOutcome SlbClient::describeSlbQuotas(const DescribeSlbQuotasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlbQuotasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlbQuotasOutcome(DescribeSlbQuotasResult(outcome.result())); + else + return DescribeSlbQuotasOutcome(outcome.error()); +} + +void SlbClient::describeSlbQuotasAsync(const DescribeSlbQuotasRequest& request, const DescribeSlbQuotasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlbQuotas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeSlbQuotasOutcomeCallable SlbClient::describeSlbQuotasCallable(const DescribeSlbQuotasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlbQuotas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcome SlbClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +1671,42 @@ SlbClient::SetBackendServersOutcomeCallable SlbClient::setBackendServersCallable return task->get_future(); } +SlbClient::DeleteAccessControlListOutcome SlbClient::deleteAccessControlList(const DeleteAccessControlListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessControlListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessControlListOutcome(DeleteAccessControlListResult(outcome.result())); + else + return DeleteAccessControlListOutcome(outcome.error()); +} + +void SlbClient::deleteAccessControlListAsync(const DeleteAccessControlListRequest& request, const DeleteAccessControlListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessControlList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteAccessControlListOutcomeCallable SlbClient::deleteAccessControlListCallable(const DeleteAccessControlListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessControlList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::RemoveVServerGroupBackendServersOutcome SlbClient::removeVServerGroupBackendServers(const RemoveVServerGroupBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +1887,42 @@ SlbClient::DeleteCACertificateOutcomeCallable SlbClient::deleteCACertificateCall return task->get_future(); } +SlbClient::SetAccessControlListAttributeOutcome SlbClient::setAccessControlListAttribute(const SetAccessControlListAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAccessControlListAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAccessControlListAttributeOutcome(SetAccessControlListAttributeResult(outcome.result())); + else + return SetAccessControlListAttributeOutcome(outcome.error()); +} + +void SlbClient::setAccessControlListAttributeAsync(const SetAccessControlListAttributeRequest& request, const SetAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAccessControlListAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetAccessControlListAttributeOutcomeCallable SlbClient::setAccessControlListAttributeCallable(const SetAccessControlListAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAccessControlListAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::CreateLoadBalancerTCPListenerOutcome SlbClient::createLoadBalancerTCPListener(const CreateLoadBalancerTCPListenerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1959,114 @@ SlbClient::CreateLoadBalancerTCPListenerOutcomeCallable SlbClient::createLoadBal return task->get_future(); } +SlbClient::DescribeAccessControlListAttributeOutcome SlbClient::describeAccessControlListAttribute(const DescribeAccessControlListAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessControlListAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessControlListAttributeOutcome(DescribeAccessControlListAttributeResult(outcome.result())); + else + return DescribeAccessControlListAttributeOutcome(outcome.error()); +} + +void SlbClient::describeAccessControlListAttributeAsync(const DescribeAccessControlListAttributeRequest& request, const DescribeAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessControlListAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAccessControlListAttributeOutcomeCallable SlbClient::describeAccessControlListAttributeCallable(const DescribeAccessControlListAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessControlListAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeAccessControlListsOutcome SlbClient::describeAccessControlLists(const DescribeAccessControlListsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessControlListsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessControlListsOutcome(DescribeAccessControlListsResult(outcome.result())); + else + return DescribeAccessControlListsOutcome(outcome.error()); +} + +void SlbClient::describeAccessControlListsAsync(const DescribeAccessControlListsRequest& request, const DescribeAccessControlListsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessControlLists(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAccessControlListsOutcomeCallable SlbClient::describeAccessControlListsCallable(const DescribeAccessControlListsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessControlLists(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteDomainExtensionOutcome SlbClient::deleteDomainExtension(const DeleteDomainExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainExtensionOutcome(DeleteDomainExtensionResult(outcome.result())); + else + return DeleteDomainExtensionOutcome(outcome.error()); +} + +void SlbClient::deleteDomainExtensionAsync(const DeleteDomainExtensionRequest& request, const DeleteDomainExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomainExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteDomainExtensionOutcomeCallable SlbClient::deleteDomainExtensionCallable(const DeleteDomainExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomainExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::SetRuleOutcome SlbClient::setRule(const SetRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2391,78 @@ SlbClient::DescribeRulesOutcomeCallable SlbClient::describeRulesCallable(const D return task->get_future(); } +SlbClient::RemoveAccessControlListEntryOutcome SlbClient::removeAccessControlListEntry(const RemoveAccessControlListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAccessControlListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAccessControlListEntryOutcome(RemoveAccessControlListEntryResult(outcome.result())); + else + return RemoveAccessControlListEntryOutcome(outcome.error()); +} + +void SlbClient::removeAccessControlListEntryAsync(const RemoveAccessControlListEntryRequest& request, const RemoveAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeAccessControlListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveAccessControlListEntryOutcomeCallable SlbClient::removeAccessControlListEntryCallable(const RemoveAccessControlListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeAccessControlListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateDomainExtensionOutcome SlbClient::createDomainExtension(const CreateDomainExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDomainExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDomainExtensionOutcome(CreateDomainExtensionResult(outcome.result())); + else + return CreateDomainExtensionOutcome(outcome.error()); +} + +void SlbClient::createDomainExtensionAsync(const CreateDomainExtensionRequest& request, const CreateDomainExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDomainExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateDomainExtensionOutcomeCallable SlbClient::createDomainExtensionCallable(const CreateDomainExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDomainExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeRuleAttributeOutcome SlbClient::describeRuleAttribute(const DescribeRuleAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +2715,42 @@ SlbClient::ModifyLoadBalancerInternetSpecOutcomeCallable SlbClient::modifyLoadBa return task->get_future(); } +SlbClient::CreateAccessControlListOutcome SlbClient::createAccessControlList(const CreateAccessControlListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccessControlListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccessControlListOutcome(CreateAccessControlListResult(outcome.result())); + else + return CreateAccessControlListOutcome(outcome.error()); +} + +void SlbClient::createAccessControlListAsync(const CreateAccessControlListRequest& request, const CreateAccessControlListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccessControlList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateAccessControlListOutcomeCallable SlbClient::createAccessControlListCallable(const CreateAccessControlListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccessControlList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeLoadBalancerHTTPSListenerAttributeOutcome SlbClient::describeLoadBalancerHTTPSListenerAttribute(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/slb/src/model/AddAccessControlListEntryRequest.cc b/slb/src/model/AddAccessControlListEntryRequest.cc new file mode 100644 index 000000000..66a4a457e --- /dev/null +++ b/slb/src/model/AddAccessControlListEntryRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::AddAccessControlListEntryRequest; + +AddAccessControlListEntryRequest::AddAccessControlListEntryRequest() : + RpcServiceRequest("slb", "2014-05-15", "AddAccessControlListEntry") +{} + +AddAccessControlListEntryRequest::~AddAccessControlListEntryRequest() +{} + +std::string AddAccessControlListEntryRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void AddAccessControlListEntryRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +std::string AddAccessControlListEntryRequest::getAclId()const +{ + return aclId_; +} + +void AddAccessControlListEntryRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +long AddAccessControlListEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddAccessControlListEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddAccessControlListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddAccessControlListEntryRequest::getRegionId()const +{ + return regionId_; +} + +void AddAccessControlListEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddAccessControlListEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddAccessControlListEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddAccessControlListEntryRequest::getAclEntrys()const +{ + return aclEntrys_; +} + +void AddAccessControlListEntryRequest::setAclEntrys(const std::string& aclEntrys) +{ + aclEntrys_ = aclEntrys; + setParameter("AclEntrys", aclEntrys); +} + +long AddAccessControlListEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddAccessControlListEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddAccessControlListEntryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddAccessControlListEntryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddAccessControlListEntryRequest::getTags()const +{ + return tags_; +} + +void AddAccessControlListEntryRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/AddAccessControlListEntryResult.cc b/slb/src/model/AddAccessControlListEntryResult.cc new file mode 100644 index 000000000..9c369edb8 --- /dev/null +++ b/slb/src/model/AddAccessControlListEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +AddAccessControlListEntryResult::AddAccessControlListEntryResult() : + ServiceResult() +{} + +AddAccessControlListEntryResult::AddAccessControlListEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAccessControlListEntryResult::~AddAccessControlListEntryResult() +{} + +void AddAccessControlListEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/AddBackendServersResult.cc b/slb/src/model/AddBackendServersResult.cc index ce3798e51..15769d445 100644 --- a/slb/src/model/AddBackendServersResult.cc +++ b/slb/src/model/AddBackendServersResult.cc @@ -40,28 +40,36 @@ void AddBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Weight"].isNull()) - backendServersObject.weight = value["Weight"].asString(); - backendServers_.push_back(backendServersObject); - } - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Weight"].isNull()) + backendServersObject.weight = value["Weight"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } -std::string AddBackendServersResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -std::vector AddBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string AddBackendServersResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector AddBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/AddVServerGroupBackendServersResult.cc b/slb/src/model/AddVServerGroupBackendServersResult.cc index 1880709ba..654300282 100644 --- a/slb/src/model/AddVServerGroupBackendServersResult.cc +++ b/slb/src/model/AddVServerGroupBackendServersResult.cc @@ -40,30 +40,38 @@ void AddVServerGroupBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); } -std::string AddVServerGroupBackendServersResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::vector AddVServerGroupBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string AddVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector AddVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/CreateAccessControlListRequest.cc b/slb/src/model/CreateAccessControlListRequest.cc new file mode 100644 index 000000000..45afb3cd3 --- /dev/null +++ b/slb/src/model/CreateAccessControlListRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::CreateAccessControlListRequest; + +CreateAccessControlListRequest::CreateAccessControlListRequest() : + RpcServiceRequest("slb", "2014-05-15", "CreateAccessControlList") +{} + +CreateAccessControlListRequest::~CreateAccessControlListRequest() +{} + +std::string CreateAccessControlListRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void CreateAccessControlListRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long CreateAccessControlListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAccessControlListRequest::getAclName()const +{ + return aclName_; +} + +void CreateAccessControlListRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string CreateAccessControlListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateAccessControlListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateAccessControlListRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAccessControlListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateAccessControlListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateAccessControlListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateAccessControlListRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAccessControlListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAccessControlListRequest::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +void CreateAccessControlListRequest::setAddressIPVersion(const std::string& addressIPVersion) +{ + addressIPVersion_ = addressIPVersion; + setParameter("AddressIPVersion", addressIPVersion); +} + +std::string CreateAccessControlListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateAccessControlListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateAccessControlListRequest::getTags()const +{ + return tags_; +} + +void CreateAccessControlListRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/CreateAccessControlListResult.cc b/slb/src/model/CreateAccessControlListResult.cc new file mode 100644 index 000000000..b1a8b40db --- /dev/null +++ b/slb/src/model/CreateAccessControlListResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateAccessControlListResult::CreateAccessControlListResult() : + ServiceResult() +{} + +CreateAccessControlListResult::CreateAccessControlListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccessControlListResult::~CreateAccessControlListResult() +{} + +void CreateAccessControlListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string CreateAccessControlListResult::getAclId()const +{ + return aclId_; +} + diff --git a/slb/src/model/CreateDomainExtensionRequest.cc b/slb/src/model/CreateDomainExtensionRequest.cc new file mode 100644 index 000000000..8692bd773 --- /dev/null +++ b/slb/src/model/CreateDomainExtensionRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::CreateDomainExtensionRequest; + +CreateDomainExtensionRequest::CreateDomainExtensionRequest() : + RpcServiceRequest("slb", "2014-05-15", "CreateDomainExtension") +{} + +CreateDomainExtensionRequest::~CreateDomainExtensionRequest() +{} + +std::string CreateDomainExtensionRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void CreateDomainExtensionRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long CreateDomainExtensionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateDomainExtensionRequest::getListenerPort()const +{ + return listenerPort_; +} + +void CreateDomainExtensionRequest::setListenerPort(int listenerPort) +{ + listenerPort_ = listenerPort; + setParameter("ListenerPort", std::to_string(listenerPort)); +} + +std::string CreateDomainExtensionRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void CreateDomainExtensionRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setParameter("LoadBalancerId", loadBalancerId); +} + +std::string CreateDomainExtensionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDomainExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDomainExtensionRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDomainExtensionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDomainExtensionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDomainExtensionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDomainExtensionRequest::getDomain()const +{ + return domain_; +} + +void CreateDomainExtensionRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setParameter("Domain", domain); +} + +long CreateDomainExtensionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDomainExtensionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDomainExtensionRequest::getServerCertificateId()const +{ + return serverCertificateId_; +} + +void CreateDomainExtensionRequest::setServerCertificateId(const std::string& serverCertificateId) +{ + serverCertificateId_ = serverCertificateId; + setParameter("ServerCertificateId", serverCertificateId); +} + +std::string CreateDomainExtensionRequest::getTags()const +{ + return tags_; +} + +void CreateDomainExtensionRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/CreateDomainExtensionResult.cc b/slb/src/model/CreateDomainExtensionResult.cc new file mode 100644 index 000000000..4b55bc5ae --- /dev/null +++ b/slb/src/model/CreateDomainExtensionResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateDomainExtensionResult::CreateDomainExtensionResult() : + ServiceResult() +{} + +CreateDomainExtensionResult::CreateDomainExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDomainExtensionResult::~CreateDomainExtensionResult() +{} + +void CreateDomainExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["DomainExtensionId"].isNull()) + domainExtensionId_ = value["DomainExtensionId"].asString(); + +} + +int CreateDomainExtensionResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string CreateDomainExtensionResult::getDomainExtensionId()const +{ + return domainExtensionId_; +} + diff --git a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc index 7c436fa87..2b98d24fe 100644 --- a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc @@ -58,6 +58,17 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthCheckTimeout(int healthChec setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); } +std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward()const +{ + return listenerForward_; +} + +void CreateLoadBalancerHTTPListenerRequest::setListenerForward(const std::string& listenerForward) +{ + listenerForward_ = listenerForward; + setParameter("ListenerForward", listenerForward); +} + std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor()const { return xForwardedFor_; @@ -80,6 +91,17 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthCheckURI(const std::string& setParameter("HealthCheckURI", healthCheckURI); } +std::string CreateLoadBalancerHTTPListenerRequest::getDescription()const +{ + return description_; +} + +void CreateLoadBalancerHTTPListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -102,6 +124,17 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthyThreshold(int healthyThres setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string CreateLoadBalancerHTTPListenerRequest::getAclStatus()const +{ + return aclStatus_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string CreateLoadBalancerHTTPListenerRequest::getScheduler()const { return scheduler_; @@ -113,6 +146,17 @@ void CreateLoadBalancerHTTPListenerRequest::setScheduler(const std::string& sche setParameter("Scheduler", scheduler); } +std::string CreateLoadBalancerHTTPListenerRequest::getAclType()const +{ + return aclType_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck()const { return healthCheck_; @@ -124,6 +168,17 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string& he setParameter("HealthCheck", healthCheck); } +int CreateLoadBalancerHTTPListenerRequest::getForwardPort()const +{ + return forwardPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setForwardPort(int forwardPort) +{ + forwardPort_ = forwardPort; + setParameter("ForwardPort", std::to_string(forwardPort)); +} + int CreateLoadBalancerHTTPListenerRequest::getMaxConnection()const { return maxConnection_; @@ -168,6 +223,17 @@ void CreateLoadBalancerHTTPListenerRequest::setStickySessionType(const std::stri setParameter("StickySessionType", stickySessionType); } +std::string CreateLoadBalancerHTTPListenerRequest::getVpcIds()const +{ + return vpcIds_; +} + +void CreateLoadBalancerHTTPListenerRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string CreateLoadBalancerHTTPListenerRequest::getVServerGroupId()const { return vServerGroupId_; @@ -179,6 +245,17 @@ void CreateLoadBalancerHTTPListenerRequest::setVServerGroupId(const std::string& setParameter("VServerGroupId", vServerGroupId); } +std::string CreateLoadBalancerHTTPListenerRequest::getAclId()const +{ + return aclId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int CreateLoadBalancerHTTPListenerRequest::getListenerPort()const { return listenerPort_; @@ -245,6 +322,17 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthCheckDomain(const std::stri setParameter("HealthCheckDomain", healthCheckDomain); } +int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout()const +{ + return requestTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setRequestTimeout(int requestTimeout) +{ + requestTimeout_ = requestTimeout; + setParameter("RequestTimeout", std::to_string(requestTimeout)); +} + std::string CreateLoadBalancerHTTPListenerRequest::getOwnerAccount()const { return ownerAccount_; @@ -289,6 +377,17 @@ void CreateLoadBalancerHTTPListenerRequest::setTags(const std::string& tags) setParameter("Tags", tags); } +int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout()const +{ + return idleTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setIdleTimeout(int idleTimeout) +{ + idleTimeout_ = idleTimeout; + setParameter("IdleTimeout", std::to_string(idleTimeout)); +} + std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId()const { return loadBalancerId_; diff --git a/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc index edc898196..59aee9ea4 100644 --- a/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc @@ -80,6 +80,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckURI(const std::string setParameter("HealthCheckURI", healthCheckURI); } +std::string CreateLoadBalancerHTTPSListenerRequest::getDescription()const +{ + return description_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -102,6 +113,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setHealthyThreshold(int healthyThre setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string CreateLoadBalancerHTTPSListenerRequest::getAclStatus()const +{ + return aclStatus_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler()const { return scheduler_; @@ -113,6 +135,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setScheduler(const std::string& sch setParameter("Scheduler", scheduler); } +std::string CreateLoadBalancerHTTPSListenerRequest::getAclType()const +{ + return aclType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck()const { return healthCheck_; @@ -135,6 +168,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setMaxConnection(int maxConnection) setParameter("MaxConnection", std::to_string(maxConnection)); } +std::string CreateLoadBalancerHTTPSListenerRequest::getEnableHttp2()const +{ + return enableHttp2_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setEnableHttp2(const std::string& enableHttp2) +{ + enableHttp2_ = enableHttp2; + setParameter("EnableHttp2", enableHttp2); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getRegionId()const { return regionId_; @@ -168,6 +212,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setStickySessionType(const std::str setParameter("StickySessionType", stickySessionType); } +std::string CreateLoadBalancerHTTPSListenerRequest::getVpcIds()const +{ + return vpcIds_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getVServerGroupId()const { return vServerGroupId_; @@ -179,6 +234,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setVServerGroupId(const std::string setParameter("VServerGroupId", vServerGroupId); } +std::string CreateLoadBalancerHTTPSListenerRequest::getAclId()const +{ + return aclId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int CreateLoadBalancerHTTPSListenerRequest::getListenerPort()const { return listenerPort_; @@ -245,6 +311,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckDomain(const std::str setParameter("HealthCheckDomain", healthCheckDomain); } +int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout()const +{ + return requestTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setRequestTimeout(int requestTimeout) +{ + requestTimeout_ = requestTimeout; + setParameter("RequestTimeout", std::to_string(requestTimeout)); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getOwnerAccount()const { return ownerAccount_; @@ -267,6 +344,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setGzip(const std::string& gzip) setParameter("Gzip", gzip); } +std::string CreateLoadBalancerHTTPSListenerRequest::getTLSCipherPolicy()const +{ + return tLSCipherPolicy_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setTLSCipherPolicy(const std::string& tLSCipherPolicy) +{ + tLSCipherPolicy_ = tLSCipherPolicy; + setParameter("TLSCipherPolicy", tLSCipherPolicy); +} + long CreateLoadBalancerHTTPSListenerRequest::getOwnerId()const { return ownerId_; @@ -311,6 +399,17 @@ void CreateLoadBalancerHTTPSListenerRequest::setTags(const std::string& tags) setParameter("Tags", tags); } +int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout()const +{ + return idleTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setIdleTimeout(int idleTimeout) +{ + idleTimeout_ = idleTimeout; + setParameter("IdleTimeout", std::to_string(idleTimeout)); +} + std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId()const { return loadBalancerId_; diff --git a/slb/src/model/CreateLoadBalancerRequest.cc b/slb/src/model/CreateLoadBalancerRequest.cc index f0020c043..54f951ae2 100644 --- a/slb/src/model/CreateLoadBalancerRequest.cc +++ b/slb/src/model/CreateLoadBalancerRequest.cc @@ -36,17 +36,6 @@ void CreateLoadBalancerRequest::setAccess_key_id(const std::string& access_key_i setParameter("Access_key_id", access_key_id); } -std::string CreateLoadBalancerRequest::getLoadBalancerSpec()const -{ - return loadBalancerSpec_; -} - -void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string& loadBalancerSpec) -{ - loadBalancerSpec_ = loadBalancerSpec; - setParameter("LoadBalancerSpec", loadBalancerSpec); -} - long CreateLoadBalancerRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -58,39 +47,6 @@ void CreateLoadBalancerRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -bool CreateLoadBalancerRequest::getAutoPay()const -{ - return autoPay_; -} - -void CreateLoadBalancerRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", std::to_string(autoPay)); -} - -std::string CreateLoadBalancerRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateLoadBalancerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -int CreateLoadBalancerRequest::getBandwidth()const -{ - return bandwidth_; -} - -void CreateLoadBalancerRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); -} - std::string CreateLoadBalancerRequest::getClientToken()const { return clientToken_; @@ -102,26 +58,15 @@ void CreateLoadBalancerRequest::setClientToken(const std::string& clientToken) setParameter("ClientToken", clientToken); } -std::string CreateLoadBalancerRequest::getOwnerAccount()const +std::string CreateLoadBalancerRequest::getAddressIPVersion()const { - return ownerAccount_; + return addressIPVersion_; } -void CreateLoadBalancerRequest::setOwnerAccount(const std::string& ownerAccount) +void CreateLoadBalancerRequest::setAddressIPVersion(const std::string& addressIPVersion) { - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long CreateLoadBalancerRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateLoadBalancerRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); + addressIPVersion_ = addressIPVersion; + setParameter("AddressIPVersion", addressIPVersion); } std::string CreateLoadBalancerRequest::getMasterZoneId()const @@ -135,28 +80,6 @@ void CreateLoadBalancerRequest::setMasterZoneId(const std::string& masterZoneId) setParameter("MasterZoneId", masterZoneId); } -std::string CreateLoadBalancerRequest::getTags()const -{ - return tags_; -} - -void CreateLoadBalancerRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); -} - -std::string CreateLoadBalancerRequest::getVSwitchId()const -{ - return vSwitchId_; -} - -void CreateLoadBalancerRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); -} - int CreateLoadBalancerRequest::getDuration()const { return duration_; @@ -190,17 +113,6 @@ void CreateLoadBalancerRequest::setLoadBalancerName(const std::string& loadBalan setParameter("LoadBalancerName", loadBalancerName); } -std::string CreateLoadBalancerRequest::getEnableVpcVipFlow()const -{ - return enableVpcVipFlow_; -} - -void CreateLoadBalancerRequest::setEnableVpcVipFlow(const std::string& enableVpcVipFlow) -{ - enableVpcVipFlow_ = enableVpcVipFlow; - setParameter("EnableVpcVipFlow", enableVpcVipFlow); -} - std::string CreateLoadBalancerRequest::getRegionId()const { return regionId_; @@ -212,28 +124,6 @@ void CreateLoadBalancerRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } -std::string CreateLoadBalancerRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void CreateLoadBalancerRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); -} - -std::string CreateLoadBalancerRequest::getVpcId()const -{ - return vpcId_; -} - -void CreateLoadBalancerRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); -} - std::string CreateLoadBalancerRequest::getAddressType()const { return addressType_; @@ -256,6 +146,127 @@ void CreateLoadBalancerRequest::setSlaveZoneId(const std::string& slaveZoneId) setParameter("SlaveZoneId", slaveZoneId); } +std::string CreateLoadBalancerRequest::getLoadBalancerSpec()const +{ + return loadBalancerSpec_; +} + +void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string& loadBalancerSpec) +{ + loadBalancerSpec_ = loadBalancerSpec; + setParameter("LoadBalancerSpec", loadBalancerSpec); +} + +bool CreateLoadBalancerRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreateLoadBalancerRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string CreateLoadBalancerRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateLoadBalancerRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int CreateLoadBalancerRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateLoadBalancerRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateLoadBalancerRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateLoadBalancerRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateLoadBalancerRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateLoadBalancerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateLoadBalancerRequest::getTags()const +{ + return tags_; +} + +void CreateLoadBalancerRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string CreateLoadBalancerRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateLoadBalancerRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateLoadBalancerRequest::getEnableVpcVipFlow()const +{ + return enableVpcVipFlow_; +} + +void CreateLoadBalancerRequest::setEnableVpcVipFlow(const std::string& enableVpcVipFlow) +{ + enableVpcVipFlow_ = enableVpcVipFlow; + setParameter("EnableVpcVipFlow", enableVpcVipFlow); +} + +std::string CreateLoadBalancerRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateLoadBalancerRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string CreateLoadBalancerRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateLoadBalancerRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + std::string CreateLoadBalancerRequest::getPayType()const { return payType_; diff --git a/slb/src/model/CreateLoadBalancerResult.cc b/slb/src/model/CreateLoadBalancerResult.cc index 012582a18..9ccb472cf 100644 --- a/slb/src/model/CreateLoadBalancerResult.cc +++ b/slb/src/model/CreateLoadBalancerResult.cc @@ -40,62 +40,69 @@ void CreateLoadBalancerResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["Address"].isNull()) - address_ = value["Address"].asString(); - if(!value["LoadBalancerName"].isNull()) - loadBalancerName_ = value["LoadBalancerName"].asString(); - if(!value["VpcId"].isNull()) - vpcId_ = value["VpcId"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); - if(!value["NetworkType"].isNull()) - networkType_ = value["NetworkType"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); } -std::string CreateLoadBalancerResult::getLoadBalancerName()const -{ - return loadBalancerName_; -} - -std::string CreateLoadBalancerResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -std::string CreateLoadBalancerResult::getAddress()const -{ - return address_; -} - -std::string CreateLoadBalancerResult::getVpcId()const -{ - return vpcId_; -} - -std::string CreateLoadBalancerResult::getNetworkType()const -{ - return networkType_; -} - -std::string CreateLoadBalancerResult::getVSwitchId()const -{ - return vSwitchId_; -} - -std::string CreateLoadBalancerResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -long CreateLoadBalancerResult::getOrderId()const -{ - return orderId_; -} - +std::string CreateLoadBalancerResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +std::string CreateLoadBalancerResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string CreateLoadBalancerResult::getAddress()const +{ + return address_; +} + +std::string CreateLoadBalancerResult::getVpcId()const +{ + return vpcId_; +} + +std::string CreateLoadBalancerResult::getNetworkType()const +{ + return networkType_; +} + +std::string CreateLoadBalancerResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string CreateLoadBalancerResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::string CreateLoadBalancerResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +long CreateLoadBalancerResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc index 3a4bcad1d..c7852bff5 100644 --- a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc @@ -69,6 +69,17 @@ void CreateLoadBalancerTCPListenerRequest::setHealthCheckURI(const std::string& setParameter("HealthCheckURI", healthCheckURI); } +std::string CreateLoadBalancerTCPListenerRequest::getDescription()const +{ + return description_; +} + +void CreateLoadBalancerTCPListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -91,6 +102,17 @@ void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThresh setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string CreateLoadBalancerTCPListenerRequest::getAclStatus()const +{ + return aclStatus_; +} + +void CreateLoadBalancerTCPListenerRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string CreateLoadBalancerTCPListenerRequest::getScheduler()const { return scheduler_; @@ -102,6 +124,17 @@ void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string& sched setParameter("Scheduler", scheduler); } +std::string CreateLoadBalancerTCPListenerRequest::getAclType()const +{ + return aclType_; +} + +void CreateLoadBalancerTCPListenerRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout()const { return establishedTimeout_; @@ -146,6 +179,17 @@ void CreateLoadBalancerTCPListenerRequest::setPersistenceTimeout(int persistence setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } +std::string CreateLoadBalancerTCPListenerRequest::getVpcIds()const +{ + return vpcIds_; +} + +void CreateLoadBalancerTCPListenerRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string CreateLoadBalancerTCPListenerRequest::getVServerGroupId()const { return vServerGroupId_; @@ -157,6 +201,17 @@ void CreateLoadBalancerTCPListenerRequest::setVServerGroupId(const std::string& setParameter("VServerGroupId", vServerGroupId); } +std::string CreateLoadBalancerTCPListenerRequest::getAclId()const +{ + return aclId_; +} + +void CreateLoadBalancerTCPListenerRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int CreateLoadBalancerTCPListenerRequest::getListenerPort()const { return listenerPort_; diff --git a/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc index 492bdba31..c5103055e 100644 --- a/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc @@ -36,17 +36,6 @@ void CreateLoadBalancerUDPListenerRequest::setAccess_key_id(const std::string& a setParameter("Access_key_id", access_key_id); } -std::string CreateLoadBalancerUDPListenerRequest::getVServerGroupId()const -{ - return vServerGroupId_; -} - -void CreateLoadBalancerUDPListenerRequest::setVServerGroupId(const std::string& vServerGroupId) -{ - vServerGroupId_ = vServerGroupId; - setParameter("VServerGroupId", vServerGroupId); -} - int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout()const { return healthCheckConnectTimeout_; @@ -69,6 +58,138 @@ void CreateLoadBalancerUDPListenerRequest::setResourceOwnerId(long resourceOwner setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string CreateLoadBalancerUDPListenerRequest::getDescription()const +{ + return description_; +} + +void CreateLoadBalancerUDPListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) +{ + unhealthyThreshold_ = unhealthyThreshold; + setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) +{ + healthyThreshold_ = healthyThreshold; + setParameter("HealthyThreshold", std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclStatus()const +{ + return aclStatus_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + +std::string CreateLoadBalancerUDPListenerRequest::getScheduler()const +{ + return scheduler_; +} + +void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string& scheduler) +{ + scheduler_ = scheduler; + setParameter("Scheduler", scheduler); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclType()const +{ + return aclType_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + +int CreateLoadBalancerUDPListenerRequest::getMaxConnection()const +{ + return maxConnection_; +} + +void CreateLoadBalancerUDPListenerRequest::setMaxConnection(int maxConnection) +{ + maxConnection_ = maxConnection; + setParameter("MaxConnection", std::to_string(maxConnection)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getRegionId()const +{ + return regionId_; +} + +void CreateLoadBalancerUDPListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int CreateLoadBalancerUDPListenerRequest::getPersistenceTimeout()const +{ + return persistenceTimeout_; +} + +void CreateLoadBalancerUDPListenerRequest::setPersistenceTimeout(int persistenceTimeout) +{ + persistenceTimeout_ = persistenceTimeout; + setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getVpcIds()const +{ + return vpcIds_; +} + +void CreateLoadBalancerUDPListenerRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + +std::string CreateLoadBalancerUDPListenerRequest::getVServerGroupId()const +{ + return vServerGroupId_; +} + +void CreateLoadBalancerUDPListenerRequest::setVServerGroupId(const std::string& vServerGroupId) +{ + vServerGroupId_ = vServerGroupId; + setParameter("VServerGroupId", vServerGroupId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclId()const +{ + return aclId_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int CreateLoadBalancerUDPListenerRequest::getListenerPort()const { return listenerPort_; @@ -113,17 +234,6 @@ void CreateLoadBalancerUDPListenerRequest::setOwnerAccount(const std::string& ow setParameter("OwnerAccount", ownerAccount); } -int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold()const -{ - return unhealthyThreshold_; -} - -void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) -{ - unhealthyThreshold_ = unhealthyThreshold; - setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); -} - long CreateLoadBalancerUDPListenerRequest::getOwnerId()const { return ownerId_; @@ -135,17 +245,6 @@ void CreateLoadBalancerUDPListenerRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) -{ - healthyThreshold_ = healthyThreshold; - setParameter("HealthyThreshold", std::to_string(healthyThreshold)); -} - std::string CreateLoadBalancerUDPListenerRequest::getTags()const { return tags_; @@ -157,17 +256,6 @@ void CreateLoadBalancerUDPListenerRequest::setTags(const std::string& tags) setParameter("Tags", tags); } -std::string CreateLoadBalancerUDPListenerRequest::getScheduler()const -{ - return scheduler_; -} - -void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string& scheduler) -{ - scheduler_ = scheduler; - setParameter("Scheduler", scheduler); -} - std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId()const { return loadBalancerId_; @@ -179,17 +267,6 @@ void CreateLoadBalancerUDPListenerRequest::setLoadBalancerId(const std::string& setParameter("LoadBalancerId", loadBalancerId); } -int CreateLoadBalancerUDPListenerRequest::getMaxConnection()const -{ - return maxConnection_; -} - -void CreateLoadBalancerUDPListenerRequest::setMaxConnection(int maxConnection) -{ - maxConnection_ = maxConnection; - setParameter("MaxConnection", std::to_string(maxConnection)); -} - std::string CreateLoadBalancerUDPListenerRequest::getMasterSlaveServerGroupId()const { return masterSlaveServerGroupId_; @@ -212,17 +289,6 @@ void CreateLoadBalancerUDPListenerRequest::setHealthCheckReq(const std::string& setParameter("HealthCheckReq", healthCheckReq); } -std::string CreateLoadBalancerUDPListenerRequest::getRegionId()const -{ - return regionId_; -} - -void CreateLoadBalancerUDPListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - int CreateLoadBalancerUDPListenerRequest::getBackendServerPort()const { return backendServerPort_; @@ -245,17 +311,6 @@ void CreateLoadBalancerUDPListenerRequest::setHealthCheckInterval(int healthChec setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); } -int CreateLoadBalancerUDPListenerRequest::getPersistenceTimeout()const -{ - return persistenceTimeout_; -} - -void CreateLoadBalancerUDPListenerRequest::setPersistenceTimeout(int persistenceTimeout) -{ - persistenceTimeout_ = persistenceTimeout; - setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); -} - std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp()const { return healthCheckExp_; diff --git a/slb/src/model/CreateMasterSlaveServerGroupResult.cc b/slb/src/model/CreateMasterSlaveServerGroupResult.cc index f80313405..be959dddf 100644 --- a/slb/src/model/CreateMasterSlaveServerGroupResult.cc +++ b/slb/src/model/CreateMasterSlaveServerGroupResult.cc @@ -40,32 +40,40 @@ void CreateMasterSlaveServerGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; - for (auto value : allMasterSlaveBackendServers) - { - MasterSlaveBackendServer masterSlaveBackendServersObject; - if(!value["ServerId"].isNull()) - masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); - if(!value["ServerType"].isNull()) - masterSlaveBackendServersObject.serverType = value["ServerType"].asString(); - masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); - } - if(!value["MasterSlaveServerGroupId"].isNull()) - masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto value : allMasterSlaveBackendServers) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!value["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["ServerType"].isNull()) + masterSlaveBackendServersObject.serverType = value["ServerType"].asString(); + if(!value["Type"].isNull()) + masterSlaveBackendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); } -std::string CreateMasterSlaveServerGroupResult::getMasterSlaveServerGroupId()const -{ - return masterSlaveServerGroupId_; -} - -std::vector CreateMasterSlaveServerGroupResult::getMasterSlaveBackendServers()const -{ - return masterSlaveBackendServers_; -} - +std::string CreateMasterSlaveServerGroupResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::vector CreateMasterSlaveServerGroupResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + diff --git a/slb/src/model/CreateMasterSlaveVServerGroupResult.cc b/slb/src/model/CreateMasterSlaveVServerGroupResult.cc index 9afafbb9e..89d41761e 100644 --- a/slb/src/model/CreateMasterSlaveVServerGroupResult.cc +++ b/slb/src/model/CreateMasterSlaveVServerGroupResult.cc @@ -40,32 +40,40 @@ void CreateMasterSlaveVServerGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; - for (auto value : allMasterSlaveBackendServers) - { - MasterSlaveBackendServer masterSlaveBackendServersObject; - if(!value["ServerId"].isNull()) - masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); - if(!value["IsBackup"].isNull()) - masterSlaveBackendServersObject.isBackup = std::stoi(value["IsBackup"].asString()); - masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); - } - if(!value["MasterSlaveVServerGroupId"].isNull()) - masterSlaveVServerGroupId_ = value["MasterSlaveVServerGroupId"].asString(); + auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto value : allMasterSlaveBackendServers) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!value["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["IsBackup"].isNull()) + masterSlaveBackendServersObject.isBackup = std::stoi(value["IsBackup"].asString()); + if(!value["Type"].isNull()) + masterSlaveBackendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["MasterSlaveVServerGroupId"].isNull()) + masterSlaveVServerGroupId_ = value["MasterSlaveVServerGroupId"].asString(); } -std::string CreateMasterSlaveVServerGroupResult::getMasterSlaveVServerGroupId()const -{ - return masterSlaveVServerGroupId_; -} - -std::vector CreateMasterSlaveVServerGroupResult::getMasterSlaveBackendServers()const -{ - return masterSlaveBackendServers_; -} - +std::string CreateMasterSlaveVServerGroupResult::getMasterSlaveVServerGroupId()const +{ + return masterSlaveVServerGroupId_; +} + +std::vector CreateMasterSlaveVServerGroupResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + diff --git a/slb/src/model/CreateRulesResult.cc b/slb/src/model/CreateRulesResult.cc index ab53dff76..11e56faad 100644 --- a/slb/src/model/CreateRulesResult.cc +++ b/slb/src/model/CreateRulesResult.cc @@ -40,21 +40,21 @@ void CreateRulesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRules = value["Rules"]["Rule"]; - for (auto value : allRules) - { - Rule rulesObject; - if(!value["RuleId"].isNull()) - rulesObject.ruleId = value["RuleId"].asString(); - if(!value["RuleName"].isNull()) - rulesObject.ruleName = value["RuleName"].asString(); - rules_.push_back(rulesObject); - } + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule rulesObject; + if(!value["RuleId"].isNull()) + rulesObject.ruleId = value["RuleId"].asString(); + if(!value["RuleName"].isNull()) + rulesObject.ruleName = value["RuleName"].asString(); + rules_.push_back(rulesObject); + } } -std::vector CreateRulesResult::getRules()const -{ - return rules_; -} - +std::vector CreateRulesResult::getRules()const +{ + return rules_; +} + diff --git a/slb/src/model/CreateVServerGroupResult.cc b/slb/src/model/CreateVServerGroupResult.cc index c51361f52..d91f461d6 100644 --- a/slb/src/model/CreateVServerGroupResult.cc +++ b/slb/src/model/CreateVServerGroupResult.cc @@ -40,30 +40,38 @@ void CreateVServerGroupResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); } -std::string CreateVServerGroupResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::vector CreateVServerGroupResult::getBackendServers()const -{ - return backendServers_; -} - +std::string CreateVServerGroupResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector CreateVServerGroupResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/DeleteAccessControlListRequest.cc b/slb/src/model/DeleteAccessControlListRequest.cc new file mode 100644 index 000000000..51c11dea3 --- /dev/null +++ b/slb/src/model/DeleteAccessControlListRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::DeleteAccessControlListRequest; + +DeleteAccessControlListRequest::DeleteAccessControlListRequest() : + RpcServiceRequest("slb", "2014-05-15", "DeleteAccessControlList") +{} + +DeleteAccessControlListRequest::~DeleteAccessControlListRequest() +{} + +std::string DeleteAccessControlListRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DeleteAccessControlListRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +std::string DeleteAccessControlListRequest::getAclId()const +{ + return aclId_; +} + +void DeleteAccessControlListRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +long DeleteAccessControlListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteAccessControlListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteAccessControlListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteAccessControlListRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteAccessControlListRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteAccessControlListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteAccessControlListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteAccessControlListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteAccessControlListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteAccessControlListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteAccessControlListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteAccessControlListRequest::getTags()const +{ + return tags_; +} + +void DeleteAccessControlListRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/DeleteAccessControlListResult.cc b/slb/src/model/DeleteAccessControlListResult.cc new file mode 100644 index 000000000..e8ea96834 --- /dev/null +++ b/slb/src/model/DeleteAccessControlListResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteAccessControlListResult::DeleteAccessControlListResult() : + ServiceResult() +{} + +DeleteAccessControlListResult::DeleteAccessControlListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessControlListResult::~DeleteAccessControlListResult() +{} + +void DeleteAccessControlListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteDomainExtensionRequest.cc b/slb/src/model/DeleteDomainExtensionRequest.cc new file mode 100644 index 000000000..f32e58a9e --- /dev/null +++ b/slb/src/model/DeleteDomainExtensionRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::DeleteDomainExtensionRequest; + +DeleteDomainExtensionRequest::DeleteDomainExtensionRequest() : + RpcServiceRequest("slb", "2014-05-15", "DeleteDomainExtension") +{} + +DeleteDomainExtensionRequest::~DeleteDomainExtensionRequest() +{} + +std::string DeleteDomainExtensionRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DeleteDomainExtensionRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long DeleteDomainExtensionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDomainExtensionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDomainExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDomainExtensionRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDomainExtensionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteDomainExtensionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDomainExtensionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteDomainExtensionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDomainExtensionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDomainExtensionRequest::getTags()const +{ + return tags_; +} + +void DeleteDomainExtensionRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DeleteDomainExtensionRequest::getDomainExtensionId()const +{ + return domainExtensionId_; +} + +void DeleteDomainExtensionRequest::setDomainExtensionId(const std::string& domainExtensionId) +{ + domainExtensionId_ = domainExtensionId; + setParameter("DomainExtensionId", domainExtensionId); +} + diff --git a/slb/src/model/DeleteDomainExtensionResult.cc b/slb/src/model/DeleteDomainExtensionResult.cc new file mode 100644 index 000000000..4df31ea60 --- /dev/null +++ b/slb/src/model/DeleteDomainExtensionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteDomainExtensionResult::DeleteDomainExtensionResult() : + ServiceResult() +{} + +DeleteDomainExtensionResult::DeleteDomainExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDomainExtensionResult::~DeleteDomainExtensionResult() +{} + +void DeleteDomainExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DescribeAccessControlListAttributeRequest.cc b/slb/src/model/DescribeAccessControlListAttributeRequest.cc new file mode 100644 index 000000000..ecf298d86 --- /dev/null +++ b/slb/src/model/DescribeAccessControlListAttributeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::DescribeAccessControlListAttributeRequest; + +DescribeAccessControlListAttributeRequest::DescribeAccessControlListAttributeRequest() : + RpcServiceRequest("slb", "2014-05-15", "DescribeAccessControlListAttribute") +{} + +DescribeAccessControlListAttributeRequest::~DescribeAccessControlListAttributeRequest() +{} + +std::string DescribeAccessControlListAttributeRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DescribeAccessControlListAttributeRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +std::string DescribeAccessControlListAttributeRequest::getAclId()const +{ + return aclId_; +} + +void DescribeAccessControlListAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +long DescribeAccessControlListAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessControlListAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccessControlListAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAccessControlListAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAccessControlListAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAccessControlListAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAccessControlListAttributeRequest::getAclEntryComment()const +{ + return aclEntryComment_; +} + +void DescribeAccessControlListAttributeRequest::setAclEntryComment(const std::string& aclEntryComment) +{ + aclEntryComment_ = aclEntryComment; + setParameter("AclEntryComment", aclEntryComment); +} + +long DescribeAccessControlListAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccessControlListAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccessControlListAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccessControlListAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAccessControlListAttributeRequest::getTags()const +{ + return tags_; +} + +void DescribeAccessControlListAttributeRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/DescribeAccessControlListAttributeResult.cc b/slb/src/model/DescribeAccessControlListAttributeResult.cc new file mode 100644 index 000000000..f2b0d84e4 --- /dev/null +++ b/slb/src/model/DescribeAccessControlListAttributeResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult() : + ServiceResult() +{} + +DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessControlListAttributeResult::~DescribeAccessControlListAttributeResult() +{} + +void DescribeAccessControlListAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAclEntrys = value["AclEntrys"]["AclEntry"]; + for (auto value : allAclEntrys) + { + AclEntry aclEntrysObject; + if(!value["AclEntryIP"].isNull()) + aclEntrysObject.aclEntryIP = value["AclEntryIP"].asString(); + if(!value["AclEntryComment"].isNull()) + aclEntrysObject.aclEntryComment = value["AclEntryComment"].asString(); + aclEntrys_.push_back(aclEntrysObject); + } + auto allRelatedListeners = value["RelatedListeners"]["RelatedListener"]; + for (auto value : allRelatedListeners) + { + RelatedListener relatedListenersObject; + if(!value["LoadBalancerId"].isNull()) + relatedListenersObject.loadBalancerId = value["LoadBalancerId"].asString(); + if(!value["ListenerPort"].isNull()) + relatedListenersObject.listenerPort = std::stoi(value["ListenerPort"].asString()); + if(!value["AclType"].isNull()) + relatedListenersObject.aclType = value["AclType"].asString(); + if(!value["Protocol"].isNull()) + relatedListenersObject.protocol = value["Protocol"].asString(); + relatedListeners_.push_back(relatedListenersObject); + } + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclName"].isNull()) + aclName_ = value["AclName"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + +} + +std::vector DescribeAccessControlListAttributeResult::getAclEntrys()const +{ + return aclEntrys_; +} + +std::string DescribeAccessControlListAttributeResult::getAclId()const +{ + return aclId_; +} + +std::string DescribeAccessControlListAttributeResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::vector DescribeAccessControlListAttributeResult::getRelatedListeners()const +{ + return relatedListeners_; +} + +std::string DescribeAccessControlListAttributeResult::getAclName()const +{ + return aclName_; +} + diff --git a/slb/src/model/DescribeAccessControlListsRequest.cc b/slb/src/model/DescribeAccessControlListsRequest.cc new file mode 100644 index 000000000..6d12ebb6c --- /dev/null +++ b/slb/src/model/DescribeAccessControlListsRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::DescribeAccessControlListsRequest; + +DescribeAccessControlListsRequest::DescribeAccessControlListsRequest() : + RpcServiceRequest("slb", "2014-05-15", "DescribeAccessControlLists") +{} + +DescribeAccessControlListsRequest::~DescribeAccessControlListsRequest() +{} + +std::string DescribeAccessControlListsRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DescribeAccessControlListsRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long DescribeAccessControlListsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccessControlListsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessControlListsRequest::getAclName()const +{ + return aclName_; +} + +void DescribeAccessControlListsRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string DescribeAccessControlListsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccessControlListsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccessControlListsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAccessControlListsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeAccessControlListsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccessControlListsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccessControlListsRequest::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +void DescribeAccessControlListsRequest::setAddressIPVersion(const std::string& addressIPVersion) +{ + addressIPVersion_ = addressIPVersion; + setParameter("AddressIPVersion", addressIPVersion); +} + +int DescribeAccessControlListsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAccessControlListsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeAccessControlListsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccessControlListsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAccessControlListsRequest::getTags()const +{ + return tags_; +} + +void DescribeAccessControlListsRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeAccessControlListsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAccessControlListsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeAccessControlListsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessControlListsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/slb/src/model/DescribeAccessControlListsResult.cc b/slb/src/model/DescribeAccessControlListsResult.cc new file mode 100644 index 000000000..a7365c7ad --- /dev/null +++ b/slb/src/model/DescribeAccessControlListsResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAccessControlListsResult::DescribeAccessControlListsResult() : + ServiceResult() +{} + +DescribeAccessControlListsResult::DescribeAccessControlListsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessControlListsResult::~DescribeAccessControlListsResult() +{} + +void DescribeAccessControlListsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAcls = value["Acls"]["Acl"]; + for (auto value : allAcls) + { + Acl aclsObject; + if(!value["AclId"].isNull()) + aclsObject.aclId = value["AclId"].asString(); + if(!value["AclName"].isNull()) + aclsObject.aclName = value["AclName"].asString(); + if(!value["AddressIPVersion"].isNull()) + aclsObject.addressIPVersion = value["AddressIPVersion"].asString(); + acls_.push_back(aclsObject); + } + +} + +std::vector DescribeAccessControlListsResult::getAcls()const +{ + return acls_; +} + diff --git a/slb/src/model/DescribeCACertificatesResult.cc b/slb/src/model/DescribeCACertificatesResult.cc index a340ce5b5..fd5910065 100644 --- a/slb/src/model/DescribeCACertificatesResult.cc +++ b/slb/src/model/DescribeCACertificatesResult.cc @@ -40,31 +40,37 @@ void DescribeCACertificatesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allCACertificates = value["CACertificates"]["CACertificate"]; - for (auto value : allCACertificates) - { - CACertificate cACertificatesObject; - if(!value["RegionId"].isNull()) - cACertificatesObject.regionId = value["RegionId"].asString(); - if(!value["CACertificateId"].isNull()) - cACertificatesObject.cACertificateId = value["CACertificateId"].asString(); - if(!value["CACertificateName"].isNull()) - cACertificatesObject.cACertificateName = value["CACertificateName"].asString(); - if(!value["Fingerprint"].isNull()) - cACertificatesObject.fingerprint = value["Fingerprint"].asString(); - if(!value["ResourceGroupId"].isNull()) - cACertificatesObject.resourceGroupId = value["ResourceGroupId"].asString(); - if(!value["CreateTime"].isNull()) - cACertificatesObject.createTime = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - cACertificatesObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); - cACertificates_.push_back(cACertificatesObject); - } + auto allCACertificates = value["CACertificates"]["CACertificate"]; + for (auto value : allCACertificates) + { + CACertificate cACertificatesObject; + if(!value["RegionId"].isNull()) + cACertificatesObject.regionId = value["RegionId"].asString(); + if(!value["CACertificateId"].isNull()) + cACertificatesObject.cACertificateId = value["CACertificateId"].asString(); + if(!value["CACertificateName"].isNull()) + cACertificatesObject.cACertificateName = value["CACertificateName"].asString(); + if(!value["Fingerprint"].isNull()) + cACertificatesObject.fingerprint = value["Fingerprint"].asString(); + if(!value["ResourceGroupId"].isNull()) + cACertificatesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["CreateTime"].isNull()) + cACertificatesObject.createTime = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + cACertificatesObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + cACertificatesObject.expireTime = value["ExpireTime"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + cACertificatesObject.expireTimeStamp = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["CommonName"].isNull()) + cACertificatesObject.commonName = value["CommonName"].asString(); + cACertificates_.push_back(cACertificatesObject); + } } -std::vector DescribeCACertificatesResult::getCACertificates()const -{ - return cACertificates_; -} - +std::vector DescribeCACertificatesResult::getCACertificates()const +{ + return cACertificates_; +} + diff --git a/slb/src/model/DescribeDomainExtensionsRequest.cc b/slb/src/model/DescribeDomainExtensionsRequest.cc new file mode 100644 index 000000000..94f89a9da --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionsRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::DescribeDomainExtensionsRequest; + +DescribeDomainExtensionsRequest::DescribeDomainExtensionsRequest() : + RpcServiceRequest("slb", "2014-05-15", "DescribeDomainExtensions") +{} + +DescribeDomainExtensionsRequest::~DescribeDomainExtensionsRequest() +{} + +std::string DescribeDomainExtensionsRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DescribeDomainExtensionsRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long DescribeDomainExtensionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDomainExtensionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeDomainExtensionsRequest::getListenerPort()const +{ + return listenerPort_; +} + +void DescribeDomainExtensionsRequest::setListenerPort(int listenerPort) +{ + listenerPort_ = listenerPort; + setParameter("ListenerPort", std::to_string(listenerPort)); +} + +std::string DescribeDomainExtensionsRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void DescribeDomainExtensionsRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setParameter("LoadBalancerId", loadBalancerId); +} + +std::string DescribeDomainExtensionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDomainExtensionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDomainExtensionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDomainExtensionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDomainExtensionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDomainExtensionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeDomainExtensionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDomainExtensionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDomainExtensionsRequest::getTags()const +{ + return tags_; +} + +void DescribeDomainExtensionsRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeDomainExtensionsRequest::getDomainExtensionId()const +{ + return domainExtensionId_; +} + +void DescribeDomainExtensionsRequest::setDomainExtensionId(const std::string& domainExtensionId) +{ + domainExtensionId_ = domainExtensionId; + setParameter("DomainExtensionId", domainExtensionId); +} + diff --git a/slb/src/model/DescribeDomainExtensionsResult.cc b/slb/src/model/DescribeDomainExtensionsResult.cc new file mode 100644 index 000000000..9032d9a33 --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionsResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeDomainExtensionsResult::DescribeDomainExtensionsResult() : + ServiceResult() +{} + +DescribeDomainExtensionsResult::DescribeDomainExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainExtensionsResult::~DescribeDomainExtensionsResult() +{} + +void DescribeDomainExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDomainExtensions = value["DomainExtensions"]["DomainExtension"]; + for (auto value : allDomainExtensions) + { + DomainExtension domainExtensionsObject; + if(!value["DomainExtensionId"].isNull()) + domainExtensionsObject.domainExtensionId = value["DomainExtensionId"].asString(); + if(!value["Domain"].isNull()) + domainExtensionsObject.domain = value["Domain"].asString(); + if(!value["ServerCertificateId"].isNull()) + domainExtensionsObject.serverCertificateId = value["ServerCertificateId"].asString(); + domainExtensions_.push_back(domainExtensionsObject); + } + +} + +std::vector DescribeDomainExtensionsResult::getDomainExtensions()const +{ + return domainExtensions_; +} + diff --git a/slb/src/model/DescribeHealthStatusResult.cc b/slb/src/model/DescribeHealthStatusResult.cc index ceeb7b8b2..969fe13ee 100644 --- a/slb/src/model/DescribeHealthStatusResult.cc +++ b/slb/src/model/DescribeHealthStatusResult.cc @@ -40,25 +40,31 @@ void DescribeHealthStatusResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ListenerPort"].isNull()) - backendServersObject.listenerPort = std::stoi(value["ListenerPort"].asString()); - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["ServerHealthStatus"].isNull()) - backendServersObject.serverHealthStatus = value["ServerHealthStatus"].asString(); - backendServers_.push_back(backendServersObject); - } + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ListenerPort"].isNull()) + backendServersObject.listenerPort = std::stoi(value["ListenerPort"].asString()); + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["ServerHealthStatus"].isNull()) + backendServersObject.serverHealthStatus = value["ServerHealthStatus"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + backendServers_.push_back(backendServersObject); + } } -std::vector DescribeHealthStatusResult::getBackendServers()const -{ - return backendServers_; -} - +std::vector DescribeHealthStatusResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/DescribeListenerAccessControlAttributeResult.cc b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc index 348ccbdfe..84dda31ca 100644 --- a/slb/src/model/DescribeListenerAccessControlAttributeResult.cc +++ b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc @@ -40,20 +40,20 @@ void DescribeListenerAccessControlAttributeResult::parse(const std::string &payl reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AccessControlStatus"].isNull()) - accessControlStatus_ = value["AccessControlStatus"].asString(); - if(!value["SourceItems"].isNull()) - sourceItems_ = value["SourceItems"].asString(); + if(!value["AccessControlStatus"].isNull()) + accessControlStatus_ = value["AccessControlStatus"].asString(); + if(!value["SourceItems"].isNull()) + sourceItems_ = value["SourceItems"].asString(); } -std::string DescribeListenerAccessControlAttributeResult::getAccessControlStatus()const -{ - return accessControlStatus_; -} - -std::string DescribeListenerAccessControlAttributeResult::getSourceItems()const -{ - return sourceItems_; -} - +std::string DescribeListenerAccessControlAttributeResult::getAccessControlStatus()const +{ + return accessControlStatus_; +} + +std::string DescribeListenerAccessControlAttributeResult::getSourceItems()const +{ + return sourceItems_; +} + diff --git a/slb/src/model/DescribeLoadBalancerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerAttributeResult.cc index e75cb5ed2..c61bc4886 100644 --- a/slb/src/model/DescribeLoadBalancerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerAttributeResult.cc @@ -40,213 +40,260 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allListenerPortsAndProtocal = value["ListenerPortsAndProtocal"]["ListenerPortAndProtocal"]; - for (auto value : allListenerPortsAndProtocal) - { - ListenerPortAndProtocal listenerPortsAndProtocalObject; - if(!value["ListenerPort"].isNull()) - listenerPortsAndProtocalObject.listenerPort = std::stoi(value["ListenerPort"].asString()); - if(!value["ListenerProtocal"].isNull()) - listenerPortsAndProtocalObject.listenerProtocal = value["ListenerProtocal"].asString(); - listenerPortsAndProtocal_.push_back(listenerPortsAndProtocalObject); - } - auto allListenerPortsAndProtocol = value["ListenerPortsAndProtocol"]["ListenerPortAndProtocol"]; - for (auto value : allListenerPortsAndProtocol) - { - ListenerPortAndProtocol listenerPortsAndProtocolObject; - if(!value["ListenerPort"].isNull()) - listenerPortsAndProtocolObject.listenerPort = std::stoi(value["ListenerPort"].asString()); - if(!value["ListenerProtocol"].isNull()) - listenerPortsAndProtocolObject.listenerProtocol = value["ListenerProtocol"].asString(); - listenerPortsAndProtocol_.push_back(listenerPortsAndProtocolObject); - } - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - auto allListenerPorts = value["ListenerPorts"]["ListenerPort"]; - for (const auto &item : allListenerPorts) - listenerPorts_.push_back(item.asString()); - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["LoadBalancerName"].isNull()) - loadBalancerName_ = value["LoadBalancerName"].asString(); - if(!value["LoadBalancerStatus"].isNull()) - loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["RegionIdAlias"].isNull()) - regionIdAlias_ = value["RegionIdAlias"].asString(); - if(!value["Address"].isNull()) - address_ = value["Address"].asString(); - if(!value["AddressType"].isNull()) - addressType_ = value["AddressType"].asString(); - if(!value["VpcId"].isNull()) - vpcId_ = value["VpcId"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); - if(!value["NetworkType"].isNull()) - networkType_ = value["NetworkType"].asString(); - if(!value["InternetChargeType"].isNull()) - internetChargeType_ = value["InternetChargeType"].asString(); - if(!value["AutoReleaseTime"].isNull()) - autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["LoadBalancerSpec"].isNull()) - loadBalancerSpec_ = value["LoadBalancerSpec"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["EndTimeStamp"].isNull()) - endTimeStamp_ = std::stol(value["EndTimeStamp"].asString()); - if(!value["PayType"].isNull()) - payType_ = value["PayType"].asString(); - if(!value["MasterZoneId"].isNull()) - masterZoneId_ = value["MasterZoneId"].asString(); - if(!value["SlaveZoneId"].isNull()) - slaveZoneId_ = value["SlaveZoneId"].asString(); + auto allListenerPortsAndProtocal = value["ListenerPortsAndProtocal"]["ListenerPortAndProtocal"]; + for (auto value : allListenerPortsAndProtocal) + { + ListenerPortAndProtocal listenerPortsAndProtocalObject; + if(!value["ListenerPort"].isNull()) + listenerPortsAndProtocalObject.listenerPort = std::stoi(value["ListenerPort"].asString()); + if(!value["ListenerProtocal"].isNull()) + listenerPortsAndProtocalObject.listenerProtocal = value["ListenerProtocal"].asString(); + listenerPortsAndProtocal_.push_back(listenerPortsAndProtocalObject); + } + auto allListenerPortsAndProtocol = value["ListenerPortsAndProtocol"]["ListenerPortAndProtocol"]; + for (auto value : allListenerPortsAndProtocol) + { + ListenerPortAndProtocol listenerPortsAndProtocolObject; + if(!value["ListenerPort"].isNull()) + listenerPortsAndProtocolObject.listenerPort = std::stoi(value["ListenerPort"].asString()); + if(!value["ListenerProtocol"].isNull()) + listenerPortsAndProtocolObject.listenerProtocol = value["ListenerProtocol"].asString(); + if(!value["ListenerForward"].isNull()) + listenerPortsAndProtocolObject.listenerForward = value["ListenerForward"].asString(); + if(!value["ForwardPort"].isNull()) + listenerPortsAndProtocolObject.forwardPort = std::stoi(value["ForwardPort"].asString()); + listenerPortsAndProtocol_.push_back(listenerPortsAndProtocolObject); + } + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + auto allListenerPorts = value["ListenerPorts"]["ListenerPort"]; + for (const auto &item : allListenerPorts) + listenerPorts_.push_back(item.asString()); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["LoadBalancerStatus"].isNull()) + loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["RegionIdAlias"].isNull()) + regionIdAlias_ = value["RegionIdAlias"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["AddressType"].isNull()) + addressType_ = value["AddressType"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); + if(!value["AutoReleaseTime"].isNull()) + autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["LoadBalancerSpec"].isNull()) + loadBalancerSpec_ = value["LoadBalancerSpec"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["EndTimeStamp"].isNull()) + endTimeStamp_ = std::stol(value["EndTimeStamp"].asString()); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + if(!value["MasterZoneId"].isNull()) + masterZoneId_ = value["MasterZoneId"].asString(); + if(!value["SlaveZoneId"].isNull()) + slaveZoneId_ = value["SlaveZoneId"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["CloudType"].isNull()) + cloudType_ = value["CloudType"].asString(); + if(!value["RenewalDuration"].isNull()) + renewalDuration_ = std::stoi(value["RenewalDuration"].asString()); + if(!value["RenewalStatus"].isNull()) + renewalStatus_ = value["RenewalStatus"].asString(); + if(!value["RenewalCycUnit"].isNull()) + renewalCycUnit_ = value["RenewalCycUnit"].asString(); } -std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocal()const -{ - return listenerPortsAndProtocal_; -} - -std::string DescribeLoadBalancerAttributeResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -std::string DescribeLoadBalancerAttributeResult::getAddress()const -{ - return address_; -} - -std::string DescribeLoadBalancerAttributeResult::getEndTime()const -{ - return endTime_; -} - -std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocol()const -{ - return listenerPortsAndProtocol_; -} - -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -std::vector DescribeLoadBalancerAttributeResult::getBackendServers()const -{ - return backendServers_; -} - -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const -{ - return loadBalancerSpec_; -} - -std::string DescribeLoadBalancerAttributeResult::getNetworkType()const -{ - return networkType_; -} - -int DescribeLoadBalancerAttributeResult::getBandwidth()const -{ - return bandwidth_; -} - -std::vector DescribeLoadBalancerAttributeResult::getListenerPorts()const -{ - return listenerPorts_; -} - -std::string DescribeLoadBalancerAttributeResult::getMasterZoneId()const -{ - return masterZoneId_; -} - -std::string DescribeLoadBalancerAttributeResult::getVSwitchId()const -{ - return vSwitchId_; -} - -std::string DescribeLoadBalancerAttributeResult::getCreateTime()const -{ - return createTime_; -} - -std::string DescribeLoadBalancerAttributeResult::getPayType()const -{ - return payType_; -} - -std::string DescribeLoadBalancerAttributeResult::getSlaveZoneId()const -{ - return slaveZoneId_; -} - -std::string DescribeLoadBalancerAttributeResult::getInternetChargeType()const -{ - return internetChargeType_; -} - -std::string DescribeLoadBalancerAttributeResult::getRegionIdAlias()const -{ - return regionIdAlias_; -} - -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerName()const -{ - return loadBalancerName_; -} - -std::string DescribeLoadBalancerAttributeResult::getVpcId()const -{ - return vpcId_; -} - -long DescribeLoadBalancerAttributeResult::getEndTimeStamp()const -{ - return endTimeStamp_; -} - -std::string DescribeLoadBalancerAttributeResult::getRegionId()const -{ - return regionId_; -} - -std::string DescribeLoadBalancerAttributeResult::getAddressType()const -{ - return addressType_; -} - -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerStatus()const -{ - return loadBalancerStatus_; -} - -long DescribeLoadBalancerAttributeResult::getCreateTimeStamp()const -{ - return createTimeStamp_; -} - -long DescribeLoadBalancerAttributeResult::getAutoReleaseTime()const -{ - return autoReleaseTime_; -} - +int DescribeLoadBalancerAttributeResult::getRenewalDuration()const +{ + return renewalDuration_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocal()const +{ + return listenerPortsAndProtocal_; +} + +std::string DescribeLoadBalancerAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string DescribeLoadBalancerAttributeResult::getAddress()const +{ + return address_; +} + +std::string DescribeLoadBalancerAttributeResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeLoadBalancerAttributeResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocol()const +{ + return listenerPortsAndProtocol_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector DescribeLoadBalancerAttributeResult::getBackendServers()const +{ + return backendServers_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const +{ + return loadBalancerSpec_; +} + +std::string DescribeLoadBalancerAttributeResult::getNetworkType()const +{ + return networkType_; +} + +int DescribeLoadBalancerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPorts()const +{ + return listenerPorts_; +} + +std::string DescribeLoadBalancerAttributeResult::getMasterZoneId()const +{ + return masterZoneId_; +} + +std::string DescribeLoadBalancerAttributeResult::getCloudType()const +{ + return cloudType_; +} + +std::string DescribeLoadBalancerAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeLoadBalancerAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeLoadBalancerAttributeResult::getRenewalStatus()const +{ + return renewalStatus_; +} + +std::string DescribeLoadBalancerAttributeResult::getRenewalCycUnit()const +{ + return renewalCycUnit_; +} + +std::string DescribeLoadBalancerAttributeResult::getPayType()const +{ + return payType_; +} + +std::string DescribeLoadBalancerAttributeResult::getSlaveZoneId()const +{ + return slaveZoneId_; +} + +std::string DescribeLoadBalancerAttributeResult::getInternetChargeType()const +{ + return internetChargeType_; +} + +std::string DescribeLoadBalancerAttributeResult::getRegionIdAlias()const +{ + return regionIdAlias_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +std::string DescribeLoadBalancerAttributeResult::getVpcId()const +{ + return vpcId_; +} + +long DescribeLoadBalancerAttributeResult::getEndTimeStamp()const +{ + return endTimeStamp_; +} + +std::string DescribeLoadBalancerAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeLoadBalancerAttributeResult::getAddressType()const +{ + return addressType_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +long DescribeLoadBalancerAttributeResult::getCreateTimeStamp()const +{ + return createTimeStamp_; +} + +long DescribeLoadBalancerAttributeResult::getAutoReleaseTime()const +{ + return autoReleaseTime_; +} + diff --git a/slb/src/model/DescribeLoadBalancerAutoReleaseTimeResult.cc b/slb/src/model/DescribeLoadBalancerAutoReleaseTimeResult.cc index 92b1519fc..17002aca6 100644 --- a/slb/src/model/DescribeLoadBalancerAutoReleaseTimeResult.cc +++ b/slb/src/model/DescribeLoadBalancerAutoReleaseTimeResult.cc @@ -40,13 +40,13 @@ void DescribeLoadBalancerAutoReleaseTimeResult::parse(const std::string &payload reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["AutoReleaseTime"].isNull()) - autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); + if(!value["AutoReleaseTime"].isNull()) + autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); } -long DescribeLoadBalancerAutoReleaseTimeResult::getAutoReleaseTime()const -{ - return autoReleaseTime_; -} - +long DescribeLoadBalancerAutoReleaseTimeResult::getAutoReleaseTime()const +{ + return autoReleaseTime_; +} + diff --git a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc index a7835cb8b..8688b2553 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc @@ -40,188 +40,272 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ListenerPort"].isNull()) - listenerPort_ = std::stoi(value["ListenerPort"].asString()); - if(!value["BackendServerPort"].isNull()) - backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["SecurityStatus"].isNull()) - securityStatus_ = value["SecurityStatus"].asString(); - if(!value["XForwardedFor"].isNull()) - xForwardedFor_ = value["XForwardedFor"].asString(); - if(!value["Scheduler"].isNull()) - scheduler_ = value["Scheduler"].asString(); - if(!value["StickySession"].isNull()) - stickySession_ = value["StickySession"].asString(); - if(!value["StickySessionType"].isNull()) - stickySessionType_ = value["StickySessionType"].asString(); - if(!value["CookieTimeout"].isNull()) - cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); - if(!value["Cookie"].isNull()) - cookie_ = value["Cookie"].asString(); - if(!value["HealthCheck"].isNull()) - healthCheck_ = value["HealthCheck"].asString(); - if(!value["HealthCheckDomain"].isNull()) - healthCheckDomain_ = value["HealthCheckDomain"].asString(); - if(!value["HealthCheckURI"].isNull()) - healthCheckURI_ = value["HealthCheckURI"].asString(); - if(!value["HealthyThreshold"].isNull()) - healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); - if(!value["UnhealthyThreshold"].isNull()) - unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); - if(!value["HealthCheckTimeout"].isNull()) - healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); - if(!value["HealthCheckInterval"].isNull()) - healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); - if(!value["HealthCheckConnectPort"].isNull()) - healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); - if(!value["HealthCheckHttpCode"].isNull()) - healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); - if(!value["MaxConnection"].isNull()) - maxConnection_ = std::stoi(value["MaxConnection"].asString()); - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["Gzip"].isNull()) - gzip_ = value["Gzip"].asString(); - if(!value["XForwardedFor_SLBIP"].isNull()) - xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); - if(!value["XForwardedFor_SLBID"].isNull()) - xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); - if(!value["XForwardedFor_proto"].isNull()) - xForwardedFor_proto_ = value["XForwardedFor_proto"].asString(); + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule rulesObject; + if(!value["RuleId"].isNull()) + rulesObject.ruleId = value["RuleId"].asString(); + if(!value["RuleName"].isNull()) + rulesObject.ruleName = value["RuleName"].asString(); + if(!value["Domain"].isNull()) + rulesObject.domain = value["Domain"].asString(); + if(!value["Url"].isNull()) + rulesObject.url = value["Url"].asString(); + if(!value["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = value["VServerGroupId"].asString(); + rules_.push_back(rulesObject); + } + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["SecurityStatus"].isNull()) + securityStatus_ = value["SecurityStatus"].asString(); + if(!value["XForwardedFor"].isNull()) + xForwardedFor_ = value["XForwardedFor"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["Gzip"].isNull()) + gzip_ = value["Gzip"].asString(); + if(!value["XForwardedFor_SLBIP"].isNull()) + xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); + if(!value["XForwardedFor_SLBID"].isNull()) + xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); + if(!value["XForwardedFor_proto"].isNull()) + xForwardedFor_proto_ = value["XForwardedFor_proto"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["ListenerForward"].isNull()) + listenerForward_ = value["ListenerForward"].asString(); + if(!value["ForwardPort"].isNull()) + forwardPort_ = std::stoi(value["ForwardPort"].asString()); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); } -int DescribeLoadBalancerHTTPListenerAttributeResult::getCookieTimeout()const -{ - return cookieTimeout_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getMaxConnection()const -{ - return maxConnection_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getUnhealthyThreshold()const -{ - return unhealthyThreshold_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getScheduler()const -{ - return scheduler_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckURI()const -{ - return healthCheckURI_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheck()const -{ - return healthCheck_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getBackendServerPort()const -{ - return backendServerPort_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBID()const -{ - return xForwardedFor_SLBID_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort()const -{ - return healthCheckConnectPort_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const -{ - return bandwidth_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getSecurityStatus()const -{ - return securityStatus_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getGzip()const -{ - return gzip_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySessionType()const -{ - return stickySessionType_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBIP()const -{ - return xForwardedFor_SLBIP_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpCode()const -{ - return healthCheckHttpCode_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStatus()const -{ - return status_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getCookie()const -{ - return cookie_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckInterval()const -{ - return healthCheckInterval_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const -{ - return healthCheckTimeout_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const -{ - return stickySession_; -} - -int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor()const -{ - return xForwardedFor_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const -{ - return healthCheckDomain_; -} - -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_proto()const -{ - return xForwardedFor_proto_; -} - +int DescribeLoadBalancerHTTPListenerAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBID()const +{ + return xForwardedFor_SLBID_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getSecurityStatus()const +{ + return securityStatus_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getGzip()const +{ + return gzip_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBIP()const +{ + return xForwardedFor_SLBIP_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpCode()const +{ + 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_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::vector DescribeLoadBalancerHTTPListenerAttributeResult::getRules()const +{ + return rules_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getListenerForward()const +{ + return listenerForward_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardPort()const +{ + return forwardPort_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor()const +{ + return xForwardedFor_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_proto()const +{ + return xForwardedFor_proto_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclType()const +{ + return aclType_; +} + diff --git a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc index 51d977769..d748e0b1a 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc @@ -40,202 +40,303 @@ void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string & reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ListenerPort"].isNull()) - listenerPort_ = std::stoi(value["ListenerPort"].asString()); - if(!value["BackendServerPort"].isNull()) - backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["SecurityStatus"].isNull()) - securityStatus_ = value["SecurityStatus"].asString(); - if(!value["XForwardedFor"].isNull()) - xForwardedFor_ = value["XForwardedFor"].asString(); - if(!value["Scheduler"].isNull()) - scheduler_ = value["Scheduler"].asString(); - if(!value["StickySession"].isNull()) - stickySession_ = value["StickySession"].asString(); - if(!value["StickySessionType"].isNull()) - stickySessionType_ = value["StickySessionType"].asString(); - if(!value["CookieTimeout"].isNull()) - cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); - if(!value["Cookie"].isNull()) - cookie_ = value["Cookie"].asString(); - if(!value["HealthCheck"].isNull()) - healthCheck_ = value["HealthCheck"].asString(); - if(!value["HealthCheckDomain"].isNull()) - healthCheckDomain_ = value["HealthCheckDomain"].asString(); - if(!value["HealthCheckURI"].isNull()) - healthCheckURI_ = value["HealthCheckURI"].asString(); - if(!value["HealthyThreshold"].isNull()) - healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); - if(!value["UnhealthyThreshold"].isNull()) - unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); - if(!value["HealthCheckTimeout"].isNull()) - healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); - if(!value["HealthCheckInterval"].isNull()) - healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); - if(!value["HealthCheckConnectPort"].isNull()) - healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); - if(!value["HealthCheckHttpCode"].isNull()) - healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); - if(!value["ServerCertificateId"].isNull()) - serverCertificateId_ = value["ServerCertificateId"].asString(); - if(!value["CACertificateId"].isNull()) - cACertificateId_ = value["CACertificateId"].asString(); - if(!value["MaxConnection"].isNull()) - maxConnection_ = std::stoi(value["MaxConnection"].asString()); - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["Gzip"].isNull()) - gzip_ = value["Gzip"].asString(); - if(!value["XForwardedFor_SLBIP"].isNull()) - xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); - if(!value["XForwardedFor_SLBID"].isNull()) - xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); - if(!value["XForwardedFor_proto"].isNull()) - xForwardedFor_proto_ = value["XForwardedFor_proto"].asString(); + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule rulesObject; + if(!value["RuleId"].isNull()) + rulesObject.ruleId = value["RuleId"].asString(); + if(!value["RuleName"].isNull()) + rulesObject.ruleName = value["RuleName"].asString(); + if(!value["Domain"].isNull()) + rulesObject.domain = value["Domain"].asString(); + if(!value["Url"].isNull()) + rulesObject.url = value["Url"].asString(); + if(!value["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = value["VServerGroupId"].asString(); + rules_.push_back(rulesObject); + } + auto allDomainExtensions = value["DomainExtensions"]["DomainExtension"]; + for (auto value : allDomainExtensions) + { + DomainExtension domainExtensionsObject; + if(!value["DomainExtensionId"].isNull()) + domainExtensionsObject.domainExtensionId = value["DomainExtensionId"].asString(); + if(!value["Domain"].isNull()) + domainExtensionsObject.domain = value["Domain"].asString(); + if(!value["ServerCertificateId"].isNull()) + domainExtensionsObject.serverCertificateId = value["ServerCertificateId"].asString(); + domainExtensions_.push_back(domainExtensionsObject); + } + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["SecurityStatus"].isNull()) + securityStatus_ = value["SecurityStatus"].asString(); + if(!value["XForwardedFor"].isNull()) + xForwardedFor_ = value["XForwardedFor"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["CACertificateId"].isNull()) + cACertificateId_ = value["CACertificateId"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["Gzip"].isNull()) + gzip_ = value["Gzip"].asString(); + if(!value["XForwardedFor_SLBIP"].isNull()) + xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); + if(!value["XForwardedFor_SLBID"].isNull()) + xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); + if(!value["XForwardedFor_proto"].isNull()) + xForwardedFor_proto_ = value["XForwardedFor_proto"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["EnableHttp2"].isNull()) + enableHttp2_ = value["EnableHttp2"].asString(); + if(!value["TLSCipherPolicy"].isNull()) + tLSCipherPolicy_ = value["TLSCipherPolicy"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); } -int DescribeLoadBalancerHTTPSListenerAttributeResult::getCookieTimeout()const -{ - return cookieTimeout_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getMaxConnection()const -{ - return maxConnection_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getUnhealthyThreshold()const -{ - return unhealthyThreshold_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getScheduler()const -{ - return scheduler_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckURI()const -{ - return healthCheckURI_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheck()const -{ - return healthCheck_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getBackendServerPort()const -{ - return backendServerPort_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBID()const -{ - return xForwardedFor_SLBID_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckConnectPort()const -{ - return healthCheckConnectPort_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getBandwidth()const -{ - return bandwidth_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getSecurityStatus()const -{ - return securityStatus_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getGzip()const -{ - return gzip_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getServerCertificateId()const -{ - return serverCertificateId_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySessionType()const -{ - return stickySessionType_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBIP()const -{ - return xForwardedFor_SLBIP_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckHttpCode()const -{ - return healthCheckHttpCode_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStatus()const -{ - return status_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCookie()const -{ - return cookie_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckInterval()const -{ - return healthCheckInterval_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCACertificateId()const -{ - return cACertificateId_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckTimeout()const -{ - return healthCheckTimeout_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySession()const -{ - return stickySession_; -} - -int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor()const -{ - return xForwardedFor_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckDomain()const -{ - return healthCheckDomain_; -} - -std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_proto()const -{ - return xForwardedFor_proto_; -} - +int DescribeLoadBalancerHTTPSListenerAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getDomainExtensions()const +{ + return domainExtensions_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBID()const +{ + return xForwardedFor_SLBID_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getSecurityStatus()const +{ + return securityStatus_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getGzip()const +{ + return gzip_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBIP()const +{ + return xForwardedFor_SLBIP_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCookie()const +{ + return cookie_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getTLSCipherPolicy()const +{ + return tLSCipherPolicy_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCACertificateId()const +{ + return cACertificateId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getRules()const +{ + return rules_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor()const +{ + return xForwardedFor_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_proto()const +{ + return xForwardedFor_proto_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclType()const +{ + return aclType_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getEnableHttp2()const +{ + return enableHttp2_; +} + diff --git a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc index 087633234..8fc1e0306 100644 --- a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc @@ -40,153 +40,188 @@ void DescribeLoadBalancerTCPListenerAttributeResult::parse(const std::string &pa reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ListenerPort"].isNull()) - listenerPort_ = std::stoi(value["ListenerPort"].asString()); - if(!value["BackendServerPort"].isNull()) - backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["Scheduler"].isNull()) - scheduler_ = value["Scheduler"].asString(); - if(!value["SynProxy"].isNull()) - synProxy_ = value["SynProxy"].asString(); - if(!value["PersistenceTimeout"].isNull()) - persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); - if(!value["EstablishedTimeout"].isNull()) - establishedTimeout_ = std::stoi(value["EstablishedTimeout"].asString()); - if(!value["HealthCheck"].isNull()) - healthCheck_ = value["HealthCheck"].asString(); - if(!value["HealthyThreshold"].isNull()) - healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); - if(!value["UnhealthyThreshold"].isNull()) - unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); - if(!value["HealthCheckConnectTimeout"].isNull()) - healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); - if(!value["HealthCheckConnectPort"].isNull()) - healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); - if(!value["HealthCheckInterval"].isNull()) - healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); - if(!value["HealthCheckHttpCode"].isNull()) - healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); - if(!value["HealthCheckDomain"].isNull()) - healthCheckDomain_ = value["HealthCheckDomain"].asString(); - if(!value["HealthCheckURI"].isNull()) - healthCheckURI_ = value["HealthCheckURI"].asString(); - if(!value["HealthCheckType"].isNull()) - healthCheckType_ = value["HealthCheckType"].asString(); - if(!value["MaxConnection"].isNull()) - maxConnection_ = std::stoi(value["MaxConnection"].asString()); - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["MasterSlaveServerGroupId"].isNull()) - masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["SynProxy"].isNull()) + synProxy_ = value["SynProxy"].asString(); + if(!value["PersistenceTimeout"].isNull()) + persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); + if(!value["EstablishedTimeout"].isNull()) + establishedTimeout_ = std::stoi(value["EstablishedTimeout"].asString()); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); } -std::string DescribeLoadBalancerTCPListenerAttributeResult::getStatus()const -{ - return status_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getMaxConnection()const -{ - return maxConnection_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getSynProxy()const -{ - return synProxy_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckInterval()const -{ - return healthCheckInterval_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getUnhealthyThreshold()const -{ - return unhealthyThreshold_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getScheduler()const -{ - return scheduler_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckURI()const -{ - return healthCheckURI_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheck()const -{ - return healthCheck_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectTimeout()const -{ - return healthCheckConnectTimeout_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getBackendServerPort()const -{ - return backendServerPort_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getPersistenceTimeout()const -{ - return persistenceTimeout_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectPort()const -{ - return healthCheckConnectPort_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getBandwidth()const -{ - return bandwidth_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckDomain()const -{ - return healthCheckDomain_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getMasterSlaveServerGroupId()const -{ - return masterSlaveServerGroupId_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckHttpCode()const -{ - return healthCheckHttpCode_; -} - -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckType()const -{ - return healthCheckType_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getEstablishedTimeout()const -{ - return establishedTimeout_; -} - +int DescribeLoadBalancerTCPListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getSynProxy()const +{ + return synProxy_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getPersistenceTimeout()const +{ + return persistenceTimeout_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getEstablishedTimeout()const +{ + return establishedTimeout_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclType()const +{ + return aclType_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + diff --git a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc index 61be39738..ebb91b0a6 100644 --- a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc @@ -40,125 +40,160 @@ void DescribeLoadBalancerUDPListenerAttributeResult::parse(const std::string &pa reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ListenerPort"].isNull()) - listenerPort_ = std::stoi(value["ListenerPort"].asString()); - if(!value["BackendServerPort"].isNull()) - backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["Scheduler"].isNull()) - scheduler_ = value["Scheduler"].asString(); - if(!value["PersistenceTimeout"].isNull()) - persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); - if(!value["HealthCheck"].isNull()) - healthCheck_ = value["HealthCheck"].asString(); - if(!value["HealthyThreshold"].isNull()) - healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); - if(!value["UnhealthyThreshold"].isNull()) - unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); - if(!value["HealthCheckConnectTimeout"].isNull()) - healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); - if(!value["HealthCheckConnectPort"].isNull()) - healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); - if(!value["HealthCheckInterval"].isNull()) - healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); - if(!value["HealthCheckReq"].isNull()) - healthCheckReq_ = value["HealthCheckReq"].asString(); - if(!value["HealthCheckExp"].isNull()) - healthCheckExp_ = value["HealthCheckExp"].asString(); - if(!value["MaxConnection"].isNull()) - maxConnection_ = std::stoi(value["MaxConnection"].asString()); - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["MasterSlaveServerGroupId"].isNull()) - masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["PersistenceTimeout"].isNull()) + persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckReq"].isNull()) + healthCheckReq_ = value["HealthCheckReq"].asString(); + if(!value["HealthCheckExp"].isNull()) + healthCheckExp_ = value["HealthCheckExp"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); } -std::string DescribeLoadBalancerUDPListenerAttributeResult::getStatus()const -{ - return status_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getMaxConnection()const -{ - return maxConnection_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckInterval()const -{ - return healthCheckInterval_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getUnhealthyThreshold()const -{ - return unhealthyThreshold_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getScheduler()const -{ - return scheduler_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheck()const -{ - return healthCheck_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectTimeout()const -{ - return healthCheckConnectTimeout_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getBackendServerPort()const -{ - return backendServerPort_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getPersistenceTimeout()const -{ - return persistenceTimeout_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectPort()const -{ - return healthCheckConnectPort_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckReq()const -{ - return healthCheckReq_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getBandwidth()const -{ - return bandwidth_; -} - -int DescribeLoadBalancerUDPListenerAttributeResult::getHealthyThreshold()const -{ - return healthyThreshold_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckExp()const -{ - return healthCheckExp_; -} - -std::string DescribeLoadBalancerUDPListenerAttributeResult::getMasterSlaveServerGroupId()const -{ - return masterSlaveServerGroupId_; -} - +std::string DescribeLoadBalancerUDPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getPersistenceTimeout()const +{ + return persistenceTimeout_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckReq()const +{ + return healthCheckReq_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckExp()const +{ + return healthCheckExp_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclType()const +{ + return aclType_; +} + diff --git a/slb/src/model/DescribeLoadBalancersRelatedEcsResult.cc b/slb/src/model/DescribeLoadBalancersRelatedEcsResult.cc index dc90309e1..11b63b9af 100644 --- a/slb/src/model/DescribeLoadBalancersRelatedEcsResult.cc +++ b/slb/src/model/DescribeLoadBalancersRelatedEcsResult.cc @@ -40,97 +40,97 @@ void DescribeLoadBalancersRelatedEcsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLoadBalancers = value["LoadBalancers"]["LoadBalancer"]; - for (auto value : allLoadBalancers) - { - LoadBalancer loadBalancersObject; - if(!value["LoadBalancerId"].isNull()) - loadBalancersObject.loadBalancerId = value["LoadBalancerId"].asString(); - if(!value["Count"].isNull()) - loadBalancersObject.count = std::stoi(value["Count"].asString()); - auto allMasterSlaveVServerGroups = value["MasterSlaveVServerGroups"]["MasterSlaveVServerGroup"]; - for (auto value : allMasterSlaveVServerGroups) - { - LoadBalancer::MasterSlaveVServerGroup masterSlaveVServerGroupsObject; - if(!value["GroupId"].isNull()) - masterSlaveVServerGroupsObject.groupId = value["GroupId"].asString(); - if(!value["GroupName"].isNull()) - masterSlaveVServerGroupsObject.groupName = value["GroupName"].asString(); - auto allBackendServers1 = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers1) - { - LoadBalancer::MasterSlaveVServerGroup::BackendServer backendServers1Object; - if(!value["VmName"].isNull()) - backendServers1Object.vmName = value["VmName"].asString(); - if(!value["Weight"].isNull()) - backendServers1Object.weight = std::stoi(value["Weight"].asString()); - if(!value["Port"].isNull()) - backendServers1Object.port = std::stoi(value["Port"].asString()); - if(!value["NetworkType"].isNull()) - backendServers1Object.networkType = value["NetworkType"].asString(); - masterSlaveVServerGroupsObject.backendServers1.push_back(backendServers1Object); - } - loadBalancersObject.masterSlaveVServerGroups.push_back(masterSlaveVServerGroupsObject); - } - auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; - for (auto value : allVServerGroups) - { - LoadBalancer::VServerGroup vServerGroupsObject; - if(!value["GroupId"].isNull()) - vServerGroupsObject.groupId = value["GroupId"].asString(); - if(!value["GroupName"].isNull()) - vServerGroupsObject.groupName = value["GroupName"].asString(); - auto allBackendServers2 = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers2) - { - LoadBalancer::VServerGroup::BackendServer3 backendServers2Object; - if(!value["VmName"].isNull()) - backendServers2Object.vmName = value["VmName"].asString(); - if(!value["Weight"].isNull()) - backendServers2Object.weight = std::stoi(value["Weight"].asString()); - if(!value["Port"].isNull()) - backendServers2Object.port = std::stoi(value["Port"].asString()); - if(!value["NetworkType"].isNull()) - backendServers2Object.networkType = value["NetworkType"].asString(); - vServerGroupsObject.backendServers2.push_back(backendServers2Object); - } - loadBalancersObject.vServerGroups.push_back(vServerGroupsObject); - } - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - LoadBalancer::BackendServer4 backendServersObject; - if(!value["VmName"].isNull()) - backendServersObject.vmName = value["VmName"].asString(); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["NetworkType"].isNull()) - backendServersObject.networkType = value["NetworkType"].asString(); - loadBalancersObject.backendServers.push_back(backendServersObject); - } - loadBalancers_.push_back(loadBalancersObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + auto allLoadBalancers = value["LoadBalancers"]["LoadBalancer"]; + for (auto value : allLoadBalancers) + { + LoadBalancer loadBalancersObject; + if(!value["LoadBalancerId"].isNull()) + loadBalancersObject.loadBalancerId = value["LoadBalancerId"].asString(); + if(!value["Count"].isNull()) + loadBalancersObject.count = std::stoi(value["Count"].asString()); + auto allMasterSlaveVServerGroups = value["MasterSlaveVServerGroups"]["MasterSlaveVServerGroup"]; + for (auto value : allMasterSlaveVServerGroups) + { + LoadBalancer::MasterSlaveVServerGroup masterSlaveVServerGroupsObject; + if(!value["GroupId"].isNull()) + masterSlaveVServerGroupsObject.groupId = value["GroupId"].asString(); + if(!value["GroupName"].isNull()) + masterSlaveVServerGroupsObject.groupName = value["GroupName"].asString(); + auto allBackendServers1 = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers1) + { + LoadBalancer::MasterSlaveVServerGroup::BackendServer backendServers1Object; + if(!value["VmName"].isNull()) + backendServers1Object.vmName = value["VmName"].asString(); + if(!value["Weight"].isNull()) + backendServers1Object.weight = std::stoi(value["Weight"].asString()); + if(!value["Port"].isNull()) + backendServers1Object.port = std::stoi(value["Port"].asString()); + if(!value["NetworkType"].isNull()) + backendServers1Object.networkType = value["NetworkType"].asString(); + masterSlaveVServerGroupsObject.backendServers1.push_back(backendServers1Object); + } + loadBalancersObject.masterSlaveVServerGroups.push_back(masterSlaveVServerGroupsObject); + } + auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; + for (auto value : allVServerGroups) + { + LoadBalancer::VServerGroup vServerGroupsObject; + if(!value["GroupId"].isNull()) + vServerGroupsObject.groupId = value["GroupId"].asString(); + if(!value["GroupName"].isNull()) + vServerGroupsObject.groupName = value["GroupName"].asString(); + auto allBackendServers2 = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers2) + { + LoadBalancer::VServerGroup::BackendServer3 backendServers2Object; + if(!value["VmName"].isNull()) + backendServers2Object.vmName = value["VmName"].asString(); + if(!value["Weight"].isNull()) + backendServers2Object.weight = std::stoi(value["Weight"].asString()); + if(!value["Port"].isNull()) + backendServers2Object.port = std::stoi(value["Port"].asString()); + if(!value["NetworkType"].isNull()) + backendServers2Object.networkType = value["NetworkType"].asString(); + vServerGroupsObject.backendServers2.push_back(backendServers2Object); + } + loadBalancersObject.vServerGroups.push_back(vServerGroupsObject); + } + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + LoadBalancer::BackendServer4 backendServersObject; + if(!value["VmName"].isNull()) + backendServersObject.vmName = value["VmName"].asString(); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["NetworkType"].isNull()) + backendServersObject.networkType = value["NetworkType"].asString(); + loadBalancersObject.backendServers.push_back(backendServersObject); + } + loadBalancers_.push_back(loadBalancersObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string DescribeLoadBalancersRelatedEcsResult::getMessage()const -{ - return message_; -} - -std::vector DescribeLoadBalancersRelatedEcsResult::getLoadBalancers()const -{ - return loadBalancers_; -} - -bool DescribeLoadBalancersRelatedEcsResult::getSuccess()const -{ - return success_; -} - +std::string DescribeLoadBalancersRelatedEcsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeLoadBalancersRelatedEcsResult::getLoadBalancers()const +{ + return loadBalancers_; +} + +bool DescribeLoadBalancersRelatedEcsResult::getSuccess()const +{ + return success_; +} + diff --git a/slb/src/model/DescribeLoadBalancersRequest.cc b/slb/src/model/DescribeLoadBalancersRequest.cc index ec874cc54..b03a61f11 100644 --- a/slb/src/model/DescribeLoadBalancersRequest.cc +++ b/slb/src/model/DescribeLoadBalancersRequest.cc @@ -47,39 +47,6 @@ void DescribeLoadBalancersRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string DescribeLoadBalancersRequest::getAddress()const -{ - return address_; -} - -void DescribeLoadBalancersRequest::setAddress(const std::string& address) -{ - address_ = address; - setParameter("Address", address); -} - -std::string DescribeLoadBalancersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeLoadBalancersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeLoadBalancersRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeLoadBalancersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - std::string DescribeLoadBalancersRequest::getNetworkType()const { return networkType_; @@ -91,26 +58,15 @@ void DescribeLoadBalancersRequest::setNetworkType(const std::string& networkType setParameter("NetworkType", networkType); } -long DescribeLoadBalancersRequest::getOwnerId()const +std::string DescribeLoadBalancersRequest::getAddressIPVersion()const { - return ownerId_; + return addressIPVersion_; } -void DescribeLoadBalancersRequest::setOwnerId(long ownerId) +void DescribeLoadBalancersRequest::setAddressIPVersion(const std::string& addressIPVersion) { - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeLoadBalancersRequest::getServerId()const -{ - return serverId_; -} - -void DescribeLoadBalancersRequest::setServerId(const std::string& serverId) -{ - serverId_ = serverId; - setParameter("ServerId", serverId); + addressIPVersion_ = addressIPVersion; + setParameter("AddressIPVersion", addressIPVersion); } std::string DescribeLoadBalancersRequest::getMasterZoneId()const @@ -135,39 +91,6 @@ void DescribeLoadBalancersRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } -std::string DescribeLoadBalancersRequest::getTags()const -{ - return tags_; -} - -void DescribeLoadBalancersRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); -} - -std::string DescribeLoadBalancersRequest::getServerIntranetAddress()const -{ - return serverIntranetAddress_; -} - -void DescribeLoadBalancersRequest::setServerIntranetAddress(const std::string& serverIntranetAddress) -{ - serverIntranetAddress_ = serverIntranetAddress; - setParameter("ServerIntranetAddress", serverIntranetAddress); -} - -std::string DescribeLoadBalancersRequest::getVSwitchId()const -{ - return vSwitchId_; -} - -void DescribeLoadBalancersRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); -} - std::string DescribeLoadBalancersRequest::getResourceGroupId()const { return resourceGroupId_; @@ -190,17 +113,6 @@ void DescribeLoadBalancersRequest::setLoadBalancerName(const std::string& loadBa setParameter("LoadBalancerName", loadBalancerName); } -std::string DescribeLoadBalancersRequest::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -void DescribeLoadBalancersRequest::setLoadBalancerId(const std::string& loadBalancerId) -{ - loadBalancerId_ = loadBalancerId; - setParameter("LoadBalancerId", loadBalancerId); -} - std::string DescribeLoadBalancersRequest::getRegionId()const { return regionId_; @@ -212,28 +124,6 @@ void DescribeLoadBalancersRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } -std::string DescribeLoadBalancersRequest::getInternetChargeType()const -{ - return internetChargeType_; -} - -void DescribeLoadBalancersRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); -} - -std::string DescribeLoadBalancersRequest::getVpcId()const -{ - return vpcId_; -} - -void DescribeLoadBalancersRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); -} - int DescribeLoadBalancersRequest::getPageSize()const { return pageSize_; @@ -267,6 +157,149 @@ void DescribeLoadBalancersRequest::setSlaveZoneId(const std::string& slaveZoneId setParameter("SlaveZoneId", slaveZoneId); } +std::string DescribeLoadBalancersRequest::getFuzzy()const +{ + return fuzzy_; +} + +void DescribeLoadBalancersRequest::setFuzzy(const std::string& fuzzy) +{ + fuzzy_ = fuzzy; + setParameter("Fuzzy", fuzzy); +} + +std::string DescribeLoadBalancersRequest::getAddress()const +{ + return address_; +} + +void DescribeLoadBalancersRequest::setAddress(const std::string& address) +{ + address_ = address; + setParameter("Address", address); +} + +std::string DescribeLoadBalancersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeLoadBalancersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeLoadBalancersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeLoadBalancersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeLoadBalancersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLoadBalancersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeLoadBalancersRequest::getServerId()const +{ + return serverId_; +} + +void DescribeLoadBalancersRequest::setServerId(const std::string& serverId) +{ + serverId_ = serverId; + setParameter("ServerId", serverId); +} + +std::string DescribeLoadBalancersRequest::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerStatus(const std::string& loadBalancerStatus) +{ + loadBalancerStatus_ = loadBalancerStatus; + setParameter("LoadBalancerStatus", loadBalancerStatus); +} + +std::string DescribeLoadBalancersRequest::getTags()const +{ + return tags_; +} + +void DescribeLoadBalancersRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DescribeLoadBalancersRequest::getServerIntranetAddress()const +{ + return serverIntranetAddress_; +} + +void DescribeLoadBalancersRequest::setServerIntranetAddress(const std::string& serverIntranetAddress) +{ + serverIntranetAddress_ = serverIntranetAddress; + setParameter("ServerIntranetAddress", serverIntranetAddress); +} + +std::string DescribeLoadBalancersRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeLoadBalancersRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeLoadBalancersRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setParameter("LoadBalancerId", loadBalancerId); +} + +std::string DescribeLoadBalancersRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void DescribeLoadBalancersRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string DescribeLoadBalancersRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeLoadBalancersRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + std::string DescribeLoadBalancersRequest::getPayType()const { return payType_; diff --git a/slb/src/model/DescribeLoadBalancersResult.cc b/slb/src/model/DescribeLoadBalancersResult.cc index dcc57aac4..98cd5f105 100644 --- a/slb/src/model/DescribeLoadBalancersResult.cc +++ b/slb/src/model/DescribeLoadBalancersResult.cc @@ -40,72 +40,74 @@ void DescribeLoadBalancersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLoadBalancers = value["LoadBalancers"]["LoadBalancer"]; - for (auto value : allLoadBalancers) - { - LoadBalancer loadBalancersObject; - if(!value["LoadBalancerId"].isNull()) - loadBalancersObject.loadBalancerId = value["LoadBalancerId"].asString(); - if(!value["LoadBalancerName"].isNull()) - loadBalancersObject.loadBalancerName = value["LoadBalancerName"].asString(); - if(!value["LoadBalancerStatus"].isNull()) - loadBalancersObject.loadBalancerStatus = value["LoadBalancerStatus"].asString(); - if(!value["Address"].isNull()) - loadBalancersObject.address = value["Address"].asString(); - if(!value["AddressType"].isNull()) - loadBalancersObject.addressType = value["AddressType"].asString(); - if(!value["RegionId"].isNull()) - loadBalancersObject.regionId = value["RegionId"].asString(); - if(!value["RegionIdAlias"].isNull()) - loadBalancersObject.regionIdAlias = value["RegionIdAlias"].asString(); - if(!value["VSwitchId"].isNull()) - loadBalancersObject.vSwitchId = value["VSwitchId"].asString(); - if(!value["VpcId"].isNull()) - loadBalancersObject.vpcId = value["VpcId"].asString(); - if(!value["NetworkType"].isNull()) - loadBalancersObject.networkType = value["NetworkType"].asString(); - if(!value["MasterZoneId"].isNull()) - loadBalancersObject.masterZoneId = value["MasterZoneId"].asString(); - if(!value["SlaveZoneId"].isNull()) - loadBalancersObject.slaveZoneId = value["SlaveZoneId"].asString(); - if(!value["InternetChargeType"].isNull()) - loadBalancersObject.internetChargeType = value["InternetChargeType"].asString(); - if(!value["CreateTime"].isNull()) - loadBalancersObject.createTime = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - loadBalancersObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); - if(!value["PayType"].isNull()) - loadBalancersObject.payType = value["PayType"].asString(); - if(!value["ResourceGroupId"].isNull()) - loadBalancersObject.resourceGroupId = value["ResourceGroupId"].asString(); - loadBalancers_.push_back(loadBalancersObject); - } - 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()); + auto allLoadBalancers = value["LoadBalancers"]["LoadBalancer"]; + for (auto value : allLoadBalancers) + { + LoadBalancer loadBalancersObject; + if(!value["LoadBalancerId"].isNull()) + loadBalancersObject.loadBalancerId = value["LoadBalancerId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancersObject.loadBalancerName = value["LoadBalancerName"].asString(); + if(!value["LoadBalancerStatus"].isNull()) + loadBalancersObject.loadBalancerStatus = value["LoadBalancerStatus"].asString(); + if(!value["Address"].isNull()) + loadBalancersObject.address = value["Address"].asString(); + if(!value["AddressType"].isNull()) + loadBalancersObject.addressType = value["AddressType"].asString(); + if(!value["RegionId"].isNull()) + loadBalancersObject.regionId = value["RegionId"].asString(); + if(!value["RegionIdAlias"].isNull()) + loadBalancersObject.regionIdAlias = value["RegionIdAlias"].asString(); + if(!value["VSwitchId"].isNull()) + loadBalancersObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VpcId"].isNull()) + loadBalancersObject.vpcId = value["VpcId"].asString(); + if(!value["NetworkType"].isNull()) + loadBalancersObject.networkType = value["NetworkType"].asString(); + if(!value["MasterZoneId"].isNull()) + loadBalancersObject.masterZoneId = value["MasterZoneId"].asString(); + if(!value["SlaveZoneId"].isNull()) + loadBalancersObject.slaveZoneId = value["SlaveZoneId"].asString(); + if(!value["InternetChargeType"].isNull()) + loadBalancersObject.internetChargeType = value["InternetChargeType"].asString(); + if(!value["CreateTime"].isNull()) + loadBalancersObject.createTime = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + loadBalancersObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); + if(!value["PayType"].isNull()) + loadBalancersObject.payType = value["PayType"].asString(); + if(!value["ResourceGroupId"].isNull()) + loadBalancersObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["AddressIPVersion"].isNull()) + loadBalancersObject.addressIPVersion = value["AddressIPVersion"].asString(); + loadBalancers_.push_back(loadBalancersObject); + } + 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 DescribeLoadBalancersResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeLoadBalancersResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeLoadBalancersResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeLoadBalancersResult::getLoadBalancers()const -{ - return loadBalancers_; -} - +int DescribeLoadBalancersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeLoadBalancersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeLoadBalancersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeLoadBalancersResult::getLoadBalancers()const +{ + return loadBalancers_; +} + diff --git a/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc index 4d979b14a..c90dd5a19 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc @@ -40,39 +40,47 @@ void DescribeMasterSlaveServerGroupAttributeResult::parse(const std::string &pay reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; - for (auto value : allMasterSlaveBackendServers) - { - MasterSlaveBackendServer masterSlaveBackendServersObject; - if(!value["ServerId"].isNull()) - masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); - if(!value["ServerType"].isNull()) - masterSlaveBackendServersObject.serverType = value["ServerType"].asString(); - masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); - } - if(!value["MasterSlaveServerGroupId"].isNull()) - masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); - if(!value["MasterSlaveServerGroupName"].isNull()) - masterSlaveServerGroupName_ = value["MasterSlaveServerGroupName"].asString(); + auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto value : allMasterSlaveBackendServers) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!value["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["ServerType"].isNull()) + masterSlaveBackendServersObject.serverType = value["ServerType"].asString(); + if(!value["Type"].isNull()) + masterSlaveBackendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["MasterSlaveServerGroupName"].isNull()) + masterSlaveServerGroupName_ = value["MasterSlaveServerGroupName"].asString(); } -std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupId()const -{ - return masterSlaveServerGroupId_; -} - -std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupName()const -{ - return masterSlaveServerGroupName_; -} - -std::vector DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveBackendServers()const -{ - return masterSlaveBackendServers_; -} - +std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupName()const +{ + return masterSlaveServerGroupName_; +} + +std::vector DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc index 486be84d9..2278cf3c9 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc @@ -80,6 +80,17 @@ void DescribeMasterSlaveServerGroupsRequest::setRegionId(const std::string& regi setParameter("RegionId", regionId); } +bool DescribeMasterSlaveServerGroupsRequest::getIncludeListener()const +{ + return includeListener_; +} + +void DescribeMasterSlaveServerGroupsRequest::setIncludeListener(bool includeListener) +{ + includeListener_ = includeListener; + setParameter("IncludeListener", std::to_string(includeListener)); +} + std::string DescribeMasterSlaveServerGroupsRequest::getOwnerAccount()const { return ownerAccount_; diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc index 0b5f7d979..b5c964b86 100644 --- a/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc +++ b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc @@ -40,21 +40,32 @@ void DescribeMasterSlaveServerGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveServerGroups = value["MasterSlaveServerGroups"]["MasterSlaveServerGroup"]; - for (auto value : allMasterSlaveServerGroups) - { - MasterSlaveServerGroup masterSlaveServerGroupsObject; - if(!value["MasterSlaveServerGroupId"].isNull()) - masterSlaveServerGroupsObject.masterSlaveServerGroupId = value["MasterSlaveServerGroupId"].asString(); - if(!value["MasterSlaveServerGroupName"].isNull()) - masterSlaveServerGroupsObject.masterSlaveServerGroupName = value["MasterSlaveServerGroupName"].asString(); - masterSlaveServerGroups_.push_back(masterSlaveServerGroupsObject); - } + auto allMasterSlaveServerGroups = value["MasterSlaveServerGroups"]["MasterSlaveServerGroup"]; + for (auto value : allMasterSlaveServerGroups) + { + MasterSlaveServerGroup masterSlaveServerGroupsObject; + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupsObject.masterSlaveServerGroupId = value["MasterSlaveServerGroupId"].asString(); + if(!value["MasterSlaveServerGroupName"].isNull()) + masterSlaveServerGroupsObject.masterSlaveServerGroupName = value["MasterSlaveServerGroupName"].asString(); + auto associatedObjectsNode = value["AssociatedObjects"]; + auto allListeners = value["Listeners"]["Listener"]; + for (auto value : allListeners) + { + MasterSlaveServerGroup::AssociatedObjects::Listener listenerObject; + if(!value["Protocol"].isNull()) + listenerObject.protocol = value["Protocol"].asString(); + if(!value["Port"].isNull()) + listenerObject.port = std::stoi(value["Port"].asString()); + masterSlaveServerGroupsObject.associatedObjects.listeners.push_back(listenerObject); + } + masterSlaveServerGroups_.push_back(masterSlaveServerGroupsObject); + } } -std::vector DescribeMasterSlaveServerGroupsResult::getMasterSlaveServerGroups()const -{ - return masterSlaveServerGroups_; -} - +std::vector DescribeMasterSlaveServerGroupsResult::getMasterSlaveServerGroups()const +{ + return masterSlaveServerGroups_; +} + diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc index 208909101..b1c9bbf0c 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupAttributeResult.cc @@ -40,39 +40,47 @@ void DescribeMasterSlaveVServerGroupAttributeResult::parse(const std::string &pa reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; - for (auto value : allMasterSlaveBackendServers) - { - MasterSlaveBackendServer masterSlaveBackendServersObject; - if(!value["ServerId"].isNull()) - masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); - if(!value["IsBackup"].isNull()) - masterSlaveBackendServersObject.isBackup = std::stoi(value["IsBackup"].asString()); - masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); - } - if(!value["MasterSlaveVServerGroupId"].isNull()) - masterSlaveVServerGroupId_ = value["MasterSlaveVServerGroupId"].asString(); - if(!value["MasterSlaveVServerGroupName"].isNull()) - masterSlaveVServerGroupName_ = value["MasterSlaveVServerGroupName"].asString(); + auto allMasterSlaveBackendServers = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto value : allMasterSlaveBackendServers) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!value["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["IsBackup"].isNull()) + masterSlaveBackendServersObject.isBackup = std::stoi(value["IsBackup"].asString()); + if(!value["Type"].isNull()) + masterSlaveBackendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + masterSlaveBackendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = value["VpcId"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["MasterSlaveVServerGroupId"].isNull()) + masterSlaveVServerGroupId_ = value["MasterSlaveVServerGroupId"].asString(); + if(!value["MasterSlaveVServerGroupName"].isNull()) + masterSlaveVServerGroupName_ = value["MasterSlaveVServerGroupName"].asString(); } -std::string DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveVServerGroupId()const -{ - return masterSlaveVServerGroupId_; -} - -std::vector DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveBackendServers()const -{ - return masterSlaveBackendServers_; -} - -std::string DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveVServerGroupName()const -{ - return masterSlaveVServerGroupName_; -} - +std::string DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveVServerGroupId()const +{ + return masterSlaveVServerGroupId_; +} + +std::vector DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + +std::string DescribeMasterSlaveVServerGroupAttributeResult::getMasterSlaveVServerGroupName()const +{ + return masterSlaveVServerGroupName_; +} + diff --git a/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc b/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc index 3fa3ac9bf..f3b9e14a1 100644 --- a/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc +++ b/slb/src/model/DescribeMasterSlaveVServerGroupsResult.cc @@ -40,21 +40,21 @@ void DescribeMasterSlaveVServerGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allMasterSlaveVServerGroups = value["MasterSlaveVServerGroups"]["MasterSlaveVServerGroup"]; - for (auto value : allMasterSlaveVServerGroups) - { - MasterSlaveVServerGroup masterSlaveVServerGroupsObject; - if(!value["MasterSlaveVServerGroupId"].isNull()) - masterSlaveVServerGroupsObject.masterSlaveVServerGroupId = value["MasterSlaveVServerGroupId"].asString(); - if(!value["MasterSlaveVServerGroupName"].isNull()) - masterSlaveVServerGroupsObject.masterSlaveVServerGroupName = value["MasterSlaveVServerGroupName"].asString(); - masterSlaveVServerGroups_.push_back(masterSlaveVServerGroupsObject); - } + auto allMasterSlaveVServerGroups = value["MasterSlaveVServerGroups"]["MasterSlaveVServerGroup"]; + for (auto value : allMasterSlaveVServerGroups) + { + MasterSlaveVServerGroup masterSlaveVServerGroupsObject; + if(!value["MasterSlaveVServerGroupId"].isNull()) + masterSlaveVServerGroupsObject.masterSlaveVServerGroupId = value["MasterSlaveVServerGroupId"].asString(); + if(!value["MasterSlaveVServerGroupName"].isNull()) + masterSlaveVServerGroupsObject.masterSlaveVServerGroupName = value["MasterSlaveVServerGroupName"].asString(); + masterSlaveVServerGroups_.push_back(masterSlaveVServerGroupsObject); + } } -std::vector DescribeMasterSlaveVServerGroupsResult::getMasterSlaveVServerGroups()const -{ - return masterSlaveVServerGroups_; -} - +std::vector DescribeMasterSlaveVServerGroupsResult::getMasterSlaveVServerGroups()const +{ + return masterSlaveVServerGroups_; +} + diff --git a/slb/src/model/DescribeRegionsRequest.cc b/slb/src/model/DescribeRegionsRequest.cc index 095612157..3f40aca51 100644 --- a/slb/src/model/DescribeRegionsRequest.cc +++ b/slb/src/model/DescribeRegionsRequest.cc @@ -80,6 +80,17 @@ void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) setParameter("OwnerAccount", ownerAccount); } +std::string DescribeRegionsRequest::getAcceptLanguage()const +{ + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) +{ + acceptLanguage_ = acceptLanguage; + setParameter("AcceptLanguage", acceptLanguage); +} + long DescribeRegionsRequest::getOwnerId()const { return ownerId_; diff --git a/slb/src/model/DescribeRegionsResult.cc b/slb/src/model/DescribeRegionsResult.cc index 1015359be..8c76b40b2 100644 --- a/slb/src/model/DescribeRegionsResult.cc +++ b/slb/src/model/DescribeRegionsResult.cc @@ -40,21 +40,23 @@ void DescribeRegionsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRegions = value["Regions"]["Region"]; - for (auto value : allRegions) - { - Region regionsObject; - if(!value["RegionId"].isNull()) - regionsObject.regionId = value["RegionId"].asString(); - if(!value["LocalName"].isNull()) - regionsObject.localName = value["LocalName"].asString(); - regions_.push_back(regionsObject); - } + auto allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionsObject; + if(!value["RegionId"].isNull()) + regionsObject.regionId = value["RegionId"].asString(); + if(!value["LocalName"].isNull()) + regionsObject.localName = value["LocalName"].asString(); + if(!value["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); + regions_.push_back(regionsObject); + } } -std::vector DescribeRegionsResult::getRegions()const -{ - return regions_; -} - +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/slb/src/model/DescribeRuleAttributeResult.cc b/slb/src/model/DescribeRuleAttributeResult.cc index c362aca41..6053bc788 100644 --- a/slb/src/model/DescribeRuleAttributeResult.cc +++ b/slb/src/model/DescribeRuleAttributeResult.cc @@ -40,48 +40,153 @@ void DescribeRuleAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RuleName"].isNull()) - ruleName_ = value["RuleName"].asString(); - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); - if(!value["ListenerPort"].isNull()) - listenerPort_ = value["ListenerPort"].asString(); - if(!value["Domain"].isNull()) - domain_ = value["Domain"].asString(); - if(!value["Url"].isNull()) - url_ = value["Url"].asString(); - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["RuleName"].isNull()) + ruleName_ = value["RuleName"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = value["ListenerPort"].asString(); + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["ListenerSync"].isNull()) + listenerSync_ = value["ListenerSync"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); } -std::string DescribeRuleAttributeResult::getListenerPort()const -{ - return listenerPort_; -} - -std::string DescribeRuleAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::string DescribeRuleAttributeResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -std::string DescribeRuleAttributeResult::getDomain()const -{ - return domain_; -} - -std::string DescribeRuleAttributeResult::getRuleName()const -{ - return ruleName_; -} - -std::string DescribeRuleAttributeResult::getUrl()const -{ - return url_; -} - +int DescribeRuleAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +std::string DescribeRuleAttributeResult::getCookie()const +{ + return cookie_; +} + +std::string DescribeRuleAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string DescribeRuleAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +int DescribeRuleAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +int DescribeRuleAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeRuleAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeRuleAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +std::string DescribeRuleAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +int DescribeRuleAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeRuleAttributeResult::getUrl()const +{ + return url_; +} + +std::string DescribeRuleAttributeResult::getStickySession()const +{ + return stickySession_; +} + +int DescribeRuleAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeRuleAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeRuleAttributeResult::getListenerSync()const +{ + return listenerSync_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeRuleAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeRuleAttributeResult::getDomain()const +{ + return domain_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeRuleAttributeResult::getRuleName()const +{ + return ruleName_; +} + diff --git a/slb/src/model/DescribeRulesResult.cc b/slb/src/model/DescribeRulesResult.cc index d2ab2173d..af47ca70c 100644 --- a/slb/src/model/DescribeRulesResult.cc +++ b/slb/src/model/DescribeRulesResult.cc @@ -40,27 +40,57 @@ void DescribeRulesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allRules = value["Rules"]["Rule"]; - for (auto value : allRules) - { - Rule rulesObject; - if(!value["RuleId"].isNull()) - rulesObject.ruleId = value["RuleId"].asString(); - if(!value["RuleName"].isNull()) - rulesObject.ruleName = value["RuleName"].asString(); - if(!value["Domain"].isNull()) - rulesObject.domain = value["Domain"].asString(); - if(!value["Url"].isNull()) - rulesObject.url = value["Url"].asString(); - if(!value["VServerGroupId"].isNull()) - rulesObject.vServerGroupId = value["VServerGroupId"].asString(); - rules_.push_back(rulesObject); - } + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + Rule rulesObject; + if(!value["RuleId"].isNull()) + rulesObject.ruleId = value["RuleId"].asString(); + if(!value["RuleName"].isNull()) + rulesObject.ruleName = value["RuleName"].asString(); + if(!value["Domain"].isNull()) + rulesObject.domain = value["Domain"].asString(); + if(!value["Url"].isNull()) + rulesObject.url = value["Url"].asString(); + if(!value["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = value["VServerGroupId"].asString(); + if(!value["ListenerSync"].isNull()) + rulesObject.listenerSync = value["ListenerSync"].asString(); + if(!value["Scheduler"].isNull()) + rulesObject.scheduler = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + rulesObject.stickySession = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + rulesObject.stickySessionType = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + rulesObject.cookieTimeout = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + rulesObject.cookie = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + rulesObject.healthCheck = value["HealthCheck"].asString(); + if(!value["HealthCheckDomain"].isNull()) + rulesObject.healthCheckDomain = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + rulesObject.healthCheckURI = value["HealthCheckURI"].asString(); + if(!value["HealthyThreshold"].isNull()) + rulesObject.healthyThreshold = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + rulesObject.unhealthyThreshold = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + rulesObject.healthCheckTimeout = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + rulesObject.healthCheckInterval = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + rulesObject.healthCheckConnectPort = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + rulesObject.healthCheckHttpCode = value["HealthCheckHttpCode"].asString(); + rules_.push_back(rulesObject); + } } -std::vector DescribeRulesResult::getRules()const -{ - return rules_; -} - +std::vector DescribeRulesResult::getRules()const +{ + return rules_; +} + diff --git a/slb/src/model/DescribeServerCertificatesResult.cc b/slb/src/model/DescribeServerCertificatesResult.cc index d7aca41a2..f7dd349ab 100644 --- a/slb/src/model/DescribeServerCertificatesResult.cc +++ b/slb/src/model/DescribeServerCertificatesResult.cc @@ -40,39 +40,48 @@ void DescribeServerCertificatesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allServerCertificates = value["ServerCertificates"]["ServerCertificate"]; - for (auto value : allServerCertificates) - { - ServerCertificate serverCertificatesObject; - if(!value["ServerCertificateId"].isNull()) - serverCertificatesObject.serverCertificateId = value["ServerCertificateId"].asString(); - if(!value["Fingerprint"].isNull()) - serverCertificatesObject.fingerprint = value["Fingerprint"].asString(); - if(!value["ServerCertificateName"].isNull()) - serverCertificatesObject.serverCertificateName = value["ServerCertificateName"].asString(); - if(!value["RegionId"].isNull()) - serverCertificatesObject.regionId = value["RegionId"].asString(); - if(!value["RegionIdAlias"].isNull()) - serverCertificatesObject.regionIdAlias = value["RegionIdAlias"].asString(); - if(!value["AliCloudCertificateId"].isNull()) - serverCertificatesObject.aliCloudCertificateId = value["AliCloudCertificateId"].asString(); - if(!value["AliCloudCertificateName"].isNull()) - serverCertificatesObject.aliCloudCertificateName = value["AliCloudCertificateName"].asString(); - if(!value["IsAliCloudCertificate"].isNull()) - serverCertificatesObject.isAliCloudCertificate = std::stoi(value["IsAliCloudCertificate"].asString()); - if(!value["ResourceGroupId"].isNull()) - serverCertificatesObject.resourceGroupId = value["ResourceGroupId"].asString(); - if(!value["CreateTime"].isNull()) - serverCertificatesObject.createTime = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - serverCertificatesObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); - serverCertificates_.push_back(serverCertificatesObject); - } + auto allServerCertificates = value["ServerCertificates"]["ServerCertificate"]; + for (auto value : allServerCertificates) + { + ServerCertificate serverCertificatesObject; + if(!value["ServerCertificateId"].isNull()) + serverCertificatesObject.serverCertificateId = value["ServerCertificateId"].asString(); + if(!value["Fingerprint"].isNull()) + serverCertificatesObject.fingerprint = value["Fingerprint"].asString(); + if(!value["ServerCertificateName"].isNull()) + serverCertificatesObject.serverCertificateName = value["ServerCertificateName"].asString(); + if(!value["RegionId"].isNull()) + serverCertificatesObject.regionId = value["RegionId"].asString(); + if(!value["RegionIdAlias"].isNull()) + serverCertificatesObject.regionIdAlias = value["RegionIdAlias"].asString(); + if(!value["AliCloudCertificateId"].isNull()) + serverCertificatesObject.aliCloudCertificateId = value["AliCloudCertificateId"].asString(); + if(!value["AliCloudCertificateName"].isNull()) + serverCertificatesObject.aliCloudCertificateName = value["AliCloudCertificateName"].asString(); + if(!value["IsAliCloudCertificate"].isNull()) + serverCertificatesObject.isAliCloudCertificate = std::stoi(value["IsAliCloudCertificate"].asString()); + if(!value["ResourceGroupId"].isNull()) + serverCertificatesObject.resourceGroupId = value["ResourceGroupId"].asString(); + if(!value["CreateTime"].isNull()) + serverCertificatesObject.createTime = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + serverCertificatesObject.createTimeStamp = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + serverCertificatesObject.expireTime = value["ExpireTime"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + serverCertificatesObject.expireTimeStamp = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["CommonName"].isNull()) + serverCertificatesObject.commonName = value["CommonName"].asString(); + auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; + for (auto value : allSubjectAlternativeNames) + serverCertificatesObject.subjectAlternativeNames.push_back(value.asString()); + serverCertificates_.push_back(serverCertificatesObject); + } } -std::vector DescribeServerCertificatesResult::getServerCertificates()const -{ - return serverCertificates_; -} - +std::vector DescribeServerCertificatesResult::getServerCertificates()const +{ + return serverCertificates_; +} + diff --git a/slb/src/model/DescribeSlbQuotasRequest.cc b/slb/src/model/DescribeSlbQuotasRequest.cc new file mode 100644 index 000000000..7028dabc0 --- /dev/null +++ b/slb/src/model/DescribeSlbQuotasRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeSlbQuotasRequest; + +DescribeSlbQuotasRequest::DescribeSlbQuotasRequest() : + RpcServiceRequest("slb", "2014-05-15", "DescribeSlbQuotas") +{} + +DescribeSlbQuotasRequest::~DescribeSlbQuotasRequest() +{} + +std::string DescribeSlbQuotasRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void DescribeSlbQuotasRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long DescribeSlbQuotasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSlbQuotasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSlbQuotasRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSlbQuotasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSlbQuotasRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSlbQuotasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSlbQuotasRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSlbQuotasRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeSlbQuotasRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSlbQuotasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSlbQuotasRequest::getTags()const +{ + return tags_; +} + +void DescribeSlbQuotasRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/DescribeSlbQuotasResult.cc b/slb/src/model/DescribeSlbQuotasResult.cc new file mode 100644 index 000000000..1348cad3f --- /dev/null +++ b/slb/src/model/DescribeSlbQuotasResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeSlbQuotasResult::DescribeSlbQuotasResult() : + ServiceResult() +{} + +DescribeSlbQuotasResult::DescribeSlbQuotasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlbQuotasResult::~DescribeSlbQuotasResult() +{} + +void DescribeSlbQuotasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allQuotas = value["Quotas"]["Quota"]; + for (auto value : allQuotas) + { + Quota quotasObject; + if(!value["Max"].isNull()) + quotasObject.max = value["Max"].asString(); + if(!value["QuotaName"].isNull()) + quotasObject.quotaName = value["QuotaName"].asString(); + if(!value["Comment"].isNull()) + quotasObject.comment = value["Comment"].asString(); + quotas_.push_back(quotasObject); + } + +} + +std::vector DescribeSlbQuotasResult::getQuotas()const +{ + return quotas_; +} + diff --git a/slb/src/model/DescribeTagsResult.cc b/slb/src/model/DescribeTagsResult.cc index ca75d0497..b8e129a35 100644 --- a/slb/src/model/DescribeTagsResult.cc +++ b/slb/src/model/DescribeTagsResult.cc @@ -40,44 +40,44 @@ void DescribeTagsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allTagSets = value["TagSets"]["TagSet"]; - for (auto value : allTagSets) - { - TagSet tagSetsObject; - if(!value["TagKey"].isNull()) - tagSetsObject.tagKey = value["TagKey"].asString(); - if(!value["TagValue"].isNull()) - tagSetsObject.tagValue = value["TagValue"].asString(); - if(!value["InstanceCount"].isNull()) - tagSetsObject.instanceCount = std::stoi(value["InstanceCount"].asString()); - tagSets_.push_back(tagSetsObject); - } - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); + auto allTagSets = value["TagSets"]["TagSet"]; + for (auto value : allTagSets) + { + TagSet tagSetsObject; + if(!value["TagKey"].isNull()) + tagSetsObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagSetsObject.tagValue = value["TagValue"].asString(); + if(!value["InstanceCount"].isNull()) + tagSetsObject.instanceCount = std::stoi(value["InstanceCount"].asString()); + tagSets_.push_back(tagSetsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } -int DescribeTagsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeTagsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTagsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeTagsResult::getTagSets()const -{ - return tagSets_; -} - +int DescribeTagsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeTagsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTagsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeTagsResult::getTagSets()const +{ + return tagSets_; +} + diff --git a/slb/src/model/DescribeVServerGroupAttributeResult.cc b/slb/src/model/DescribeVServerGroupAttributeResult.cc index 6c62a2def..567333f41 100644 --- a/slb/src/model/DescribeVServerGroupAttributeResult.cc +++ b/slb/src/model/DescribeVServerGroupAttributeResult.cc @@ -40,37 +40,45 @@ void DescribeVServerGroupAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["VServerGroupName"].isNull()) - vServerGroupName_ = value["VServerGroupName"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["VServerGroupName"].isNull()) + vServerGroupName_ = value["VServerGroupName"].asString(); } -std::string DescribeVServerGroupAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::string DescribeVServerGroupAttributeResult::getVServerGroupName()const -{ - return vServerGroupName_; -} - -std::vector DescribeVServerGroupAttributeResult::getBackendServers()const -{ - return backendServers_; -} - +std::string DescribeVServerGroupAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeVServerGroupAttributeResult::getVServerGroupName()const +{ + return vServerGroupName_; +} + +std::vector DescribeVServerGroupAttributeResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/DescribeVServerGroupsRequest.cc b/slb/src/model/DescribeVServerGroupsRequest.cc index b1bad17d8..3ddb41add 100644 --- a/slb/src/model/DescribeVServerGroupsRequest.cc +++ b/slb/src/model/DescribeVServerGroupsRequest.cc @@ -36,6 +36,17 @@ void DescribeVServerGroupsRequest::setAccess_key_id(const std::string& access_ke setParameter("Access_key_id", access_key_id); } +bool DescribeVServerGroupsRequest::getIncludeRule()const +{ + return includeRule_; +} + +void DescribeVServerGroupsRequest::setIncludeRule(bool includeRule) +{ + includeRule_ = includeRule; + setParameter("IncludeRule", std::to_string(includeRule)); +} + long DescribeVServerGroupsRequest::getResourceOwnerId()const { return resourceOwnerId_; @@ -80,6 +91,17 @@ void DescribeVServerGroupsRequest::setRegionId(const std::string& regionId) setParameter("RegionId", regionId); } +bool DescribeVServerGroupsRequest::getIncludeListener()const +{ + return includeListener_; +} + +void DescribeVServerGroupsRequest::setIncludeListener(bool includeListener) +{ + includeListener_ = includeListener; + setParameter("IncludeListener", std::to_string(includeListener)); +} + std::string DescribeVServerGroupsRequest::getOwnerAccount()const { return ownerAccount_; diff --git a/slb/src/model/DescribeVServerGroupsResult.cc b/slb/src/model/DescribeVServerGroupsResult.cc index e98f6e861..86fcd04ca 100644 --- a/slb/src/model/DescribeVServerGroupsResult.cc +++ b/slb/src/model/DescribeVServerGroupsResult.cc @@ -40,21 +40,46 @@ void DescribeVServerGroupsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; - for (auto value : allVServerGroups) - { - VServerGroup vServerGroupsObject; - if(!value["VServerGroupId"].isNull()) - vServerGroupsObject.vServerGroupId = value["VServerGroupId"].asString(); - if(!value["VServerGroupName"].isNull()) - vServerGroupsObject.vServerGroupName = value["VServerGroupName"].asString(); - vServerGroups_.push_back(vServerGroupsObject); - } + auto allVServerGroups = value["VServerGroups"]["VServerGroup"]; + for (auto value : allVServerGroups) + { + VServerGroup vServerGroupsObject; + if(!value["VServerGroupId"].isNull()) + vServerGroupsObject.vServerGroupId = value["VServerGroupId"].asString(); + if(!value["VServerGroupName"].isNull()) + vServerGroupsObject.vServerGroupName = value["VServerGroupName"].asString(); + auto associatedObjectsNode = value["AssociatedObjects"]; + auto allListeners = value["Listeners"]["Listener"]; + for (auto value : allListeners) + { + VServerGroup::AssociatedObjects::Listener listenerObject; + if(!value["Protocol"].isNull()) + listenerObject.protocol = value["Protocol"].asString(); + if(!value["Port"].isNull()) + listenerObject.port = std::stoi(value["Port"].asString()); + vServerGroupsObject.associatedObjects.listeners.push_back(listenerObject); + } + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + VServerGroup::AssociatedObjects::Rule ruleObject; + if(!value["RuleId"].isNull()) + ruleObject.ruleId = value["RuleId"].asString(); + if(!value["Domain"].isNull()) + ruleObject.domain = value["Domain"].asString(); + if(!value["Url"].isNull()) + ruleObject.url = value["Url"].asString(); + if(!value["RuleName"].isNull()) + ruleObject.ruleName = value["RuleName"].asString(); + vServerGroupsObject.associatedObjects.rules.push_back(ruleObject); + } + vServerGroups_.push_back(vServerGroupsObject); + } } -std::vector DescribeVServerGroupsResult::getVServerGroups()const -{ - return vServerGroups_; -} - +std::vector DescribeVServerGroupsResult::getVServerGroups()const +{ + return vServerGroups_; +} + diff --git a/slb/src/model/DescribeZonesResult.cc b/slb/src/model/DescribeZonesResult.cc index 99ebd5236..2573c5782 100644 --- a/slb/src/model/DescribeZonesResult.cc +++ b/slb/src/model/DescribeZonesResult.cc @@ -40,31 +40,31 @@ void DescribeZonesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allZones = value["Zones"]["Zone"]; - for (auto value : allZones) - { - Zone zonesObject; - if(!value["ZoneId"].isNull()) - zonesObject.zoneId = value["ZoneId"].asString(); - if(!value["LocalName"].isNull()) - zonesObject.localName = value["LocalName"].asString(); - auto allSlaveZones = value["SlaveZones"]["SlaveZone"]; - for (auto value : allSlaveZones) - { - Zone::SlaveZone slaveZonesObject; - if(!value["ZoneId"].isNull()) - slaveZonesObject.zoneId = value["ZoneId"].asString(); - if(!value["LocalName"].isNull()) - slaveZonesObject.localName = value["LocalName"].asString(); - zonesObject.slaveZones.push_back(slaveZonesObject); - } - zones_.push_back(zonesObject); - } + auto allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + { + Zone zonesObject; + if(!value["ZoneId"].isNull()) + zonesObject.zoneId = value["ZoneId"].asString(); + if(!value["LocalName"].isNull()) + zonesObject.localName = value["LocalName"].asString(); + auto allSlaveZones = value["SlaveZones"]["SlaveZone"]; + for (auto value : allSlaveZones) + { + Zone::SlaveZone slaveZonesObject; + if(!value["ZoneId"].isNull()) + slaveZonesObject.zoneId = value["ZoneId"].asString(); + if(!value["LocalName"].isNull()) + slaveZonesObject.localName = value["LocalName"].asString(); + zonesObject.slaveZones.push_back(slaveZonesObject); + } + zones_.push_back(zonesObject); + } } -std::vector DescribeZonesResult::getZones()const -{ - return zones_; -} - +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc index 964c7c002..fe300248e 100644 --- a/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc +++ b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc @@ -40,13 +40,13 @@ void ModifyLoadBalancerInstanceSpecResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } -long ModifyLoadBalancerInstanceSpecResult::getOrderId()const -{ - return orderId_; -} - +long ModifyLoadBalancerInstanceSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc index cfa289bda..f140248f9 100644 --- a/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc +++ b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc @@ -40,13 +40,13 @@ void ModifyLoadBalancerInternetSpecResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } -long ModifyLoadBalancerInternetSpecResult::getOrderId()const -{ - return orderId_; -} - +long ModifyLoadBalancerInternetSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyLoadBalancerPayTypeResult.cc b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc index 6b33a28e6..600bcd11b 100644 --- a/slb/src/model/ModifyLoadBalancerPayTypeResult.cc +++ b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc @@ -40,13 +40,13 @@ void ModifyLoadBalancerPayTypeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } -long ModifyLoadBalancerPayTypeResult::getOrderId()const -{ - return orderId_; -} - +long ModifyLoadBalancerPayTypeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyVServerGroupBackendServersResult.cc b/slb/src/model/ModifyVServerGroupBackendServersResult.cc index a61345c68..95bc195ea 100644 --- a/slb/src/model/ModifyVServerGroupBackendServersResult.cc +++ b/slb/src/model/ModifyVServerGroupBackendServersResult.cc @@ -40,30 +40,38 @@ void ModifyVServerGroupBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); } -std::string ModifyVServerGroupBackendServersResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::vector ModifyVServerGroupBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string ModifyVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector ModifyVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/RemoveAccessControlListEntryRequest.cc b/slb/src/model/RemoveAccessControlListEntryRequest.cc new file mode 100644 index 000000000..5bc3fb6c5 --- /dev/null +++ b/slb/src/model/RemoveAccessControlListEntryRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::RemoveAccessControlListEntryRequest; + +RemoveAccessControlListEntryRequest::RemoveAccessControlListEntryRequest() : + RpcServiceRequest("slb", "2014-05-15", "RemoveAccessControlListEntry") +{} + +RemoveAccessControlListEntryRequest::~RemoveAccessControlListEntryRequest() +{} + +std::string RemoveAccessControlListEntryRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void RemoveAccessControlListEntryRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +std::string RemoveAccessControlListEntryRequest::getAclId()const +{ + return aclId_; +} + +void RemoveAccessControlListEntryRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +long RemoveAccessControlListEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveAccessControlListEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveAccessControlListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveAccessControlListEntryRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveAccessControlListEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveAccessControlListEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveAccessControlListEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RemoveAccessControlListEntryRequest::getAclEntrys()const +{ + return aclEntrys_; +} + +void RemoveAccessControlListEntryRequest::setAclEntrys(const std::string& aclEntrys) +{ + aclEntrys_ = aclEntrys; + setParameter("AclEntrys", aclEntrys); +} + +long RemoveAccessControlListEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveAccessControlListEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveAccessControlListEntryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RemoveAccessControlListEntryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RemoveAccessControlListEntryRequest::getTags()const +{ + return tags_; +} + +void RemoveAccessControlListEntryRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/RemoveAccessControlListEntryResult.cc b/slb/src/model/RemoveAccessControlListEntryResult.cc new file mode 100644 index 000000000..2219d0b61 --- /dev/null +++ b/slb/src/model/RemoveAccessControlListEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +RemoveAccessControlListEntryResult::RemoveAccessControlListEntryResult() : + ServiceResult() +{} + +RemoveAccessControlListEntryResult::RemoveAccessControlListEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAccessControlListEntryResult::~RemoveAccessControlListEntryResult() +{} + +void RemoveAccessControlListEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/RemoveBackendServersResult.cc b/slb/src/model/RemoveBackendServersResult.cc index 25110540a..d6da35ef7 100644 --- a/slb/src/model/RemoveBackendServersResult.cc +++ b/slb/src/model/RemoveBackendServersResult.cc @@ -40,28 +40,34 @@ void RemoveBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } -std::string RemoveBackendServersResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -std::vector RemoveBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string RemoveBackendServersResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector RemoveBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/RemoveVServerGroupBackendServersResult.cc b/slb/src/model/RemoveVServerGroupBackendServersResult.cc index 8a360eb13..8fd0d1194 100644 --- a/slb/src/model/RemoveVServerGroupBackendServersResult.cc +++ b/slb/src/model/RemoveVServerGroupBackendServersResult.cc @@ -40,30 +40,38 @@ void RemoveVServerGroupBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); } -std::string RemoveVServerGroupBackendServersResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::vector RemoveVServerGroupBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string RemoveVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector RemoveVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/SetAccessControlListAttributeRequest.cc b/slb/src/model/SetAccessControlListAttributeRequest.cc new file mode 100644 index 000000000..627ff5eb3 --- /dev/null +++ b/slb/src/model/SetAccessControlListAttributeRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::SetAccessControlListAttributeRequest; + +SetAccessControlListAttributeRequest::SetAccessControlListAttributeRequest() : + RpcServiceRequest("slb", "2014-05-15", "SetAccessControlListAttribute") +{} + +SetAccessControlListAttributeRequest::~SetAccessControlListAttributeRequest() +{} + +std::string SetAccessControlListAttributeRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void SetAccessControlListAttributeRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +std::string SetAccessControlListAttributeRequest::getAclId()const +{ + return aclId_; +} + +void SetAccessControlListAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +long SetAccessControlListAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SetAccessControlListAttributeRequest::getAclName()const +{ + return aclName_; +} + +void SetAccessControlListAttributeRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string SetAccessControlListAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetAccessControlListAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void SetAccessControlListAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SetAccessControlListAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetAccessControlListAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long SetAccessControlListAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetAccessControlListAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetAccessControlListAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetAccessControlListAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SetAccessControlListAttributeRequest::getTags()const +{ + return tags_; +} + +void SetAccessControlListAttributeRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/SetAccessControlListAttributeResult.cc b/slb/src/model/SetAccessControlListAttributeResult.cc new file mode 100644 index 000000000..0c517f5b8 --- /dev/null +++ b/slb/src/model/SetAccessControlListAttributeResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetAccessControlListAttributeResult::SetAccessControlListAttributeResult() : + ServiceResult() +{} + +SetAccessControlListAttributeResult::SetAccessControlListAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAccessControlListAttributeResult::~SetAccessControlListAttributeResult() +{} + +void SetAccessControlListAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string SetAccessControlListAttributeResult::getAclId()const +{ + return aclId_; +} + diff --git a/slb/src/model/SetAutoRenewStatusRequest.cc b/slb/src/model/SetAutoRenewStatusRequest.cc new file mode 100644 index 000000000..699924f0e --- /dev/null +++ b/slb/src/model/SetAutoRenewStatusRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::SetAutoRenewStatusRequest; + +SetAutoRenewStatusRequest::SetAutoRenewStatusRequest() : + RpcServiceRequest("slb", "2014-05-15", "SetAutoRenewStatus") +{} + +SetAutoRenewStatusRequest::~SetAutoRenewStatusRequest() +{} + +std::string SetAutoRenewStatusRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void SetAutoRenewStatusRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long SetAutoRenewStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetAutoRenewStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int SetAutoRenewStatusRequest::getRenewalDuration()const +{ + return renewalDuration_; +} + +void SetAutoRenewStatusRequest::setRenewalDuration(int renewalDuration) +{ + renewalDuration_ = renewalDuration; + setParameter("RenewalDuration", std::to_string(renewalDuration)); +} + +std::string SetAutoRenewStatusRequest::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +void SetAutoRenewStatusRequest::setLoadBalancerId(const std::string& loadBalancerId) +{ + loadBalancerId_ = loadBalancerId; + setParameter("LoadBalancerId", loadBalancerId); +} + +std::string SetAutoRenewStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetAutoRenewStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetAutoRenewStatusRequest::getRegionId()const +{ + return regionId_; +} + +void SetAutoRenewStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SetAutoRenewStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetAutoRenewStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string SetAutoRenewStatusRequest::getRenewalStatus()const +{ + return renewalStatus_; +} + +void SetAutoRenewStatusRequest::setRenewalStatus(const std::string& renewalStatus) +{ + renewalStatus_ = renewalStatus; + setParameter("RenewalStatus", renewalStatus); +} + +std::string SetAutoRenewStatusRequest::getRenewalCycUnit()const +{ + return renewalCycUnit_; +} + +void SetAutoRenewStatusRequest::setRenewalCycUnit(const std::string& renewalCycUnit) +{ + renewalCycUnit_ = renewalCycUnit; + setParameter("RenewalCycUnit", renewalCycUnit); +} + +long SetAutoRenewStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetAutoRenewStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetAutoRenewStatusRequest::getTags()const +{ + return tags_; +} + +void SetAutoRenewStatusRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + diff --git a/slb/src/model/SetAutoRenewStatusResult.cc b/slb/src/model/SetAutoRenewStatusResult.cc new file mode 100644 index 000000000..55ef75cac --- /dev/null +++ b/slb/src/model/SetAutoRenewStatusResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetAutoRenewStatusResult::SetAutoRenewStatusResult() : + ServiceResult() +{} + +SetAutoRenewStatusResult::SetAutoRenewStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAutoRenewStatusResult::~SetAutoRenewStatusResult() +{} + +void SetAutoRenewStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetBackendServersResult.cc b/slb/src/model/SetBackendServersResult.cc index e06bfcdc7..eac3b828d 100644 --- a/slb/src/model/SetBackendServersResult.cc +++ b/slb/src/model/SetBackendServersResult.cc @@ -40,28 +40,36 @@ void SetBackendServersResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Weight"].isNull()) - backendServersObject.weight = value["Weight"].asString(); - backendServers_.push_back(backendServersObject); - } - if(!value["LoadBalancerId"].isNull()) - loadBalancerId_ = value["LoadBalancerId"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Weight"].isNull()) + backendServersObject.weight = value["Weight"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } -std::string SetBackendServersResult::getLoadBalancerId()const -{ - return loadBalancerId_; -} - -std::vector SetBackendServersResult::getBackendServers()const -{ - return backendServers_; -} - +std::string SetBackendServersResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector SetBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/SetDomainExtensionAttributeRequest.cc b/slb/src/model/SetDomainExtensionAttributeRequest.cc new file mode 100644 index 000000000..f47303f80 --- /dev/null +++ b/slb/src/model/SetDomainExtensionAttributeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Slb::Model::SetDomainExtensionAttributeRequest; + +SetDomainExtensionAttributeRequest::SetDomainExtensionAttributeRequest() : + RpcServiceRequest("slb", "2014-05-15", "SetDomainExtensionAttribute") +{} + +SetDomainExtensionAttributeRequest::~SetDomainExtensionAttributeRequest() +{} + +std::string SetDomainExtensionAttributeRequest::getAccess_key_id()const +{ + return access_key_id_; +} + +void SetDomainExtensionAttributeRequest::setAccess_key_id(const std::string& access_key_id) +{ + access_key_id_ = access_key_id; + setParameter("Access_key_id", access_key_id); +} + +long SetDomainExtensionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetDomainExtensionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SetDomainExtensionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetDomainExtensionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetDomainExtensionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void SetDomainExtensionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SetDomainExtensionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetDomainExtensionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long SetDomainExtensionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetDomainExtensionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SetDomainExtensionAttributeRequest::getServerCertificateId()const +{ + return serverCertificateId_; +} + +void SetDomainExtensionAttributeRequest::setServerCertificateId(const std::string& serverCertificateId) +{ + serverCertificateId_ = serverCertificateId; + setParameter("ServerCertificateId", serverCertificateId); +} + +std::string SetDomainExtensionAttributeRequest::getTags()const +{ + return tags_; +} + +void SetDomainExtensionAttributeRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string SetDomainExtensionAttributeRequest::getDomainExtensionId()const +{ + return domainExtensionId_; +} + +void SetDomainExtensionAttributeRequest::setDomainExtensionId(const std::string& domainExtensionId) +{ + domainExtensionId_ = domainExtensionId; + setParameter("DomainExtensionId", domainExtensionId); +} + diff --git a/slb/src/model/SetDomainExtensionAttributeResult.cc b/slb/src/model/SetDomainExtensionAttributeResult.cc new file mode 100644 index 000000000..406178da5 --- /dev/null +++ b/slb/src/model/SetDomainExtensionAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetDomainExtensionAttributeResult::SetDomainExtensionAttributeResult() : + ServiceResult() +{} + +SetDomainExtensionAttributeResult::SetDomainExtensionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDomainExtensionAttributeResult::~SetDomainExtensionAttributeResult() +{} + +void SetDomainExtensionAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc index 6404590aa..ca5369b93 100644 --- a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc @@ -80,6 +80,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckURI(const std::s setParameter("HealthCheckURI", healthCheckURI); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getDescription()const +{ + return description_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int SetLoadBalancerHTTPListenerAttributeRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -102,6 +113,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setHealthyThreshold(int health setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclStatus()const +{ + return aclStatus_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getScheduler()const { return scheduler_; @@ -113,6 +135,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setScheduler(const std::string setParameter("Scheduler", scheduler); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclType()const +{ + return aclType_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck()const { return healthCheck_; @@ -168,6 +201,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setStickySessionType(const std setParameter("StickySessionType", stickySessionType); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getVpcIds()const +{ + return vpcIds_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroupId()const { return vServerGroupId_; @@ -179,6 +223,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setVServerGroupId(const std::s setParameter("VServerGroupId", vServerGroupId); } +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclId()const +{ + return aclId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int SetLoadBalancerHTTPListenerAttributeRequest::getListenerPort()const { return listenerPort_; @@ -245,6 +300,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckDomain(const std setParameter("HealthCheckDomain", healthCheckDomain); } +int SetLoadBalancerHTTPListenerAttributeRequest::getRequestTimeout()const +{ + return requestTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setRequestTimeout(int requestTimeout) +{ + requestTimeout_ = requestTimeout; + setParameter("RequestTimeout", std::to_string(requestTimeout)); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getOwnerAccount()const { return ownerAccount_; @@ -289,6 +355,17 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setTags(const std::string& tag setParameter("Tags", tags); } +int SetLoadBalancerHTTPListenerAttributeRequest::getIdleTimeout()const +{ + return idleTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setIdleTimeout(int idleTimeout) +{ + idleTimeout_ = idleTimeout; + setParameter("IdleTimeout", std::to_string(idleTimeout)); +} + std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId()const { return loadBalancerId_; diff --git a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc index a463f953e..74b00239f 100644 --- a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc @@ -80,6 +80,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckURI(const std:: setParameter("HealthCheckURI", healthCheckURI); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getDescription()const +{ + return description_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int SetLoadBalancerHTTPSListenerAttributeRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -102,6 +113,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthyThreshold(int healt setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclStatus()const +{ + return aclStatus_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getScheduler()const { return scheduler_; @@ -113,6 +135,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setScheduler(const std::strin setParameter("Scheduler", scheduler); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclType()const +{ + return aclType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheck()const { return healthCheck_; @@ -135,6 +168,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setMaxConnection(int maxConne setParameter("MaxConnection", std::to_string(maxConnection)); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getEnableHttp2()const +{ + return enableHttp2_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setEnableHttp2(const std::string& enableHttp2) +{ + enableHttp2_ = enableHttp2; + setParameter("EnableHttp2", enableHttp2); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getRegionId()const { return regionId_; @@ -168,6 +212,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySessionType(const st setParameter("StickySessionType", stickySessionType); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVpcIds()const +{ + return vpcIds_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroupId()const { return vServerGroupId_; @@ -179,6 +234,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setVServerGroupId(const std:: setParameter("VServerGroupId", vServerGroupId); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclId()const +{ + return aclId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int SetLoadBalancerHTTPSListenerAttributeRequest::getListenerPort()const { return listenerPort_; @@ -245,6 +311,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckDomain(const st setParameter("HealthCheckDomain", healthCheckDomain); } +int SetLoadBalancerHTTPSListenerAttributeRequest::getRequestTimeout()const +{ + return requestTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setRequestTimeout(int requestTimeout) +{ + requestTimeout_ = requestTimeout; + setParameter("RequestTimeout", std::to_string(requestTimeout)); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount()const { return ownerAccount_; @@ -267,6 +344,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setGzip(const std::string& gz setParameter("Gzip", gzip); } +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTLSCipherPolicy()const +{ + return tLSCipherPolicy_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setTLSCipherPolicy(const std::string& tLSCipherPolicy) +{ + tLSCipherPolicy_ = tLSCipherPolicy; + setParameter("TLSCipherPolicy", tLSCipherPolicy); +} + long SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerId()const { return ownerId_; @@ -311,6 +399,17 @@ void SetLoadBalancerHTTPSListenerAttributeRequest::setTags(const std::string& ta setParameter("Tags", tags); } +int SetLoadBalancerHTTPSListenerAttributeRequest::getIdleTimeout()const +{ + return idleTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setIdleTimeout(int idleTimeout) +{ + idleTimeout_ = idleTimeout; + setParameter("IdleTimeout", std::to_string(idleTimeout)); +} + std::string SetLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId()const { return loadBalancerId_; diff --git a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc index 5a44d5c16..df1ed54b7 100644 --- a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc @@ -69,6 +69,17 @@ void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckURI(const std::st setParameter("HealthCheckURI", healthCheckURI); } +std::string SetLoadBalancerTCPListenerAttributeRequest::getDescription()const +{ + return description_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int SetLoadBalancerTCPListenerAttributeRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -91,6 +102,17 @@ void SetLoadBalancerTCPListenerAttributeRequest::setHealthyThreshold(int healthy setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclStatus()const +{ + return aclStatus_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string SetLoadBalancerTCPListenerAttributeRequest::getScheduler()const { return scheduler_; @@ -102,6 +124,17 @@ void SetLoadBalancerTCPListenerAttributeRequest::setScheduler(const std::string& setParameter("Scheduler", scheduler); } +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclType()const +{ + return aclType_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGroup()const { return masterSlaveServerGroup_; @@ -157,6 +190,17 @@ void SetLoadBalancerTCPListenerAttributeRequest::setPersistenceTimeout(int persi setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } +std::string SetLoadBalancerTCPListenerAttributeRequest::getVpcIds()const +{ + return vpcIds_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroupId()const { return vServerGroupId_; @@ -168,6 +212,17 @@ void SetLoadBalancerTCPListenerAttributeRequest::setVServerGroupId(const std::st setParameter("VServerGroupId", vServerGroupId); } +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclId()const +{ + return aclId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int SetLoadBalancerTCPListenerAttributeRequest::getListenerPort()const { return listenerPort_; diff --git a/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc index 75e017ed8..04d76c9f1 100644 --- a/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc @@ -58,6 +58,17 @@ void SetLoadBalancerUDPListenerAttributeRequest::setResourceOwnerId(long resourc setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string SetLoadBalancerUDPListenerAttributeRequest::getDescription()const +{ + return description_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + int SetLoadBalancerUDPListenerAttributeRequest::getUnhealthyThreshold()const { return unhealthyThreshold_; @@ -80,6 +91,17 @@ void SetLoadBalancerUDPListenerAttributeRequest::setHealthyThreshold(int healthy setParameter("HealthyThreshold", std::to_string(healthyThreshold)); } +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclStatus()const +{ + return aclStatus_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclStatus(const std::string& aclStatus) +{ + aclStatus_ = aclStatus; + setParameter("AclStatus", aclStatus); +} + std::string SetLoadBalancerUDPListenerAttributeRequest::getScheduler()const { return scheduler_; @@ -91,6 +113,17 @@ void SetLoadBalancerUDPListenerAttributeRequest::setScheduler(const std::string& setParameter("Scheduler", scheduler); } +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclType()const +{ + return aclType_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGroup()const { return masterSlaveServerGroup_; @@ -135,6 +168,17 @@ void SetLoadBalancerUDPListenerAttributeRequest::setPersistenceTimeout(int persi setParameter("PersistenceTimeout", std::to_string(persistenceTimeout)); } +std::string SetLoadBalancerUDPListenerAttributeRequest::getVpcIds()const +{ + return vpcIds_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setVpcIds(const std::string& vpcIds) +{ + vpcIds_ = vpcIds; + setParameter("VpcIds", vpcIds); +} + std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroupId()const { return vServerGroupId_; @@ -146,6 +190,17 @@ void SetLoadBalancerUDPListenerAttributeRequest::setVServerGroupId(const std::st setParameter("VServerGroupId", vServerGroupId); } +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclId()const +{ + return aclId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + int SetLoadBalancerUDPListenerAttributeRequest::getListenerPort()const { return listenerPort_; diff --git a/slb/src/model/SetRuleRequest.cc b/slb/src/model/SetRuleRequest.cc index 2cf120fcb..d7634104c 100644 --- a/slb/src/model/SetRuleRequest.cc +++ b/slb/src/model/SetRuleRequest.cc @@ -36,6 +36,138 @@ void SetRuleRequest::setAccess_key_id(const std::string& access_key_id) setParameter("Access_key_id", access_key_id); } +long SetRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int SetRuleRequest::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +void SetRuleRequest::setHealthCheckTimeout(int healthCheckTimeout) +{ + healthCheckTimeout_ = healthCheckTimeout; + setParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout)); +} + +std::string SetRuleRequest::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +void SetRuleRequest::setHealthCheckURI(const std::string& healthCheckURI) +{ + healthCheckURI_ = healthCheckURI; + setParameter("HealthCheckURI", healthCheckURI); +} + +std::string SetRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void SetRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + +int SetRuleRequest::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +void SetRuleRequest::setUnhealthyThreshold(int unhealthyThreshold) +{ + unhealthyThreshold_ = unhealthyThreshold; + setParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold)); +} + +int SetRuleRequest::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +void SetRuleRequest::setHealthyThreshold(int healthyThreshold) +{ + healthyThreshold_ = healthyThreshold; + setParameter("HealthyThreshold", std::to_string(healthyThreshold)); +} + +std::string SetRuleRequest::getScheduler()const +{ + return scheduler_; +} + +void SetRuleRequest::setScheduler(const std::string& scheduler) +{ + scheduler_ = scheduler; + setParameter("Scheduler", scheduler); +} + +std::string SetRuleRequest::getHealthCheck()const +{ + return healthCheck_; +} + +void SetRuleRequest::setHealthCheck(const std::string& healthCheck) +{ + healthCheck_ = healthCheck; + setParameter("HealthCheck", healthCheck); +} + +std::string SetRuleRequest::getRegionId()const +{ + return regionId_; +} + +void SetRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SetRuleRequest::getListenerSync()const +{ + return listenerSync_; +} + +void SetRuleRequest::setListenerSync(const std::string& listenerSync) +{ + listenerSync_ = listenerSync; + setParameter("ListenerSync", listenerSync); +} + +int SetRuleRequest::getCookieTimeout()const +{ + return cookieTimeout_; +} + +void SetRuleRequest::setCookieTimeout(int cookieTimeout) +{ + cookieTimeout_ = cookieTimeout; + setParameter("CookieTimeout", std::to_string(cookieTimeout)); +} + +std::string SetRuleRequest::getStickySessionType()const +{ + return stickySessionType_; +} + +void SetRuleRequest::setStickySessionType(const std::string& stickySessionType) +{ + stickySessionType_ = stickySessionType; + setParameter("StickySessionType", stickySessionType); +} + std::string SetRuleRequest::getVServerGroupId()const { return vServerGroupId_; @@ -47,15 +179,15 @@ void SetRuleRequest::setVServerGroupId(const std::string& vServerGroupId) setParameter("VServerGroupId", vServerGroupId); } -long SetRuleRequest::getResourceOwnerId()const +std::string SetRuleRequest::getCookie()const { - return resourceOwnerId_; + return cookie_; } -void SetRuleRequest::setResourceOwnerId(long resourceOwnerId) +void SetRuleRequest::setCookie(const std::string& cookie) { - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); + cookie_ = cookie; + setParameter("Cookie", cookie); } std::string SetRuleRequest::getResourceOwnerAccount()const @@ -69,15 +201,26 @@ void SetRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAcc setParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string SetRuleRequest::getRegionId()const +std::string SetRuleRequest::getStickySession()const { - return regionId_; + return stickySession_; } -void SetRuleRequest::setRegionId(const std::string& regionId) +void SetRuleRequest::setStickySession(const std::string& stickySession) { - regionId_ = regionId; - setParameter("RegionId", regionId); + stickySession_ = stickySession; + setParameter("StickySession", stickySession); +} + +std::string SetRuleRequest::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +void SetRuleRequest::setHealthCheckDomain(const std::string& healthCheckDomain) +{ + healthCheckDomain_ = healthCheckDomain; + setParameter("HealthCheckDomain", healthCheckDomain); } std::string SetRuleRequest::getOwnerAccount()const @@ -102,17 +245,6 @@ void SetRuleRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -std::string SetRuleRequest::getRuleId()const -{ - return ruleId_; -} - -void SetRuleRequest::setRuleId(const std::string& ruleId) -{ - ruleId_ = ruleId; - setParameter("RuleId", ruleId); -} - std::string SetRuleRequest::getTags()const { return tags_; @@ -124,3 +256,47 @@ void SetRuleRequest::setTags(const std::string& tags) setParameter("Tags", tags); } +int SetRuleRequest::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +void SetRuleRequest::setHealthCheckInterval(int healthCheckInterval) +{ + healthCheckInterval_ = healthCheckInterval; + setParameter("HealthCheckInterval", std::to_string(healthCheckInterval)); +} + +std::string SetRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void SetRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + +int SetRuleRequest::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +void SetRuleRequest::setHealthCheckConnectPort(int healthCheckConnectPort) +{ + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort)); +} + +std::string SetRuleRequest::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +void SetRuleRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode) +{ + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter("HealthCheckHttpCode", healthCheckHttpCode); +} + diff --git a/slb/src/model/SetVServerGroupAttributeResult.cc b/slb/src/model/SetVServerGroupAttributeResult.cc index b47ed8b12..0fdb56a53 100644 --- a/slb/src/model/SetVServerGroupAttributeResult.cc +++ b/slb/src/model/SetVServerGroupAttributeResult.cc @@ -40,37 +40,45 @@ void SetVServerGroupAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendServers = value["BackendServers"]["BackendServer"]; - for (auto value : allBackendServers) - { - BackendServer backendServersObject; - if(!value["ServerId"].isNull()) - backendServersObject.serverId = value["ServerId"].asString(); - if(!value["Port"].isNull()) - backendServersObject.port = std::stoi(value["Port"].asString()); - if(!value["Weight"].isNull()) - backendServersObject.weight = std::stoi(value["Weight"].asString()); - backendServers_.push_back(backendServersObject); - } - if(!value["VServerGroupId"].isNull()) - vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["VServerGroupName"].isNull()) - vServerGroupName_ = value["VServerGroupName"].asString(); + auto allBackendServers = value["BackendServers"]["BackendServer"]; + for (auto value : allBackendServers) + { + BackendServer backendServersObject; + if(!value["ServerId"].isNull()) + backendServersObject.serverId = value["ServerId"].asString(); + if(!value["Port"].isNull()) + backendServersObject.port = std::stoi(value["Port"].asString()); + if(!value["Weight"].isNull()) + backendServersObject.weight = std::stoi(value["Weight"].asString()); + if(!value["Type"].isNull()) + backendServersObject.type = value["Type"].asString(); + if(!value["ServerIp"].isNull()) + backendServersObject.serverIp = value["ServerIp"].asString(); + if(!value["EniHost"].isNull()) + backendServersObject.eniHost = value["EniHost"].asString(); + if(!value["VpcId"].isNull()) + backendServersObject.vpcId = value["VpcId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["VServerGroupName"].isNull()) + vServerGroupName_ = value["VServerGroupName"].asString(); } -std::string SetVServerGroupAttributeResult::getVServerGroupId()const -{ - return vServerGroupId_; -} - -std::string SetVServerGroupAttributeResult::getVServerGroupName()const -{ - return vServerGroupName_; -} - -std::vector SetVServerGroupAttributeResult::getBackendServers()const -{ - return backendServers_; -} - +std::string SetVServerGroupAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string SetVServerGroupAttributeResult::getVServerGroupName()const +{ + return vServerGroupName_; +} + +std::vector SetVServerGroupAttributeResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/UploadCACertificateResult.cc b/slb/src/model/UploadCACertificateResult.cc index c6648dfba..77789f7e0 100644 --- a/slb/src/model/UploadCACertificateResult.cc +++ b/slb/src/model/UploadCACertificateResult.cc @@ -40,48 +40,69 @@ void UploadCACertificateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CACertificateId"].isNull()) - cACertificateId_ = value["CACertificateId"].asString(); - if(!value["CACertificateName"].isNull()) - cACertificateName_ = value["CACertificateName"].asString(); - if(!value["Fingerprint"].isNull()) - fingerprint_ = value["Fingerprint"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["CACertificateId"].isNull()) + cACertificateId_ = value["CACertificateId"].asString(); + if(!value["CACertificateName"].isNull()) + cACertificateName_ = value["CACertificateName"].asString(); + if(!value["Fingerprint"].isNull()) + fingerprint_ = value["Fingerprint"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + expireTimeStamp_ = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["CommonName"].isNull()) + commonName_ = value["CommonName"].asString(); } -std::string UploadCACertificateResult::getFingerprint()const -{ - return fingerprint_; -} - -std::string UploadCACertificateResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -std::string UploadCACertificateResult::getCACertificateId()const -{ - return cACertificateId_; -} - -std::string UploadCACertificateResult::getCreateTime()const -{ - return createTime_; -} - -std::string UploadCACertificateResult::getCACertificateName()const -{ - return cACertificateName_; -} - -long UploadCACertificateResult::getCreateTimeStamp()const -{ - return createTimeStamp_; -} - +std::string UploadCACertificateResult::getFingerprint()const +{ + return fingerprint_; +} + +std::string UploadCACertificateResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +long UploadCACertificateResult::getExpireTimeStamp()const +{ + return expireTimeStamp_; +} + +std::string UploadCACertificateResult::getCACertificateId()const +{ + return cACertificateId_; +} + +std::string UploadCACertificateResult::getCreateTime()const +{ + return createTime_; +} + +std::string UploadCACertificateResult::getCACertificateName()const +{ + return cACertificateName_; +} + +std::string UploadCACertificateResult::getExpireTime()const +{ + return expireTime_; +} + +long UploadCACertificateResult::getCreateTimeStamp()const +{ + return createTimeStamp_; +} + +std::string UploadCACertificateResult::getCommonName()const +{ + return commonName_; +} + diff --git a/slb/src/model/UploadServerCertificateResult.cc b/slb/src/model/UploadServerCertificateResult.cc index ec188e004..6fae8a75f 100644 --- a/slb/src/model/UploadServerCertificateResult.cc +++ b/slb/src/model/UploadServerCertificateResult.cc @@ -40,83 +40,112 @@ void UploadServerCertificateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ServerCertificateId"].isNull()) - serverCertificateId_ = value["ServerCertificateId"].asString(); - if(!value["Fingerprint"].isNull()) - fingerprint_ = value["Fingerprint"].asString(); - if(!value["ServerCertificateName"].isNull()) - serverCertificateName_ = value["ServerCertificateName"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["RegionIdAlias"].isNull()) - regionIdAlias_ = value["RegionIdAlias"].asString(); - if(!value["AliCloudCertificateId"].isNull()) - aliCloudCertificateId_ = value["AliCloudCertificateId"].asString(); - if(!value["AliCloudCertificateName"].isNull()) - aliCloudCertificateName_ = value["AliCloudCertificateName"].asString(); - if(!value["IsAliCloudCertificate"].isNull()) - isAliCloudCertificate_ = std::stoi(value["IsAliCloudCertificate"].asString()); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["CreateTimeStamp"].isNull()) - createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; + for (const auto &item : allSubjectAlternativeNames) + subjectAlternativeNames_.push_back(item.asString()); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["Fingerprint"].isNull()) + fingerprint_ = value["Fingerprint"].asString(); + if(!value["ServerCertificateName"].isNull()) + serverCertificateName_ = value["ServerCertificateName"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["RegionIdAlias"].isNull()) + regionIdAlias_ = value["RegionIdAlias"].asString(); + if(!value["AliCloudCertificateId"].isNull()) + aliCloudCertificateId_ = value["AliCloudCertificateId"].asString(); + if(!value["AliCloudCertificateName"].isNull()) + aliCloudCertificateName_ = value["AliCloudCertificateName"].asString(); + if(!value["IsAliCloudCertificate"].isNull()) + isAliCloudCertificate_ = std::stoi(value["IsAliCloudCertificate"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["CreateTimeStamp"].isNull()) + createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + expireTimeStamp_ = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["CommonName"].isNull()) + commonName_ = value["CommonName"].asString(); } -std::string UploadServerCertificateResult::getRegionIdAlias()const -{ - return regionIdAlias_; -} - -std::string UploadServerCertificateResult::getFingerprint()const -{ - return fingerprint_; -} - -std::string UploadServerCertificateResult::getAliCloudCertificateName()const -{ - return aliCloudCertificateName_; -} - -std::string UploadServerCertificateResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -int UploadServerCertificateResult::getIsAliCloudCertificate()const -{ - return isAliCloudCertificate_; -} - -std::string UploadServerCertificateResult::getCreateTime()const -{ - return createTime_; -} - -std::string UploadServerCertificateResult::getServerCertificateId()const -{ - return serverCertificateId_; -} - -std::string UploadServerCertificateResult::getServerCertificateName()const -{ - return serverCertificateName_; -} - -std::string UploadServerCertificateResult::getRegionId()const -{ - return regionId_; -} - -long UploadServerCertificateResult::getCreateTimeStamp()const -{ - return createTimeStamp_; -} - -std::string UploadServerCertificateResult::getAliCloudCertificateId()const -{ - return aliCloudCertificateId_; -} - +std::string UploadServerCertificateResult::getFingerprint()const +{ + return fingerprint_; +} + +std::string UploadServerCertificateResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +long UploadServerCertificateResult::getExpireTimeStamp()const +{ + return expireTimeStamp_; +} + +std::string UploadServerCertificateResult::getCreateTime()const +{ + return createTime_; +} + +std::vector UploadServerCertificateResult::getSubjectAlternativeNames()const +{ + return subjectAlternativeNames_; +} + +std::string UploadServerCertificateResult::getAliCloudCertificateId()const +{ + return aliCloudCertificateId_; +} + +std::string UploadServerCertificateResult::getRegionIdAlias()const +{ + return regionIdAlias_; +} + +std::string UploadServerCertificateResult::getAliCloudCertificateName()const +{ + return aliCloudCertificateName_; +} + +int UploadServerCertificateResult::getIsAliCloudCertificate()const +{ + return isAliCloudCertificate_; +} + +std::string UploadServerCertificateResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string UploadServerCertificateResult::getServerCertificateName()const +{ + return serverCertificateName_; +} + +std::string UploadServerCertificateResult::getRegionId()const +{ + return regionId_; +} + +std::string UploadServerCertificateResult::getExpireTime()const +{ + return expireTime_; +} + +long UploadServerCertificateResult::getCreateTimeStamp()const +{ + return createTimeStamp_; +} + +std::string UploadServerCertificateResult::getCommonName()const +{ + return commonName_; +} +