From cc4070bba36a2d215da5412610b8d3b561843ac0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 15 Jul 2021 09:32:35 +0000 Subject: [PATCH] Support Alb Open API. --- CHANGELOG | 3 + VERSION | 2 +- alb/CMakeLists.txt | 350 +++ alb/include/alibabacloud/alb/AlbClient.h | 582 ++++ alb/include/alibabacloud/alb/AlbExport.h | 32 + .../alb/model/AddEntriesToAclRequest.h | 55 + .../alb/model/AddEntriesToAclResult.h | 51 + .../model/AddServersToServerGroupRequest.h | 59 + .../alb/model/AddServersToServerGroupResult.h | 51 + .../model/AssociateAclsWithListenerRequest.h | 54 + .../model/AssociateAclsWithListenerResult.h | 51 + ...dditionalCertificatesWithListenerRequest.h | 54 + ...AdditionalCertificatesWithListenerResult.h | 51 + .../alibabacloud/alb/model/CreateAclRequest.h | 54 + .../alibabacloud/alb/model/CreateAclResult.h | 53 + .../model/CreateHealthCheckTemplateRequest.h | 87 + .../model/CreateHealthCheckTemplateResult.h | 51 + .../alb/model/CreateListenerRequest.h | 126 + .../alb/model/CreateListenerResult.h | 53 + .../alb/model/CreateLoadBalancerRequest.h | 88 + .../alb/model/CreateLoadBalancerResult.h | 51 + .../alb/model/CreateRuleRequest.h | 187 ++ .../alibabacloud/alb/model/CreateRuleResult.h | 53 + .../alb/model/CreateRulesRequest.h | 184 ++ .../alb/model/CreateRulesResult.h | 58 + .../alb/model/CreateSecurityPolicyRequest.h | 57 + .../alb/model/CreateSecurityPolicyResult.h | 51 + .../alb/model/CreateServerGroupRequest.h | 93 + .../alb/model/CreateServerGroupResult.h | 53 + .../alibabacloud/alb/model/DeleteAclRequest.h | 48 + .../alibabacloud/alb/model/DeleteAclResult.h | 51 + .../model/DeleteHealthCheckTemplatesRequest.h | 48 + .../model/DeleteHealthCheckTemplatesResult.h | 49 + .../alb/model/DeleteListenerRequest.h | 48 + .../alb/model/DeleteListenerResult.h | 51 + .../alb/model/DeleteLoadBalancerRequest.h | 48 + .../alb/model/DeleteLoadBalancerResult.h | 51 + .../alb/model/DeleteRuleRequest.h | 48 + .../alibabacloud/alb/model/DeleteRuleResult.h | 51 + .../alb/model/DeleteRulesRequest.h | 48 + .../alb/model/DeleteRulesResult.h | 51 + .../alb/model/DeleteSecurityPolicyRequest.h | 48 + .../alb/model/DeleteSecurityPolicyResult.h | 49 + .../alb/model/DeleteServerGroupRequest.h | 48 + .../alb/model/DeleteServerGroupResult.h | 51 + .../alb/model/DescribeRegionsRequest.h | 42 + .../alb/model/DescribeRegionsResult.h | 57 + .../alb/model/DescribeZonesRequest.h | 39 + .../alb/model/DescribeZonesResult.h | 56 + .../model/DisableDeletionProtectionRequest.h | 48 + .../model/DisableDeletionProtectionResult.h | 49 + .../DisableLoadBalancerAccessLogRequest.h | 48 + .../DisableLoadBalancerAccessLogResult.h | 49 + .../model/DissociateAclsFromListenerRequest.h | 51 + .../model/DissociateAclsFromListenerResult.h | 51 + ...dditionalCertificatesFromListenerRequest.h | 54 + ...AdditionalCertificatesFromListenerResult.h | 51 + .../model/EnableDeletionProtectionRequest.h | 48 + .../model/EnableDeletionProtectionResult.h | 49 + .../EnableLoadBalancerAccessLogRequest.h | 54 + .../model/EnableLoadBalancerAccessLogResult.h | 49 + .../GetHealthCheckTemplateAttributeRequest.h | 42 + .../GetHealthCheckTemplateAttributeResult.h | 83 + .../alb/model/GetListenerAttributeRequest.h | 42 + .../alb/model/GetListenerAttributeResult.h | 156 ++ .../model/GetLoadBalancerAttributeRequest.h | 42 + .../model/GetLoadBalancerAttributeResult.h | 138 + .../alb/model/ListAclEntriesRequest.h | 48 + .../alb/model/ListAclEntriesResult.h | 63 + .../alb/model/ListAclRelationsRequest.h | 42 + .../alb/model/ListAclRelationsResult.h | 64 + .../alibabacloud/alb/model/ListAclsRequest.h | 57 + .../alibabacloud/alb/model/ListAclsResult.h | 67 + .../alb/model/ListAsynJobsRequest.h | 63 + .../alb/model/ListAsynJobsResult.h | 70 + .../model/ListHealthCheckTemplatesRequest.h | 51 + .../model/ListHealthCheckTemplatesResult.h | 77 + .../model/ListListenerCertificatesRequest.h | 51 + .../model/ListListenerCertificatesResult.h | 64 + .../alb/model/ListListenersRequest.h | 57 + .../alb/model/ListListenersResult.h | 122 + .../alb/model/ListLoadBalancersRequest.h | 85 + .../alb/model/ListLoadBalancersResult.h | 112 + .../alibabacloud/alb/model/ListRulesRequest.h | 60 + .../alibabacloud/alb/model/ListRulesResult.h | 210 ++ .../alb/model/ListSecurityPoliciesRequest.h | 54 + .../alb/model/ListSecurityPoliciesResult.h | 68 + .../ListSecurityPolicyRelationsRequest.h | 42 + .../model/ListSecurityPolicyRelationsResult.h | 63 + .../alb/model/ListServerGroupServersRequest.h | 64 + .../alb/model/ListServerGroupServersResult.h | 68 + .../alb/model/ListServerGroupsRequest.h | 70 + .../alb/model/ListServerGroupsResult.h | 103 + .../model/ListSystemSecurityPoliciesRequest.h | 39 + .../model/ListSystemSecurityPoliciesResult.h | 57 + .../alb/model/ListTagKeysRequest.h | 54 + .../alb/model/ListTagKeysResult.h | 62 + .../alb/model/ListTagResourcesRequest.h | 58 + .../alb/model/ListTagResourcesResult.h | 64 + .../alb/model/ListTagValuesRequest.h | 54 + .../alb/model/ListTagValuesResult.h | 57 + .../alb/model/MoveResourceGroupRequest.h | 48 + .../alb/model/MoveResourceGroupResult.h | 49 + .../alb/model/RemoveEntriesFromAclRequest.h | 51 + .../alb/model/RemoveEntriesFromAclResult.h | 51 + .../RemoveServersFromServerGroupRequest.h | 57 + .../RemoveServersFromServerGroupResult.h | 51 + .../ReplaceServersInServerGroupRequest.h | 68 + .../model/ReplaceServersInServerGroupResult.h | 51 + .../alb/model/StartListenerRequest.h | 48 + .../alb/model/StartListenerResult.h | 51 + .../alb/model/StopListenerRequest.h | 48 + .../alb/model/StopListenerResult.h | 51 + .../alb/model/TagResourcesRequest.h | 52 + .../alb/model/TagResourcesResult.h | 49 + .../alb/model/UnTagResourcesRequest.h | 55 + .../alb/model/UnTagResourcesResult.h | 49 + .../alb/model/UpdateAclAttributeRequest.h | 51 + .../alb/model/UpdateAclAttributeResult.h | 49 + ...pdateHealthCheckTemplateAttributeRequest.h | 90 + ...UpdateHealthCheckTemplateAttributeResult.h | 49 + .../model/UpdateListenerAttributeRequest.h | 120 + .../alb/model/UpdateListenerAttributeResult.h | 51 + .../model/UpdateListenerLogConfigRequest.h | 59 + .../alb/model/UpdateListenerLogConfigResult.h | 51 + .../UpdateLoadBalancerAttributeRequest.h | 58 + .../model/UpdateLoadBalancerAttributeResult.h | 51 + .../model/UpdateLoadBalancerEditionRequest.h | 51 + .../model/UpdateLoadBalancerEditionResult.h | 49 + .../alb/model/UpdateRuleAttributeRequest.h | 184 ++ .../alb/model/UpdateRuleAttributeResult.h | 51 + .../alb/model/UpdateRulesAttributeRequest.h | 181 ++ .../alb/model/UpdateRulesAttributeResult.h | 51 + .../UpdateSecurityPolicyAttributeRequest.h | 57 + .../UpdateSecurityPolicyAttributeResult.h | 51 + .../model/UpdateServerGroupAttributeRequest.h | 84 + .../model/UpdateServerGroupAttributeResult.h | 51 + ...UpdateServerGroupServersAttributeRequest.h | 59 + .../UpdateServerGroupServersAttributeResult.h | 51 + alb/src/AlbClient.cc | 2465 +++++++++++++++++ alb/src/model/AddEntriesToAclRequest.cc | 66 + alb/src/model/AddEntriesToAclResult.cc | 51 + .../model/AddServersToServerGroupRequest.cc | 70 + .../model/AddServersToServerGroupResult.cc | 51 + .../model/AssociateAclsWithListenerRequest.cc | 74 + .../model/AssociateAclsWithListenerResult.cc | 51 + ...ditionalCertificatesWithListenerRequest.cc | 65 + ...dditionalCertificatesWithListenerResult.cc | 51 + alb/src/model/CreateAclRequest.cc | 72 + alb/src/model/CreateAclResult.cc | 58 + .../model/CreateHealthCheckTemplateRequest.cc | 175 ++ .../model/CreateHealthCheckTemplateResult.cc | 51 + alb/src/model/CreateListenerRequest.cc | 202 ++ alb/src/model/CreateListenerResult.cc | 58 + alb/src/model/CreateLoadBalancerRequest.cc | 141 + alb/src/model/CreateLoadBalancerResult.cc | 51 + alb/src/model/CreateRuleRequest.cc | 163 ++ alb/src/model/CreateRuleResult.cc | 58 + alb/src/model/CreateRulesRequest.cc | 133 + alb/src/model/CreateRulesResult.cc | 66 + alb/src/model/CreateSecurityPolicyRequest.cc | 85 + alb/src/model/CreateSecurityPolicyResult.cc | 51 + alb/src/model/CreateServerGroupRequest.cc | 137 + alb/src/model/CreateServerGroupResult.cc | 58 + alb/src/model/DeleteAclRequest.cc | 54 + alb/src/model/DeleteAclResult.cc | 51 + .../DeleteHealthCheckTemplatesRequest.cc | 56 + .../model/DeleteHealthCheckTemplatesResult.cc | 44 + alb/src/model/DeleteListenerRequest.cc | 54 + alb/src/model/DeleteListenerResult.cc | 51 + alb/src/model/DeleteLoadBalancerRequest.cc | 54 + alb/src/model/DeleteLoadBalancerResult.cc | 51 + alb/src/model/DeleteRuleRequest.cc | 54 + alb/src/model/DeleteRuleResult.cc | 51 + alb/src/model/DeleteRulesRequest.cc | 53 + alb/src/model/DeleteRulesResult.cc | 51 + alb/src/model/DeleteSecurityPolicyRequest.cc | 54 + alb/src/model/DeleteSecurityPolicyResult.cc | 44 + alb/src/model/DeleteServerGroupRequest.cc | 54 + alb/src/model/DeleteServerGroupResult.cc | 51 + alb/src/model/DescribeRegionsRequest.cc | 36 + alb/src/model/DescribeRegionsResult.cc | 61 + alb/src/model/DescribeZonesRequest.cc | 27 + alb/src/model/DescribeZonesResult.cc | 59 + .../model/DisableDeletionProtectionRequest.cc | 54 + .../model/DisableDeletionProtectionResult.cc | 44 + .../DisableLoadBalancerAccessLogRequest.cc | 54 + .../DisableLoadBalancerAccessLogResult.cc | 44 + .../DissociateAclsFromListenerRequest.cc | 65 + .../model/DissociateAclsFromListenerResult.cc | 51 + ...ditionalCertificatesFromListenerRequest.cc | 65 + ...dditionalCertificatesFromListenerResult.cc | 51 + .../model/EnableDeletionProtectionRequest.cc | 54 + .../model/EnableDeletionProtectionResult.cc | 44 + .../EnableLoadBalancerAccessLogRequest.cc | 72 + .../EnableLoadBalancerAccessLogResult.cc | 44 + .../GetHealthCheckTemplateAttributeRequest.cc | 36 + .../GetHealthCheckTemplateAttributeResult.cc | 165 ++ alb/src/model/GetListenerAttributeRequest.cc | 36 + alb/src/model/GetListenerAttributeResult.cc | 269 ++ .../model/GetLoadBalancerAttributeRequest.cc | 36 + .../model/GetLoadBalancerAttributeResult.cc | 259 ++ alb/src/model/ListAclEntriesRequest.cc | 54 + alb/src/model/ListAclEntriesResult.cc | 82 + alb/src/model/ListAclRelationsRequest.cc | 38 + alb/src/model/ListAclRelationsResult.cc | 73 + alb/src/model/ListAclsRequest.cc | 85 + alb/src/model/ListAclsResult.cc | 90 + alb/src/model/ListAsynJobsRequest.cc | 103 + alb/src/model/ListAsynJobsResult.cc | 96 + .../model/ListHealthCheckTemplatesRequest.cc | 67 + .../model/ListHealthCheckTemplatesResult.cc | 112 + .../model/ListListenerCertificatesRequest.cc | 63 + .../model/ListListenerCertificatesResult.cc | 84 + alb/src/model/ListListenersRequest.cc | 85 + alb/src/model/ListListenersResult.cc | 161 ++ alb/src/model/ListLoadBalancersRequest.cc | 162 ++ alb/src/model/ListLoadBalancersResult.cc | 148 + alb/src/model/ListRulesRequest.cc | 96 + alb/src/model/ListRulesResult.cc | 238 ++ alb/src/model/ListSecurityPoliciesRequest.cc | 76 + alb/src/model/ListSecurityPoliciesResult.cc | 94 + .../ListSecurityPolicyRelationsRequest.cc | 38 + .../ListSecurityPolicyRelationsResult.cc | 71 + .../model/ListServerGroupServersRequest.cc | 95 + alb/src/model/ListServerGroupServersResult.cc | 92 + alb/src/model/ListServerGroupsRequest.cc | 115 + alb/src/model/ListServerGroupsResult.cc | 149 + .../ListSystemSecurityPoliciesRequest.cc | 27 + .../model/ListSystemSecurityPoliciesResult.cc | 63 + alb/src/model/ListTagKeysRequest.cc | 72 + alb/src/model/ListTagKeysResult.cc | 80 + alb/src/model/ListTagResourcesRequest.cc | 77 + alb/src/model/ListTagResourcesResult.cc | 84 + alb/src/model/ListTagValuesRequest.cc | 72 + alb/src/model/ListTagValuesResult.cc | 73 + alb/src/model/MoveResourceGroupRequest.cc | 54 + alb/src/model/MoveResourceGroupResult.cc | 44 + alb/src/model/RemoveEntriesFromAclRequest.cc | 65 + alb/src/model/RemoveEntriesFromAclResult.cc | 51 + .../RemoveServersFromServerGroupRequest.cc | 68 + .../RemoveServersFromServerGroupResult.cc | 51 + .../ReplaceServersInServerGroupRequest.cc | 84 + .../ReplaceServersInServerGroupResult.cc | 51 + alb/src/model/StartListenerRequest.cc | 54 + alb/src/model/StartListenerResult.cc | 51 + alb/src/model/StopListenerRequest.cc | 54 + alb/src/model/StopListenerResult.cc | 51 + alb/src/model/TagResourcesRequest.cc | 59 + alb/src/model/TagResourcesResult.cc | 44 + alb/src/model/UnTagResourcesRequest.cc | 70 + alb/src/model/UnTagResourcesResult.cc | 44 + alb/src/model/UpdateAclAttributeRequest.cc | 63 + alb/src/model/UpdateAclAttributeResult.cc | 44 + ...dateHealthCheckTemplateAttributeRequest.cc | 184 ++ ...pdateHealthCheckTemplateAttributeResult.cc | 44 + .../model/UpdateListenerAttributeRequest.cc | 184 ++ .../model/UpdateListenerAttributeResult.cc | 51 + .../model/UpdateListenerLogConfigRequest.cc | 74 + .../model/UpdateListenerLogConfigResult.cc | 51 + .../UpdateLoadBalancerAttributeRequest.cc | 73 + .../UpdateLoadBalancerAttributeResult.cc | 51 + .../model/UpdateLoadBalancerEditionRequest.cc | 63 + .../model/UpdateLoadBalancerEditionResult.cc | 44 + alb/src/model/UpdateRuleAttributeRequest.cc | 154 + alb/src/model/UpdateRuleAttributeResult.cc | 51 + alb/src/model/UpdateRulesAttributeRequest.cc | 124 + alb/src/model/UpdateRulesAttributeResult.cc | 51 + .../UpdateSecurityPolicyAttributeRequest.cc | 85 + .../UpdateSecurityPolicyAttributeResult.cc | 51 + .../UpdateServerGroupAttributeRequest.cc | 110 + .../model/UpdateServerGroupAttributeResult.cc | 51 + ...pdateServerGroupServersAttributeRequest.cc | 70 + ...UpdateServerGroupServersAttributeResult.cc | 51 + 274 files changed, 22187 insertions(+), 1 deletion(-) create mode 100644 alb/CMakeLists.txt create mode 100644 alb/include/alibabacloud/alb/AlbClient.h create mode 100644 alb/include/alibabacloud/alb/AlbExport.h create mode 100644 alb/include/alibabacloud/alb/model/AddEntriesToAclRequest.h create mode 100644 alb/include/alibabacloud/alb/model/AddEntriesToAclResult.h create mode 100644 alb/include/alibabacloud/alb/model/AddServersToServerGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/AddServersToServerGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateAclRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateAclResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateLoadBalancerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateLoadBalancerResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateRuleRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateRuleResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateRulesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateRulesResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateSecurityPolicyRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateSecurityPolicyResult.h create mode 100644 alb/include/alibabacloud/alb/model/CreateServerGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/CreateServerGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteAclRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteAclResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteLoadBalancerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteLoadBalancerResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteRuleRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteRuleResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteRulesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteRulesResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteSecurityPolicyRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteSecurityPolicyResult.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteServerGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DeleteServerGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/DescribeRegionsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DescribeRegionsResult.h create mode 100644 alb/include/alibabacloud/alb/model/DescribeZonesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DescribeZonesResult.h create mode 100644 alb/include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DisableDeletionProtectionResult.h create mode 100644 alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogResult.h create mode 100644 alb/include/alibabacloud/alb/model/DissociateAclsFromListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DissociateAclsFromListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/EnableDeletionProtectionRequest.h create mode 100644 alb/include/alibabacloud/alb/model/EnableDeletionProtectionResult.h create mode 100644 alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogRequest.h create mode 100644 alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogResult.h create mode 100644 alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/GetListenerAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/GetListenerAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclEntriesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclEntriesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclRelationsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclRelationsResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListAclsResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListAsynJobsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListAsynJobsResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListListenerCertificatesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListListenerCertificatesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListListenersRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListListenersResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListLoadBalancersRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListLoadBalancersResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListRulesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListRulesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListSecurityPoliciesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListSecurityPoliciesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListServerGroupServersRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListServerGroupServersResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListServerGroupsRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListServerGroupsResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagKeysRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagKeysResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagResourcesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagResourcesResult.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagValuesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ListTagValuesResult.h create mode 100644 alb/include/alibabacloud/alb/model/MoveResourceGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/MoveResourceGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.h create mode 100644 alb/include/alibabacloud/alb/model/RemoveEntriesFromAclResult.h create mode 100644 alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupRequest.h create mode 100644 alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.h create mode 100644 alb/include/alibabacloud/alb/model/StartListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/StartListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/StopListenerRequest.h create mode 100644 alb/include/alibabacloud/alb/model/StopListenerResult.h create mode 100644 alb/include/alibabacloud/alb/model/TagResourcesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/TagResourcesResult.h create mode 100644 alb/include/alibabacloud/alb/model/UnTagResourcesRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UnTagResourcesResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateAclAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateAclAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateListenerAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateListenerAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateRuleAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateRulesAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeResult.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeRequest.h create mode 100644 alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeResult.h create mode 100644 alb/src/AlbClient.cc create mode 100644 alb/src/model/AddEntriesToAclRequest.cc create mode 100644 alb/src/model/AddEntriesToAclResult.cc create mode 100644 alb/src/model/AddServersToServerGroupRequest.cc create mode 100644 alb/src/model/AddServersToServerGroupResult.cc create mode 100644 alb/src/model/AssociateAclsWithListenerRequest.cc create mode 100644 alb/src/model/AssociateAclsWithListenerResult.cc create mode 100644 alb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc create mode 100644 alb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc create mode 100644 alb/src/model/CreateAclRequest.cc create mode 100644 alb/src/model/CreateAclResult.cc create mode 100644 alb/src/model/CreateHealthCheckTemplateRequest.cc create mode 100644 alb/src/model/CreateHealthCheckTemplateResult.cc create mode 100644 alb/src/model/CreateListenerRequest.cc create mode 100644 alb/src/model/CreateListenerResult.cc create mode 100644 alb/src/model/CreateLoadBalancerRequest.cc create mode 100644 alb/src/model/CreateLoadBalancerResult.cc create mode 100644 alb/src/model/CreateRuleRequest.cc create mode 100644 alb/src/model/CreateRuleResult.cc create mode 100644 alb/src/model/CreateRulesRequest.cc create mode 100644 alb/src/model/CreateRulesResult.cc create mode 100644 alb/src/model/CreateSecurityPolicyRequest.cc create mode 100644 alb/src/model/CreateSecurityPolicyResult.cc create mode 100644 alb/src/model/CreateServerGroupRequest.cc create mode 100644 alb/src/model/CreateServerGroupResult.cc create mode 100644 alb/src/model/DeleteAclRequest.cc create mode 100644 alb/src/model/DeleteAclResult.cc create mode 100644 alb/src/model/DeleteHealthCheckTemplatesRequest.cc create mode 100644 alb/src/model/DeleteHealthCheckTemplatesResult.cc create mode 100644 alb/src/model/DeleteListenerRequest.cc create mode 100644 alb/src/model/DeleteListenerResult.cc create mode 100644 alb/src/model/DeleteLoadBalancerRequest.cc create mode 100644 alb/src/model/DeleteLoadBalancerResult.cc create mode 100644 alb/src/model/DeleteRuleRequest.cc create mode 100644 alb/src/model/DeleteRuleResult.cc create mode 100644 alb/src/model/DeleteRulesRequest.cc create mode 100644 alb/src/model/DeleteRulesResult.cc create mode 100644 alb/src/model/DeleteSecurityPolicyRequest.cc create mode 100644 alb/src/model/DeleteSecurityPolicyResult.cc create mode 100644 alb/src/model/DeleteServerGroupRequest.cc create mode 100644 alb/src/model/DeleteServerGroupResult.cc create mode 100644 alb/src/model/DescribeRegionsRequest.cc create mode 100644 alb/src/model/DescribeRegionsResult.cc create mode 100644 alb/src/model/DescribeZonesRequest.cc create mode 100644 alb/src/model/DescribeZonesResult.cc create mode 100644 alb/src/model/DisableDeletionProtectionRequest.cc create mode 100644 alb/src/model/DisableDeletionProtectionResult.cc create mode 100644 alb/src/model/DisableLoadBalancerAccessLogRequest.cc create mode 100644 alb/src/model/DisableLoadBalancerAccessLogResult.cc create mode 100644 alb/src/model/DissociateAclsFromListenerRequest.cc create mode 100644 alb/src/model/DissociateAclsFromListenerResult.cc create mode 100644 alb/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc create mode 100644 alb/src/model/DissociateAdditionalCertificatesFromListenerResult.cc create mode 100644 alb/src/model/EnableDeletionProtectionRequest.cc create mode 100644 alb/src/model/EnableDeletionProtectionResult.cc create mode 100644 alb/src/model/EnableLoadBalancerAccessLogRequest.cc create mode 100644 alb/src/model/EnableLoadBalancerAccessLogResult.cc create mode 100644 alb/src/model/GetHealthCheckTemplateAttributeRequest.cc create mode 100644 alb/src/model/GetHealthCheckTemplateAttributeResult.cc create mode 100644 alb/src/model/GetListenerAttributeRequest.cc create mode 100644 alb/src/model/GetListenerAttributeResult.cc create mode 100644 alb/src/model/GetLoadBalancerAttributeRequest.cc create mode 100644 alb/src/model/GetLoadBalancerAttributeResult.cc create mode 100644 alb/src/model/ListAclEntriesRequest.cc create mode 100644 alb/src/model/ListAclEntriesResult.cc create mode 100644 alb/src/model/ListAclRelationsRequest.cc create mode 100644 alb/src/model/ListAclRelationsResult.cc create mode 100644 alb/src/model/ListAclsRequest.cc create mode 100644 alb/src/model/ListAclsResult.cc create mode 100644 alb/src/model/ListAsynJobsRequest.cc create mode 100644 alb/src/model/ListAsynJobsResult.cc create mode 100644 alb/src/model/ListHealthCheckTemplatesRequest.cc create mode 100644 alb/src/model/ListHealthCheckTemplatesResult.cc create mode 100644 alb/src/model/ListListenerCertificatesRequest.cc create mode 100644 alb/src/model/ListListenerCertificatesResult.cc create mode 100644 alb/src/model/ListListenersRequest.cc create mode 100644 alb/src/model/ListListenersResult.cc create mode 100644 alb/src/model/ListLoadBalancersRequest.cc create mode 100644 alb/src/model/ListLoadBalancersResult.cc create mode 100644 alb/src/model/ListRulesRequest.cc create mode 100644 alb/src/model/ListRulesResult.cc create mode 100644 alb/src/model/ListSecurityPoliciesRequest.cc create mode 100644 alb/src/model/ListSecurityPoliciesResult.cc create mode 100644 alb/src/model/ListSecurityPolicyRelationsRequest.cc create mode 100644 alb/src/model/ListSecurityPolicyRelationsResult.cc create mode 100644 alb/src/model/ListServerGroupServersRequest.cc create mode 100644 alb/src/model/ListServerGroupServersResult.cc create mode 100644 alb/src/model/ListServerGroupsRequest.cc create mode 100644 alb/src/model/ListServerGroupsResult.cc create mode 100644 alb/src/model/ListSystemSecurityPoliciesRequest.cc create mode 100644 alb/src/model/ListSystemSecurityPoliciesResult.cc create mode 100644 alb/src/model/ListTagKeysRequest.cc create mode 100644 alb/src/model/ListTagKeysResult.cc create mode 100644 alb/src/model/ListTagResourcesRequest.cc create mode 100644 alb/src/model/ListTagResourcesResult.cc create mode 100644 alb/src/model/ListTagValuesRequest.cc create mode 100644 alb/src/model/ListTagValuesResult.cc create mode 100644 alb/src/model/MoveResourceGroupRequest.cc create mode 100644 alb/src/model/MoveResourceGroupResult.cc create mode 100644 alb/src/model/RemoveEntriesFromAclRequest.cc create mode 100644 alb/src/model/RemoveEntriesFromAclResult.cc create mode 100644 alb/src/model/RemoveServersFromServerGroupRequest.cc create mode 100644 alb/src/model/RemoveServersFromServerGroupResult.cc create mode 100644 alb/src/model/ReplaceServersInServerGroupRequest.cc create mode 100644 alb/src/model/ReplaceServersInServerGroupResult.cc create mode 100644 alb/src/model/StartListenerRequest.cc create mode 100644 alb/src/model/StartListenerResult.cc create mode 100644 alb/src/model/StopListenerRequest.cc create mode 100644 alb/src/model/StopListenerResult.cc create mode 100644 alb/src/model/TagResourcesRequest.cc create mode 100644 alb/src/model/TagResourcesResult.cc create mode 100644 alb/src/model/UnTagResourcesRequest.cc create mode 100644 alb/src/model/UnTagResourcesResult.cc create mode 100644 alb/src/model/UpdateAclAttributeRequest.cc create mode 100644 alb/src/model/UpdateAclAttributeResult.cc create mode 100644 alb/src/model/UpdateHealthCheckTemplateAttributeRequest.cc create mode 100644 alb/src/model/UpdateHealthCheckTemplateAttributeResult.cc create mode 100644 alb/src/model/UpdateListenerAttributeRequest.cc create mode 100644 alb/src/model/UpdateListenerAttributeResult.cc create mode 100644 alb/src/model/UpdateListenerLogConfigRequest.cc create mode 100644 alb/src/model/UpdateListenerLogConfigResult.cc create mode 100644 alb/src/model/UpdateLoadBalancerAttributeRequest.cc create mode 100644 alb/src/model/UpdateLoadBalancerAttributeResult.cc create mode 100644 alb/src/model/UpdateLoadBalancerEditionRequest.cc create mode 100644 alb/src/model/UpdateLoadBalancerEditionResult.cc create mode 100644 alb/src/model/UpdateRuleAttributeRequest.cc create mode 100644 alb/src/model/UpdateRuleAttributeResult.cc create mode 100644 alb/src/model/UpdateRulesAttributeRequest.cc create mode 100644 alb/src/model/UpdateRulesAttributeResult.cc create mode 100644 alb/src/model/UpdateSecurityPolicyAttributeRequest.cc create mode 100644 alb/src/model/UpdateSecurityPolicyAttributeResult.cc create mode 100644 alb/src/model/UpdateServerGroupAttributeRequest.cc create mode 100644 alb/src/model/UpdateServerGroupAttributeResult.cc create mode 100644 alb/src/model/UpdateServerGroupServersAttributeRequest.cc create mode 100644 alb/src/model/UpdateServerGroupServersAttributeResult.cc diff --git a/CHANGELOG b/CHANGELOG index d770b1b6b..98ea7b37c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-07-15 Version: 1.36.818 +- Support Alb Open API. + 2021-07-15 Version: 1.36.817 - Generated 2020-01-01 for `ddoscoo`. diff --git a/VERSION b/VERSION index de719c350..1e9ac571b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.817 \ No newline at end of file +1.36.818 \ No newline at end of file diff --git a/alb/CMakeLists.txt b/alb/CMakeLists.txt new file mode 100644 index 000000000..cf78d161e --- /dev/null +++ b/alb/CMakeLists.txt @@ -0,0 +1,350 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(alb_public_header + include/alibabacloud/alb/AlbClient.h + include/alibabacloud/alb/AlbExport.h ) + +set(alb_public_header_model + include/alibabacloud/alb/model/AddEntriesToAclRequest.h + include/alibabacloud/alb/model/AddEntriesToAclResult.h + include/alibabacloud/alb/model/AddServersToServerGroupRequest.h + include/alibabacloud/alb/model/AddServersToServerGroupResult.h + include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h + include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h + include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h + include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h + include/alibabacloud/alb/model/CreateAclRequest.h + include/alibabacloud/alb/model/CreateAclResult.h + include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h + include/alibabacloud/alb/model/CreateHealthCheckTemplateResult.h + include/alibabacloud/alb/model/CreateListenerRequest.h + include/alibabacloud/alb/model/CreateListenerResult.h + include/alibabacloud/alb/model/CreateLoadBalancerRequest.h + include/alibabacloud/alb/model/CreateLoadBalancerResult.h + include/alibabacloud/alb/model/CreateRuleRequest.h + include/alibabacloud/alb/model/CreateRuleResult.h + include/alibabacloud/alb/model/CreateRulesRequest.h + include/alibabacloud/alb/model/CreateRulesResult.h + include/alibabacloud/alb/model/CreateSecurityPolicyRequest.h + include/alibabacloud/alb/model/CreateSecurityPolicyResult.h + include/alibabacloud/alb/model/CreateServerGroupRequest.h + include/alibabacloud/alb/model/CreateServerGroupResult.h + include/alibabacloud/alb/model/DeleteAclRequest.h + include/alibabacloud/alb/model/DeleteAclResult.h + include/alibabacloud/alb/model/DeleteHealthCheckTemplatesRequest.h + include/alibabacloud/alb/model/DeleteHealthCheckTemplatesResult.h + include/alibabacloud/alb/model/DeleteListenerRequest.h + include/alibabacloud/alb/model/DeleteListenerResult.h + include/alibabacloud/alb/model/DeleteLoadBalancerRequest.h + include/alibabacloud/alb/model/DeleteLoadBalancerResult.h + include/alibabacloud/alb/model/DeleteRuleRequest.h + include/alibabacloud/alb/model/DeleteRuleResult.h + include/alibabacloud/alb/model/DeleteRulesRequest.h + include/alibabacloud/alb/model/DeleteRulesResult.h + include/alibabacloud/alb/model/DeleteSecurityPolicyRequest.h + include/alibabacloud/alb/model/DeleteSecurityPolicyResult.h + include/alibabacloud/alb/model/DeleteServerGroupRequest.h + include/alibabacloud/alb/model/DeleteServerGroupResult.h + include/alibabacloud/alb/model/DescribeRegionsRequest.h + include/alibabacloud/alb/model/DescribeRegionsResult.h + include/alibabacloud/alb/model/DescribeZonesRequest.h + include/alibabacloud/alb/model/DescribeZonesResult.h + include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h + include/alibabacloud/alb/model/DisableDeletionProtectionResult.h + include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h + include/alibabacloud/alb/model/DisableLoadBalancerAccessLogResult.h + include/alibabacloud/alb/model/DissociateAclsFromListenerRequest.h + include/alibabacloud/alb/model/DissociateAclsFromListenerResult.h + include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerRequest.h + include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerResult.h + include/alibabacloud/alb/model/EnableDeletionProtectionRequest.h + include/alibabacloud/alb/model/EnableDeletionProtectionResult.h + include/alibabacloud/alb/model/EnableLoadBalancerAccessLogRequest.h + include/alibabacloud/alb/model/EnableLoadBalancerAccessLogResult.h + include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeRequest.h + include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h + include/alibabacloud/alb/model/GetListenerAttributeRequest.h + include/alibabacloud/alb/model/GetListenerAttributeResult.h + include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h + include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h + include/alibabacloud/alb/model/ListAclEntriesRequest.h + include/alibabacloud/alb/model/ListAclEntriesResult.h + include/alibabacloud/alb/model/ListAclRelationsRequest.h + include/alibabacloud/alb/model/ListAclRelationsResult.h + include/alibabacloud/alb/model/ListAclsRequest.h + include/alibabacloud/alb/model/ListAclsResult.h + include/alibabacloud/alb/model/ListAsynJobsRequest.h + include/alibabacloud/alb/model/ListAsynJobsResult.h + include/alibabacloud/alb/model/ListHealthCheckTemplatesRequest.h + include/alibabacloud/alb/model/ListHealthCheckTemplatesResult.h + include/alibabacloud/alb/model/ListListenerCertificatesRequest.h + include/alibabacloud/alb/model/ListListenerCertificatesResult.h + include/alibabacloud/alb/model/ListListenersRequest.h + include/alibabacloud/alb/model/ListListenersResult.h + include/alibabacloud/alb/model/ListLoadBalancersRequest.h + include/alibabacloud/alb/model/ListLoadBalancersResult.h + include/alibabacloud/alb/model/ListRulesRequest.h + include/alibabacloud/alb/model/ListRulesResult.h + include/alibabacloud/alb/model/ListSecurityPoliciesRequest.h + include/alibabacloud/alb/model/ListSecurityPoliciesResult.h + include/alibabacloud/alb/model/ListSecurityPolicyRelationsRequest.h + include/alibabacloud/alb/model/ListSecurityPolicyRelationsResult.h + include/alibabacloud/alb/model/ListServerGroupServersRequest.h + include/alibabacloud/alb/model/ListServerGroupServersResult.h + include/alibabacloud/alb/model/ListServerGroupsRequest.h + include/alibabacloud/alb/model/ListServerGroupsResult.h + include/alibabacloud/alb/model/ListSystemSecurityPoliciesRequest.h + include/alibabacloud/alb/model/ListSystemSecurityPoliciesResult.h + include/alibabacloud/alb/model/ListTagKeysRequest.h + include/alibabacloud/alb/model/ListTagKeysResult.h + include/alibabacloud/alb/model/ListTagResourcesRequest.h + include/alibabacloud/alb/model/ListTagResourcesResult.h + include/alibabacloud/alb/model/ListTagValuesRequest.h + include/alibabacloud/alb/model/ListTagValuesResult.h + include/alibabacloud/alb/model/MoveResourceGroupRequest.h + include/alibabacloud/alb/model/MoveResourceGroupResult.h + include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.h + include/alibabacloud/alb/model/RemoveEntriesFromAclResult.h + include/alibabacloud/alb/model/RemoveServersFromServerGroupRequest.h + include/alibabacloud/alb/model/RemoveServersFromServerGroupResult.h + include/alibabacloud/alb/model/ReplaceServersInServerGroupRequest.h + include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.h + include/alibabacloud/alb/model/StartListenerRequest.h + include/alibabacloud/alb/model/StartListenerResult.h + include/alibabacloud/alb/model/StopListenerRequest.h + include/alibabacloud/alb/model/StopListenerResult.h + include/alibabacloud/alb/model/TagResourcesRequest.h + include/alibabacloud/alb/model/TagResourcesResult.h + include/alibabacloud/alb/model/UnTagResourcesRequest.h + include/alibabacloud/alb/model/UnTagResourcesResult.h + include/alibabacloud/alb/model/UpdateAclAttributeRequest.h + include/alibabacloud/alb/model/UpdateAclAttributeResult.h + include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeRequest.h + include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeResult.h + include/alibabacloud/alb/model/UpdateListenerAttributeRequest.h + include/alibabacloud/alb/model/UpdateListenerAttributeResult.h + include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h + include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h + include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h + include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h + include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h + include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h + include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h + include/alibabacloud/alb/model/UpdateRuleAttributeResult.h + include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h + include/alibabacloud/alb/model/UpdateRulesAttributeResult.h + include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeRequest.h + include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeResult.h + include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h + include/alibabacloud/alb/model/UpdateServerGroupAttributeResult.h + include/alibabacloud/alb/model/UpdateServerGroupServersAttributeRequest.h + include/alibabacloud/alb/model/UpdateServerGroupServersAttributeResult.h ) + +set(alb_src + src/AlbClient.cc + src/model/AddEntriesToAclRequest.cc + src/model/AddEntriesToAclResult.cc + src/model/AddServersToServerGroupRequest.cc + src/model/AddServersToServerGroupResult.cc + src/model/AssociateAclsWithListenerRequest.cc + src/model/AssociateAclsWithListenerResult.cc + src/model/AssociateAdditionalCertificatesWithListenerRequest.cc + src/model/AssociateAdditionalCertificatesWithListenerResult.cc + src/model/CreateAclRequest.cc + src/model/CreateAclResult.cc + src/model/CreateHealthCheckTemplateRequest.cc + src/model/CreateHealthCheckTemplateResult.cc + src/model/CreateListenerRequest.cc + src/model/CreateListenerResult.cc + src/model/CreateLoadBalancerRequest.cc + src/model/CreateLoadBalancerResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/CreateRulesRequest.cc + src/model/CreateRulesResult.cc + src/model/CreateSecurityPolicyRequest.cc + src/model/CreateSecurityPolicyResult.cc + src/model/CreateServerGroupRequest.cc + src/model/CreateServerGroupResult.cc + src/model/DeleteAclRequest.cc + src/model/DeleteAclResult.cc + src/model/DeleteHealthCheckTemplatesRequest.cc + src/model/DeleteHealthCheckTemplatesResult.cc + src/model/DeleteListenerRequest.cc + src/model/DeleteListenerResult.cc + src/model/DeleteLoadBalancerRequest.cc + src/model/DeleteLoadBalancerResult.cc + src/model/DeleteRuleRequest.cc + src/model/DeleteRuleResult.cc + src/model/DeleteRulesRequest.cc + src/model/DeleteRulesResult.cc + src/model/DeleteSecurityPolicyRequest.cc + src/model/DeleteSecurityPolicyResult.cc + src/model/DeleteServerGroupRequest.cc + src/model/DeleteServerGroupResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DisableDeletionProtectionRequest.cc + src/model/DisableDeletionProtectionResult.cc + src/model/DisableLoadBalancerAccessLogRequest.cc + src/model/DisableLoadBalancerAccessLogResult.cc + src/model/DissociateAclsFromListenerRequest.cc + src/model/DissociateAclsFromListenerResult.cc + src/model/DissociateAdditionalCertificatesFromListenerRequest.cc + src/model/DissociateAdditionalCertificatesFromListenerResult.cc + src/model/EnableDeletionProtectionRequest.cc + src/model/EnableDeletionProtectionResult.cc + src/model/EnableLoadBalancerAccessLogRequest.cc + src/model/EnableLoadBalancerAccessLogResult.cc + src/model/GetHealthCheckTemplateAttributeRequest.cc + src/model/GetHealthCheckTemplateAttributeResult.cc + src/model/GetListenerAttributeRequest.cc + src/model/GetListenerAttributeResult.cc + src/model/GetLoadBalancerAttributeRequest.cc + src/model/GetLoadBalancerAttributeResult.cc + src/model/ListAclEntriesRequest.cc + src/model/ListAclEntriesResult.cc + src/model/ListAclRelationsRequest.cc + src/model/ListAclRelationsResult.cc + src/model/ListAclsRequest.cc + src/model/ListAclsResult.cc + src/model/ListAsynJobsRequest.cc + src/model/ListAsynJobsResult.cc + src/model/ListHealthCheckTemplatesRequest.cc + src/model/ListHealthCheckTemplatesResult.cc + src/model/ListListenerCertificatesRequest.cc + src/model/ListListenerCertificatesResult.cc + src/model/ListListenersRequest.cc + src/model/ListListenersResult.cc + src/model/ListLoadBalancersRequest.cc + src/model/ListLoadBalancersResult.cc + src/model/ListRulesRequest.cc + src/model/ListRulesResult.cc + src/model/ListSecurityPoliciesRequest.cc + src/model/ListSecurityPoliciesResult.cc + src/model/ListSecurityPolicyRelationsRequest.cc + src/model/ListSecurityPolicyRelationsResult.cc + src/model/ListServerGroupServersRequest.cc + src/model/ListServerGroupServersResult.cc + src/model/ListServerGroupsRequest.cc + src/model/ListServerGroupsResult.cc + src/model/ListSystemSecurityPoliciesRequest.cc + src/model/ListSystemSecurityPoliciesResult.cc + src/model/ListTagKeysRequest.cc + src/model/ListTagKeysResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ListTagValuesRequest.cc + src/model/ListTagValuesResult.cc + src/model/MoveResourceGroupRequest.cc + src/model/MoveResourceGroupResult.cc + src/model/RemoveEntriesFromAclRequest.cc + src/model/RemoveEntriesFromAclResult.cc + src/model/RemoveServersFromServerGroupRequest.cc + src/model/RemoveServersFromServerGroupResult.cc + src/model/ReplaceServersInServerGroupRequest.cc + src/model/ReplaceServersInServerGroupResult.cc + src/model/StartListenerRequest.cc + src/model/StartListenerResult.cc + src/model/StopListenerRequest.cc + src/model/StopListenerResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UnTagResourcesRequest.cc + src/model/UnTagResourcesResult.cc + src/model/UpdateAclAttributeRequest.cc + src/model/UpdateAclAttributeResult.cc + src/model/UpdateHealthCheckTemplateAttributeRequest.cc + src/model/UpdateHealthCheckTemplateAttributeResult.cc + src/model/UpdateListenerAttributeRequest.cc + src/model/UpdateListenerAttributeResult.cc + src/model/UpdateListenerLogConfigRequest.cc + src/model/UpdateListenerLogConfigResult.cc + src/model/UpdateLoadBalancerAttributeRequest.cc + src/model/UpdateLoadBalancerAttributeResult.cc + src/model/UpdateLoadBalancerEditionRequest.cc + src/model/UpdateLoadBalancerEditionResult.cc + src/model/UpdateRuleAttributeRequest.cc + src/model/UpdateRuleAttributeResult.cc + src/model/UpdateRulesAttributeRequest.cc + src/model/UpdateRulesAttributeResult.cc + src/model/UpdateSecurityPolicyAttributeRequest.cc + src/model/UpdateSecurityPolicyAttributeResult.cc + src/model/UpdateServerGroupAttributeRequest.cc + src/model/UpdateServerGroupAttributeResult.cc + src/model/UpdateServerGroupServersAttributeRequest.cc + src/model/UpdateServerGroupServersAttributeResult.cc ) + +add_library(alb ${LIB_TYPE} + ${alb_public_header} + ${alb_public_header_model} + ${alb_src}) + +set_target_properties(alb + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}alb + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(alb + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ALB_LIBRARY) +endif() + +target_include_directories(alb + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(alb + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(alb + jsoncpp) + target_include_directories(alb + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(alb + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(alb + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(alb + PRIVATE /usr/include/jsoncpp) + target_link_libraries(alb + jsoncpp) +endif() + +install(FILES ${alb_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alb) +install(FILES ${alb_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alb/model) +install(TARGETS alb + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/AlbClient.h b/alb/include/alibabacloud/alb/AlbClient.h new file mode 100644 index 000000000..2b0228f42 --- /dev/null +++ b/alb/include/alibabacloud/alb/AlbClient.h @@ -0,0 +1,582 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_ALBCLIENT_H_ +#define ALIBABACLOUD_ALB_ALBCLIENT_H_ + +#include +#include +#include +#include +#include "AlbExport.h" +#include "model/AddEntriesToAclRequest.h" +#include "model/AddEntriesToAclResult.h" +#include "model/AddServersToServerGroupRequest.h" +#include "model/AddServersToServerGroupResult.h" +#include "model/AssociateAclsWithListenerRequest.h" +#include "model/AssociateAclsWithListenerResult.h" +#include "model/AssociateAdditionalCertificatesWithListenerRequest.h" +#include "model/AssociateAdditionalCertificatesWithListenerResult.h" +#include "model/CreateAclRequest.h" +#include "model/CreateAclResult.h" +#include "model/CreateHealthCheckTemplateRequest.h" +#include "model/CreateHealthCheckTemplateResult.h" +#include "model/CreateListenerRequest.h" +#include "model/CreateListenerResult.h" +#include "model/CreateLoadBalancerRequest.h" +#include "model/CreateLoadBalancerResult.h" +#include "model/CreateRuleRequest.h" +#include "model/CreateRuleResult.h" +#include "model/CreateRulesRequest.h" +#include "model/CreateRulesResult.h" +#include "model/CreateSecurityPolicyRequest.h" +#include "model/CreateSecurityPolicyResult.h" +#include "model/CreateServerGroupRequest.h" +#include "model/CreateServerGroupResult.h" +#include "model/DeleteAclRequest.h" +#include "model/DeleteAclResult.h" +#include "model/DeleteHealthCheckTemplatesRequest.h" +#include "model/DeleteHealthCheckTemplatesResult.h" +#include "model/DeleteListenerRequest.h" +#include "model/DeleteListenerResult.h" +#include "model/DeleteLoadBalancerRequest.h" +#include "model/DeleteLoadBalancerResult.h" +#include "model/DeleteRuleRequest.h" +#include "model/DeleteRuleResult.h" +#include "model/DeleteRulesRequest.h" +#include "model/DeleteRulesResult.h" +#include "model/DeleteSecurityPolicyRequest.h" +#include "model/DeleteSecurityPolicyResult.h" +#include "model/DeleteServerGroupRequest.h" +#include "model/DeleteServerGroupResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DisableDeletionProtectionRequest.h" +#include "model/DisableDeletionProtectionResult.h" +#include "model/DisableLoadBalancerAccessLogRequest.h" +#include "model/DisableLoadBalancerAccessLogResult.h" +#include "model/DissociateAclsFromListenerRequest.h" +#include "model/DissociateAclsFromListenerResult.h" +#include "model/DissociateAdditionalCertificatesFromListenerRequest.h" +#include "model/DissociateAdditionalCertificatesFromListenerResult.h" +#include "model/EnableDeletionProtectionRequest.h" +#include "model/EnableDeletionProtectionResult.h" +#include "model/EnableLoadBalancerAccessLogRequest.h" +#include "model/EnableLoadBalancerAccessLogResult.h" +#include "model/GetHealthCheckTemplateAttributeRequest.h" +#include "model/GetHealthCheckTemplateAttributeResult.h" +#include "model/GetListenerAttributeRequest.h" +#include "model/GetListenerAttributeResult.h" +#include "model/GetLoadBalancerAttributeRequest.h" +#include "model/GetLoadBalancerAttributeResult.h" +#include "model/ListAclEntriesRequest.h" +#include "model/ListAclEntriesResult.h" +#include "model/ListAclRelationsRequest.h" +#include "model/ListAclRelationsResult.h" +#include "model/ListAclsRequest.h" +#include "model/ListAclsResult.h" +#include "model/ListAsynJobsRequest.h" +#include "model/ListAsynJobsResult.h" +#include "model/ListHealthCheckTemplatesRequest.h" +#include "model/ListHealthCheckTemplatesResult.h" +#include "model/ListListenerCertificatesRequest.h" +#include "model/ListListenerCertificatesResult.h" +#include "model/ListListenersRequest.h" +#include "model/ListListenersResult.h" +#include "model/ListLoadBalancersRequest.h" +#include "model/ListLoadBalancersResult.h" +#include "model/ListRulesRequest.h" +#include "model/ListRulesResult.h" +#include "model/ListSecurityPoliciesRequest.h" +#include "model/ListSecurityPoliciesResult.h" +#include "model/ListSecurityPolicyRelationsRequest.h" +#include "model/ListSecurityPolicyRelationsResult.h" +#include "model/ListServerGroupServersRequest.h" +#include "model/ListServerGroupServersResult.h" +#include "model/ListServerGroupsRequest.h" +#include "model/ListServerGroupsResult.h" +#include "model/ListSystemSecurityPoliciesRequest.h" +#include "model/ListSystemSecurityPoliciesResult.h" +#include "model/ListTagKeysRequest.h" +#include "model/ListTagKeysResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ListTagValuesRequest.h" +#include "model/ListTagValuesResult.h" +#include "model/MoveResourceGroupRequest.h" +#include "model/MoveResourceGroupResult.h" +#include "model/RemoveEntriesFromAclRequest.h" +#include "model/RemoveEntriesFromAclResult.h" +#include "model/RemoveServersFromServerGroupRequest.h" +#include "model/RemoveServersFromServerGroupResult.h" +#include "model/ReplaceServersInServerGroupRequest.h" +#include "model/ReplaceServersInServerGroupResult.h" +#include "model/StartListenerRequest.h" +#include "model/StartListenerResult.h" +#include "model/StopListenerRequest.h" +#include "model/StopListenerResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UnTagResourcesRequest.h" +#include "model/UnTagResourcesResult.h" +#include "model/UpdateAclAttributeRequest.h" +#include "model/UpdateAclAttributeResult.h" +#include "model/UpdateHealthCheckTemplateAttributeRequest.h" +#include "model/UpdateHealthCheckTemplateAttributeResult.h" +#include "model/UpdateListenerAttributeRequest.h" +#include "model/UpdateListenerAttributeResult.h" +#include "model/UpdateListenerLogConfigRequest.h" +#include "model/UpdateListenerLogConfigResult.h" +#include "model/UpdateLoadBalancerAttributeRequest.h" +#include "model/UpdateLoadBalancerAttributeResult.h" +#include "model/UpdateLoadBalancerEditionRequest.h" +#include "model/UpdateLoadBalancerEditionResult.h" +#include "model/UpdateRuleAttributeRequest.h" +#include "model/UpdateRuleAttributeResult.h" +#include "model/UpdateRulesAttributeRequest.h" +#include "model/UpdateRulesAttributeResult.h" +#include "model/UpdateSecurityPolicyAttributeRequest.h" +#include "model/UpdateSecurityPolicyAttributeResult.h" +#include "model/UpdateServerGroupAttributeRequest.h" +#include "model/UpdateServerGroupAttributeResult.h" +#include "model/UpdateServerGroupServersAttributeRequest.h" +#include "model/UpdateServerGroupServersAttributeResult.h" + + +namespace AlibabaCloud +{ + namespace Alb + { + class ALIBABACLOUD_ALB_EXPORT AlbClient : public RpcServiceClient + { + public: + typedef Outcome AddEntriesToAclOutcome; + typedef std::future AddEntriesToAclOutcomeCallable; + typedef std::function&)> AddEntriesToAclAsyncHandler; + typedef Outcome AddServersToServerGroupOutcome; + typedef std::future AddServersToServerGroupOutcomeCallable; + typedef std::function&)> AddServersToServerGroupAsyncHandler; + typedef Outcome AssociateAclsWithListenerOutcome; + typedef std::future AssociateAclsWithListenerOutcomeCallable; + typedef std::function&)> AssociateAclsWithListenerAsyncHandler; + typedef Outcome AssociateAdditionalCertificatesWithListenerOutcome; + typedef std::future AssociateAdditionalCertificatesWithListenerOutcomeCallable; + typedef std::function&)> AssociateAdditionalCertificatesWithListenerAsyncHandler; + typedef Outcome CreateAclOutcome; + typedef std::future CreateAclOutcomeCallable; + typedef std::function&)> CreateAclAsyncHandler; + typedef Outcome CreateHealthCheckTemplateOutcome; + typedef std::future CreateHealthCheckTemplateOutcomeCallable; + typedef std::function&)> CreateHealthCheckTemplateAsyncHandler; + typedef Outcome CreateListenerOutcome; + typedef std::future CreateListenerOutcomeCallable; + typedef std::function&)> CreateListenerAsyncHandler; + typedef Outcome CreateLoadBalancerOutcome; + typedef std::future CreateLoadBalancerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome CreateRulesOutcome; + typedef std::future CreateRulesOutcomeCallable; + typedef std::function&)> CreateRulesAsyncHandler; + typedef Outcome CreateSecurityPolicyOutcome; + typedef std::future CreateSecurityPolicyOutcomeCallable; + typedef std::function&)> CreateSecurityPolicyAsyncHandler; + typedef Outcome CreateServerGroupOutcome; + typedef std::future CreateServerGroupOutcomeCallable; + typedef std::function&)> CreateServerGroupAsyncHandler; + typedef Outcome DeleteAclOutcome; + typedef std::future DeleteAclOutcomeCallable; + typedef std::function&)> DeleteAclAsyncHandler; + typedef Outcome DeleteHealthCheckTemplatesOutcome; + typedef std::future DeleteHealthCheckTemplatesOutcomeCallable; + typedef std::function&)> DeleteHealthCheckTemplatesAsyncHandler; + typedef Outcome DeleteListenerOutcome; + typedef std::future DeleteListenerOutcomeCallable; + typedef std::function&)> DeleteListenerAsyncHandler; + typedef Outcome DeleteLoadBalancerOutcome; + typedef std::future DeleteLoadBalancerOutcomeCallable; + typedef std::function&)> DeleteLoadBalancerAsyncHandler; + typedef Outcome DeleteRuleOutcome; + typedef std::future DeleteRuleOutcomeCallable; + typedef std::function&)> DeleteRuleAsyncHandler; + typedef Outcome DeleteRulesOutcome; + typedef std::future DeleteRulesOutcomeCallable; + typedef std::function&)> DeleteRulesAsyncHandler; + typedef Outcome DeleteSecurityPolicyOutcome; + typedef std::future DeleteSecurityPolicyOutcomeCallable; + typedef std::function&)> DeleteSecurityPolicyAsyncHandler; + typedef Outcome DeleteServerGroupOutcome; + typedef std::future DeleteServerGroupOutcomeCallable; + typedef std::function&)> DeleteServerGroupAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DisableDeletionProtectionOutcome; + typedef std::future DisableDeletionProtectionOutcomeCallable; + typedef std::function&)> DisableDeletionProtectionAsyncHandler; + typedef Outcome DisableLoadBalancerAccessLogOutcome; + typedef std::future DisableLoadBalancerAccessLogOutcomeCallable; + typedef std::function&)> DisableLoadBalancerAccessLogAsyncHandler; + typedef Outcome DissociateAclsFromListenerOutcome; + typedef std::future DissociateAclsFromListenerOutcomeCallable; + typedef std::function&)> DissociateAclsFromListenerAsyncHandler; + typedef Outcome DissociateAdditionalCertificatesFromListenerOutcome; + typedef std::future DissociateAdditionalCertificatesFromListenerOutcomeCallable; + typedef std::function&)> DissociateAdditionalCertificatesFromListenerAsyncHandler; + typedef Outcome EnableDeletionProtectionOutcome; + typedef std::future EnableDeletionProtectionOutcomeCallable; + typedef std::function&)> EnableDeletionProtectionAsyncHandler; + typedef Outcome EnableLoadBalancerAccessLogOutcome; + typedef std::future EnableLoadBalancerAccessLogOutcomeCallable; + typedef std::function&)> EnableLoadBalancerAccessLogAsyncHandler; + typedef Outcome GetHealthCheckTemplateAttributeOutcome; + typedef std::future GetHealthCheckTemplateAttributeOutcomeCallable; + typedef std::function&)> GetHealthCheckTemplateAttributeAsyncHandler; + typedef Outcome GetListenerAttributeOutcome; + typedef std::future GetListenerAttributeOutcomeCallable; + typedef std::function&)> GetListenerAttributeAsyncHandler; + typedef Outcome GetLoadBalancerAttributeOutcome; + typedef std::future GetLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> GetLoadBalancerAttributeAsyncHandler; + typedef Outcome ListAclEntriesOutcome; + typedef std::future ListAclEntriesOutcomeCallable; + typedef std::function&)> ListAclEntriesAsyncHandler; + typedef Outcome ListAclRelationsOutcome; + typedef std::future ListAclRelationsOutcomeCallable; + typedef std::function&)> ListAclRelationsAsyncHandler; + typedef Outcome ListAclsOutcome; + typedef std::future ListAclsOutcomeCallable; + typedef std::function&)> ListAclsAsyncHandler; + typedef Outcome ListAsynJobsOutcome; + typedef std::future ListAsynJobsOutcomeCallable; + typedef std::function&)> ListAsynJobsAsyncHandler; + typedef Outcome ListHealthCheckTemplatesOutcome; + typedef std::future ListHealthCheckTemplatesOutcomeCallable; + typedef std::function&)> ListHealthCheckTemplatesAsyncHandler; + typedef Outcome ListListenerCertificatesOutcome; + typedef std::future ListListenerCertificatesOutcomeCallable; + typedef std::function&)> ListListenerCertificatesAsyncHandler; + typedef Outcome ListListenersOutcome; + typedef std::future ListListenersOutcomeCallable; + typedef std::function&)> ListListenersAsyncHandler; + typedef Outcome ListLoadBalancersOutcome; + typedef std::future ListLoadBalancersOutcomeCallable; + typedef std::function&)> ListLoadBalancersAsyncHandler; + typedef Outcome ListRulesOutcome; + typedef std::future ListRulesOutcomeCallable; + typedef std::function&)> ListRulesAsyncHandler; + typedef Outcome ListSecurityPoliciesOutcome; + typedef std::future ListSecurityPoliciesOutcomeCallable; + typedef std::function&)> ListSecurityPoliciesAsyncHandler; + typedef Outcome ListSecurityPolicyRelationsOutcome; + typedef std::future ListSecurityPolicyRelationsOutcomeCallable; + typedef std::function&)> ListSecurityPolicyRelationsAsyncHandler; + typedef Outcome ListServerGroupServersOutcome; + typedef std::future ListServerGroupServersOutcomeCallable; + typedef std::function&)> ListServerGroupServersAsyncHandler; + typedef Outcome ListServerGroupsOutcome; + typedef std::future ListServerGroupsOutcomeCallable; + typedef std::function&)> ListServerGroupsAsyncHandler; + typedef Outcome ListSystemSecurityPoliciesOutcome; + typedef std::future ListSystemSecurityPoliciesOutcomeCallable; + typedef std::function&)> ListSystemSecurityPoliciesAsyncHandler; + typedef Outcome ListTagKeysOutcome; + typedef std::future ListTagKeysOutcomeCallable; + typedef std::function&)> ListTagKeysAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListTagValuesOutcome; + typedef std::future ListTagValuesOutcomeCallable; + typedef std::function&)> ListTagValuesAsyncHandler; + typedef Outcome MoveResourceGroupOutcome; + typedef std::future MoveResourceGroupOutcomeCallable; + typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome RemoveEntriesFromAclOutcome; + typedef std::future RemoveEntriesFromAclOutcomeCallable; + typedef std::function&)> RemoveEntriesFromAclAsyncHandler; + typedef Outcome RemoveServersFromServerGroupOutcome; + typedef std::future RemoveServersFromServerGroupOutcomeCallable; + typedef std::function&)> RemoveServersFromServerGroupAsyncHandler; + typedef Outcome ReplaceServersInServerGroupOutcome; + typedef std::future ReplaceServersInServerGroupOutcomeCallable; + typedef std::function&)> ReplaceServersInServerGroupAsyncHandler; + typedef Outcome StartListenerOutcome; + typedef std::future StartListenerOutcomeCallable; + typedef std::function&)> StartListenerAsyncHandler; + typedef Outcome StopListenerOutcome; + typedef std::future StopListenerOutcomeCallable; + typedef std::function&)> StopListenerAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnTagResourcesOutcome; + typedef std::future UnTagResourcesOutcomeCallable; + typedef std::function&)> UnTagResourcesAsyncHandler; + typedef Outcome UpdateAclAttributeOutcome; + typedef std::future UpdateAclAttributeOutcomeCallable; + typedef std::function&)> UpdateAclAttributeAsyncHandler; + typedef Outcome UpdateHealthCheckTemplateAttributeOutcome; + typedef std::future UpdateHealthCheckTemplateAttributeOutcomeCallable; + typedef std::function&)> UpdateHealthCheckTemplateAttributeAsyncHandler; + typedef Outcome UpdateListenerAttributeOutcome; + typedef std::future UpdateListenerAttributeOutcomeCallable; + typedef std::function&)> UpdateListenerAttributeAsyncHandler; + typedef Outcome UpdateListenerLogConfigOutcome; + typedef std::future UpdateListenerLogConfigOutcomeCallable; + typedef std::function&)> UpdateListenerLogConfigAsyncHandler; + typedef Outcome UpdateLoadBalancerAttributeOutcome; + typedef std::future UpdateLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerAttributeAsyncHandler; + typedef Outcome UpdateLoadBalancerEditionOutcome; + typedef std::future UpdateLoadBalancerEditionOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerEditionAsyncHandler; + typedef Outcome UpdateRuleAttributeOutcome; + typedef std::future UpdateRuleAttributeOutcomeCallable; + typedef std::function&)> UpdateRuleAttributeAsyncHandler; + typedef Outcome UpdateRulesAttributeOutcome; + typedef std::future UpdateRulesAttributeOutcomeCallable; + typedef std::function&)> UpdateRulesAttributeAsyncHandler; + typedef Outcome UpdateSecurityPolicyAttributeOutcome; + typedef std::future UpdateSecurityPolicyAttributeOutcomeCallable; + typedef std::function&)> UpdateSecurityPolicyAttributeAsyncHandler; + typedef Outcome UpdateServerGroupAttributeOutcome; + typedef std::future UpdateServerGroupAttributeOutcomeCallable; + typedef std::function&)> UpdateServerGroupAttributeAsyncHandler; + typedef Outcome UpdateServerGroupServersAttributeOutcome; + typedef std::future UpdateServerGroupServersAttributeOutcomeCallable; + typedef std::function&)> UpdateServerGroupServersAttributeAsyncHandler; + + AlbClient(const Credentials &credentials, const ClientConfiguration &configuration); + AlbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AlbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AlbClient(); + AddEntriesToAclOutcome addEntriesToAcl(const Model::AddEntriesToAclRequest &request)const; + void addEntriesToAclAsync(const Model::AddEntriesToAclRequest& request, const AddEntriesToAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEntriesToAclOutcomeCallable addEntriesToAclCallable(const Model::AddEntriesToAclRequest& request) const; + AddServersToServerGroupOutcome addServersToServerGroup(const Model::AddServersToServerGroupRequest &request)const; + void addServersToServerGroupAsync(const Model::AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddServersToServerGroupOutcomeCallable addServersToServerGroupCallable(const Model::AddServersToServerGroupRequest& request) const; + AssociateAclsWithListenerOutcome associateAclsWithListener(const Model::AssociateAclsWithListenerRequest &request)const; + void associateAclsWithListenerAsync(const Model::AssociateAclsWithListenerRequest& request, const AssociateAclsWithListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateAclsWithListenerOutcomeCallable associateAclsWithListenerCallable(const Model::AssociateAclsWithListenerRequest& request) const; + AssociateAdditionalCertificatesWithListenerOutcome associateAdditionalCertificatesWithListener(const Model::AssociateAdditionalCertificatesWithListenerRequest &request)const; + void associateAdditionalCertificatesWithListenerAsync(const Model::AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateAdditionalCertificatesWithListenerOutcomeCallable associateAdditionalCertificatesWithListenerCallable(const Model::AssociateAdditionalCertificatesWithListenerRequest& request) const; + CreateAclOutcome createAcl(const Model::CreateAclRequest &request)const; + void createAclAsync(const Model::CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAclOutcomeCallable createAclCallable(const Model::CreateAclRequest& request) const; + CreateHealthCheckTemplateOutcome createHealthCheckTemplate(const Model::CreateHealthCheckTemplateRequest &request)const; + void createHealthCheckTemplateAsync(const Model::CreateHealthCheckTemplateRequest& request, const CreateHealthCheckTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHealthCheckTemplateOutcomeCallable createHealthCheckTemplateCallable(const Model::CreateHealthCheckTemplateRequest& request) const; + CreateListenerOutcome createListener(const Model::CreateListenerRequest &request)const; + void createListenerAsync(const Model::CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateListenerOutcomeCallable createListenerCallable(const Model::CreateListenerRequest& request) const; + CreateLoadBalancerOutcome createLoadBalancer(const Model::CreateLoadBalancerRequest &request)const; + void createLoadBalancerAsync(const Model::CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerOutcomeCallable createLoadBalancerCallable(const Model::CreateLoadBalancerRequest& request) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + CreateRulesOutcome createRules(const Model::CreateRulesRequest &request)const; + void createRulesAsync(const Model::CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRulesOutcomeCallable createRulesCallable(const Model::CreateRulesRequest& request) const; + CreateSecurityPolicyOutcome createSecurityPolicy(const Model::CreateSecurityPolicyRequest &request)const; + void createSecurityPolicyAsync(const Model::CreateSecurityPolicyRequest& request, const CreateSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSecurityPolicyOutcomeCallable createSecurityPolicyCallable(const Model::CreateSecurityPolicyRequest& request) const; + CreateServerGroupOutcome createServerGroup(const Model::CreateServerGroupRequest &request)const; + void createServerGroupAsync(const Model::CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServerGroupOutcomeCallable createServerGroupCallable(const Model::CreateServerGroupRequest& request) const; + DeleteAclOutcome deleteAcl(const Model::DeleteAclRequest &request)const; + void deleteAclAsync(const Model::DeleteAclRequest& request, const DeleteAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAclOutcomeCallable deleteAclCallable(const Model::DeleteAclRequest& request) const; + DeleteHealthCheckTemplatesOutcome deleteHealthCheckTemplates(const Model::DeleteHealthCheckTemplatesRequest &request)const; + void deleteHealthCheckTemplatesAsync(const Model::DeleteHealthCheckTemplatesRequest& request, const DeleteHealthCheckTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHealthCheckTemplatesOutcomeCallable deleteHealthCheckTemplatesCallable(const Model::DeleteHealthCheckTemplatesRequest& request) const; + DeleteListenerOutcome deleteListener(const Model::DeleteListenerRequest &request)const; + void deleteListenerAsync(const Model::DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteListenerOutcomeCallable deleteListenerCallable(const Model::DeleteListenerRequest& request) const; + DeleteLoadBalancerOutcome deleteLoadBalancer(const Model::DeleteLoadBalancerRequest &request)const; + void deleteLoadBalancerAsync(const Model::DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLoadBalancerOutcomeCallable deleteLoadBalancerCallable(const Model::DeleteLoadBalancerRequest& request) const; + DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; + void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; + DeleteRulesOutcome deleteRules(const Model::DeleteRulesRequest &request)const; + void deleteRulesAsync(const Model::DeleteRulesRequest& request, const DeleteRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRulesOutcomeCallable deleteRulesCallable(const Model::DeleteRulesRequest& request) const; + DeleteSecurityPolicyOutcome deleteSecurityPolicy(const Model::DeleteSecurityPolicyRequest &request)const; + void deleteSecurityPolicyAsync(const Model::DeleteSecurityPolicyRequest& request, const DeleteSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityPolicyOutcomeCallable deleteSecurityPolicyCallable(const Model::DeleteSecurityPolicyRequest& request) const; + DeleteServerGroupOutcome deleteServerGroup(const Model::DeleteServerGroupRequest &request)const; + void deleteServerGroupAsync(const Model::DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServerGroupOutcomeCallable deleteServerGroupCallable(const Model::DeleteServerGroupRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DisableDeletionProtectionOutcome disableDeletionProtection(const Model::DisableDeletionProtectionRequest &request)const; + void disableDeletionProtectionAsync(const Model::DisableDeletionProtectionRequest& request, const DisableDeletionProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableDeletionProtectionOutcomeCallable disableDeletionProtectionCallable(const Model::DisableDeletionProtectionRequest& request) const; + DisableLoadBalancerAccessLogOutcome disableLoadBalancerAccessLog(const Model::DisableLoadBalancerAccessLogRequest &request)const; + void disableLoadBalancerAccessLogAsync(const Model::DisableLoadBalancerAccessLogRequest& request, const DisableLoadBalancerAccessLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableLoadBalancerAccessLogOutcomeCallable disableLoadBalancerAccessLogCallable(const Model::DisableLoadBalancerAccessLogRequest& request) const; + DissociateAclsFromListenerOutcome dissociateAclsFromListener(const Model::DissociateAclsFromListenerRequest &request)const; + void dissociateAclsFromListenerAsync(const Model::DissociateAclsFromListenerRequest& request, const DissociateAclsFromListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociateAclsFromListenerOutcomeCallable dissociateAclsFromListenerCallable(const Model::DissociateAclsFromListenerRequest& request) const; + DissociateAdditionalCertificatesFromListenerOutcome dissociateAdditionalCertificatesFromListener(const Model::DissociateAdditionalCertificatesFromListenerRequest &request)const; + void dissociateAdditionalCertificatesFromListenerAsync(const Model::DissociateAdditionalCertificatesFromListenerRequest& request, const DissociateAdditionalCertificatesFromListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DissociateAdditionalCertificatesFromListenerOutcomeCallable dissociateAdditionalCertificatesFromListenerCallable(const Model::DissociateAdditionalCertificatesFromListenerRequest& request) const; + EnableDeletionProtectionOutcome enableDeletionProtection(const Model::EnableDeletionProtectionRequest &request)const; + void enableDeletionProtectionAsync(const Model::EnableDeletionProtectionRequest& request, const EnableDeletionProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableDeletionProtectionOutcomeCallable enableDeletionProtectionCallable(const Model::EnableDeletionProtectionRequest& request) const; + EnableLoadBalancerAccessLogOutcome enableLoadBalancerAccessLog(const Model::EnableLoadBalancerAccessLogRequest &request)const; + void enableLoadBalancerAccessLogAsync(const Model::EnableLoadBalancerAccessLogRequest& request, const EnableLoadBalancerAccessLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableLoadBalancerAccessLogOutcomeCallable enableLoadBalancerAccessLogCallable(const Model::EnableLoadBalancerAccessLogRequest& request) const; + GetHealthCheckTemplateAttributeOutcome getHealthCheckTemplateAttribute(const Model::GetHealthCheckTemplateAttributeRequest &request)const; + void getHealthCheckTemplateAttributeAsync(const Model::GetHealthCheckTemplateAttributeRequest& request, const GetHealthCheckTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHealthCheckTemplateAttributeOutcomeCallable getHealthCheckTemplateAttributeCallable(const Model::GetHealthCheckTemplateAttributeRequest& request) const; + GetListenerAttributeOutcome getListenerAttribute(const Model::GetListenerAttributeRequest &request)const; + void getListenerAttributeAsync(const Model::GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetListenerAttributeOutcomeCallable getListenerAttributeCallable(const Model::GetListenerAttributeRequest& request) const; + GetLoadBalancerAttributeOutcome getLoadBalancerAttribute(const Model::GetLoadBalancerAttributeRequest &request)const; + void getLoadBalancerAttributeAsync(const Model::GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLoadBalancerAttributeOutcomeCallable getLoadBalancerAttributeCallable(const Model::GetLoadBalancerAttributeRequest& request) const; + ListAclEntriesOutcome listAclEntries(const Model::ListAclEntriesRequest &request)const; + void listAclEntriesAsync(const Model::ListAclEntriesRequest& request, const ListAclEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAclEntriesOutcomeCallable listAclEntriesCallable(const Model::ListAclEntriesRequest& request) const; + ListAclRelationsOutcome listAclRelations(const Model::ListAclRelationsRequest &request)const; + void listAclRelationsAsync(const Model::ListAclRelationsRequest& request, const ListAclRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAclRelationsOutcomeCallable listAclRelationsCallable(const Model::ListAclRelationsRequest& request) const; + ListAclsOutcome listAcls(const Model::ListAclsRequest &request)const; + void listAclsAsync(const Model::ListAclsRequest& request, const ListAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAclsOutcomeCallable listAclsCallable(const Model::ListAclsRequest& request) const; + ListAsynJobsOutcome listAsynJobs(const Model::ListAsynJobsRequest &request)const; + void listAsynJobsAsync(const Model::ListAsynJobsRequest& request, const ListAsynJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAsynJobsOutcomeCallable listAsynJobsCallable(const Model::ListAsynJobsRequest& request) const; + ListHealthCheckTemplatesOutcome listHealthCheckTemplates(const Model::ListHealthCheckTemplatesRequest &request)const; + void listHealthCheckTemplatesAsync(const Model::ListHealthCheckTemplatesRequest& request, const ListHealthCheckTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHealthCheckTemplatesOutcomeCallable listHealthCheckTemplatesCallable(const Model::ListHealthCheckTemplatesRequest& request) const; + ListListenerCertificatesOutcome listListenerCertificates(const Model::ListListenerCertificatesRequest &request)const; + void listListenerCertificatesAsync(const Model::ListListenerCertificatesRequest& request, const ListListenerCertificatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenerCertificatesOutcomeCallable listListenerCertificatesCallable(const Model::ListListenerCertificatesRequest& request) const; + ListListenersOutcome listListeners(const Model::ListListenersRequest &request)const; + void listListenersAsync(const Model::ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenersOutcomeCallable listListenersCallable(const Model::ListListenersRequest& request) const; + ListLoadBalancersOutcome listLoadBalancers(const Model::ListLoadBalancersRequest &request)const; + void listLoadBalancersAsync(const Model::ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLoadBalancersOutcomeCallable listLoadBalancersCallable(const Model::ListLoadBalancersRequest& request) const; + ListRulesOutcome listRules(const Model::ListRulesRequest &request)const; + void listRulesAsync(const Model::ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRulesOutcomeCallable listRulesCallable(const Model::ListRulesRequest& request) const; + ListSecurityPoliciesOutcome listSecurityPolicies(const Model::ListSecurityPoliciesRequest &request)const; + void listSecurityPoliciesAsync(const Model::ListSecurityPoliciesRequest& request, const ListSecurityPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityPoliciesOutcomeCallable listSecurityPoliciesCallable(const Model::ListSecurityPoliciesRequest& request) const; + ListSecurityPolicyRelationsOutcome listSecurityPolicyRelations(const Model::ListSecurityPolicyRelationsRequest &request)const; + void listSecurityPolicyRelationsAsync(const Model::ListSecurityPolicyRelationsRequest& request, const ListSecurityPolicyRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityPolicyRelationsOutcomeCallable listSecurityPolicyRelationsCallable(const Model::ListSecurityPolicyRelationsRequest& request) const; + ListServerGroupServersOutcome listServerGroupServers(const Model::ListServerGroupServersRequest &request)const; + void listServerGroupServersAsync(const Model::ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServerGroupServersOutcomeCallable listServerGroupServersCallable(const Model::ListServerGroupServersRequest& request) const; + ListServerGroupsOutcome listServerGroups(const Model::ListServerGroupsRequest &request)const; + void listServerGroupsAsync(const Model::ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServerGroupsOutcomeCallable listServerGroupsCallable(const Model::ListServerGroupsRequest& request) const; + ListSystemSecurityPoliciesOutcome listSystemSecurityPolicies(const Model::ListSystemSecurityPoliciesRequest &request)const; + void listSystemSecurityPoliciesAsync(const Model::ListSystemSecurityPoliciesRequest& request, const ListSystemSecurityPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSystemSecurityPoliciesOutcomeCallable listSystemSecurityPoliciesCallable(const Model::ListSystemSecurityPoliciesRequest& request) const; + ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const; + void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ListTagValuesOutcome listTagValues(const Model::ListTagValuesRequest &request)const; + void listTagValuesAsync(const Model::ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagValuesOutcomeCallable listTagValuesCallable(const Model::ListTagValuesRequest& request) const; + MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; + void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; + RemoveEntriesFromAclOutcome removeEntriesFromAcl(const Model::RemoveEntriesFromAclRequest &request)const; + void removeEntriesFromAclAsync(const Model::RemoveEntriesFromAclRequest& request, const RemoveEntriesFromAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveEntriesFromAclOutcomeCallable removeEntriesFromAclCallable(const Model::RemoveEntriesFromAclRequest& request) const; + RemoveServersFromServerGroupOutcome removeServersFromServerGroup(const Model::RemoveServersFromServerGroupRequest &request)const; + void removeServersFromServerGroupAsync(const Model::RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveServersFromServerGroupOutcomeCallable removeServersFromServerGroupCallable(const Model::RemoveServersFromServerGroupRequest& request) const; + ReplaceServersInServerGroupOutcome replaceServersInServerGroup(const Model::ReplaceServersInServerGroupRequest &request)const; + void replaceServersInServerGroupAsync(const Model::ReplaceServersInServerGroupRequest& request, const ReplaceServersInServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReplaceServersInServerGroupOutcomeCallable replaceServersInServerGroupCallable(const Model::ReplaceServersInServerGroupRequest& request) const; + StartListenerOutcome startListener(const Model::StartListenerRequest &request)const; + void startListenerAsync(const Model::StartListenerRequest& request, const StartListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartListenerOutcomeCallable startListenerCallable(const Model::StartListenerRequest& request) const; + StopListenerOutcome stopListener(const Model::StopListenerRequest &request)const; + void stopListenerAsync(const Model::StopListenerRequest& request, const StopListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopListenerOutcomeCallable stopListenerCallable(const Model::StopListenerRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const; + void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const; + UpdateAclAttributeOutcome updateAclAttribute(const Model::UpdateAclAttributeRequest &request)const; + void updateAclAttributeAsync(const Model::UpdateAclAttributeRequest& request, const UpdateAclAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAclAttributeOutcomeCallable updateAclAttributeCallable(const Model::UpdateAclAttributeRequest& request) const; + UpdateHealthCheckTemplateAttributeOutcome updateHealthCheckTemplateAttribute(const Model::UpdateHealthCheckTemplateAttributeRequest &request)const; + void updateHealthCheckTemplateAttributeAsync(const Model::UpdateHealthCheckTemplateAttributeRequest& request, const UpdateHealthCheckTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateHealthCheckTemplateAttributeOutcomeCallable updateHealthCheckTemplateAttributeCallable(const Model::UpdateHealthCheckTemplateAttributeRequest& request) const; + UpdateListenerAttributeOutcome updateListenerAttribute(const Model::UpdateListenerAttributeRequest &request)const; + void updateListenerAttributeAsync(const Model::UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateListenerAttributeOutcomeCallable updateListenerAttributeCallable(const Model::UpdateListenerAttributeRequest& request) const; + UpdateListenerLogConfigOutcome updateListenerLogConfig(const Model::UpdateListenerLogConfigRequest &request)const; + void updateListenerLogConfigAsync(const Model::UpdateListenerLogConfigRequest& request, const UpdateListenerLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateListenerLogConfigOutcomeCallable updateListenerLogConfigCallable(const Model::UpdateListenerLogConfigRequest& request) const; + UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const; + void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const; + UpdateLoadBalancerEditionOutcome updateLoadBalancerEdition(const Model::UpdateLoadBalancerEditionRequest &request)const; + void updateLoadBalancerEditionAsync(const Model::UpdateLoadBalancerEditionRequest& request, const UpdateLoadBalancerEditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerEditionOutcomeCallable updateLoadBalancerEditionCallable(const Model::UpdateLoadBalancerEditionRequest& request) const; + UpdateRuleAttributeOutcome updateRuleAttribute(const Model::UpdateRuleAttributeRequest &request)const; + void updateRuleAttributeAsync(const Model::UpdateRuleAttributeRequest& request, const UpdateRuleAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRuleAttributeOutcomeCallable updateRuleAttributeCallable(const Model::UpdateRuleAttributeRequest& request) const; + UpdateRulesAttributeOutcome updateRulesAttribute(const Model::UpdateRulesAttributeRequest &request)const; + void updateRulesAttributeAsync(const Model::UpdateRulesAttributeRequest& request, const UpdateRulesAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRulesAttributeOutcomeCallable updateRulesAttributeCallable(const Model::UpdateRulesAttributeRequest& request) const; + UpdateSecurityPolicyAttributeOutcome updateSecurityPolicyAttribute(const Model::UpdateSecurityPolicyAttributeRequest &request)const; + void updateSecurityPolicyAttributeAsync(const Model::UpdateSecurityPolicyAttributeRequest& request, const UpdateSecurityPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSecurityPolicyAttributeOutcomeCallable updateSecurityPolicyAttributeCallable(const Model::UpdateSecurityPolicyAttributeRequest& request) const; + UpdateServerGroupAttributeOutcome updateServerGroupAttribute(const Model::UpdateServerGroupAttributeRequest &request)const; + void updateServerGroupAttributeAsync(const Model::UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServerGroupAttributeOutcomeCallable updateServerGroupAttributeCallable(const Model::UpdateServerGroupAttributeRequest& request) const; + UpdateServerGroupServersAttributeOutcome updateServerGroupServersAttribute(const Model::UpdateServerGroupServersAttributeRequest &request)const; + void updateServerGroupServersAttributeAsync(const Model::UpdateServerGroupServersAttributeRequest& request, const UpdateServerGroupServersAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServerGroupServersAttributeOutcomeCallable updateServerGroupServersAttributeCallable(const Model::UpdateServerGroupServersAttributeRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ALB_ALBCLIENT_H_ diff --git a/alb/include/alibabacloud/alb/AlbExport.h b/alb/include/alibabacloud/alb/AlbExport.h new file mode 100644 index 000000000..758f3e36e --- /dev/null +++ b/alb/include/alibabacloud/alb/AlbExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_ALBEXPORT_H_ +#define ALIBABACLOUD_ALB_ALBEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ALB_LIBRARY) +# define ALIBABACLOUD_ALB_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ALB_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ALB_EXPORT +#endif + +#endif // !ALIBABACLOUD_ALB_ALBEXPORT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/AddEntriesToAclRequest.h b/alb/include/alibabacloud/alb/model/AddEntriesToAclRequest.h new file mode 100644 index 000000000..312d493fa --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AddEntriesToAclRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ADDENTRIESTOACLREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ADDENTRIESTOACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT AddEntriesToAclRequest : public RpcServiceRequest { +public: + struct AclEntries { + std::string entry; + std::string description; + }; + AddEntriesToAclRequest(); + ~AddEntriesToAclRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getAclEntries() const; + void setAclEntries(const std::vector &aclEntries); + +private: + std::string clientToken_; + std::string aclId_; + bool dryRun_; + std::vector aclEntries_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ADDENTRIESTOACLREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/AddEntriesToAclResult.h b/alb/include/alibabacloud/alb/model/AddEntriesToAclResult.h new file mode 100644 index 000000000..1d3365277 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AddEntriesToAclResult.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_ALB_MODEL_ADDENTRIESTOACLRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ADDENTRIESTOACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT AddEntriesToAclResult : public ServiceResult + { + public: + + + AddEntriesToAclResult(); + explicit AddEntriesToAclResult(const std::string &payload); + ~AddEntriesToAclResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ADDENTRIESTOACLRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/AddServersToServerGroupRequest.h b/alb/include/alibabacloud/alb/model/AddServersToServerGroupRequest.h new file mode 100644 index 000000000..dc8b3c4b0 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AddServersToServerGroupRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT AddServersToServerGroupRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverType; + int port; + std::string description; + std::string serverIp; + int weight; + std::string serverId; + }; + AddServersToServerGroupRequest(); + ~AddServersToServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/AddServersToServerGroupResult.h b/alb/include/alibabacloud/alb/model/AddServersToServerGroupResult.h new file mode 100644 index 000000000..23180aee1 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AddServersToServerGroupResult.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_ALB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT AddServersToServerGroupResult : public ServiceResult + { + public: + + + AddServersToServerGroupResult(); + explicit AddServersToServerGroupResult(const std::string &payload); + ~AddServersToServerGroupResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h b/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h new file mode 100644 index 000000000..b1db82982 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT AssociateAclsWithListenerRequest : public RpcServiceRequest { +public: + AssociateAclsWithListenerRequest(); + ~AssociateAclsWithListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getAclIds() const; + void setAclIds(const std::vector &aclIds); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::vector aclIds_; + std::string aclType_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h b/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerResult.h new file mode 100644 index 000000000..2363dceea --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AssociateAclsWithListenerResult.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_ALB_MODEL_ASSOCIATEACLSWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ASSOCIATEACLSWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT AssociateAclsWithListenerResult : public ServiceResult + { + public: + + + AssociateAclsWithListenerResult(); + explicit AssociateAclsWithListenerResult(const std::string &payload); + ~AssociateAclsWithListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ASSOCIATEACLSWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h b/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h new file mode 100644 index 000000000..bfbbc01d7 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT AssociateAdditionalCertificatesWithListenerRequest : public RpcServiceRequest { +public: + struct Certificates { + std::string certificateId; + }; + AssociateAdditionalCertificatesWithListenerRequest(); + ~AssociateAdditionalCertificatesWithListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + +private: + std::string clientToken_; + std::string listenerId_; + bool dryRun_; + std::vector certificates_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h b/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.h new file mode 100644 index 000000000..e7d6115d8 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/AssociateAdditionalCertificatesWithListenerResult.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_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT AssociateAdditionalCertificatesWithListenerResult : public ServiceResult + { + public: + + + AssociateAdditionalCertificatesWithListenerResult(); + explicit AssociateAdditionalCertificatesWithListenerResult(const std::string &payload); + ~AssociateAdditionalCertificatesWithListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateAclRequest.h b/alb/include/alibabacloud/alb/model/CreateAclRequest.h new file mode 100644 index 000000000..a4fc83517 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateAclRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateAclRequest : public RpcServiceRequest { +public: + CreateAclRequest(); + ~CreateAclRequest(); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAddressIpVersion() const; + void setAddressIpVersion(const std::string &addressIpVersion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string aclName_; + std::string clientToken_; + std::string addressIpVersion_; + std::string resourceGroupId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATEACLREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateAclResult.h b/alb/include/alibabacloud/alb/model/CreateAclResult.h new file mode 100644 index 000000000..80b9fc961 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateAclResult.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_ALB_MODEL_CREATEACLRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateAclResult : public ServiceResult + { + public: + + + CreateAclResult(); + explicit CreateAclResult(const std::string &payload); + ~CreateAclResult(); + std::string getAclId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATEACLRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h b/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h new file mode 100644 index 000000000..fd2efa88c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateHealthCheckTemplateRequest : public RpcServiceRequest { +public: + CreateHealthCheckTemplateRequest(); + ~CreateHealthCheckTemplateRequest(); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getHealthCheckProtocol() const; + void setHealthCheckProtocol(const std::string &healthCheckProtocol); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + bool getHealthCheckTcpFastCloseEnabled() const; + void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled); + std::string getHealthCheckPath() const; + void setHealthCheckPath(const std::string &healthCheckPath); + std::vector getHealthCheckCodes() const; + void setHealthCheckCodes(const std::vector &healthCheckCodes); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckHost() const; + void setHealthCheckHost(const std::string &healthCheckHost); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getHealthCheckTemplateName() const; + void setHealthCheckTemplateName(const std::string &healthCheckTemplateName); + std::vector getHealthCheckHttpCodes() const; + void setHealthCheckHttpCodes(const std::vector &healthCheckHttpCodes); + std::string getHealthCheckHttpVersion() const; + void setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + +private: + int healthCheckTimeout_; + std::string clientToken_; + std::string healthCheckProtocol_; + int unhealthyThreshold_; + int healthyThreshold_; + bool healthCheckTcpFastCloseEnabled_; + std::string healthCheckPath_; + std::vector healthCheckCodes_; + bool dryRun_; + std::string healthCheckMethod_; + std::string healthCheckHost_; + int healthCheckInterval_; + std::string healthCheckTemplateName_; + std::vector healthCheckHttpCodes_; + std::string healthCheckHttpVersion_; + int healthCheckConnectPort_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateResult.h b/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateResult.h new file mode 100644 index 000000000..429983c58 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateHealthCheckTemplateResult.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_ALB_MODEL_CREATEHEALTHCHECKTEMPLATERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateHealthCheckTemplateResult : public ServiceResult + { + public: + + + CreateHealthCheckTemplateResult(); + explicit CreateHealthCheckTemplateResult(const std::string &payload); + ~CreateHealthCheckTemplateResult(); + std::string getHealthCheckTemplateId()const; + + protected: + void parse(const std::string &payload); + private: + std::string healthCheckTemplateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATEHEALTHCHECKTEMPLATERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateListenerRequest.h b/alb/include/alibabacloud/alb/model/CreateListenerRequest.h new file mode 100644 index 000000000..2768f475b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_CREATELISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateListenerRequest : public RpcServiceRequest { +public: + struct QuicConfig { + bool quicUpgradeEnabled; + std::string quicListenerId; + }; + struct DefaultActions { + struct ForwardGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + std::string type; + }; + struct CaCertificates { + std::string certificateId; + }; + struct XForwardedForConfig { + std::string xForwardedForClientCertSubjectDNAlias; + bool xForwardedForClientCertIssuerDNEnabled; + bool xForwardedForClientCertFingerprintEnabled; + std::string xForwardedForClientCertIssuerDNAlias; + bool xForwardedForProtoEnabled; + std::string xForwardedForClientCertFingerprintAlias; + bool xForwardedForClientCertClientVerifyEnabled; + bool xForwardedForSLBPortEnabled; + bool xForwardedForClientCertSubjectDNEnabled; + std::string xForwardedForClientCertClientVerifyAlias; + bool xForwardedForClientSrcPortEnabled; + bool xForwardedForEnabled; + bool xForwardedForSLBIdEnabled; + }; + struct Certificates { + std::string certificateId; + }; + CreateListenerRequest(); + ~CreateListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getGzipEnabled() const; + void setGzipEnabled(bool gzipEnabled); + QuicConfig getQuicConfig() const; + void setQuicConfig(const QuicConfig &quicConfig); + bool getHttp2Enabled() const; + void setHttp2Enabled(bool http2Enabled); + std::vector getDefaultActions() const; + void setDefaultActions(const std::vector &defaultActions); + int getListenerPort() const; + void setListenerPort(int listenerPort); + bool getDryRun() const; + void setDryRun(bool dryRun); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::vector getCaCertificates() const; + void setCaCertificates(const std::vector &caCertificates); + XForwardedForConfig getXForwardedForConfig() const; + void setXForwardedForConfig(const XForwardedForConfig &xForwardedForConfig); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + std::string getListenerDescription() const; + void setListenerDescription(const std::string &listenerDescription); + bool getCaEnabled() const; + void setCaEnabled(bool caEnabled); + +private: + std::string clientToken_; + bool gzipEnabled_; + QuicConfig quicConfig_; + bool http2Enabled_; + std::vector defaultActions_; + int listenerPort_; + bool dryRun_; + int requestTimeout_; + std::vector caCertificates_; + XForwardedForConfig xForwardedForConfig_; + std::string listenerProtocol_; + std::string securityPolicyId_; + int idleTimeout_; + std::string loadBalancerId_; + std::vector certificates_; + std::string listenerDescription_; + bool caEnabled_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATELISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateListenerResult.h b/alb/include/alibabacloud/alb/model/CreateListenerResult.h new file mode 100644 index 000000000..3d135761d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateListenerResult.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_ALB_MODEL_CREATELISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateListenerResult : public ServiceResult + { + public: + + + CreateListenerResult(); + explicit CreateListenerResult(const std::string &payload); + ~CreateListenerResult(); + std::string getJobId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATELISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateLoadBalancerRequest.h b/alb/include/alibabacloud/alb/model/CreateLoadBalancerRequest.h new file mode 100644 index 000000000..c0426c833 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateLoadBalancerRequest.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_CREATELOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATELOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest { +public: + struct ModificationProtectionConfig { + std::string reason; + std::string status; + }; + struct LoadBalancerBillingConfig { + std::string internetChargeType; + int internetBandwidth; + std::string payType; + }; + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + }; + CreateLoadBalancerRequest(); + ~CreateLoadBalancerRequest(); + std::string getLoadBalancerEdition() const; + void setLoadBalancerEdition(const std::string &loadBalancerEdition); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + ModificationProtectionConfig getModificationProtectionConfig() const; + void setModificationProtectionConfig(const ModificationProtectionConfig &modificationProtectionConfig); + LoadBalancerBillingConfig getLoadBalancerBillingConfig() const; + void setLoadBalancerBillingConfig(const LoadBalancerBillingConfig &loadBalancerBillingConfig); + bool getDeletionProtectionEnabled() const; + void setDeletionProtectionEnabled(bool deletionProtectionEnabled); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::string getAddressAllocatedMode() const; + void setAddressAllocatedMode(const std::string &addressAllocatedMode); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string loadBalancerEdition_; + std::string clientToken_; + ModificationProtectionConfig modificationProtectionConfig_; + LoadBalancerBillingConfig loadBalancerBillingConfig_; + bool deletionProtectionEnabled_; + std::string resourceGroupId_; + std::string loadBalancerName_; + std::string addressType_; + std::string addressAllocatedMode_; + bool dryRun_; + std::vector zoneMappings_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATELOADBALANCERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateLoadBalancerResult.h b/alb/include/alibabacloud/alb/model/CreateLoadBalancerResult.h new file mode 100644 index 000000000..cf76e7bf8 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateLoadBalancerResult.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_ALB_MODEL_CREATELOADBALANCERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATELOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateLoadBalancerResult : public ServiceResult + { + public: + + + CreateLoadBalancerResult(); + explicit CreateLoadBalancerResult(const std::string &payload); + ~CreateLoadBalancerResult(); + std::string getLoadBalancerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string loadBalancerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATELOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateRuleRequest.h b/alb/include/alibabacloud/alb/model/CreateRuleRequest.h new file mode 100644 index 000000000..714b53e0f --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateRuleRequest.h @@ -0,0 +1,187 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateRuleRequest : public RpcServiceRequest { +public: + struct RuleActions { + struct FixedResponseConfig { + std::string httpCode; + std::string content; + std::string contentType; + }; + FixedResponseConfig fixedResponseConfig; + struct TrafficMirrorConfig { + struct MirrorGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + MirrorGroupConfig mirrorGroupConfig; + std::string targetType; + }; + TrafficMirrorConfig trafficMirrorConfig; + struct ForwardGroupConfig { + struct ServerGroupStickySession { + bool enabled; + int timeout; + }; + ServerGroupStickySession serverGroupStickySession; + struct ServerGroupTuplesItem { + std::string serverGroupId; + int weight; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + struct RemoveHeaderConfig { + std::string key; + }; + RemoveHeaderConfig removeHeaderConfig; + struct InsertHeaderConfig { + std::string valueType; + bool coverEnabled; + std::string value; + std::string key; + }; + InsertHeaderConfig insertHeaderConfig; + struct TrafficLimitConfig { + int qPS; + }; + TrafficLimitConfig trafficLimitConfig; + struct RedirectConfig { + std::string path; + std::string protocol; + std::string port; + std::string query; + std::string host; + std::string httpCode; + }; + RedirectConfig redirectConfig; + std::string type; + int order; + struct RewriteConfig { + std::string path; + std::string query; + std::string host; + }; + RewriteConfig rewriteConfig; + }; + struct RuleConditions { + struct MethodConfig { + std::string string; + std::vector values; + }; + MethodConfig methodConfig; + struct SourceIpConfig { + std::string string; + std::vector values; + }; + SourceIpConfig sourceIpConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + struct QueryStringConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + QueryStringConfig queryStringConfig; + struct ResponseStatusCodeConfig { + std::string string; + std::vector values; + }; + ResponseStatusCodeConfig responseStatusCodeConfig; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct CookieConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + CookieConfig cookieConfig; + std::string type; + struct HeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + HeaderConfig headerConfig; + struct ResponseHeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + ResponseHeaderConfig responseHeaderConfig; + }; + CreateRuleRequest(); + ~CreateRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::vector getRuleActions() const; + void setRuleActions(const std::vector &ruleActions); + std::vector getRuleConditions() const; + void setRuleConditions(const std::vector &ruleConditions); + bool getDryRun() const; + void setDryRun(bool dryRun); + int getPriority() const; + void setPriority(int priority); + +private: + std::string clientToken_; + std::string ruleName_; + std::string listenerId_; + std::string direction_; + std::vector ruleActions_; + std::vector ruleConditions_; + bool dryRun_; + int priority_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATERULEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateRuleResult.h b/alb/include/alibabacloud/alb/model/CreateRuleResult.h new file mode 100644 index 000000000..7c4058bdd --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateRuleResult.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_ALB_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateRuleResult : public ServiceResult + { + public: + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + std::string getRuleId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ruleId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateRulesRequest.h b/alb/include/alibabacloud/alb/model/CreateRulesRequest.h new file mode 100644 index 000000000..1f40a8054 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateRulesRequest.h @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_CREATERULESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATERULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateRulesRequest : public RpcServiceRequest { +public: + struct Rules { + struct RuleConditionsItem { + struct MethodConfig { + std::string string; + std::vector values; + }; + MethodConfig methodConfig; + struct SourceIpConfig { + std::string string; + std::vector values; + }; + SourceIpConfig sourceIpConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + struct QueryStringConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + QueryStringConfig queryStringConfig; + struct ResponseStatusCodeConfig { + std::string string; + std::vector values; + }; + ResponseStatusCodeConfig responseStatusCodeConfig; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct CookieConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + CookieConfig cookieConfig; + std::string type; + struct HeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + HeaderConfig headerConfig; + struct ResponseHeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + ResponseHeaderConfig responseHeaderConfig; + }; + RuleConditionsItem ruleConditionsItem; + std::vector ruleConditions; + std::string ruleName; + int priority; + struct RuleActionsItem { + struct FixedResponseConfig { + std::string httpCode; + std::string content; + std::string contentType; + }; + FixedResponseConfig fixedResponseConfig; + struct TrafficMirrorConfig { + struct MirrorGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + MirrorGroupConfig mirrorGroupConfig; + std::string targetType; + }; + TrafficMirrorConfig trafficMirrorConfig; + struct ForwardGroupConfig { + struct ServerGroupStickySession { + bool enabled; + int timeout; + }; + ServerGroupStickySession serverGroupStickySession; + struct ServerGroupTuplesItem { + std::string serverGroupId; + int weight; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + struct RemoveHeaderConfig { + std::string key; + }; + RemoveHeaderConfig removeHeaderConfig; + struct InsertHeaderConfig { + std::string valueType; + bool coverEnabled; + std::string value; + std::string key; + }; + InsertHeaderConfig insertHeaderConfig; + struct TrafficLimitConfig { + int qPS; + }; + TrafficLimitConfig trafficLimitConfig; + struct RedirectConfig { + std::string path; + std::string protocol; + std::string port; + std::string query; + std::string host; + std::string httpCode; + }; + RedirectConfig redirectConfig; + std::string type; + int order; + struct RewriteConfig { + std::string path; + std::string query; + std::string host; + }; + RewriteConfig rewriteConfig; + }; + RuleActionsItem ruleActionsItem; + std::vector ruleActions; + std::string direction; + }; + CreateRulesRequest(); + ~CreateRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getRules() const; + void setRules(const std::vector &rules); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::vector rules_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATERULESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateRulesResult.h b/alb/include/alibabacloud/alb/model/CreateRulesResult.h new file mode 100644 index 000000000..81208663d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateRulesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_CREATERULESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateRulesResult : public ServiceResult + { + public: + struct RuleId + { + int priority; + std::string ruleId; + }; + + + CreateRulesResult(); + explicit CreateRulesResult(const std::string &payload); + ~CreateRulesResult(); + std::vector getRuleIds()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ruleIds_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATERULESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateSecurityPolicyRequest.h b/alb/include/alibabacloud/alb/model/CreateSecurityPolicyRequest.h new file mode 100644 index 000000000..0f7722211 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateSecurityPolicyRequest.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_ALB_MODEL_CREATESECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATESECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateSecurityPolicyRequest : public RpcServiceRequest { +public: + CreateSecurityPolicyRequest(); + ~CreateSecurityPolicyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::vector getCiphers() const; + void setCiphers(const std::vector &ciphers); + std::vector getTLSVersions() const; + void setTLSVersions(const std::vector &tLSVersions); + std::string getSecurityPolicyName() const; + void setSecurityPolicyName(const std::string &securityPolicyName); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string resourceGroupId_; + std::vector ciphers_; + std::vector tLSVersions_; + std::string securityPolicyName_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATESECURITYPOLICYREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateSecurityPolicyResult.h b/alb/include/alibabacloud/alb/model/CreateSecurityPolicyResult.h new file mode 100644 index 000000000..649318802 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateSecurityPolicyResult.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_ALB_MODEL_CREATESECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATESECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateSecurityPolicyResult : public ServiceResult + { + public: + + + CreateSecurityPolicyResult(); + explicit CreateSecurityPolicyResult(const std::string &payload); + ~CreateSecurityPolicyResult(); + std::string getSecurityPolicyId()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityPolicyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATESECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/CreateServerGroupRequest.h b/alb/include/alibabacloud/alb/model/CreateServerGroupRequest.h new file mode 100644 index 000000000..284f10dd1 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateServerGroupRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_CREATESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT CreateServerGroupRequest : public RpcServiceRequest { +public: + struct HealthCheckConfig { + std::string string; + std::vector healthCheckCodes; + bool healthCheckEnabled; + int healthCheckTimeout; + std::string healthCheckMethod; + std::string healthCheckHost; + std::string healthCheckProtocol; + int unhealthyThreshold; + int healthyThreshold; + bool healthCheckTcpFastCloseEnabled; + std::string healthCheckPath; + int healthCheckInterval; + std::string string; + std::vector healthCheckHttpCodes; + std::string healthCheckHttpVersion; + int healthCheckConnectPort; + }; + struct StickySessionConfig { + bool stickySessionEnabled; + std::string cookie; + int cookieTimeout; + std::string stickySessionType; + }; + CreateServerGroupRequest(); + ~CreateServerGroupRequest(); + std::string getServerGroupName() const; + void setServerGroupName(const std::string &serverGroupName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + HealthCheckConfig getHealthCheckConfig() const; + void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + StickySessionConfig getStickySessionConfig() const; + void setStickySessionConfig(const StickySessionConfig &stickySessionConfig); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getServerGroupType() const; + void setServerGroupType(const std::string &serverGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string serverGroupName_; + std::string clientToken_; + HealthCheckConfig healthCheckConfig_; + std::string scheduler_; + std::string resourceGroupId_; + std::string protocol_; + StickySessionConfig stickySessionConfig_; + bool dryRun_; + std::string serverGroupType_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_CREATESERVERGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/CreateServerGroupResult.h b/alb/include/alibabacloud/alb/model/CreateServerGroupResult.h new file mode 100644 index 000000000..926a84429 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/CreateServerGroupResult.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_ALB_MODEL_CREATESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_CREATESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT CreateServerGroupResult : public ServiceResult + { + public: + + + CreateServerGroupResult(); + explicit CreateServerGroupResult(const std::string &payload); + ~CreateServerGroupResult(); + std::string getServerGroupId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string serverGroupId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_CREATESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteAclRequest.h b/alb/include/alibabacloud/alb/model/DeleteAclRequest.h new file mode 100644 index 000000000..96192d2a4 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteAclRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteAclRequest : public RpcServiceRequest { +public: + DeleteAclRequest(); + ~DeleteAclRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string aclId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETEACLREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteAclResult.h b/alb/include/alibabacloud/alb/model/DeleteAclResult.h new file mode 100644 index 000000000..f9086e6eb --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteAclResult.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_ALB_MODEL_DELETEACLRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteAclResult : public ServiceResult + { + public: + + + DeleteAclResult(); + explicit DeleteAclResult(const std::string &payload); + ~DeleteAclResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETEACLRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesRequest.h b/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesRequest.h new file mode 100644 index 000000000..3afe90ffc --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteHealthCheckTemplatesRequest : public RpcServiceRequest { +public: + DeleteHealthCheckTemplatesRequest(); + ~DeleteHealthCheckTemplatesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getHealthCheckTemplateIds() const; + void setHealthCheckTemplateIds(const std::vector &healthCheckTemplateIds); + +private: + std::string clientToken_; + bool dryRun_; + std::vector healthCheckTemplateIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesResult.h b/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesResult.h new file mode 100644 index 000000000..ea3e5429d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteHealthCheckTemplatesResult.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_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteHealthCheckTemplatesResult : public ServiceResult + { + public: + + + DeleteHealthCheckTemplatesResult(); + explicit DeleteHealthCheckTemplatesResult(const std::string &payload); + ~DeleteHealthCheckTemplatesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETEHEALTHCHECKTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteListenerRequest.h b/alb/include/alibabacloud/alb/model/DeleteListenerRequest.h new file mode 100644 index 000000000..d5bc4deaa --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteListenerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETELISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteListenerRequest : public RpcServiceRequest { +public: + DeleteListenerRequest(); + ~DeleteListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETELISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteListenerResult.h b/alb/include/alibabacloud/alb/model/DeleteListenerResult.h new file mode 100644 index 000000000..89a2814df --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteListenerResult.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_ALB_MODEL_DELETELISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteListenerResult : public ServiceResult + { + public: + + + DeleteListenerResult(); + explicit DeleteListenerResult(const std::string &payload); + ~DeleteListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETELISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteLoadBalancerRequest.h b/alb/include/alibabacloud/alb/model/DeleteLoadBalancerRequest.h new file mode 100644 index 000000000..5e2453dcd --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteLoadBalancerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETELOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETELOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteLoadBalancerRequest : public RpcServiceRequest { +public: + DeleteLoadBalancerRequest(); + ~DeleteLoadBalancerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETELOADBALANCERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteLoadBalancerResult.h b/alb/include/alibabacloud/alb/model/DeleteLoadBalancerResult.h new file mode 100644 index 000000000..00b6b3153 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteLoadBalancerResult.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_ALB_MODEL_DELETELOADBALANCERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETELOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteLoadBalancerResult : public ServiceResult + { + public: + + + DeleteLoadBalancerResult(); + explicit DeleteLoadBalancerResult(const std::string &payload); + ~DeleteLoadBalancerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETELOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteRuleRequest.h b/alb/include/alibabacloud/alb/model/DeleteRuleRequest.h new file mode 100644 index 000000000..818977a4b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteRuleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETERULEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteRuleRequest : public RpcServiceRequest { +public: + DeleteRuleRequest(); + ~DeleteRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string clientToken_; + bool dryRun_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETERULEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteRuleResult.h b/alb/include/alibabacloud/alb/model/DeleteRuleResult.h new file mode 100644 index 000000000..f4cdb355d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteRuleResult.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_ALB_MODEL_DELETERULERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteRuleResult : public ServiceResult + { + public: + + + DeleteRuleResult(); + explicit DeleteRuleResult(const std::string &payload); + ~DeleteRuleResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETERULERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteRulesRequest.h b/alb/include/alibabacloud/alb/model/DeleteRulesRequest.h new file mode 100644 index 000000000..cf2e1438b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteRulesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETERULESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETERULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteRulesRequest : public RpcServiceRequest { +public: + DeleteRulesRequest(); + ~DeleteRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getRuleIds() const; + void setRuleIds(const std::vector &ruleIds); + +private: + std::string clientToken_; + bool dryRun_; + std::vector ruleIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETERULESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteRulesResult.h b/alb/include/alibabacloud/alb/model/DeleteRulesResult.h new file mode 100644 index 000000000..837a2d192 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteRulesResult.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_ALB_MODEL_DELETERULESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteRulesResult : public ServiceResult + { + public: + + + DeleteRulesResult(); + explicit DeleteRulesResult(const std::string &payload); + ~DeleteRulesResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETERULESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyRequest.h b/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyRequest.h new file mode 100644 index 000000000..d56db380c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETESECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETESECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteSecurityPolicyRequest : public RpcServiceRequest { +public: + DeleteSecurityPolicyRequest(); + ~DeleteSecurityPolicyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + +private: + std::string clientToken_; + bool dryRun_; + std::string securityPolicyId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETESECURITYPOLICYREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyResult.h b/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyResult.h new file mode 100644 index 000000000..f29addf01 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteSecurityPolicyResult.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_ALB_MODEL_DELETESECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETESECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteSecurityPolicyResult : public ServiceResult + { + public: + + + DeleteSecurityPolicyResult(); + explicit DeleteSecurityPolicyResult(const std::string &payload); + ~DeleteSecurityPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETESECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DeleteServerGroupRequest.h b/alb/include/alibabacloud/alb/model/DeleteServerGroupRequest.h new file mode 100644 index 000000000..47ac001f2 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteServerGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DELETESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DeleteServerGroupRequest : public RpcServiceRequest { +public: + DeleteServerGroupRequest(); + ~DeleteServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DELETESERVERGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DeleteServerGroupResult.h b/alb/include/alibabacloud/alb/model/DeleteServerGroupResult.h new file mode 100644 index 000000000..4475f6df7 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DeleteServerGroupResult.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_ALB_MODEL_DELETESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DELETESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DeleteServerGroupResult : public ServiceResult + { + public: + + + DeleteServerGroupResult(); + explicit DeleteServerGroupResult(const std::string &payload); + ~DeleteServerGroupResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DELETESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DescribeRegionsRequest.h b/alb/include/alibabacloud/alb/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..2e9769258 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DescribeRegionsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DescribeRegionsResult.h b/alb/include/alibabacloud/alb/model/DescribeRegionsResult.h new file mode 100644 index 000000000..51a3a23c5 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DescribeRegionsResult.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_ALB_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DescribeZonesRequest.h b/alb/include/alibabacloud/alb/model/DescribeZonesRequest.h new file mode 100644 index 000000000..fc193a900 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DescribeZonesRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + +private: +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DescribeZonesResult.h b/alb/include/alibabacloud/alb/model/DescribeZonesResult.h new file mode 100644 index 000000000..ed40fd62f --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DescribeZonesResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + std::string zoneId; + std::string localName; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h b/alb/include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h new file mode 100644 index 000000000..3d041b065 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DisableDeletionProtectionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DISABLEDELETIONPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DISABLEDELETIONPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DisableDeletionProtectionRequest : public RpcServiceRequest { +public: + DisableDeletionProtectionRequest(); + ~DisableDeletionProtectionRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string resourceId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DISABLEDELETIONPROTECTIONREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DisableDeletionProtectionResult.h b/alb/include/alibabacloud/alb/model/DisableDeletionProtectionResult.h new file mode 100644 index 000000000..fbd230e53 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DisableDeletionProtectionResult.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_ALB_MODEL_DISABLEDELETIONPROTECTIONRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DISABLEDELETIONPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DisableDeletionProtectionResult : public ServiceResult + { + public: + + + DisableDeletionProtectionResult(); + explicit DisableDeletionProtectionResult(const std::string &payload); + ~DisableDeletionProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DISABLEDELETIONPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h b/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h new file mode 100644 index 000000000..ae6508c75 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DISABLELOADBALANCERACCESSLOGREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DISABLELOADBALANCERACCESSLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DisableLoadBalancerAccessLogRequest : public RpcServiceRequest { +public: + DisableLoadBalancerAccessLogRequest(); + ~DisableLoadBalancerAccessLogRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DISABLELOADBALANCERACCESSLOGREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogResult.h b/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogResult.h new file mode 100644 index 000000000..08536e5be --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DisableLoadBalancerAccessLogResult.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_ALB_MODEL_DISABLELOADBALANCERACCESSLOGRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DISABLELOADBALANCERACCESSLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DisableLoadBalancerAccessLogResult : public ServiceResult + { + public: + + + DisableLoadBalancerAccessLogResult(); + explicit DisableLoadBalancerAccessLogResult(const std::string &payload); + ~DisableLoadBalancerAccessLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DISABLELOADBALANCERACCESSLOGRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerRequest.h b/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerRequest.h new file mode 100644 index 000000000..f5fd4cfb9 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerRequest.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_ALB_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DissociateAclsFromListenerRequest : public RpcServiceRequest { +public: + DissociateAclsFromListenerRequest(); + ~DissociateAclsFromListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getAclIds() const; + void setAclIds(const std::vector &aclIds); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::vector aclIds_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerResult.h b/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerResult.h new file mode 100644 index 000000000..288a51e20 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DissociateAclsFromListenerResult.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_ALB_MODEL_DISSOCIATEACLSFROMLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DISSOCIATEACLSFROMLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DissociateAclsFromListenerResult : public ServiceResult + { + public: + + + DissociateAclsFromListenerResult(); + explicit DissociateAclsFromListenerResult(const std::string &payload); + ~DissociateAclsFromListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DISSOCIATEACLSFROMLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerRequest.h b/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerRequest.h new file mode 100644 index 000000000..8b746ea7d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT DissociateAdditionalCertificatesFromListenerRequest : public RpcServiceRequest { +public: + struct Certificates { + std::string certificateId; + }; + DissociateAdditionalCertificatesFromListenerRequest(); + ~DissociateAdditionalCertificatesFromListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + +private: + std::string clientToken_; + std::string listenerId_; + bool dryRun_; + std::vector certificates_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerResult.h b/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerResult.h new file mode 100644 index 000000000..d168bd6cb --- /dev/null +++ b/alb/include/alibabacloud/alb/model/DissociateAdditionalCertificatesFromListenerResult.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_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT DissociateAdditionalCertificatesFromListenerResult : public ServiceResult + { + public: + + + DissociateAdditionalCertificatesFromListenerResult(); + explicit DissociateAdditionalCertificatesFromListenerResult(const std::string &payload); + ~DissociateAdditionalCertificatesFromListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/EnableDeletionProtectionRequest.h b/alb/include/alibabacloud/alb/model/EnableDeletionProtectionRequest.h new file mode 100644 index 000000000..d9fd3190b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/EnableDeletionProtectionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ENABLEDELETIONPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ENABLEDELETIONPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT EnableDeletionProtectionRequest : public RpcServiceRequest { +public: + EnableDeletionProtectionRequest(); + ~EnableDeletionProtectionRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string resourceId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ENABLEDELETIONPROTECTIONREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/EnableDeletionProtectionResult.h b/alb/include/alibabacloud/alb/model/EnableDeletionProtectionResult.h new file mode 100644 index 000000000..d9c2acadb --- /dev/null +++ b/alb/include/alibabacloud/alb/model/EnableDeletionProtectionResult.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_ALB_MODEL_ENABLEDELETIONPROTECTIONRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ENABLEDELETIONPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT EnableDeletionProtectionResult : public ServiceResult + { + public: + + + EnableDeletionProtectionResult(); + explicit EnableDeletionProtectionResult(const std::string &payload); + ~EnableDeletionProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ENABLEDELETIONPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogRequest.h b/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogRequest.h new file mode 100644 index 000000000..b0847dbfa --- /dev/null +++ b/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_ENABLELOADBALANCERACCESSLOGREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_ENABLELOADBALANCERACCESSLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT EnableLoadBalancerAccessLogRequest : public RpcServiceRequest { +public: + EnableLoadBalancerAccessLogRequest(); + ~EnableLoadBalancerAccessLogRequest(); + std::string getLogProject() const; + void setLogProject(const std::string &logProject); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getLogStore() const; + void setLogStore(const std::string &logStore); + +private: + std::string logProject_; + std::string clientToken_; + bool dryRun_; + std::string loadBalancerId_; + std::string logStore_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_ENABLELOADBALANCERACCESSLOGREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogResult.h b/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogResult.h new file mode 100644 index 000000000..f358b75e3 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/EnableLoadBalancerAccessLogResult.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_ALB_MODEL_ENABLELOADBALANCERACCESSLOGRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_ENABLELOADBALANCERACCESSLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT EnableLoadBalancerAccessLogResult : public ServiceResult + { + public: + + + EnableLoadBalancerAccessLogResult(); + explicit EnableLoadBalancerAccessLogResult(const std::string &payload); + ~EnableLoadBalancerAccessLogResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_ENABLELOADBALANCERACCESSLOGRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeRequest.h b/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeRequest.h new file mode 100644 index 000000000..cb7170a9e --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT GetHealthCheckTemplateAttributeRequest : public RpcServiceRequest { +public: + GetHealthCheckTemplateAttributeRequest(); + ~GetHealthCheckTemplateAttributeRequest(); + std::string getHealthCheckTemplateId() const; + void setHealthCheckTemplateId(const std::string &healthCheckTemplateId); + +private: + std::string healthCheckTemplateId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h b/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h new file mode 100644 index 000000000..7c8fde3e1 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetHealthCheckTemplateAttributeResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT GetHealthCheckTemplateAttributeResult : public ServiceResult + { + public: + + + GetHealthCheckTemplateAttributeResult(); + explicit GetHealthCheckTemplateAttributeResult(const std::string &payload); + ~GetHealthCheckTemplateAttributeResult(); + std::string getHealthCheckTemplateId()const; + bool getServiceManagedEnabled()const; + int getHealthCheckInterval()const; + int getUnhealthyThreshold()const; + std::string getHealthCheckHost()const; + std::string getHealthCheckPath()const; + std::string getHealthCheckTemplateName()const; + std::string getHealthCheckHttpVersion()const; + int getHealthCheckTimeout()const; + bool getHealthCheckTcpFastCloseEnabled()const; + std::vector getHealthCheckHttpCodes()const; + std::vector getHealthCheckCodes()const; + int getHealthCheckConnectPort()const; + std::string getHealthCheckMethod()const; + int getHealthyThreshold()const; + std::string getServiceManagedMode()const; + std::string getHealthCheckProtocol()const; + + protected: + void parse(const std::string &payload); + private: + std::string healthCheckTemplateId_; + bool serviceManagedEnabled_; + int healthCheckInterval_; + int unhealthyThreshold_; + std::string healthCheckHost_; + std::string healthCheckPath_; + std::string healthCheckTemplateName_; + std::string healthCheckHttpVersion_; + int healthCheckTimeout_; + bool healthCheckTcpFastCloseEnabled_; + std::vector healthCheckHttpCodes_; + std::vector healthCheckCodes_; + int healthCheckConnectPort_; + std::string healthCheckMethod_; + int healthyThreshold_; + std::string serviceManagedMode_; + std::string healthCheckProtocol_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_GETHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/GetListenerAttributeRequest.h b/alb/include/alibabacloud/alb/model/GetListenerAttributeRequest.h new file mode 100644 index 000000000..b920aac40 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetListenerAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT GetListenerAttributeRequest : public RpcServiceRequest { +public: + GetListenerAttributeRequest(); + ~GetListenerAttributeRequest(); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + +private: + std::string listenerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/GetListenerAttributeResult.h b/alb/include/alibabacloud/alb/model/GetListenerAttributeResult.h new file mode 100644 index 000000000..4305495e0 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetListenerAttributeResult.h @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_GETLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_GETLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT GetListenerAttributeResult : public ServiceResult + { + public: + struct AclConfig + { + struct AclRelation + { + std::string status; + std::string aclId; + }; + std::vector aclRelations; + std::string aclType; + }; + struct LogConfig + { + struct AccessLogTracingConfig + { + std::string tracingType; + int tracingSample; + bool tracingEnabled; + }; + bool accessLogRecordCustomizedHeadersEnabled; + AccessLogTracingConfig accessLogTracingConfig; + }; + struct QuicConfig + { + std::string quicListenerId; + bool quicUpgradeEnabled; + }; + struct XForwardedForConfig + { + std::string xForwardedForClientCertFingerprintAlias; + bool xForwardedForClientCertFingerprintEnabled; + std::string xForwardedForClientCertIssuerDNAlias; + std::string xForwardedForClientCertClientVerifyAlias; + bool xForwardedForClientCertSubjectDNEnabled; + bool xForwardedForSLBIdEnabled; + std::string xForwardedForClientCertSubjectDNAlias; + bool xForwardedForProtoEnabled; + bool xForwardedForClientSrcPortEnabled; + bool xForwardedForEnabled; + bool xForwardedForSLBPortEnabled; + bool xForwardedForClientCertIssuerDNEnabled; + bool xForwardedForClientCertClientVerifyEnabled; + }; + struct Certificate + { + std::string certificateId; + }; + struct Certificate1 + { + std::string status; + bool isDefault; + std::string certificateId; + }; + struct DefaultAction + { + struct ForwardGroupConfig + { + struct ServerGroupTuple + { + std::string serverGroupId; + }; + std::vector serverGroupTuples; + }; + std::string type; + ForwardGroupConfig forwardGroupConfig; + }; + + + GetListenerAttributeResult(); + explicit GetListenerAttributeResult(const std::string &payload); + ~GetListenerAttributeResult(); + bool getCaEnabled()const; + bool getServiceManagedEnabled()const; + int getListenerPort()const; + int getRequestTimeout()const; + bool getHttp2Enabled()const; + std::vector getDefaultActions()const; + std::vector getCertificates()const; + int getIdleTimeout()const; + std::string getLoadBalancerId()const; + QuicConfig getQuicConfig()const; + std::string getListenerProtocol()const; + bool getGzipEnabled()const; + std::string getListenerStatus()const; + std::string getSecurityPolicyId()const; + std::string getListenerDescription()const; + AclConfig getAclConfig()const; + std::string getServiceManagedMode()const; + XForwardedForConfig getXForwardedForConfig()const; + LogConfig getLogConfig()const; + std::vector getCaCertificates()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + bool caEnabled_; + bool serviceManagedEnabled_; + int listenerPort_; + int requestTimeout_; + bool http2Enabled_; + std::vector defaultActions_; + std::vector certificates_; + int idleTimeout_; + std::string loadBalancerId_; + QuicConfig quicConfig_; + std::string listenerProtocol_; + bool gzipEnabled_; + std::string listenerStatus_; + std::string securityPolicyId_; + std::string listenerDescription_; + AclConfig aclConfig_; + std::string serviceManagedMode_; + XForwardedForConfig xForwardedForConfig_; + LogConfig logConfig_; + std::vector caCertificates_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_GETLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h b/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..b4c79e819 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT GetLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + GetLoadBalancerAttributeRequest(); + ~GetLoadBalancerAttributeRequest(); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h b/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h new file mode 100644 index 000000000..5ec006ad9 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/GetLoadBalancerAttributeResult.h @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT GetLoadBalancerAttributeResult : public ServiceResult + { + public: + struct AccessLogConfig + { + std::string logStore; + std::string logProject; + }; + struct DeletionProtectionConfig + { + bool enabled; + std::string enabledTime; + }; + struct LoadBalancerBillingConfig + { + int internetBandwidth; + std::string payType; + std::string internetChargeType; + }; + struct ModificationProtectionConfig + { + std::string status; + std::string reason; + }; + struct LoadBalancerOperationLock + { + std::string lockReason; + std::string lockType; + }; + struct Tag + { + std::string value; + std::string key; + }; + struct ZoneMapping + { + struct LoadBalancerAddress + { + std::string address; + }; + std::string zoneId; + std::string vSwitchId; + std::vector loadBalancerAddresses; + }; + + + GetLoadBalancerAttributeResult(); + explicit GetLoadBalancerAttributeResult(const std::string &payload); + ~GetLoadBalancerAttributeResult(); + bool getServiceManagedEnabled()const; + std::string getLoadBalancerEdition()const; + std::string getResourceGroupId()const; + LoadBalancerBillingConfig getLoadBalancerBillingConfig()const; + std::vector getFeatureLabels()const; + std::string getCreateTime()const; + std::string getLoadBalancerId()const; + std::vector getZoneMappings()const; + std::string getDNSName()const; + ModificationProtectionConfig getModificationProtectionConfig()const; + std::string getLoadBalancerName()const; + AccessLogConfig getAccessLogConfig()const; + int getBandwidthCapacity()const; + DeletionProtectionConfig getDeletionProtectionConfig()const; + std::string getLoadBalancerBussinessStatus()const; + std::string getVpcId()const; + std::string getServiceManagedMode()const; + std::string getBandwidthPackageId()const; + std::string getRegionId()const; + std::string getAddressAllocatedMode()const; + std::string getAddressType()const; + std::string getLoadBalancerStatus()const; + std::vector getTags()const; + std::vector getLoadBalancerOperationLocks()const; + + protected: + void parse(const std::string &payload); + private: + bool serviceManagedEnabled_; + std::string loadBalancerEdition_; + std::string resourceGroupId_; + LoadBalancerBillingConfig loadBalancerBillingConfig_; + std::vector featureLabels_; + std::string createTime_; + std::string loadBalancerId_; + std::vector zoneMappings_; + std::string dNSName_; + ModificationProtectionConfig modificationProtectionConfig_; + std::string loadBalancerName_; + AccessLogConfig accessLogConfig_; + int bandwidthCapacity_; + DeletionProtectionConfig deletionProtectionConfig_; + std::string loadBalancerBussinessStatus_; + std::string vpcId_; + std::string serviceManagedMode_; + std::string bandwidthPackageId_; + std::string regionId_; + std::string addressAllocatedMode_; + std::string addressType_; + std::string loadBalancerStatus_; + std::vector tags_; + std::vector loadBalancerOperationLocks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListAclEntriesRequest.h b/alb/include/alibabacloud/alb/model/ListAclEntriesRequest.h new file mode 100644 index 000000000..239afa2fb --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclEntriesRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListAclEntriesRequest : public RpcServiceRequest { +public: + ListAclEntriesRequest(); + ~ListAclEntriesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getAclId() const; + void setAclId(const std::string &aclId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string nextToken_; + std::string aclId_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListAclEntriesResult.h b/alb/include/alibabacloud/alb/model/ListAclEntriesResult.h new file mode 100644 index 000000000..c08e7bc5b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclEntriesResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListAclEntriesResult : public ServiceResult + { + public: + struct AclEntry + { + std::string status; + std::string entry; + std::string description; + }; + + + ListAclEntriesResult(); + explicit ListAclEntriesResult(const std::string &payload); + ~ListAclEntriesResult(); + std::vector getAclEntries()const; + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclEntries_; + int totalCount_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLENTRIESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListAclRelationsRequest.h b/alb/include/alibabacloud/alb/model/ListAclRelationsRequest.h new file mode 100644 index 000000000..aea6ea29c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclRelationsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListAclRelationsRequest : public RpcServiceRequest { +public: + ListAclRelationsRequest(); + ~ListAclRelationsRequest(); + std::vector getAclIds() const; + void setAclIds(const std::vector &aclIds); + +private: + std::vector aclIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListAclRelationsResult.h b/alb/include/alibabacloud/alb/model/ListAclRelationsResult.h new file mode 100644 index 000000000..8db55e4ee --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclRelationsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListAclRelationsResult : public ServiceResult + { + public: + struct AclRelation + { + struct RelatedListener + { + std::string status; + int listenerPort; + std::string loadBalancerId; + std::string listenerProtocol; + std::string listenerId; + }; + std::string aclId; + std::vector relatedListeners; + }; + + + ListAclRelationsResult(); + explicit ListAclRelationsResult(const std::string &payload); + ~ListAclRelationsResult(); + std::vector getAclRelations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclRelations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLRELATIONSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListAclsRequest.h b/alb/include/alibabacloud/alb/model/ListAclsRequest.h new file mode 100644 index 000000000..4bb72fdd0 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclsRequest.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_ALB_MODEL_LISTACLSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListAclsRequest : public RpcServiceRequest { +public: + ListAclsRequest(); + ~ListAclsRequest(); + std::vector getAclIds() const; + void setAclIds(const std::vector &aclIds); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getAclNames() const; + void setAclNames(const std::vector &aclNames); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector aclIds_; + std::string addressIPVersion_; + std::string resourceGroupId_; + std::string nextToken_; + std::vector aclNames_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListAclsResult.h b/alb/include/alibabacloud/alb/model/ListAclsResult.h new file mode 100644 index 000000000..ecc98845a --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAclsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTACLSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListAclsResult : public ServiceResult + { + public: + struct Acl + { + bool serviceManagedEnabled; + std::string aclStatus; + std::string resourceGroupId; + std::string aclId; + std::string addressIPVersion; + std::string serviceManagedMode; + std::string aclName; + }; + + + ListAclsResult(); + explicit ListAclsResult(const std::string &payload); + ~ListAclsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getAcls()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector acls_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTACLSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListAsynJobsRequest.h b/alb/include/alibabacloud/alb/model/ListAsynJobsRequest.h new file mode 100644 index 000000000..f77b64061 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAsynJobsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListAsynJobsRequest : public RpcServiceRequest { +public: + ListAsynJobsRequest(); + ~ListAsynJobsRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getApiName() const; + void setApiName(const std::string &apiName); + std::vector getJobIds() const; + void setJobIds(const std::vector &jobIds); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::vector getResourceIds() const; + void setResourceIds(const std::vector &resourceIds); + +private: + std::string nextToken_; + long endTime_; + long beginTime_; + std::string resourceType_; + std::string apiName_; + std::vector jobIds_; + long maxResults_; + std::vector resourceIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListAsynJobsResult.h b/alb/include/alibabacloud/alb/model/ListAsynJobsResult.h new file mode 100644 index 000000000..5c90ecb8d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListAsynJobsResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListAsynJobsResult : public ServiceResult + { + public: + struct Job + { + std::string status; + long modifyTime; + std::string apiName; + std::string resourceId; + long createTime; + std::string resourceType; + std::string errorCode; + std::string id; + std::string errorMessage; + std::string operateType; + }; + + + ListAsynJobsResult(); + explicit ListAsynJobsResult(const std::string &payload); + ~ListAsynJobsResult(); + long getTotalCount()const; + std::string getNextToken()const; + std::vector getJobs()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + std::vector jobs_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTASYNJOBSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesRequest.h b/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesRequest.h new file mode 100644 index 000000000..f8f0b1dbe --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesRequest.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_ALB_MODEL_LISTHEALTHCHECKTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTHEALTHCHECKTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListHealthCheckTemplatesRequest : public RpcServiceRequest { +public: + ListHealthCheckTemplatesRequest(); + ~ListHealthCheckTemplatesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getHealthCheckTemplateNames() const; + void setHealthCheckTemplateNames(const std::vector &healthCheckTemplateNames); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getHealthCheckTemplateIds() const; + void setHealthCheckTemplateIds(const std::vector &healthCheckTemplateIds); + +private: + std::string nextToken_; + std::vector healthCheckTemplateNames_; + int maxResults_; + std::vector healthCheckTemplateIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTHEALTHCHECKTEMPLATESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesResult.h b/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesResult.h new file mode 100644 index 000000000..d906af1e1 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListHealthCheckTemplatesResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTHEALTHCHECKTEMPLATESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTHEALTHCHECKTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListHealthCheckTemplatesResult : public ServiceResult + { + public: + struct HealthCheckTemplate + { + std::string healthCheckTemplateId; + bool serviceManagedEnabled; + int healthCheckInterval; + int unhealthyThreshold; + std::string healthCheckHost; + std::string healthCheckPath; + std::string healthCheckTemplateName; + std::string healthCheckHttpVersion; + int healthCheckTimeout; + bool healthCheckTcpFastCloseEnabled; + int healthCheckConnectPort; + std::vector healthCheckHttpCodes; + std::vector healthCheckCodes; + std::string healthCheckMethod; + int healthyThreshold; + std::string serviceManagedMode; + std::string healthCheckProtocol; + }; + + + ListHealthCheckTemplatesResult(); + explicit ListHealthCheckTemplatesResult(const std::string &payload); + ~ListHealthCheckTemplatesResult(); + int getTotalCount()const; + std::vector getHealthCheckTemplates()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector healthCheckTemplates_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTHEALTHCHECKTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListListenerCertificatesRequest.h b/alb/include/alibabacloud/alb/model/ListListenerCertificatesRequest.h new file mode 100644 index 000000000..4248ec881 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListListenerCertificatesRequest.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_ALB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListListenerCertificatesRequest : public RpcServiceRequest { +public: + ListListenerCertificatesRequest(); + ~ListListenerCertificatesRequest(); + std::string getCertificateType() const; + void setCertificateType(const std::string &certificateType); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string certificateType_; + std::string listenerId_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListListenerCertificatesResult.h b/alb/include/alibabacloud/alb/model/ListListenerCertificatesResult.h new file mode 100644 index 000000000..6c7570826 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListListenerCertificatesResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListListenerCertificatesResult : public ServiceResult + { + public: + struct CertificateModel + { + bool isDefault; + std::string status; + std::string certificateType; + std::string certificateId; + }; + + + ListListenerCertificatesResult(); + explicit ListListenerCertificatesResult(const std::string &payload); + ~ListListenerCertificatesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getCertificates()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector certificates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListListenersRequest.h b/alb/include/alibabacloud/alb/model/ListListenersRequest.h new file mode 100644 index 000000000..0e61541d3 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListListenersRequest.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_ALB_MODEL_LISTLISTENERSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLISTENERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListListenersRequest : public RpcServiceRequest { +public: + ListListenersRequest(); + ~ListListenersRequest(); + std::vector getLoadBalancerIds() const; + void setLoadBalancerIds(const std::vector &loadBalancerIds); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + bool getAccessLogRecordCustomizedHeadersEnabled() const; + void setAccessLogRecordCustomizedHeadersEnabled(bool accessLogRecordCustomizedHeadersEnabled); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::vector getListenerIds() const; + void setListenerIds(const std::vector &listenerIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector loadBalancerIds_; + std::string nextToken_; + bool accessLogRecordCustomizedHeadersEnabled_; + std::string listenerProtocol_; + std::vector listenerIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLISTENERSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListListenersResult.h b/alb/include/alibabacloud/alb/model/ListListenersResult.h new file mode 100644 index 000000000..33a83ba6b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListListenersResult.h @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_LISTLISTENERSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLISTENERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListListenersResult : public ServiceResult + { + public: + struct Listener + { + struct LogConfig + { + struct AccessLogTracingConfig + { + std::string tracingType; + int tracingSample; + bool tracingEnabled; + }; + bool accessLogRecordCustomizedHeadersEnabled; + AccessLogTracingConfig accessLogTracingConfig; + }; + struct QuicConfig + { + std::string quicListenerId; + bool quicUpgradeEnabled; + }; + struct XForwardedForConfig + { + std::string xForwardedForClientCertFingerprintAlias; + bool xForwardedForClientCertFingerprintEnabled; + std::string xForwardedForClientCertIssuerDNAlias; + std::string xForwardedForClientCertClientVerifyAlias; + bool xForwardedForClientCertSubjectDNEnabled; + bool xForwardedForSLBIdEnabled; + std::string xForwardedForClientCertSubjectDNAlias; + bool xForwardedForProtoEnabled; + bool xForwardedForClientSrcPortEnabled; + bool xForwardedForEnabled; + bool xForwardedForSLBPortEnabled; + bool xForwardedForClientCertIssuerDNEnabled; + bool xForwardedForClientCertClientVerifyEnabled; + }; + struct DefaultAction + { + struct ForwardGroupConfig + { + struct ServerGroupTuple + { + std::string serverGroupId; + }; + std::vector serverGroupTuples; + }; + std::string type; + ForwardGroupConfig forwardGroupConfig; + }; + int listenerPort; + bool serviceManagedEnabled; + int requestTimeout; + bool http2Enabled; + std::vector defaultActions; + int idleTimeout; + std::string loadBalancerId; + QuicConfig quicConfig; + std::string listenerProtocol; + bool gzipEnabled; + std::string listenerStatus; + std::string securityPolicyId; + std::string listenerDescription; + std::string serviceManagedMode; + XForwardedForConfig xForwardedForConfig; + LogConfig logConfig; + std::string listenerId; + }; + + + ListListenersResult(); + explicit ListListenersResult(const std::string &payload); + ~ListListenersResult(); + std::vector getListeners()const; + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector listeners_; + int totalCount_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLISTENERSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListLoadBalancersRequest.h b/alb/include/alibabacloud/alb/model/ListLoadBalancersRequest.h new file mode 100644 index 000000000..46736183d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListLoadBalancersRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_LISTLOADBALANCERSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLOADBALANCERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListLoadBalancersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListLoadBalancersRequest(); + ~ListLoadBalancersRequest(); + std::vector getLoadBalancerNames() const; + void setLoadBalancerNames(const std::vector &loadBalancerNames); + std::vector getLoadBalancerIds() const; + void setLoadBalancerIds(const std::vector &loadBalancerIds); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getLoadBalancerBussinessStatus() const; + void setLoadBalancerBussinessStatus(const std::string &loadBalancerBussinessStatus); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::vector getVpcIds() const; + void setVpcIds(const std::vector &vpcIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getLoadBalancerStatus() const; + void setLoadBalancerStatus(const std::string &loadBalancerStatus); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::vector loadBalancerNames_; + std::vector loadBalancerIds_; + std::string resourceGroupId_; + std::string nextToken_; + std::string loadBalancerBussinessStatus_; + std::string addressType_; + std::vector vpcIds_; + std::vector tag_; + std::string address_; + std::string loadBalancerStatus_; + std::string internetChargeType_; + int maxResults_; + std::string zoneId_; + std::string payType_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLOADBALANCERSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListLoadBalancersResult.h b/alb/include/alibabacloud/alb/model/ListLoadBalancersResult.h new file mode 100644 index 000000000..dfeffb757 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListLoadBalancersResult.h @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_LISTLOADBALANCERSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTLOADBALANCERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListLoadBalancersResult : public ServiceResult + { + public: + struct LoadBalancer + { + struct AccessLogConfig + { + std::string logStore; + std::string logProject; + }; + struct DeletionProtectionConfig + { + bool enabled; + std::string enabledTime; + }; + struct LoadBalancerBillingConfig + { + int internetBandwidth; + std::string payType; + std::string internetChargeType; + }; + struct ModificationProtectionConfig + { + std::string status; + std::string reason; + }; + struct LoadBalancerOperationLock + { + std::string lockReason; + std::string lockType; + }; + struct Tag + { + std::string value; + std::string key; + }; + bool serviceManagedEnabled; + std::string loadBalancerEdition; + std::string resourceGroupId; + LoadBalancerBillingConfig loadBalancerBillingConfig; + std::string createTime; + std::string loadBalancerId; + std::string dNSName; + ModificationProtectionConfig modificationProtectionConfig; + std::string loadBalancerName; + AccessLogConfig accessLogConfig; + int bandwidthCapacity; + DeletionProtectionConfig deletionProtectionConfig; + std::string loadBalancerBussinessStatus; + std::string vpcId; + std::string serviceManagedMode; + std::string bandwidthPackageId; + std::string addressAllocatedMode; + std::string addressType; + std::string loadBalancerStatus; + std::vector tags; + std::vector loadBalancerOperationLocks; + }; + + + ListLoadBalancersResult(); + explicit ListLoadBalancersResult(const std::string &payload); + ~ListLoadBalancersResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getLoadBalancers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector loadBalancers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTLOADBALANCERSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListRulesRequest.h b/alb/include/alibabacloud/alb/model/ListRulesRequest.h new file mode 100644 index 000000000..e9c468da8 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListRulesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTRULESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListRulesRequest : public RpcServiceRequest { +public: + ListRulesRequest(); + ~ListRulesRequest(); + std::vector getLoadBalancerIds() const; + void setLoadBalancerIds(const std::vector &loadBalancerIds); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::vector getRuleIds() const; + void setRuleIds(const std::vector &ruleIds); + std::vector getListenerIds() const; + void setListenerIds(const std::vector &listenerIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector loadBalancerIds_; + std::string listenerId_; + std::string nextToken_; + std::string direction_; + std::vector ruleIds_; + std::vector listenerIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTRULESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListRulesResult.h b/alb/include/alibabacloud/alb/model/ListRulesResult.h new file mode 100644 index 000000000..fcbfdb036 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListRulesResult.h @@ -0,0 +1,210 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_LISTRULESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListRulesResult : public ServiceResult + { + public: + struct Rule + { + struct Action + { + struct FixedResponseConfig + { + std::string httpCode; + std::string contentType; + std::string content; + }; + struct ForwardGroupConfig + { + struct ServerGroupStickySession + { + int timeout; + bool enabled; + }; + struct ServerGroupTuple + { + std::string serverGroupId; + int weight; + }; + ServerGroupStickySession serverGroupStickySession; + std::vector serverGroupTuples; + }; + struct InsertHeaderConfig + { + bool coverEnabled; + std::string valueType; + std::string value; + std::string key; + }; + struct RedirectConfig + { + std::string path; + std::string httpCode; + std::string query; + std::string port; + std::string host; + std::string protocol; + }; + struct RemoveHeaderConfig + { + std::string key; + }; + struct RewriteConfig + { + std::string path; + std::string query; + std::string host; + }; + struct TrafficMirrorConfig + { + struct MirrorGroupConfig + { + struct ServerGroupTuple2 + { + std::string serverGroupId; + int weight; + }; + std::vector serverGroupTuples1; + }; + MirrorGroupConfig mirrorGroupConfig; + std::string targetType; + }; + struct TrafficLimitConfig + { + int qPS; + }; + int order; + FixedResponseConfig fixedResponseConfig; + std::string type; + RedirectConfig redirectConfig; + ForwardGroupConfig forwardGroupConfig; + RemoveHeaderConfig removeHeaderConfig; + InsertHeaderConfig insertHeaderConfig; + RewriteConfig rewriteConfig; + TrafficLimitConfig trafficLimitConfig; + TrafficMirrorConfig trafficMirrorConfig; + }; + struct Condition + { + struct CookieConfig + { + struct Value + { + std::string value; + std::string key; + }; + std::vector values; + }; + struct HeaderConfig + { + std::vector values3; + std::string key; + }; + struct HostConfig + { + std::vector values4; + }; + struct MethodConfig + { + std::vector values5; + }; + struct PathConfig + { + std::vector values6; + }; + struct QueryStringConfig + { + struct Value8 + { + std::string value; + std::string key; + }; + std::vector values7; + }; + struct SourceIpConfig + { + std::vector values9; + }; + struct ResponseStatusCodeConfig + { + std::vector values10; + }; + struct ResponseHeaderConfig + { + std::string key; + std::vector values11; + }; + MethodConfig methodConfig; + PathConfig pathConfig; + std::string type; + ResponseHeaderConfig responseHeaderConfig; + HostConfig hostConfig; + QueryStringConfig queryStringConfig; + CookieConfig cookieConfig; + ResponseStatusCodeConfig responseStatusCodeConfig; + HeaderConfig headerConfig; + SourceIpConfig sourceIpConfig; + }; + std::vector ruleActions; + bool serviceManagedEnabled; + int priority; + std::string ruleId; + std::string serviceManagedMode; + std::vector ruleConditions; + std::string loadBalancerId; + std::string ruleStatus; + std::string direction; + std::string ruleName; + std::string listenerId; + }; + + + ListRulesResult(); + explicit ListRulesResult(const std::string &payload); + ~ListRulesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector rules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTRULESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListSecurityPoliciesRequest.h b/alb/include/alibabacloud/alb/model/ListSecurityPoliciesRequest.h new file mode 100644 index 000000000..62746b3a2 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSecurityPoliciesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListSecurityPoliciesRequest : public RpcServiceRequest { +public: + ListSecurityPoliciesRequest(); + ~ListSecurityPoliciesRequest(); + std::vector getSecurityPolicyNames() const; + void setSecurityPolicyNames(const std::vector &securityPolicyNames); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getSecurityPolicyIds() const; + void setSecurityPolicyIds(const std::vector &securityPolicyIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector securityPolicyNames_; + std::string resourceGroupId_; + std::string nextToken_; + std::vector securityPolicyIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListSecurityPoliciesResult.h b/alb/include/alibabacloud/alb/model/ListSecurityPoliciesResult.h new file mode 100644 index 000000000..f38413eeb --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSecurityPoliciesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListSecurityPoliciesResult : public ServiceResult + { + public: + struct SecurityPolicy + { + bool serviceManagedEnabled; + std::vector ciphers; + std::string securityPolicyId; + std::string resourceGroupId; + std::string securityPolicyStatus; + std::string serviceManagedMode; + std::vector tLSVersions; + std::string securityPolicyName; + }; + + + ListSecurityPoliciesResult(); + explicit ListSecurityPoliciesResult(const std::string &payload); + ~ListSecurityPoliciesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getSecurityPolicies()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector securityPolicies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICIESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsRequest.h b/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsRequest.h new file mode 100644 index 000000000..b99a602cc --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListSecurityPolicyRelationsRequest : public RpcServiceRequest { +public: + ListSecurityPolicyRelationsRequest(); + ~ListSecurityPolicyRelationsRequest(); + std::vector getSecurityPolicyIds() const; + void setSecurityPolicyIds(const std::vector &securityPolicyIds); + +private: + std::vector securityPolicyIds_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsResult.h b/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsResult.h new file mode 100644 index 000000000..3da8526b2 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSecurityPolicyRelationsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListSecurityPolicyRelationsResult : public ServiceResult + { + public: + struct SecrityPolicyRelation + { + struct RelatedListener + { + long listenerPort; + std::string loadBalancerId; + std::string listenerProtocol; + std::string listenerId; + }; + std::string securityPolicyId; + std::vector relatedListeners; + }; + + + ListSecurityPolicyRelationsResult(); + explicit ListSecurityPolicyRelationsResult(const std::string &payload); + ~ListSecurityPolicyRelationsResult(); + std::vector getSecrityPolicyRelations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector secrityPolicyRelations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSECURITYPOLICYRELATIONSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListServerGroupServersRequest.h b/alb/include/alibabacloud/alb/model/ListServerGroupServersRequest.h new file mode 100644 index 000000000..b41e5b96e --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListServerGroupServersRequest.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListServerGroupServersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListServerGroupServersRequest(); + ~ListServerGroupServersRequest(); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getServerIp() const; + void setServerIp(const std::string &serverIp); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getServerId() const; + void setServerId(const std::string &serverId); + std::vector getServerIds() const; + void setServerIds(const std::vector &serverIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string serverGroupId_; + std::string nextToken_; + std::string serverIp_; + std::vector tag_; + std::string serverId_; + std::vector serverIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListServerGroupServersResult.h b/alb/include/alibabacloud/alb/model/ListServerGroupServersResult.h new file mode 100644 index 000000000..70c336e15 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListServerGroupServersResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListServerGroupServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string status; + std::string serverType; + std::string description; + std::string serverId; + int port; + std::string serverIp; + std::string serverGroupId; + int weight; + }; + + + ListServerGroupServersResult(); + explicit ListServerGroupServersResult(const std::string &payload); + ~ListServerGroupServersResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getServers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector servers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListServerGroupsRequest.h b/alb/include/alibabacloud/alb/model/ListServerGroupsRequest.h new file mode 100644 index 000000000..87a3c4c6a --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListServerGroupsRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListServerGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListServerGroupsRequest(); + ~ListServerGroupsRequest(); + std::vector getServerGroupNames() const; + void setServerGroupNames(const std::vector &serverGroupNames); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getShowRelationEnabled() const; + void setShowRelationEnabled(bool showRelationEnabled); + std::vector getServerGroupIds() const; + void setServerGroupIds(const std::vector &serverGroupIds); + std::string getServerGroupType() const; + void setServerGroupType(const std::string &serverGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector serverGroupNames_; + std::string resourceGroupId_; + std::string nextToken_; + std::vector tag_; + bool showRelationEnabled_; + std::vector serverGroupIds_; + std::string serverGroupType_; + std::string vpcId_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListServerGroupsResult.h b/alb/include/alibabacloud/alb/model/ListServerGroupsResult.h new file mode 100644 index 000000000..a1de4c88a --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListServerGroupsResult.h @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_LISTSERVERGROUPSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListServerGroupsResult : public ServiceResult + { + public: + struct ServerGroup + { + struct HealthCheckConfig + { + int healthCheckInterval; + int unhealthyThreshold; + std::string healthCheckHost; + std::string healthCheckPath; + std::string healthCheckHttpVersion; + bool healthCheckEnabled; + int healthCheckTimeout; + bool healthCheckTcpFastCloseEnabled; + int healthCheckConnectPort; + std::vector healthCheckHttpCodes; + std::vector healthCheckCodes; + std::string healthCheckMethod; + int healthyThreshold; + std::string healthCheckProtocol; + }; + struct StickySessionConfig + { + std::string cookie; + int cookieTimeout; + std::string stickySessionType; + bool stickySessionEnabled; + }; + struct Tag + { + std::string value; + std::string key; + }; + bool serviceManagedEnabled; + std::vector relatedLoadBalancerIds; + std::string resourceGroupId; + std::string scheduler; + StickySessionConfig stickySessionConfig; + std::string serverGroupId; + std::string serverGroupType; + std::string serverGroupStatus; + std::string vpcId; + std::string serviceManagedMode; + HealthCheckConfig healthCheckConfig; + std::string protocol; + std::vector tags; + std::string serverGroupName; + }; + + + ListServerGroupsResult(); + explicit ListServerGroupsResult(const std::string &payload); + ~ListServerGroupsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getServerGroups()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector serverGroups_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSERVERGROUPSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesRequest.h b/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesRequest.h new file mode 100644 index 000000000..ee5d4a502 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListSystemSecurityPoliciesRequest : public RpcServiceRequest { +public: + ListSystemSecurityPoliciesRequest(); + ~ListSystemSecurityPoliciesRequest(); + +private: +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesResult.h b/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesResult.h new file mode 100644 index 000000000..19f9b9462 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListSystemSecurityPoliciesResult.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_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListSystemSecurityPoliciesResult : public ServiceResult + { + public: + struct SecurityPolicy + { + std::vector ciphers; + std::string securityPolicyId; + std::vector tLSVersions; + }; + + + ListSystemSecurityPoliciesResult(); + explicit ListSystemSecurityPoliciesResult(const std::string &payload); + ~ListSystemSecurityPoliciesResult(); + std::vector getSecurityPolicies()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityPolicies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListTagKeysRequest.h b/alb/include/alibabacloud/alb/model/ListTagKeysRequest.h new file mode 100644 index 000000000..5cf387b9c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagKeysRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListTagKeysRequest : public RpcServiceRequest { +public: + ListTagKeysRequest(); + ~ListTagKeysRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string nextToken_; + std::string keyword_; + std::string resourceType_; + int maxResults_; + std::string category_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListTagKeysResult.h b/alb/include/alibabacloud/alb/model/ListTagKeysResult.h new file mode 100644 index 000000000..5f090610d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagKeysResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListTagKeysResult : public ServiceResult + { + public: + struct TagKey + { + std::string category; + std::string tagKey; + }; + + + ListTagKeysResult(); + explicit ListTagKeysResult(const std::string &payload); + ~ListTagKeysResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getTagKeys()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector tagKeys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGKEYSRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListTagResourcesRequest.h b/alb/include/alibabacloud/alb/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..1831bb407 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagResourcesRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; + int maxResults_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListTagResourcesResult.h b/alb/include/alibabacloud/alb/model/ListTagResourcesResult.h new file mode 100644 index 000000000..b61224171 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagResourcesResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getTagResources()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector tagResources_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ListTagValuesRequest.h b/alb/include/alibabacloud/alb/model/ListTagValuesRequest.h new file mode 100644 index 000000000..49230f407 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagValuesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_LISTTAGVALUESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ListTagValuesRequest : public RpcServiceRequest { +public: + ListTagValuesRequest(); + ~ListTagValuesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string nextToken_; + std::string resourceId_; + std::string resourceType_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGVALUESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ListTagValuesResult.h b/alb/include/alibabacloud/alb/model/ListTagValuesResult.h new file mode 100644 index 000000000..ecd6af62e --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ListTagValuesResult.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_ALB_MODEL_LISTTAGVALUESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_LISTTAGVALUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ListTagValuesResult : public ServiceResult + { + public: + + + ListTagValuesResult(); + explicit ListTagValuesResult(const std::string &payload); + ~ListTagValuesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getTagValues()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector tagValues_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_LISTTAGVALUESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/MoveResourceGroupRequest.h b/alb/include/alibabacloud/alb/model/MoveResourceGroupRequest.h new file mode 100644 index 000000000..a2584d998 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/MoveResourceGroupRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT MoveResourceGroupRequest : public RpcServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + std::string resourceId_; + std::string resourceType_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/MoveResourceGroupResult.h b/alb/include/alibabacloud/alb/model/MoveResourceGroupResult.h new file mode 100644 index 000000000..767f8d467 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/MoveResourceGroupResult.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_ALB_MODEL_MOVERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_MOVERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT MoveResourceGroupResult : public ServiceResult + { + public: + + + MoveResourceGroupResult(); + explicit MoveResourceGroupResult(const std::string &payload); + ~MoveResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_MOVERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.h b/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.h new file mode 100644 index 000000000..cdbded6a6 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclRequest.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_ALB_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT RemoveEntriesFromAclRequest : public RpcServiceRequest { +public: + RemoveEntriesFromAclRequest(); + ~RemoveEntriesFromAclRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getEntries() const; + void setEntries(const std::vector &entries); + +private: + std::string clientToken_; + std::string aclId_; + bool dryRun_; + std::vector entries_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclResult.h b/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclResult.h new file mode 100644 index 000000000..218b5afd7 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/RemoveEntriesFromAclResult.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_ALB_MODEL_REMOVEENTRIESFROMACLRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_REMOVEENTRIESFROMACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT RemoveEntriesFromAclResult : public ServiceResult + { + public: + + + RemoveEntriesFromAclResult(); + explicit RemoveEntriesFromAclResult(const std::string &payload); + ~RemoveEntriesFromAclResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_REMOVEENTRIESFROMACLRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupRequest.h b/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupRequest.h new file mode 100644 index 000000000..7f3ca88b6 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupRequest.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_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT RemoveServersFromServerGroupRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverType; + int port; + std::string serverIp; + std::string serverId; + }; + RemoveServersFromServerGroupRequest(); + ~RemoveServersFromServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupResult.h b/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupResult.h new file mode 100644 index 000000000..542dfb125 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/RemoveServersFromServerGroupResult.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_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT RemoveServersFromServerGroupResult : public ServiceResult + { + public: + + + RemoveServersFromServerGroupResult(); + explicit RemoveServersFromServerGroupResult(const std::string &payload); + ~RemoveServersFromServerGroupResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupRequest.h b/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupRequest.h new file mode 100644 index 000000000..48a6bda76 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_REPLACESERVERSINSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_REPLACESERVERSINSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT ReplaceServersInServerGroupRequest : public RpcServiceRequest { +public: + struct AddedServers { + std::string serverType; + int port; + std::string description; + std::string serverIp; + int weight; + std::string serverId; + }; + struct RemovedServers { + std::string serverType; + int port; + std::string serverIp; + std::string serverId; + }; + ReplaceServersInServerGroupRequest(); + ~ReplaceServersInServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getAddedServers() const; + void setAddedServers(const std::vector &addedServers); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getRemovedServers() const; + void setRemovedServers(const std::vector &removedServers); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector addedServers_; + bool dryRun_; + std::vector removedServers_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_REPLACESERVERSINSERVERGROUPREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.h b/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.h new file mode 100644 index 000000000..4ac5f8ea2 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/ReplaceServersInServerGroupResult.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_ALB_MODEL_REPLACESERVERSINSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_REPLACESERVERSINSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT ReplaceServersInServerGroupResult : public ServiceResult + { + public: + + + ReplaceServersInServerGroupResult(); + explicit ReplaceServersInServerGroupResult(const std::string &payload); + ~ReplaceServersInServerGroupResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_REPLACESERVERSINSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/StartListenerRequest.h b/alb/include/alibabacloud/alb/model/StartListenerRequest.h new file mode 100644 index 000000000..c36cc482f --- /dev/null +++ b/alb/include/alibabacloud/alb/model/StartListenerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_STARTLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_STARTLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT StartListenerRequest : public RpcServiceRequest { +public: + StartListenerRequest(); + ~StartListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_STARTLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/StartListenerResult.h b/alb/include/alibabacloud/alb/model/StartListenerResult.h new file mode 100644 index 000000000..ec6712a22 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/StartListenerResult.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_ALB_MODEL_STARTLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_STARTLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT StartListenerResult : public ServiceResult + { + public: + + + StartListenerResult(); + explicit StartListenerResult(const std::string &payload); + ~StartListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_STARTLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/StopListenerRequest.h b/alb/include/alibabacloud/alb/model/StopListenerRequest.h new file mode 100644 index 000000000..34cccb802 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/StopListenerRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_STOPLISTENERREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_STOPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT StopListenerRequest : public RpcServiceRequest { +public: + StopListenerRequest(); + ~StopListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_STOPLISTENERREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/StopListenerResult.h b/alb/include/alibabacloud/alb/model/StopListenerResult.h new file mode 100644 index 000000000..132a683ed --- /dev/null +++ b/alb/include/alibabacloud/alb/model/StopListenerResult.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_ALB_MODEL_STOPLISTENERRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_STOPLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT StopListenerResult : public ServiceResult + { + public: + + + StopListenerResult(); + explicit StopListenerResult(const std::string &payload); + ~StopListenerResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_STOPLISTENERRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/TagResourcesRequest.h b/alb/include/alibabacloud/alb/model/TagResourcesRequest.h new file mode 100644 index 000000000..91624b0e9 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/TagResourcesRequest.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/TagResourcesResult.h b/alb/include/alibabacloud/alb/model/TagResourcesResult.h new file mode 100644 index 000000000..9090c4e15 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/TagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UnTagResourcesRequest.h b/alb/include/alibabacloud/alb/model/UnTagResourcesRequest.h new file mode 100644 index 000000000..d24b6be22 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UnTagResourcesRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UnTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + UnTagResourcesRequest(); + ~UnTagResourcesRequest(); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UnTagResourcesResult.h b/alb/include/alibabacloud/alb/model/UnTagResourcesResult.h new file mode 100644 index 000000000..f680f063c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UnTagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UnTagResourcesResult : public ServiceResult + { + public: + + + UnTagResourcesResult(); + explicit UnTagResourcesResult(const std::string &payload); + ~UnTagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateAclAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateAclAttributeRequest.h new file mode 100644 index 000000000..205c85fc9 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateAclAttributeRequest.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_ALB_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateAclAttributeRequest : public RpcServiceRequest { +public: + UpdateAclAttributeRequest(); + ~UpdateAclAttributeRequest(); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string aclName_; + std::string clientToken_; + std::string aclId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateAclAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateAclAttributeResult.h new file mode 100644 index 000000000..531fa2af7 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateAclAttributeResult.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_ALB_MODEL_UPDATEACLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATEACLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateAclAttributeResult : public ServiceResult + { + public: + + + UpdateAclAttributeResult(); + explicit UpdateAclAttributeResult(const std::string &payload); + ~UpdateAclAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATEACLATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeRequest.h new file mode 100644 index 000000000..54cdd32e8 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateHealthCheckTemplateAttributeRequest : public RpcServiceRequest { +public: + UpdateHealthCheckTemplateAttributeRequest(); + ~UpdateHealthCheckTemplateAttributeRequest(); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getHealthCheckProtocol() const; + void setHealthCheckProtocol(const std::string &healthCheckProtocol); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + bool getHealthCheckTcpFastCloseEnabled() const; + void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled); + std::string getHealthCheckPath() const; + void setHealthCheckPath(const std::string &healthCheckPath); + std::vector getHealthCheckCodes() const; + void setHealthCheckCodes(const std::vector &healthCheckCodes); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckHost() const; + void setHealthCheckHost(const std::string &healthCheckHost); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getHealthCheckTemplateName() const; + void setHealthCheckTemplateName(const std::string &healthCheckTemplateName); + std::vector getHealthCheckHttpCodes() const; + void setHealthCheckHttpCodes(const std::vector &healthCheckHttpCodes); + std::string getHealthCheckTemplateId() const; + void setHealthCheckTemplateId(const std::string &healthCheckTemplateId); + std::string getHealthCheckHttpVersion() const; + void setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + +private: + int healthCheckTimeout_; + std::string clientToken_; + std::string healthCheckProtocol_; + int unhealthyThreshold_; + int healthyThreshold_; + bool healthCheckTcpFastCloseEnabled_; + std::string healthCheckPath_; + std::vector healthCheckCodes_; + bool dryRun_; + std::string healthCheckMethod_; + std::string healthCheckHost_; + int healthCheckInterval_; + std::string healthCheckTemplateName_; + std::vector healthCheckHttpCodes_; + std::string healthCheckTemplateId_; + std::string healthCheckHttpVersion_; + int healthCheckConnectPort_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeResult.h new file mode 100644 index 000000000..d8606169d --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateHealthCheckTemplateAttributeResult.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_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateHealthCheckTemplateAttributeResult : public ServiceResult + { + public: + + + UpdateHealthCheckTemplateAttributeResult(); + explicit UpdateHealthCheckTemplateAttributeResult(const std::string &payload); + ~UpdateHealthCheckTemplateAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATEHEALTHCHECKTEMPLATEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateListenerAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateListenerAttributeRequest.h new file mode 100644 index 000000000..3d6bbb88c --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateListenerAttributeRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateListenerAttributeRequest : public RpcServiceRequest { +public: + struct QuicConfig { + bool quicUpgradeEnabled; + std::string quicListenerId; + }; + struct DefaultActions { + struct ForwardGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + std::string type; + }; + struct CaCertificates { + std::string certificateId; + }; + struct XForwardedForConfig { + std::string xForwardedForClientCertSubjectDNAlias; + bool xForwardedForClientCertIssuerDNEnabled; + bool xForwardedForClientCertFingerprintEnabled; + std::string xForwardedForClientCertIssuerDNAlias; + bool xForwardedForProtoEnabled; + std::string xForwardedForClientCertFingerprintAlias; + bool xForwardedForClientCertClientVerifyEnabled; + bool xForwardedForSLBPortEnabled; + bool xForwardedForClientCertSubjectDNEnabled; + std::string xForwardedForClientCertClientVerifyAlias; + bool xForwardedForClientSrcPortEnabled; + bool xForwardedForEnabled; + bool xForwardedForSLBIdEnabled; + }; + struct Certificates { + std::string certificateId; + }; + UpdateListenerAttributeRequest(); + ~UpdateListenerAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getGzipEnabled() const; + void setGzipEnabled(bool gzipEnabled); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + QuicConfig getQuicConfig() const; + void setQuicConfig(const QuicConfig &quicConfig); + bool getHttp2Enabled() const; + void setHttp2Enabled(bool http2Enabled); + std::vector getDefaultActions() const; + void setDefaultActions(const std::vector &defaultActions); + bool getDryRun() const; + void setDryRun(bool dryRun); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::vector getCaCertificates() const; + void setCaCertificates(const std::vector &caCertificates); + XForwardedForConfig getXForwardedForConfig() const; + void setXForwardedForConfig(const XForwardedForConfig &xForwardedForConfig); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + std::string getListenerDescription() const; + void setListenerDescription(const std::string &listenerDescription); + bool getCaEnabled() const; + void setCaEnabled(bool caEnabled); + +private: + std::string clientToken_; + bool gzipEnabled_; + std::string listenerId_; + QuicConfig quicConfig_; + bool http2Enabled_; + std::vector defaultActions_; + bool dryRun_; + int requestTimeout_; + std::vector caCertificates_; + XForwardedForConfig xForwardedForConfig_; + std::string securityPolicyId_; + int idleTimeout_; + std::vector certificates_; + std::string listenerDescription_; + bool caEnabled_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateListenerAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateListenerAttributeResult.h new file mode 100644 index 000000000..6911dc15a --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateListenerAttributeResult.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_ALB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateListenerAttributeResult : public ServiceResult + { + public: + + + UpdateListenerAttributeResult(); + explicit UpdateListenerAttributeResult(const std::string &payload); + ~UpdateListenerAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h b/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h new file mode 100644 index 000000000..a6111e085 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UPDATELISTENERLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELISTENERLOGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateListenerLogConfigRequest : public RpcServiceRequest { +public: + struct AccessLogTracingConfig { + std::string tracingType; + bool tracingEnabled; + int tracingSample; + }; + UpdateListenerLogConfigRequest(); + ~UpdateListenerLogConfigRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + bool getAccessLogRecordCustomizedHeadersEnabled() const; + void setAccessLogRecordCustomizedHeadersEnabled(bool accessLogRecordCustomizedHeadersEnabled); + bool getDryRun() const; + void setDryRun(bool dryRun); + AccessLogTracingConfig getAccessLogTracingConfig() const; + void setAccessLogTracingConfig(const AccessLogTracingConfig &accessLogTracingConfig); + +private: + std::string clientToken_; + std::string listenerId_; + bool accessLogRecordCustomizedHeadersEnabled_; + bool dryRun_; + AccessLogTracingConfig accessLogTracingConfig_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELISTENERLOGCONFIGREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h b/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h new file mode 100644 index 000000000..3cef5c73f --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateListenerLogConfigResult.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_ALB_MODEL_UPDATELISTENERLOGCONFIGRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELISTENERLOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateListenerLogConfigResult : public ServiceResult + { + public: + + + UpdateListenerLogConfigResult(); + explicit UpdateListenerLogConfigResult(const std::string &payload); + ~UpdateListenerLogConfigResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELISTENERLOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..4241f4ebe --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + struct ModificationProtectionConfig { + std::string reason; + std::string status; + }; + UpdateLoadBalancerAttributeRequest(); + ~UpdateLoadBalancerAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + ModificationProtectionConfig getModificationProtectionConfig() const; + void setModificationProtectionConfig(const ModificationProtectionConfig &modificationProtectionConfig); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + ModificationProtectionConfig modificationProtectionConfig_; + std::string loadBalancerName_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h new file mode 100644 index 000000000..c7f7396ad --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.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_ALB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAttributeResult : public ServiceResult + { + public: + + + UpdateLoadBalancerAttributeResult(); + explicit UpdateLoadBalancerAttributeResult(const std::string &payload); + ~UpdateLoadBalancerAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h new file mode 100644 index 000000000..3c2486793 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.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_ALB_MODEL_UPDATELOADBALANCEREDITIONREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCEREDITIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerEditionRequest : public RpcServiceRequest { +public: + UpdateLoadBalancerEditionRequest(); + ~UpdateLoadBalancerEditionRequest(); + std::string getLoadBalancerEdition() const; + void setLoadBalancerEdition(const std::string &loadBalancerEdition); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string loadBalancerEdition_; + std::string clientToken_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCEREDITIONREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.h new file mode 100644 index 000000000..ae5fbbd32 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateLoadBalancerEditionResult.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_ALB_MODEL_UPDATELOADBALANCEREDITIONRESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCEREDITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerEditionResult : public ServiceResult + { + public: + + + UpdateLoadBalancerEditionResult(); + explicit UpdateLoadBalancerEditionResult(const std::string &payload); + ~UpdateLoadBalancerEditionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCEREDITIONRESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h new file mode 100644 index 000000000..91a93e6ec --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateRuleAttributeRequest.h @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_UPDATERULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATERULEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateRuleAttributeRequest : public RpcServiceRequest { +public: + struct RuleActions { + struct FixedResponseConfig { + std::string httpCode; + std::string content; + std::string contentType; + }; + FixedResponseConfig fixedResponseConfig; + struct TrafficMirrorConfig { + struct MirrorGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + MirrorGroupConfig mirrorGroupConfig; + std::string targetType; + }; + TrafficMirrorConfig trafficMirrorConfig; + struct ForwardGroupConfig { + struct ServerGroupStickySession { + bool enabled; + int timeout; + }; + ServerGroupStickySession serverGroupStickySession; + struct ServerGroupTuplesItem { + std::string serverGroupId; + int weight; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + struct RemoveHeaderConfig { + std::string key; + }; + RemoveHeaderConfig removeHeaderConfig; + struct InsertHeaderConfig { + std::string valueType; + bool coverEnabled; + std::string value; + std::string key; + }; + InsertHeaderConfig insertHeaderConfig; + struct TrafficLimitConfig { + int qPS; + }; + TrafficLimitConfig trafficLimitConfig; + struct RedirectConfig { + std::string path; + std::string protocol; + std::string port; + std::string query; + std::string host; + std::string httpCode; + }; + RedirectConfig redirectConfig; + std::string type; + int order; + struct RewriteConfig { + std::string path; + std::string query; + std::string host; + }; + RewriteConfig rewriteConfig; + }; + struct RuleConditions { + struct MethodConfig { + std::string string; + std::vector values; + }; + MethodConfig methodConfig; + struct SourceIpConfig { + std::string string; + std::vector values; + }; + SourceIpConfig sourceIpConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + struct QueryStringConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + QueryStringConfig queryStringConfig; + struct ResponseStatusCodeConfig { + std::string string; + std::vector values; + }; + ResponseStatusCodeConfig responseStatusCodeConfig; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct CookieConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + CookieConfig cookieConfig; + std::string type; + struct HeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + HeaderConfig headerConfig; + struct ResponseHeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + ResponseHeaderConfig responseHeaderConfig; + }; + UpdateRuleAttributeRequest(); + ~UpdateRuleAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::vector getRuleActions() const; + void setRuleActions(const std::vector &ruleActions); + std::vector getRuleConditions() const; + void setRuleConditions(const std::vector &ruleConditions); + bool getDryRun() const; + void setDryRun(bool dryRun); + int getPriority() const; + void setPriority(int priority); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string clientToken_; + std::string ruleName_; + std::vector ruleActions_; + std::vector ruleConditions_; + bool dryRun_; + int priority_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATERULEATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateRuleAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateRuleAttributeResult.h new file mode 100644 index 000000000..b0fcca58b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateRuleAttributeResult.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_ALB_MODEL_UPDATERULEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATERULEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateRuleAttributeResult : public ServiceResult + { + public: + + + UpdateRuleAttributeResult(); + explicit UpdateRuleAttributeResult(const std::string &payload); + ~UpdateRuleAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATERULEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h new file mode 100644 index 000000000..f8c0bea18 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateRulesAttributeRequest.h @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_ALB_MODEL_UPDATERULESATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATERULESATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateRulesAttributeRequest : public RpcServiceRequest { +public: + struct Rules { + struct RuleConditionsItem { + struct MethodConfig { + std::string string; + std::vector values; + }; + MethodConfig methodConfig; + struct SourceIpConfig { + std::string string; + std::vector values; + }; + SourceIpConfig sourceIpConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + struct QueryStringConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + QueryStringConfig queryStringConfig; + struct ResponseStatusCodeConfig { + std::string string; + std::vector values; + }; + ResponseStatusCodeConfig responseStatusCodeConfig; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct CookieConfig { + struct ValuesItem { + std::string value; + std::string key; + }; + ValuesItem valuesItem; + std::vector values; + }; + CookieConfig cookieConfig; + std::string type; + struct HeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + HeaderConfig headerConfig; + struct ResponseHeaderConfig { + std::string string; + std::vector values; + std::string key; + }; + ResponseHeaderConfig responseHeaderConfig; + }; + RuleConditionsItem ruleConditionsItem; + std::vector ruleConditions; + std::string ruleName; + int priority; + std::string ruleId; + struct RuleActionsItem { + struct FixedResponseConfig { + std::string httpCode; + std::string content; + std::string contentType; + }; + FixedResponseConfig fixedResponseConfig; + struct TrafficMirrorConfig { + struct MirrorGroupConfig { + struct ServerGroupTuplesItem { + std::string serverGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + MirrorGroupConfig mirrorGroupConfig; + std::string targetType; + }; + TrafficMirrorConfig trafficMirrorConfig; + struct ForwardGroupConfig { + struct ServerGroupStickySession { + bool enabled; + int timeout; + }; + ServerGroupStickySession serverGroupStickySession; + struct ServerGroupTuplesItem { + std::string serverGroupId; + int weight; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + struct RemoveHeaderConfig { + std::string key; + }; + RemoveHeaderConfig removeHeaderConfig; + struct InsertHeaderConfig { + std::string valueType; + bool coverEnabled; + std::string value; + std::string key; + }; + InsertHeaderConfig insertHeaderConfig; + struct TrafficLimitConfig { + int qPS; + }; + TrafficLimitConfig trafficLimitConfig; + struct RedirectConfig { + std::string path; + std::string protocol; + std::string port; + std::string query; + std::string host; + std::string httpCode; + }; + RedirectConfig redirectConfig; + std::string type; + int order; + struct RewriteConfig { + std::string path; + std::string query; + std::string host; + }; + RewriteConfig rewriteConfig; + }; + RuleActionsItem ruleActionsItem; + std::vector ruleActions; + }; + UpdateRulesAttributeRequest(); + ~UpdateRulesAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getRules() const; + void setRules(const std::vector &rules); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::vector rules_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATERULESATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateRulesAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateRulesAttributeResult.h new file mode 100644 index 000000000..00939e383 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateRulesAttributeResult.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_ALB_MODEL_UPDATERULESATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATERULESATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateRulesAttributeResult : public ServiceResult + { + public: + + + UpdateRulesAttributeResult(); + explicit UpdateRulesAttributeResult(const std::string &payload); + ~UpdateRulesAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATERULESATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeRequest.h new file mode 100644 index 000000000..0d9bc600b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeRequest.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_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateSecurityPolicyAttributeRequest : public RpcServiceRequest { +public: + UpdateSecurityPolicyAttributeRequest(); + ~UpdateSecurityPolicyAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getCiphers() const; + void setCiphers(const std::vector &ciphers); + std::vector getTLSVersions() const; + void setTLSVersions(const std::vector &tLSVersions); + std::string getSecurityPolicyName() const; + void setSecurityPolicyName(const std::string &securityPolicyName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + +private: + std::string clientToken_; + std::vector ciphers_; + std::vector tLSVersions_; + std::string securityPolicyName_; + bool dryRun_; + std::string securityPolicyId_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeResult.h new file mode 100644 index 000000000..fb869be47 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateSecurityPolicyAttributeResult.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_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateSecurityPolicyAttributeResult : public ServiceResult + { + public: + + + UpdateSecurityPolicyAttributeResult(); + explicit UpdateSecurityPolicyAttributeResult(const std::string &payload); + ~UpdateSecurityPolicyAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h new file mode 100644 index 000000000..2c78f56db --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupAttributeRequest : public RpcServiceRequest { +public: + struct HealthCheckConfig { + std::string string; + std::vector healthCheckCodes; + bool healthCheckEnabled; + int healthCheckTimeout; + std::string healthCheckMethod; + std::string healthCheckHost; + std::string healthCheckProtocol; + int unhealthyThreshold; + int healthyThreshold; + bool healthCheckTcpFastCloseEnabled; + std::string healthCheckPath; + int healthCheckInterval; + std::string string; + std::vector healthCheckHttpCodes; + std::string healthCheckHttpVersion; + int healthCheckConnectPort; + }; + struct StickySessionConfig { + bool stickySessionEnabled; + std::string cookie; + int cookieTimeout; + std::string stickySessionType; + }; + UpdateServerGroupAttributeRequest(); + ~UpdateServerGroupAttributeRequest(); + std::string getServerGroupName() const; + void setServerGroupName(const std::string &serverGroupName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + HealthCheckConfig getHealthCheckConfig() const; + void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + StickySessionConfig getStickySessionConfig() const; + void setStickySessionConfig(const StickySessionConfig &stickySessionConfig); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string serverGroupName_; + std::string clientToken_; + HealthCheckConfig healthCheckConfig_; + std::string scheduler_; + std::string serverGroupId_; + StickySessionConfig stickySessionConfig_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeResult.h new file mode 100644 index 000000000..da661dc50 --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeResult.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_ALB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupAttributeResult : public ServiceResult + { + public: + + + UpdateServerGroupAttributeResult(); + explicit UpdateServerGroupAttributeResult(const std::string &payload); + ~UpdateServerGroupAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeRequest.h b/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeRequest.h new file mode 100644 index 000000000..9407cf00b --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Alb { +namespace Model { +class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupServersAttributeRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverType; + int port; + std::string description; + std::string serverIp; + int weight; + std::string serverId; + }; + UpdateServerGroupServersAttributeRequest(); + ~UpdateServerGroupServersAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + bool dryRun_; +}; +} // namespace Model +} // namespace Alb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ diff --git a/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeResult.h b/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeResult.h new file mode 100644 index 000000000..9dcd9d64a --- /dev/null +++ b/alb/include/alibabacloud/alb/model/UpdateServerGroupServersAttributeResult.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_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Alb + { + namespace Model + { + class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupServersAttributeResult : public ServiceResult + { + public: + + + UpdateServerGroupServersAttributeResult(); + explicit UpdateServerGroupServersAttributeResult(const std::string &payload); + ~UpdateServerGroupServersAttributeResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ALB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/alb/src/AlbClient.cc b/alb/src/AlbClient.cc new file mode 100644 index 000000000..7042f7997 --- /dev/null +++ b/alb/src/AlbClient.cc @@ -0,0 +1,2465 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +namespace +{ + const std::string SERVICE_NAME = "Alb"; +} + +AlbClient::AlbClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alb"); +} + +AlbClient::AlbClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alb"); +} + +AlbClient::AlbClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "alb"); +} + +AlbClient::~AlbClient() +{} + +AlbClient::AddEntriesToAclOutcome AlbClient::addEntriesToAcl(const AddEntriesToAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEntriesToAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEntriesToAclOutcome(AddEntriesToAclResult(outcome.result())); + else + return AddEntriesToAclOutcome(outcome.error()); +} + +void AlbClient::addEntriesToAclAsync(const AddEntriesToAclRequest& request, const AddEntriesToAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEntriesToAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::AddEntriesToAclOutcomeCallable AlbClient::addEntriesToAclCallable(const AddEntriesToAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEntriesToAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::AddServersToServerGroupOutcome AlbClient::addServersToServerGroup(const AddServersToServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddServersToServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddServersToServerGroupOutcome(AddServersToServerGroupResult(outcome.result())); + else + return AddServersToServerGroupOutcome(outcome.error()); +} + +void AlbClient::addServersToServerGroupAsync(const AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addServersToServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::AddServersToServerGroupOutcomeCallable AlbClient::addServersToServerGroupCallable(const AddServersToServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addServersToServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::AssociateAclsWithListenerOutcome AlbClient::associateAclsWithListener(const AssociateAclsWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateAclsWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateAclsWithListenerOutcome(AssociateAclsWithListenerResult(outcome.result())); + else + return AssociateAclsWithListenerOutcome(outcome.error()); +} + +void AlbClient::associateAclsWithListenerAsync(const AssociateAclsWithListenerRequest& request, const AssociateAclsWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateAclsWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::AssociateAclsWithListenerOutcomeCallable AlbClient::associateAclsWithListenerCallable(const AssociateAclsWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateAclsWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::AssociateAdditionalCertificatesWithListenerOutcome AlbClient::associateAdditionalCertificatesWithListener(const AssociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateAdditionalCertificatesWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateAdditionalCertificatesWithListenerOutcome(AssociateAdditionalCertificatesWithListenerResult(outcome.result())); + else + return AssociateAdditionalCertificatesWithListenerOutcome(outcome.error()); +} + +void AlbClient::associateAdditionalCertificatesWithListenerAsync(const AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateAdditionalCertificatesWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::AssociateAdditionalCertificatesWithListenerOutcomeCallable AlbClient::associateAdditionalCertificatesWithListenerCallable(const AssociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateAdditionalCertificatesWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateAclOutcome AlbClient::createAcl(const CreateAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAclOutcome(CreateAclResult(outcome.result())); + else + return CreateAclOutcome(outcome.error()); +} + +void AlbClient::createAclAsync(const CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateAclOutcomeCallable AlbClient::createAclCallable(const CreateAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateHealthCheckTemplateOutcome AlbClient::createHealthCheckTemplate(const CreateHealthCheckTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHealthCheckTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHealthCheckTemplateOutcome(CreateHealthCheckTemplateResult(outcome.result())); + else + return CreateHealthCheckTemplateOutcome(outcome.error()); +} + +void AlbClient::createHealthCheckTemplateAsync(const CreateHealthCheckTemplateRequest& request, const CreateHealthCheckTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHealthCheckTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateHealthCheckTemplateOutcomeCallable AlbClient::createHealthCheckTemplateCallable(const CreateHealthCheckTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHealthCheckTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateListenerOutcome AlbClient::createListener(const CreateListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateListenerOutcome(CreateListenerResult(outcome.result())); + else + return CreateListenerOutcome(outcome.error()); +} + +void AlbClient::createListenerAsync(const CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateListenerOutcomeCallable AlbClient::createListenerCallable(const CreateListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateLoadBalancerOutcome AlbClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerOutcome(CreateLoadBalancerResult(outcome.result())); + else + return CreateLoadBalancerOutcome(outcome.error()); +} + +void AlbClient::createLoadBalancerAsync(const CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateLoadBalancerOutcomeCallable AlbClient::createLoadBalancerCallable(const CreateLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateRuleOutcome AlbClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void AlbClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateRuleOutcomeCallable AlbClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateRulesOutcome AlbClient::createRules(const CreateRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRulesOutcome(CreateRulesResult(outcome.result())); + else + return CreateRulesOutcome(outcome.error()); +} + +void AlbClient::createRulesAsync(const CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateRulesOutcomeCallable AlbClient::createRulesCallable(const CreateRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateSecurityPolicyOutcome AlbClient::createSecurityPolicy(const CreateSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSecurityPolicyOutcome(CreateSecurityPolicyResult(outcome.result())); + else + return CreateSecurityPolicyOutcome(outcome.error()); +} + +void AlbClient::createSecurityPolicyAsync(const CreateSecurityPolicyRequest& request, const CreateSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateSecurityPolicyOutcomeCallable AlbClient::createSecurityPolicyCallable(const CreateSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::CreateServerGroupOutcome AlbClient::createServerGroup(const CreateServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServerGroupOutcome(CreateServerGroupResult(outcome.result())); + else + return CreateServerGroupOutcome(outcome.error()); +} + +void AlbClient::createServerGroupAsync(const CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::CreateServerGroupOutcomeCallable AlbClient::createServerGroupCallable(const CreateServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteAclOutcome AlbClient::deleteAcl(const DeleteAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAclOutcome(DeleteAclResult(outcome.result())); + else + return DeleteAclOutcome(outcome.error()); +} + +void AlbClient::deleteAclAsync(const DeleteAclRequest& request, const DeleteAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteAclOutcomeCallable AlbClient::deleteAclCallable(const DeleteAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteHealthCheckTemplatesOutcome AlbClient::deleteHealthCheckTemplates(const DeleteHealthCheckTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHealthCheckTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHealthCheckTemplatesOutcome(DeleteHealthCheckTemplatesResult(outcome.result())); + else + return DeleteHealthCheckTemplatesOutcome(outcome.error()); +} + +void AlbClient::deleteHealthCheckTemplatesAsync(const DeleteHealthCheckTemplatesRequest& request, const DeleteHealthCheckTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHealthCheckTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteHealthCheckTemplatesOutcomeCallable AlbClient::deleteHealthCheckTemplatesCallable(const DeleteHealthCheckTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHealthCheckTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteListenerOutcome AlbClient::deleteListener(const DeleteListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteListenerOutcome(DeleteListenerResult(outcome.result())); + else + return DeleteListenerOutcome(outcome.error()); +} + +void AlbClient::deleteListenerAsync(const DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteListenerOutcomeCallable AlbClient::deleteListenerCallable(const DeleteListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteLoadBalancerOutcome AlbClient::deleteLoadBalancer(const DeleteLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLoadBalancerOutcome(DeleteLoadBalancerResult(outcome.result())); + else + return DeleteLoadBalancerOutcome(outcome.error()); +} + +void AlbClient::deleteLoadBalancerAsync(const DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteLoadBalancerOutcomeCallable AlbClient::deleteLoadBalancerCallable(const DeleteLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteRuleOutcome AlbClient::deleteRule(const DeleteRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); + else + return DeleteRuleOutcome(outcome.error()); +} + +void AlbClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteRuleOutcomeCallable AlbClient::deleteRuleCallable(const DeleteRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteRulesOutcome AlbClient::deleteRules(const DeleteRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRulesOutcome(DeleteRulesResult(outcome.result())); + else + return DeleteRulesOutcome(outcome.error()); +} + +void AlbClient::deleteRulesAsync(const DeleteRulesRequest& request, const DeleteRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteRulesOutcomeCallable AlbClient::deleteRulesCallable(const DeleteRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteSecurityPolicyOutcome AlbClient::deleteSecurityPolicy(const DeleteSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityPolicyOutcome(DeleteSecurityPolicyResult(outcome.result())); + else + return DeleteSecurityPolicyOutcome(outcome.error()); +} + +void AlbClient::deleteSecurityPolicyAsync(const DeleteSecurityPolicyRequest& request, const DeleteSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteSecurityPolicyOutcomeCallable AlbClient::deleteSecurityPolicyCallable(const DeleteSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DeleteServerGroupOutcome AlbClient::deleteServerGroup(const DeleteServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServerGroupOutcome(DeleteServerGroupResult(outcome.result())); + else + return DeleteServerGroupOutcome(outcome.error()); +} + +void AlbClient::deleteServerGroupAsync(const DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DeleteServerGroupOutcomeCallable AlbClient::deleteServerGroupCallable(const DeleteServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DescribeRegionsOutcome AlbClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void AlbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DescribeRegionsOutcomeCallable AlbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DescribeZonesOutcome AlbClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void AlbClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DescribeZonesOutcomeCallable AlbClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DisableDeletionProtectionOutcome AlbClient::disableDeletionProtection(const DisableDeletionProtectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableDeletionProtectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableDeletionProtectionOutcome(DisableDeletionProtectionResult(outcome.result())); + else + return DisableDeletionProtectionOutcome(outcome.error()); +} + +void AlbClient::disableDeletionProtectionAsync(const DisableDeletionProtectionRequest& request, const DisableDeletionProtectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableDeletionProtection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DisableDeletionProtectionOutcomeCallable AlbClient::disableDeletionProtectionCallable(const DisableDeletionProtectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableDeletionProtection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DisableLoadBalancerAccessLogOutcome AlbClient::disableLoadBalancerAccessLog(const DisableLoadBalancerAccessLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableLoadBalancerAccessLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableLoadBalancerAccessLogOutcome(DisableLoadBalancerAccessLogResult(outcome.result())); + else + return DisableLoadBalancerAccessLogOutcome(outcome.error()); +} + +void AlbClient::disableLoadBalancerAccessLogAsync(const DisableLoadBalancerAccessLogRequest& request, const DisableLoadBalancerAccessLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableLoadBalancerAccessLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DisableLoadBalancerAccessLogOutcomeCallable AlbClient::disableLoadBalancerAccessLogCallable(const DisableLoadBalancerAccessLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableLoadBalancerAccessLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DissociateAclsFromListenerOutcome AlbClient::dissociateAclsFromListener(const DissociateAclsFromListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateAclsFromListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateAclsFromListenerOutcome(DissociateAclsFromListenerResult(outcome.result())); + else + return DissociateAclsFromListenerOutcome(outcome.error()); +} + +void AlbClient::dissociateAclsFromListenerAsync(const DissociateAclsFromListenerRequest& request, const DissociateAclsFromListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateAclsFromListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DissociateAclsFromListenerOutcomeCallable AlbClient::dissociateAclsFromListenerCallable(const DissociateAclsFromListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateAclsFromListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::DissociateAdditionalCertificatesFromListenerOutcome AlbClient::dissociateAdditionalCertificatesFromListener(const DissociateAdditionalCertificatesFromListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateAdditionalCertificatesFromListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateAdditionalCertificatesFromListenerOutcome(DissociateAdditionalCertificatesFromListenerResult(outcome.result())); + else + return DissociateAdditionalCertificatesFromListenerOutcome(outcome.error()); +} + +void AlbClient::dissociateAdditionalCertificatesFromListenerAsync(const DissociateAdditionalCertificatesFromListenerRequest& request, const DissociateAdditionalCertificatesFromListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateAdditionalCertificatesFromListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::DissociateAdditionalCertificatesFromListenerOutcomeCallable AlbClient::dissociateAdditionalCertificatesFromListenerCallable(const DissociateAdditionalCertificatesFromListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateAdditionalCertificatesFromListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::EnableDeletionProtectionOutcome AlbClient::enableDeletionProtection(const EnableDeletionProtectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableDeletionProtectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableDeletionProtectionOutcome(EnableDeletionProtectionResult(outcome.result())); + else + return EnableDeletionProtectionOutcome(outcome.error()); +} + +void AlbClient::enableDeletionProtectionAsync(const EnableDeletionProtectionRequest& request, const EnableDeletionProtectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableDeletionProtection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::EnableDeletionProtectionOutcomeCallable AlbClient::enableDeletionProtectionCallable(const EnableDeletionProtectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableDeletionProtection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::EnableLoadBalancerAccessLogOutcome AlbClient::enableLoadBalancerAccessLog(const EnableLoadBalancerAccessLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableLoadBalancerAccessLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableLoadBalancerAccessLogOutcome(EnableLoadBalancerAccessLogResult(outcome.result())); + else + return EnableLoadBalancerAccessLogOutcome(outcome.error()); +} + +void AlbClient::enableLoadBalancerAccessLogAsync(const EnableLoadBalancerAccessLogRequest& request, const EnableLoadBalancerAccessLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableLoadBalancerAccessLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::EnableLoadBalancerAccessLogOutcomeCallable AlbClient::enableLoadBalancerAccessLogCallable(const EnableLoadBalancerAccessLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableLoadBalancerAccessLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::GetHealthCheckTemplateAttributeOutcome AlbClient::getHealthCheckTemplateAttribute(const GetHealthCheckTemplateAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHealthCheckTemplateAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHealthCheckTemplateAttributeOutcome(GetHealthCheckTemplateAttributeResult(outcome.result())); + else + return GetHealthCheckTemplateAttributeOutcome(outcome.error()); +} + +void AlbClient::getHealthCheckTemplateAttributeAsync(const GetHealthCheckTemplateAttributeRequest& request, const GetHealthCheckTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHealthCheckTemplateAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::GetHealthCheckTemplateAttributeOutcomeCallable AlbClient::getHealthCheckTemplateAttributeCallable(const GetHealthCheckTemplateAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHealthCheckTemplateAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::GetListenerAttributeOutcome AlbClient::getListenerAttribute(const GetListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetListenerAttributeOutcome(GetListenerAttributeResult(outcome.result())); + else + return GetListenerAttributeOutcome(outcome.error()); +} + +void AlbClient::getListenerAttributeAsync(const GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::GetListenerAttributeOutcomeCallable AlbClient::getListenerAttributeCallable(const GetListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::GetLoadBalancerAttributeOutcome AlbClient::getLoadBalancerAttribute(const GetLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLoadBalancerAttributeOutcome(GetLoadBalancerAttributeResult(outcome.result())); + else + return GetLoadBalancerAttributeOutcome(outcome.error()); +} + +void AlbClient::getLoadBalancerAttributeAsync(const GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::GetLoadBalancerAttributeOutcomeCallable AlbClient::getLoadBalancerAttributeCallable(const GetLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListAclEntriesOutcome AlbClient::listAclEntries(const ListAclEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAclEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAclEntriesOutcome(ListAclEntriesResult(outcome.result())); + else + return ListAclEntriesOutcome(outcome.error()); +} + +void AlbClient::listAclEntriesAsync(const ListAclEntriesRequest& request, const ListAclEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAclEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListAclEntriesOutcomeCallable AlbClient::listAclEntriesCallable(const ListAclEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAclEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListAclRelationsOutcome AlbClient::listAclRelations(const ListAclRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAclRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAclRelationsOutcome(ListAclRelationsResult(outcome.result())); + else + return ListAclRelationsOutcome(outcome.error()); +} + +void AlbClient::listAclRelationsAsync(const ListAclRelationsRequest& request, const ListAclRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAclRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListAclRelationsOutcomeCallable AlbClient::listAclRelationsCallable(const ListAclRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAclRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListAclsOutcome AlbClient::listAcls(const ListAclsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAclsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAclsOutcome(ListAclsResult(outcome.result())); + else + return ListAclsOutcome(outcome.error()); +} + +void AlbClient::listAclsAsync(const ListAclsRequest& request, const ListAclsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAcls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListAclsOutcomeCallable AlbClient::listAclsCallable(const ListAclsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAcls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListAsynJobsOutcome AlbClient::listAsynJobs(const ListAsynJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAsynJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAsynJobsOutcome(ListAsynJobsResult(outcome.result())); + else + return ListAsynJobsOutcome(outcome.error()); +} + +void AlbClient::listAsynJobsAsync(const ListAsynJobsRequest& request, const ListAsynJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAsynJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListAsynJobsOutcomeCallable AlbClient::listAsynJobsCallable(const ListAsynJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAsynJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListHealthCheckTemplatesOutcome AlbClient::listHealthCheckTemplates(const ListHealthCheckTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListHealthCheckTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListHealthCheckTemplatesOutcome(ListHealthCheckTemplatesResult(outcome.result())); + else + return ListHealthCheckTemplatesOutcome(outcome.error()); +} + +void AlbClient::listHealthCheckTemplatesAsync(const ListHealthCheckTemplatesRequest& request, const ListHealthCheckTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listHealthCheckTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListHealthCheckTemplatesOutcomeCallable AlbClient::listHealthCheckTemplatesCallable(const ListHealthCheckTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listHealthCheckTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListListenerCertificatesOutcome AlbClient::listListenerCertificates(const ListListenerCertificatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenerCertificatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenerCertificatesOutcome(ListListenerCertificatesResult(outcome.result())); + else + return ListListenerCertificatesOutcome(outcome.error()); +} + +void AlbClient::listListenerCertificatesAsync(const ListListenerCertificatesRequest& request, const ListListenerCertificatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListenerCertificates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListListenerCertificatesOutcomeCallable AlbClient::listListenerCertificatesCallable(const ListListenerCertificatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListenerCertificates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListListenersOutcome AlbClient::listListeners(const ListListenersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenersOutcome(ListListenersResult(outcome.result())); + else + return ListListenersOutcome(outcome.error()); +} + +void AlbClient::listListenersAsync(const ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListeners(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListListenersOutcomeCallable AlbClient::listListenersCallable(const ListListenersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListeners(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListLoadBalancersOutcome AlbClient::listLoadBalancers(const ListLoadBalancersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLoadBalancersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLoadBalancersOutcome(ListLoadBalancersResult(outcome.result())); + else + return ListLoadBalancersOutcome(outcome.error()); +} + +void AlbClient::listLoadBalancersAsync(const ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLoadBalancers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListLoadBalancersOutcomeCallable AlbClient::listLoadBalancersCallable(const ListLoadBalancersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLoadBalancers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListRulesOutcome AlbClient::listRules(const ListRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRulesOutcome(ListRulesResult(outcome.result())); + else + return ListRulesOutcome(outcome.error()); +} + +void AlbClient::listRulesAsync(const ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListRulesOutcomeCallable AlbClient::listRulesCallable(const ListRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListSecurityPoliciesOutcome AlbClient::listSecurityPolicies(const ListSecurityPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityPoliciesOutcome(ListSecurityPoliciesResult(outcome.result())); + else + return ListSecurityPoliciesOutcome(outcome.error()); +} + +void AlbClient::listSecurityPoliciesAsync(const ListSecurityPoliciesRequest& request, const ListSecurityPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListSecurityPoliciesOutcomeCallable AlbClient::listSecurityPoliciesCallable(const ListSecurityPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListSecurityPolicyRelationsOutcome AlbClient::listSecurityPolicyRelations(const ListSecurityPolicyRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityPolicyRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityPolicyRelationsOutcome(ListSecurityPolicyRelationsResult(outcome.result())); + else + return ListSecurityPolicyRelationsOutcome(outcome.error()); +} + +void AlbClient::listSecurityPolicyRelationsAsync(const ListSecurityPolicyRelationsRequest& request, const ListSecurityPolicyRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityPolicyRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListSecurityPolicyRelationsOutcomeCallable AlbClient::listSecurityPolicyRelationsCallable(const ListSecurityPolicyRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityPolicyRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListServerGroupServersOutcome AlbClient::listServerGroupServers(const ListServerGroupServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServerGroupServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServerGroupServersOutcome(ListServerGroupServersResult(outcome.result())); + else + return ListServerGroupServersOutcome(outcome.error()); +} + +void AlbClient::listServerGroupServersAsync(const ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServerGroupServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListServerGroupServersOutcomeCallable AlbClient::listServerGroupServersCallable(const ListServerGroupServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServerGroupServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListServerGroupsOutcome AlbClient::listServerGroups(const ListServerGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServerGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServerGroupsOutcome(ListServerGroupsResult(outcome.result())); + else + return ListServerGroupsOutcome(outcome.error()); +} + +void AlbClient::listServerGroupsAsync(const ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServerGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListServerGroupsOutcomeCallable AlbClient::listServerGroupsCallable(const ListServerGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServerGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListSystemSecurityPoliciesOutcome AlbClient::listSystemSecurityPolicies(const ListSystemSecurityPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSystemSecurityPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSystemSecurityPoliciesOutcome(ListSystemSecurityPoliciesResult(outcome.result())); + else + return ListSystemSecurityPoliciesOutcome(outcome.error()); +} + +void AlbClient::listSystemSecurityPoliciesAsync(const ListSystemSecurityPoliciesRequest& request, const ListSystemSecurityPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSystemSecurityPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListSystemSecurityPoliciesOutcomeCallable AlbClient::listSystemSecurityPoliciesCallable(const ListSystemSecurityPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSystemSecurityPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListTagKeysOutcome AlbClient::listTagKeys(const ListTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagKeysOutcome(ListTagKeysResult(outcome.result())); + else + return ListTagKeysOutcome(outcome.error()); +} + +void AlbClient::listTagKeysAsync(const ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListTagKeysOutcomeCallable AlbClient::listTagKeysCallable(const ListTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListTagResourcesOutcome AlbClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void AlbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListTagResourcesOutcomeCallable AlbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ListTagValuesOutcome AlbClient::listTagValues(const ListTagValuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagValuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagValuesOutcome(ListTagValuesResult(outcome.result())); + else + return ListTagValuesOutcome(outcome.error()); +} + +void AlbClient::listTagValuesAsync(const ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagValues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ListTagValuesOutcomeCallable AlbClient::listTagValuesCallable(const ListTagValuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagValues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::MoveResourceGroupOutcome AlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveResourceGroupOutcome(MoveResourceGroupResult(outcome.result())); + else + return MoveResourceGroupOutcome(outcome.error()); +} + +void AlbClient::moveResourceGroupAsync(const MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::MoveResourceGroupOutcomeCallable AlbClient::moveResourceGroupCallable(const MoveResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::RemoveEntriesFromAclOutcome AlbClient::removeEntriesFromAcl(const RemoveEntriesFromAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveEntriesFromAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveEntriesFromAclOutcome(RemoveEntriesFromAclResult(outcome.result())); + else + return RemoveEntriesFromAclOutcome(outcome.error()); +} + +void AlbClient::removeEntriesFromAclAsync(const RemoveEntriesFromAclRequest& request, const RemoveEntriesFromAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeEntriesFromAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::RemoveEntriesFromAclOutcomeCallable AlbClient::removeEntriesFromAclCallable(const RemoveEntriesFromAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeEntriesFromAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::RemoveServersFromServerGroupOutcome AlbClient::removeServersFromServerGroup(const RemoveServersFromServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveServersFromServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveServersFromServerGroupOutcome(RemoveServersFromServerGroupResult(outcome.result())); + else + return RemoveServersFromServerGroupOutcome(outcome.error()); +} + +void AlbClient::removeServersFromServerGroupAsync(const RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeServersFromServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::RemoveServersFromServerGroupOutcomeCallable AlbClient::removeServersFromServerGroupCallable(const RemoveServersFromServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeServersFromServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::ReplaceServersInServerGroupOutcome AlbClient::replaceServersInServerGroup(const ReplaceServersInServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceServersInServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceServersInServerGroupOutcome(ReplaceServersInServerGroupResult(outcome.result())); + else + return ReplaceServersInServerGroupOutcome(outcome.error()); +} + +void AlbClient::replaceServersInServerGroupAsync(const ReplaceServersInServerGroupRequest& request, const ReplaceServersInServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceServersInServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::ReplaceServersInServerGroupOutcomeCallable AlbClient::replaceServersInServerGroupCallable(const ReplaceServersInServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceServersInServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::StartListenerOutcome AlbClient::startListener(const StartListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartListenerOutcome(StartListenerResult(outcome.result())); + else + return StartListenerOutcome(outcome.error()); +} + +void AlbClient::startListenerAsync(const StartListenerRequest& request, const StartListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::StartListenerOutcomeCallable AlbClient::startListenerCallable(const StartListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::StopListenerOutcome AlbClient::stopListener(const StopListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopListenerOutcome(StopListenerResult(outcome.result())); + else + return StopListenerOutcome(outcome.error()); +} + +void AlbClient::stopListenerAsync(const StopListenerRequest& request, const StopListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::StopListenerOutcomeCallable AlbClient::stopListenerCallable(const StopListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::TagResourcesOutcome AlbClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void AlbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::TagResourcesOutcomeCallable AlbClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UnTagResourcesOutcome AlbClient::unTagResources(const UnTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnTagResourcesOutcome(UnTagResourcesResult(outcome.result())); + else + return UnTagResourcesOutcome(outcome.error()); +} + +void AlbClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UnTagResourcesOutcomeCallable AlbClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateAclAttributeOutcome AlbClient::updateAclAttribute(const UpdateAclAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAclAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAclAttributeOutcome(UpdateAclAttributeResult(outcome.result())); + else + return UpdateAclAttributeOutcome(outcome.error()); +} + +void AlbClient::updateAclAttributeAsync(const UpdateAclAttributeRequest& request, const UpdateAclAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAclAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateAclAttributeOutcomeCallable AlbClient::updateAclAttributeCallable(const UpdateAclAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAclAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateHealthCheckTemplateAttributeOutcome AlbClient::updateHealthCheckTemplateAttribute(const UpdateHealthCheckTemplateAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateHealthCheckTemplateAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateHealthCheckTemplateAttributeOutcome(UpdateHealthCheckTemplateAttributeResult(outcome.result())); + else + return UpdateHealthCheckTemplateAttributeOutcome(outcome.error()); +} + +void AlbClient::updateHealthCheckTemplateAttributeAsync(const UpdateHealthCheckTemplateAttributeRequest& request, const UpdateHealthCheckTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateHealthCheckTemplateAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateHealthCheckTemplateAttributeOutcomeCallable AlbClient::updateHealthCheckTemplateAttributeCallable(const UpdateHealthCheckTemplateAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateHealthCheckTemplateAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateListenerAttributeOutcome AlbClient::updateListenerAttribute(const UpdateListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateListenerAttributeOutcome(UpdateListenerAttributeResult(outcome.result())); + else + return UpdateListenerAttributeOutcome(outcome.error()); +} + +void AlbClient::updateListenerAttributeAsync(const UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateListenerAttributeOutcomeCallable AlbClient::updateListenerAttributeCallable(const UpdateListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateListenerLogConfigOutcome AlbClient::updateListenerLogConfig(const UpdateListenerLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateListenerLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateListenerLogConfigOutcome(UpdateListenerLogConfigResult(outcome.result())); + else + return UpdateListenerLogConfigOutcome(outcome.error()); +} + +void AlbClient::updateListenerLogConfigAsync(const UpdateListenerLogConfigRequest& request, const UpdateListenerLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateListenerLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateListenerLogConfigOutcomeCallable AlbClient::updateListenerLogConfigCallable(const UpdateListenerLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateListenerLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateLoadBalancerAttributeOutcome AlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerAttributeOutcome(UpdateLoadBalancerAttributeResult(outcome.result())); + else + return UpdateLoadBalancerAttributeOutcome(outcome.error()); +} + +void AlbClient::updateLoadBalancerAttributeAsync(const UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateLoadBalancerAttributeOutcomeCallable AlbClient::updateLoadBalancerAttributeCallable(const UpdateLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateLoadBalancerEditionOutcome AlbClient::updateLoadBalancerEdition(const UpdateLoadBalancerEditionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerEditionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerEditionOutcome(UpdateLoadBalancerEditionResult(outcome.result())); + else + return UpdateLoadBalancerEditionOutcome(outcome.error()); +} + +void AlbClient::updateLoadBalancerEditionAsync(const UpdateLoadBalancerEditionRequest& request, const UpdateLoadBalancerEditionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerEdition(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateLoadBalancerEditionOutcomeCallable AlbClient::updateLoadBalancerEditionCallable(const UpdateLoadBalancerEditionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerEdition(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateRuleAttributeOutcome AlbClient::updateRuleAttribute(const UpdateRuleAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRuleAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRuleAttributeOutcome(UpdateRuleAttributeResult(outcome.result())); + else + return UpdateRuleAttributeOutcome(outcome.error()); +} + +void AlbClient::updateRuleAttributeAsync(const UpdateRuleAttributeRequest& request, const UpdateRuleAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRuleAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateRuleAttributeOutcomeCallable AlbClient::updateRuleAttributeCallable(const UpdateRuleAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRuleAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateRulesAttributeOutcome AlbClient::updateRulesAttribute(const UpdateRulesAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRulesAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRulesAttributeOutcome(UpdateRulesAttributeResult(outcome.result())); + else + return UpdateRulesAttributeOutcome(outcome.error()); +} + +void AlbClient::updateRulesAttributeAsync(const UpdateRulesAttributeRequest& request, const UpdateRulesAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRulesAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateRulesAttributeOutcomeCallable AlbClient::updateRulesAttributeCallable(const UpdateRulesAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRulesAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateSecurityPolicyAttributeOutcome AlbClient::updateSecurityPolicyAttribute(const UpdateSecurityPolicyAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSecurityPolicyAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSecurityPolicyAttributeOutcome(UpdateSecurityPolicyAttributeResult(outcome.result())); + else + return UpdateSecurityPolicyAttributeOutcome(outcome.error()); +} + +void AlbClient::updateSecurityPolicyAttributeAsync(const UpdateSecurityPolicyAttributeRequest& request, const UpdateSecurityPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSecurityPolicyAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateSecurityPolicyAttributeOutcomeCallable AlbClient::updateSecurityPolicyAttributeCallable(const UpdateSecurityPolicyAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSecurityPolicyAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateServerGroupAttributeOutcome AlbClient::updateServerGroupAttribute(const UpdateServerGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServerGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServerGroupAttributeOutcome(UpdateServerGroupAttributeResult(outcome.result())); + else + return UpdateServerGroupAttributeOutcome(outcome.error()); +} + +void AlbClient::updateServerGroupAttributeAsync(const UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServerGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateServerGroupAttributeOutcomeCallable AlbClient::updateServerGroupAttributeCallable(const UpdateServerGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServerGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AlbClient::UpdateServerGroupServersAttributeOutcome AlbClient::updateServerGroupServersAttribute(const UpdateServerGroupServersAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServerGroupServersAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServerGroupServersAttributeOutcome(UpdateServerGroupServersAttributeResult(outcome.result())); + else + return UpdateServerGroupServersAttributeOutcome(outcome.error()); +} + +void AlbClient::updateServerGroupServersAttributeAsync(const UpdateServerGroupServersAttributeRequest& request, const UpdateServerGroupServersAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServerGroupServersAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AlbClient::UpdateServerGroupServersAttributeOutcomeCallable AlbClient::updateServerGroupServersAttributeCallable(const UpdateServerGroupServersAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServerGroupServersAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/alb/src/model/AddEntriesToAclRequest.cc b/alb/src/model/AddEntriesToAclRequest.cc new file mode 100644 index 000000000..a51fba883 --- /dev/null +++ b/alb/src/model/AddEntriesToAclRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Alb::Model::AddEntriesToAclRequest; + +AddEntriesToAclRequest::AddEntriesToAclRequest() + : RpcServiceRequest("alb", "2020-06-16", "AddEntriesToAcl") { + setMethod(HttpRequest::Method::Post); +} + +AddEntriesToAclRequest::~AddEntriesToAclRequest() {} + +std::string AddEntriesToAclRequest::getClientToken() const { + return clientToken_; +} + +void AddEntriesToAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AddEntriesToAclRequest::getAclId() const { + return aclId_; +} + +void AddEntriesToAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +bool AddEntriesToAclRequest::getDryRun() const { + return dryRun_; +} + +void AddEntriesToAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector AddEntriesToAclRequest::getAclEntries() const { + return aclEntries_; +} + +void AddEntriesToAclRequest::setAclEntries(const std::vector &aclEntries) { + aclEntries_ = aclEntries; + for(int dep1 = 0; dep1 != aclEntries.size(); dep1++) { + setParameter(std::string("AclEntries") + "." + std::to_string(dep1 + 1) + ".Entry", aclEntries[dep1].entry); + setParameter(std::string("AclEntries") + "." + std::to_string(dep1 + 1) + ".Description", aclEntries[dep1].description); + } +} + diff --git a/alb/src/model/AddEntriesToAclResult.cc b/alb/src/model/AddEntriesToAclResult.cc new file mode 100644 index 000000000..02f048bc5 --- /dev/null +++ b/alb/src/model/AddEntriesToAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +AddEntriesToAclResult::AddEntriesToAclResult() : + ServiceResult() +{} + +AddEntriesToAclResult::AddEntriesToAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddEntriesToAclResult::~AddEntriesToAclResult() +{} + +void AddEntriesToAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AddEntriesToAclResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/AddServersToServerGroupRequest.cc b/alb/src/model/AddServersToServerGroupRequest.cc new file mode 100644 index 000000000..52c1edd97 --- /dev/null +++ b/alb/src/model/AddServersToServerGroupRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::AddServersToServerGroupRequest; + +AddServersToServerGroupRequest::AddServersToServerGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "AddServersToServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +AddServersToServerGroupRequest::~AddServersToServerGroupRequest() {} + +std::string AddServersToServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void AddServersToServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AddServersToServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void AddServersToServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector AddServersToServerGroupRequest::getServers() const { + return servers_; +} + +void AddServersToServerGroupRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port)); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Description", servers[dep1].description); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerIp", servers[dep1].serverIp); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(servers[dep1].weight)); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerId", servers[dep1].serverId); + } +} + +bool AddServersToServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void AddServersToServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/AddServersToServerGroupResult.cc b/alb/src/model/AddServersToServerGroupResult.cc new file mode 100644 index 000000000..983ad470c --- /dev/null +++ b/alb/src/model/AddServersToServerGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +AddServersToServerGroupResult::AddServersToServerGroupResult() : + ServiceResult() +{} + +AddServersToServerGroupResult::AddServersToServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddServersToServerGroupResult::~AddServersToServerGroupResult() +{} + +void AddServersToServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AddServersToServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/AssociateAclsWithListenerRequest.cc b/alb/src/model/AssociateAclsWithListenerRequest.cc new file mode 100644 index 000000000..72f34c91a --- /dev/null +++ b/alb/src/model/AssociateAclsWithListenerRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::AssociateAclsWithListenerRequest; + +AssociateAclsWithListenerRequest::AssociateAclsWithListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "AssociateAclsWithListener") { + setMethod(HttpRequest::Method::Post); +} + +AssociateAclsWithListenerRequest::~AssociateAclsWithListenerRequest() {} + +std::string AssociateAclsWithListenerRequest::getClientToken() const { + return clientToken_; +} + +void AssociateAclsWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector AssociateAclsWithListenerRequest::getAclIds() const { + return aclIds_; +} + +void AssociateAclsWithListenerRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; + for(int dep1 = 0; dep1 != aclIds.size(); dep1++) { + setParameter(std::string("AclIds") + "." + std::to_string(dep1 + 1), aclIds[dep1]); + } +} + +std::string AssociateAclsWithListenerRequest::getAclType() const { + return aclType_; +} + +void AssociateAclsWithListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string AssociateAclsWithListenerRequest::getListenerId() const { + return listenerId_; +} + +void AssociateAclsWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool AssociateAclsWithListenerRequest::getDryRun() const { + return dryRun_; +} + +void AssociateAclsWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/AssociateAclsWithListenerResult.cc b/alb/src/model/AssociateAclsWithListenerResult.cc new file mode 100644 index 000000000..065822ec9 --- /dev/null +++ b/alb/src/model/AssociateAclsWithListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +AssociateAclsWithListenerResult::AssociateAclsWithListenerResult() : + ServiceResult() +{} + +AssociateAclsWithListenerResult::AssociateAclsWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateAclsWithListenerResult::~AssociateAclsWithListenerResult() +{} + +void AssociateAclsWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AssociateAclsWithListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc b/alb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc new file mode 100644 index 000000000..7f3453e5e --- /dev/null +++ b/alb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::AssociateAdditionalCertificatesWithListenerRequest; + +AssociateAdditionalCertificatesWithListenerRequest::AssociateAdditionalCertificatesWithListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "AssociateAdditionalCertificatesWithListener") { + setMethod(HttpRequest::Method::Post); +} + +AssociateAdditionalCertificatesWithListenerRequest::~AssociateAdditionalCertificatesWithListenerRequest() {} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getClientToken() const { + return clientToken_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getListenerId() const { + return listenerId_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool AssociateAdditionalCertificatesWithListenerRequest::getDryRun() const { + return dryRun_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector AssociateAdditionalCertificatesWithListenerRequest::getCertificates() const { + return certificates_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + setParameter(std::string("Certificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", certificates[dep1].certificateId); + } +} + diff --git a/alb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc b/alb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc new file mode 100644 index 000000000..849f38177 --- /dev/null +++ b/alb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +AssociateAdditionalCertificatesWithListenerResult::AssociateAdditionalCertificatesWithListenerResult() : + ServiceResult() +{} + +AssociateAdditionalCertificatesWithListenerResult::AssociateAdditionalCertificatesWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateAdditionalCertificatesWithListenerResult::~AssociateAdditionalCertificatesWithListenerResult() +{} + +void AssociateAdditionalCertificatesWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/CreateAclRequest.cc b/alb/src/model/CreateAclRequest.cc new file mode 100644 index 000000000..9ca388bf9 --- /dev/null +++ b/alb/src/model/CreateAclRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::CreateAclRequest; + +CreateAclRequest::CreateAclRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateAcl") { + setMethod(HttpRequest::Method::Post); +} + +CreateAclRequest::~CreateAclRequest() {} + +std::string CreateAclRequest::getAclName() const { + return aclName_; +} + +void CreateAclRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); +} + +std::string CreateAclRequest::getClientToken() const { + return clientToken_; +} + +void CreateAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAclRequest::getAddressIpVersion() const { + return addressIpVersion_; +} + +void CreateAclRequest::setAddressIpVersion(const std::string &addressIpVersion) { + addressIpVersion_ = addressIpVersion; + setParameter(std::string("AddressIpVersion"), addressIpVersion); +} + +std::string CreateAclRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateAclRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +bool CreateAclRequest::getDryRun() const { + return dryRun_; +} + +void CreateAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/CreateAclResult.cc b/alb/src/model/CreateAclResult.cc new file mode 100644 index 000000000..13d04e637 --- /dev/null +++ b/alb/src/model/CreateAclResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateAclResult::CreateAclResult() : + ServiceResult() +{} + +CreateAclResult::CreateAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAclResult::~CreateAclResult() +{} + +void CreateAclResult::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(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateAclResult::getAclId()const +{ + return aclId_; +} + +std::string CreateAclResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/CreateHealthCheckTemplateRequest.cc b/alb/src/model/CreateHealthCheckTemplateRequest.cc new file mode 100644 index 000000000..ca8334ef6 --- /dev/null +++ b/alb/src/model/CreateHealthCheckTemplateRequest.cc @@ -0,0 +1,175 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateHealthCheckTemplateRequest; + +CreateHealthCheckTemplateRequest::CreateHealthCheckTemplateRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateHealthCheckTemplate") { + setMethod(HttpRequest::Method::Post); +} + +CreateHealthCheckTemplateRequest::~CreateHealthCheckTemplateRequest() {} + +int CreateHealthCheckTemplateRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string CreateHealthCheckTemplateRequest::getClientToken() const { + return clientToken_; +} + +void CreateHealthCheckTemplateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckProtocol() const { + return healthCheckProtocol_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckProtocol(const std::string &healthCheckProtocol) { + healthCheckProtocol_ = healthCheckProtocol; + setParameter(std::string("HealthCheckProtocol"), healthCheckProtocol); +} + +int CreateHealthCheckTemplateRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateHealthCheckTemplateRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateHealthCheckTemplateRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateHealthCheckTemplateRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +bool CreateHealthCheckTemplateRequest::getHealthCheckTcpFastCloseEnabled() const { + return healthCheckTcpFastCloseEnabled_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled) { + healthCheckTcpFastCloseEnabled_ = healthCheckTcpFastCloseEnabled; + setParameter(std::string("HealthCheckTcpFastCloseEnabled"), healthCheckTcpFastCloseEnabled ? "true" : "false"); +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckPath() const { + return healthCheckPath_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckPath(const std::string &healthCheckPath) { + healthCheckPath_ = healthCheckPath; + setParameter(std::string("HealthCheckPath"), healthCheckPath); +} + +std::vector CreateHealthCheckTemplateRequest::getHealthCheckCodes() const { + return healthCheckCodes_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckCodes(const std::vector &healthCheckCodes) { + healthCheckCodes_ = healthCheckCodes; + for(int dep1 = 0; dep1 != healthCheckCodes.size(); dep1++) { + setParameter(std::string("HealthCheckCodes") + "." + std::to_string(dep1 + 1), healthCheckCodes[dep1]); + } +} + +bool CreateHealthCheckTemplateRequest::getDryRun() const { + return dryRun_; +} + +void CreateHealthCheckTemplateRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckHost() const { + return healthCheckHost_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckHost(const std::string &healthCheckHost) { + healthCheckHost_ = healthCheckHost; + setParameter(std::string("HealthCheckHost"), healthCheckHost); +} + +int CreateHealthCheckTemplateRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckTemplateName() const { + return healthCheckTemplateName_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckTemplateName(const std::string &healthCheckTemplateName) { + healthCheckTemplateName_ = healthCheckTemplateName; + setParameter(std::string("HealthCheckTemplateName"), healthCheckTemplateName); +} + +std::vector CreateHealthCheckTemplateRequest::getHealthCheckHttpCodes() const { + return healthCheckHttpCodes_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckHttpCodes(const std::vector &healthCheckHttpCodes) { + healthCheckHttpCodes_ = healthCheckHttpCodes; + for(int dep1 = 0; dep1 != healthCheckHttpCodes.size(); dep1++) { + setParameter(std::string("HealthCheckHttpCodes") + "." + std::to_string(dep1 + 1), healthCheckHttpCodes[dep1]); + } +} + +std::string CreateHealthCheckTemplateRequest::getHealthCheckHttpVersion() const { + return healthCheckHttpVersion_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion) { + healthCheckHttpVersion_ = healthCheckHttpVersion; + setParameter(std::string("HealthCheckHttpVersion"), healthCheckHttpVersion); +} + +int CreateHealthCheckTemplateRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateHealthCheckTemplateRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + diff --git a/alb/src/model/CreateHealthCheckTemplateResult.cc b/alb/src/model/CreateHealthCheckTemplateResult.cc new file mode 100644 index 000000000..ebaf57f40 --- /dev/null +++ b/alb/src/model/CreateHealthCheckTemplateResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateHealthCheckTemplateResult::CreateHealthCheckTemplateResult() : + ServiceResult() +{} + +CreateHealthCheckTemplateResult::CreateHealthCheckTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHealthCheckTemplateResult::~CreateHealthCheckTemplateResult() +{} + +void CreateHealthCheckTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HealthCheckTemplateId"].isNull()) + healthCheckTemplateId_ = value["HealthCheckTemplateId"].asString(); + +} + +std::string CreateHealthCheckTemplateResult::getHealthCheckTemplateId()const +{ + return healthCheckTemplateId_; +} + diff --git a/alb/src/model/CreateListenerRequest.cc b/alb/src/model/CreateListenerRequest.cc new file mode 100644 index 000000000..78a3c6681 --- /dev/null +++ b/alb/src/model/CreateListenerRequest.cc @@ -0,0 +1,202 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateListenerRequest; + +CreateListenerRequest::CreateListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateListenerRequest::~CreateListenerRequest() {} + +std::string CreateListenerRequest::getClientToken() const { + return clientToken_; +} + +void CreateListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool CreateListenerRequest::getGzipEnabled() const { + return gzipEnabled_; +} + +void CreateListenerRequest::setGzipEnabled(bool gzipEnabled) { + gzipEnabled_ = gzipEnabled; + setParameter(std::string("GzipEnabled"), gzipEnabled ? "true" : "false"); +} + +CreateListenerRequest::QuicConfig CreateListenerRequest::getQuicConfig() const { + return quicConfig_; +} + +void CreateListenerRequest::setQuicConfig(const CreateListenerRequest::QuicConfig &quicConfig) { + quicConfig_ = quicConfig; + setParameter(std::string("QuicConfig") + ".QuicUpgradeEnabled", quicConfig.quicUpgradeEnabled ? "true" : "false"); + setParameter(std::string("QuicConfig") + ".QuicListenerId", quicConfig.quicListenerId); +} + +bool CreateListenerRequest::getHttp2Enabled() const { + return http2Enabled_; +} + +void CreateListenerRequest::setHttp2Enabled(bool http2Enabled) { + http2Enabled_ = http2Enabled; + setParameter(std::string("Http2Enabled"), http2Enabled ? "true" : "false"); +} + +std::vector CreateListenerRequest::getDefaultActions() const { + return defaultActions_; +} + +void CreateListenerRequest::setDefaultActions(const std::vector &defaultActions) { + defaultActions_ = defaultActions; + for(int dep1 = 0; dep1 != defaultActions.size(); dep1++) { + for(int dep2 = 0; dep2 != defaultActions[dep1].forwardGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("DefaultActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", defaultActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].serverGroupId); + } + setParameter(std::string("DefaultActions") + "." + std::to_string(dep1 + 1) + ".Type", defaultActions[dep1].type); + } +} + +int CreateListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +bool CreateListenerRequest::getDryRun() const { + return dryRun_; +} + +void CreateListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +int CreateListenerRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void CreateListenerRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::vector CreateListenerRequest::getCaCertificates() const { + return caCertificates_; +} + +void CreateListenerRequest::setCaCertificates(const std::vector &caCertificates) { + caCertificates_ = caCertificates; + for(int dep1 = 0; dep1 != caCertificates.size(); dep1++) { + setParameter(std::string("CaCertificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", caCertificates[dep1].certificateId); + } +} + +CreateListenerRequest::XForwardedForConfig CreateListenerRequest::getXForwardedForConfig() const { + return xForwardedForConfig_; +} + +void CreateListenerRequest::setXForwardedForConfig(const CreateListenerRequest::XForwardedForConfig &xForwardedForConfig) { + xForwardedForConfig_ = xForwardedForConfig; + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNAlias", xForwardedForConfig.xForwardedForClientCertSubjectDNAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNEnabled", xForwardedForConfig.xForwardedForClientCertIssuerDNEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintEnabled", xForwardedForConfig.xForwardedForClientCertFingerprintEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNAlias", xForwardedForConfig.xForwardedForClientCertIssuerDNAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintAlias", xForwardedForConfig.xForwardedForClientCertFingerprintAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertClientVerifyEnabled", xForwardedForConfig.xForwardedForClientCertClientVerifyEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForSLBPortEnabled", xForwardedForConfig.xForwardedForSLBPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNEnabled", xForwardedForConfig.xForwardedForClientCertSubjectDNEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertClientVerifyAlias", xForwardedForConfig.xForwardedForClientCertClientVerifyAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientSrcPortEnabled", xForwardedForConfig.xForwardedForClientSrcPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForEnabled", xForwardedForConfig.xForwardedForEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForSLBIdEnabled", xForwardedForConfig.xForwardedForSLBIdEnabled ? "true" : "false"); +} + +std::string CreateListenerRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void CreateListenerRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string CreateListenerRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void CreateListenerRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + +int CreateListenerRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void CreateListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::string CreateListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::vector CreateListenerRequest::getCertificates() const { + return certificates_; +} + +void CreateListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + setParameter(std::string("Certificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", certificates[dep1].certificateId); + } +} + +std::string CreateListenerRequest::getListenerDescription() const { + return listenerDescription_; +} + +void CreateListenerRequest::setListenerDescription(const std::string &listenerDescription) { + listenerDescription_ = listenerDescription; + setParameter(std::string("ListenerDescription"), listenerDescription); +} + +bool CreateListenerRequest::getCaEnabled() const { + return caEnabled_; +} + +void CreateListenerRequest::setCaEnabled(bool caEnabled) { + caEnabled_ = caEnabled; + setParameter(std::string("CaEnabled"), caEnabled ? "true" : "false"); +} + diff --git a/alb/src/model/CreateListenerResult.cc b/alb/src/model/CreateListenerResult.cc new file mode 100644 index 000000000..d527596ad --- /dev/null +++ b/alb/src/model/CreateListenerResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateListenerResult::CreateListenerResult() : + ServiceResult() +{} + +CreateListenerResult::CreateListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateListenerResult::~CreateListenerResult() +{} + +void CreateListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::string CreateListenerResult::getJobId()const +{ + return jobId_; +} + +std::string CreateListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/alb/src/model/CreateLoadBalancerRequest.cc b/alb/src/model/CreateLoadBalancerRequest.cc new file mode 100644 index 000000000..bec71c4c9 --- /dev/null +++ b/alb/src/model/CreateLoadBalancerRequest.cc @@ -0,0 +1,141 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateLoadBalancerRequest; + +CreateLoadBalancerRequest::CreateLoadBalancerRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerRequest::~CreateLoadBalancerRequest() {} + +std::string CreateLoadBalancerRequest::getLoadBalancerEdition() const { + return loadBalancerEdition_; +} + +void CreateLoadBalancerRequest::setLoadBalancerEdition(const std::string &loadBalancerEdition) { + loadBalancerEdition_ = loadBalancerEdition; + setParameter(std::string("LoadBalancerEdition"), loadBalancerEdition); +} + +std::string CreateLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +CreateLoadBalancerRequest::ModificationProtectionConfig CreateLoadBalancerRequest::getModificationProtectionConfig() const { + return modificationProtectionConfig_; +} + +void CreateLoadBalancerRequest::setModificationProtectionConfig(const CreateLoadBalancerRequest::ModificationProtectionConfig &modificationProtectionConfig) { + modificationProtectionConfig_ = modificationProtectionConfig; + setParameter(std::string("ModificationProtectionConfig") + ".Reason", modificationProtectionConfig.reason); + setParameter(std::string("ModificationProtectionConfig") + ".Status", modificationProtectionConfig.status); +} + +CreateLoadBalancerRequest::LoadBalancerBillingConfig CreateLoadBalancerRequest::getLoadBalancerBillingConfig() const { + return loadBalancerBillingConfig_; +} + +void CreateLoadBalancerRequest::setLoadBalancerBillingConfig(const CreateLoadBalancerRequest::LoadBalancerBillingConfig &loadBalancerBillingConfig) { + loadBalancerBillingConfig_ = loadBalancerBillingConfig; + setParameter(std::string("LoadBalancerBillingConfig") + ".InternetChargeType", loadBalancerBillingConfig.internetChargeType); + setParameter(std::string("LoadBalancerBillingConfig") + ".InternetBandwidth", std::to_string(loadBalancerBillingConfig.internetBandwidth)); + setParameter(std::string("LoadBalancerBillingConfig") + ".PayType", loadBalancerBillingConfig.payType); +} + +bool CreateLoadBalancerRequest::getDeletionProtectionEnabled() const { + return deletionProtectionEnabled_; +} + +void CreateLoadBalancerRequest::setDeletionProtectionEnabled(bool deletionProtectionEnabled) { + deletionProtectionEnabled_ = deletionProtectionEnabled; + setParameter(std::string("DeletionProtectionEnabled"), deletionProtectionEnabled ? "true" : "false"); +} + +std::string CreateLoadBalancerRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateLoadBalancerRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateLoadBalancerRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string CreateLoadBalancerRequest::getAddressType() const { + return addressType_; +} + +void CreateLoadBalancerRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::string CreateLoadBalancerRequest::getAddressAllocatedMode() const { + return addressAllocatedMode_; +} + +void CreateLoadBalancerRequest::setAddressAllocatedMode(const std::string &addressAllocatedMode) { + addressAllocatedMode_ = addressAllocatedMode; + setParameter(std::string("AddressAllocatedMode"), addressAllocatedMode); +} + +bool CreateLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void CreateLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector CreateLoadBalancerRequest::getZoneMappings() const { + return zoneMappings_; +} + +void CreateLoadBalancerRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId); + setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId); + } +} + +std::string CreateLoadBalancerRequest::getVpcId() const { + return vpcId_; +} + +void CreateLoadBalancerRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/alb/src/model/CreateLoadBalancerResult.cc b/alb/src/model/CreateLoadBalancerResult.cc new file mode 100644 index 000000000..b87453325 --- /dev/null +++ b/alb/src/model/CreateLoadBalancerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateLoadBalancerResult::CreateLoadBalancerResult() : + ServiceResult() +{} + +CreateLoadBalancerResult::CreateLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerResult::~CreateLoadBalancerResult() +{} + +void CreateLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + +} + +std::string CreateLoadBalancerResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + diff --git a/alb/src/model/CreateRuleRequest.cc b/alb/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..a2dd4c7e7 --- /dev/null +++ b/alb/src/model/CreateRuleRequest.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateRuleRequest::~CreateRuleRequest() {} + +std::string CreateRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateRuleRequest::getRuleName() const { + return ruleName_; +} + +void CreateRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string CreateRuleRequest::getListenerId() const { + return listenerId_; +} + +void CreateRuleRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string CreateRuleRequest::getDirection() const { + return direction_; +} + +void CreateRuleRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + +std::vector CreateRuleRequest::getRuleActions() const { + return ruleActions_; +} + +void CreateRuleRequest::setRuleActions(const std::vector &ruleActions) { + ruleActions_ = ruleActions; + for(int dep1 = 0; dep1 != ruleActions.size(); dep1++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.HttpCode", ruleActions[dep1].fixedResponseConfig.httpCode); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.Content", ruleActions[dep1].fixedResponseConfig.content); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.ContentType", ruleActions[dep1].fixedResponseConfig.contentType); + for(int dep2 = 0; dep2 != ruleActions[dep1].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", ruleActions[dep1].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep2].serverGroupId); + } + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficMirrorConfig.TargetType", ruleActions[dep1].trafficMirrorConfig.targetType); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", ruleActions[dep1].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false"); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(ruleActions[dep1].forwardGroupConfig.serverGroupStickySession.timeout)); + for(int dep2 = 0; dep2 != ruleActions[dep1].forwardGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", ruleActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].serverGroupId); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".Weight", std::to_string(ruleActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].weight)); + } + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RemoveHeaderConfig.Key", ruleActions[dep1].removeHeaderConfig.key); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.ValueType", ruleActions[dep1].insertHeaderConfig.valueType); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.CoverEnabled", ruleActions[dep1].insertHeaderConfig.coverEnabled ? "true" : "false"); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS)); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Query", ruleActions[dep1].redirectConfig.query); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Host", ruleActions[dep1].redirectConfig.host); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.HttpCode", ruleActions[dep1].redirectConfig.httpCode); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".Type", ruleActions[dep1].type); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".Order", std::to_string(ruleActions[dep1].order)); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Path", ruleActions[dep1].rewriteConfig.path); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Query", ruleActions[dep1].rewriteConfig.query); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Host", ruleActions[dep1].rewriteConfig.host); + } +} + +std::vector CreateRuleRequest::getRuleConditions() const { + return ruleConditions_; +} + +void CreateRuleRequest::setRuleConditions(const std::vector &ruleConditions) { + ruleConditions_ = ruleConditions; + for(int dep1 = 0; dep1 != ruleConditions.size(); dep1++) { + for(int dep2 = 0; dep2 != ruleConditions[dep1].methodConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".MethodConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].methodConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].sourceIpConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".SourceIpConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].sourceIpConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].hostConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HostConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].hostConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].queryStringConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".QueryStringConfig.Values." + std::to_string(dep2 + 1) + ".Value", ruleConditions[dep1].queryStringConfig.values[dep2].value); + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".QueryStringConfig.Values." + std::to_string(dep2 + 1) + ".Key", ruleConditions[dep1].queryStringConfig.values[dep2].key); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].responseStatusCodeConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].responseStatusCodeConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].pathConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".PathConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].pathConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].cookieConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".CookieConfig.Values." + std::to_string(dep2 + 1) + ".Value", ruleConditions[dep1].cookieConfig.values[dep2].value); + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".CookieConfig.Values." + std::to_string(dep2 + 1) + ".Key", ruleConditions[dep1].cookieConfig.values[dep2].key); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".Type", ruleConditions[dep1].type); + for(int dep2 = 0; dep2 != ruleConditions[dep1].headerConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HeaderConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].headerConfig.values[dep2]); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HeaderConfig.Key", ruleConditions[dep1].headerConfig.key); + for(int dep2 = 0; dep2 != ruleConditions[dep1].responseHeaderConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].responseHeaderConfig.values[dep2]); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseHeaderConfig.Key", ruleConditions[dep1].responseHeaderConfig.key); + } +} + +bool CreateRuleRequest::getDryRun() const { + return dryRun_; +} + +void CreateRuleRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +int CreateRuleRequest::getPriority() const { + return priority_; +} + +void CreateRuleRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + diff --git a/alb/src/model/CreateRuleResult.cc b/alb/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..a2a5940e7 --- /dev/null +++ b/alb/src/model/CreateRuleResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["RuleId"].isNull()) + ruleId_ = value["RuleId"].asString(); + +} + +std::string CreateRuleResult::getRuleId()const +{ + return ruleId_; +} + +std::string CreateRuleResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/CreateRulesRequest.cc b/alb/src/model/CreateRulesRequest.cc new file mode 100644 index 000000000..eb434b8f0 --- /dev/null +++ b/alb/src/model/CreateRulesRequest.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateRulesRequest; + +CreateRulesRequest::CreateRulesRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateRules") { + setMethod(HttpRequest::Method::Post); +} + +CreateRulesRequest::~CreateRulesRequest() {} + +std::string CreateRulesRequest::getClientToken() const { + return clientToken_; +} + +void CreateRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateRulesRequest::getRules() const { + return rules_; +} + +void CreateRulesRequest::setRules(const std::vector &rules) { + rules_ = rules; + for(int dep1 = 0; dep1 != rules.size(); dep1++) { + for(int dep2 = 0; dep2 != rules[dep1].ruleConditions.size(); dep2++) { + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].methodConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].sourceIpConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].queryStringConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].cookieConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type); + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].headerConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key); + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseHeaderConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority)); + for(int dep2 = 0; dep2 != rules[dep1].ruleActions.size(); dep2++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType); + for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false"); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout)); + for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight)); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false"); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS)); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order)); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Direction", rules[dep1].direction); + } +} + +std::string CreateRulesRequest::getListenerId() const { + return listenerId_; +} + +void CreateRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool CreateRulesRequest::getDryRun() const { + return dryRun_; +} + +void CreateRulesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/CreateRulesResult.cc b/alb/src/model/CreateRulesResult.cc new file mode 100644 index 000000000..a8616cd2e --- /dev/null +++ b/alb/src/model/CreateRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateRulesResult::CreateRulesResult() : + ServiceResult() +{} + +CreateRulesResult::CreateRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRulesResult::~CreateRulesResult() +{} + +void CreateRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleIdsNode = value["RuleIds"]["RuleId"]; + for (auto valueRuleIdsRuleId : allRuleIdsNode) + { + RuleId ruleIdsObject; + if(!valueRuleIdsRuleId["RuleId"].isNull()) + ruleIdsObject.ruleId = valueRuleIdsRuleId["RuleId"].asString(); + if(!valueRuleIdsRuleId["Priority"].isNull()) + ruleIdsObject.priority = std::stoi(valueRuleIdsRuleId["Priority"].asString()); + ruleIds_.push_back(ruleIdsObject); + } + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::vector CreateRulesResult::getRuleIds()const +{ + return ruleIds_; +} + +std::string CreateRulesResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/CreateSecurityPolicyRequest.cc b/alb/src/model/CreateSecurityPolicyRequest.cc new file mode 100644 index 000000000..aa3751548 --- /dev/null +++ b/alb/src/model/CreateSecurityPolicyRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::CreateSecurityPolicyRequest; + +CreateSecurityPolicyRequest::CreateSecurityPolicyRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateSecurityPolicyRequest::~CreateSecurityPolicyRequest() {} + +std::string CreateSecurityPolicyRequest::getClientToken() const { + return clientToken_; +} + +void CreateSecurityPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateSecurityPolicyRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateSecurityPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::vector CreateSecurityPolicyRequest::getCiphers() const { + return ciphers_; +} + +void CreateSecurityPolicyRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; + for(int dep1 = 0; dep1 != ciphers.size(); dep1++) { + setParameter(std::string("Ciphers") + "." + std::to_string(dep1 + 1), ciphers[dep1]); + } +} + +std::vector CreateSecurityPolicyRequest::getTLSVersions() const { + return tLSVersions_; +} + +void CreateSecurityPolicyRequest::setTLSVersions(const std::vector &tLSVersions) { + tLSVersions_ = tLSVersions; + for(int dep1 = 0; dep1 != tLSVersions.size(); dep1++) { + setParameter(std::string("TLSVersions") + "." + std::to_string(dep1 + 1), tLSVersions[dep1]); + } +} + +std::string CreateSecurityPolicyRequest::getSecurityPolicyName() const { + return securityPolicyName_; +} + +void CreateSecurityPolicyRequest::setSecurityPolicyName(const std::string &securityPolicyName) { + securityPolicyName_ = securityPolicyName; + setParameter(std::string("SecurityPolicyName"), securityPolicyName); +} + +bool CreateSecurityPolicyRequest::getDryRun() const { + return dryRun_; +} + +void CreateSecurityPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/CreateSecurityPolicyResult.cc b/alb/src/model/CreateSecurityPolicyResult.cc new file mode 100644 index 000000000..476ab134a --- /dev/null +++ b/alb/src/model/CreateSecurityPolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateSecurityPolicyResult::CreateSecurityPolicyResult() : + ServiceResult() +{} + +CreateSecurityPolicyResult::CreateSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSecurityPolicyResult::~CreateSecurityPolicyResult() +{} + +void CreateSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + +} + +std::string CreateSecurityPolicyResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + diff --git a/alb/src/model/CreateServerGroupRequest.cc b/alb/src/model/CreateServerGroupRequest.cc new file mode 100644 index 000000000..a087b56f0 --- /dev/null +++ b/alb/src/model/CreateServerGroupRequest.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::Alb::Model::CreateServerGroupRequest; + +CreateServerGroupRequest::CreateServerGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "CreateServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateServerGroupRequest::~CreateServerGroupRequest() {} + +std::string CreateServerGroupRequest::getServerGroupName() const { + return serverGroupName_; +} + +void CreateServerGroupRequest::setServerGroupName(const std::string &serverGroupName) { + serverGroupName_ = serverGroupName; + setParameter(std::string("ServerGroupName"), serverGroupName); +} + +std::string CreateServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void CreateServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +CreateServerGroupRequest::HealthCheckConfig CreateServerGroupRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void CreateServerGroupRequest::setHealthCheckConfig(const CreateServerGroupRequest::HealthCheckConfig &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckCodes.size(); dep1++) { + setParameter(std::string("HealthCheckConfig") + ".HealthCheckCodes." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckCodes[dep1]); + } + setParameter(std::string("HealthCheckConfig") + ".HealthCheckEnabled", healthCheckConfig.healthCheckEnabled ? "true" : "false"); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckTimeout", std::to_string(healthCheckConfig.healthCheckTimeout)); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckMethod", healthCheckConfig.healthCheckMethod); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHost", healthCheckConfig.healthCheckHost); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckProtocol", healthCheckConfig.healthCheckProtocol); + setParameter(std::string("HealthCheckConfig") + ".UnhealthyThreshold", std::to_string(healthCheckConfig.unhealthyThreshold)); + setParameter(std::string("HealthCheckConfig") + ".HealthyThreshold", std::to_string(healthCheckConfig.healthyThreshold)); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckTcpFastCloseEnabled", healthCheckConfig.healthCheckTcpFastCloseEnabled ? "true" : "false"); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckPath", healthCheckConfig.healthCheckPath); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckInterval", std::to_string(healthCheckConfig.healthCheckInterval)); + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckHttpCodes.size(); dep1++) { + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpCodes." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckHttpCodes[dep1]); + } + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpVersion", healthCheckConfig.healthCheckHttpVersion); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort)); +} + +std::string CreateServerGroupRequest::getScheduler() const { + return scheduler_; +} + +void CreateServerGroupRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string CreateServerGroupRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateServerGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateServerGroupRequest::getProtocol() const { + return protocol_; +} + +void CreateServerGroupRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const { + return stickySessionConfig_; +} + +void CreateServerGroupRequest::setStickySessionConfig(const CreateServerGroupRequest::StickySessionConfig &stickySessionConfig) { + stickySessionConfig_ = stickySessionConfig; + setParameter(std::string("StickySessionConfig") + ".StickySessionEnabled", stickySessionConfig.stickySessionEnabled ? "true" : "false"); + setParameter(std::string("StickySessionConfig") + ".Cookie", stickySessionConfig.cookie); + setParameter(std::string("StickySessionConfig") + ".CookieTimeout", std::to_string(stickySessionConfig.cookieTimeout)); + setParameter(std::string("StickySessionConfig") + ".StickySessionType", stickySessionConfig.stickySessionType); +} + +bool CreateServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void CreateServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateServerGroupRequest::getServerGroupType() const { + return serverGroupType_; +} + +void CreateServerGroupRequest::setServerGroupType(const std::string &serverGroupType) { + serverGroupType_ = serverGroupType; + setParameter(std::string("ServerGroupType"), serverGroupType); +} + +std::string CreateServerGroupRequest::getVpcId() const { + return vpcId_; +} + +void CreateServerGroupRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/alb/src/model/CreateServerGroupResult.cc b/alb/src/model/CreateServerGroupResult.cc new file mode 100644 index 000000000..62e487464 --- /dev/null +++ b/alb/src/model/CreateServerGroupResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +CreateServerGroupResult::CreateServerGroupResult() : + ServiceResult() +{} + +CreateServerGroupResult::CreateServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServerGroupResult::~CreateServerGroupResult() +{} + +void CreateServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + +} + +std::string CreateServerGroupResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string CreateServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteAclRequest.cc b/alb/src/model/DeleteAclRequest.cc new file mode 100644 index 000000000..f66becf33 --- /dev/null +++ b/alb/src/model/DeleteAclRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteAclRequest; + +DeleteAclRequest::DeleteAclRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteAcl") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAclRequest::~DeleteAclRequest() {} + +std::string DeleteAclRequest::getClientToken() const { + return clientToken_; +} + +void DeleteAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteAclRequest::getAclId() const { + return aclId_; +} + +void DeleteAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +bool DeleteAclRequest::getDryRun() const { + return dryRun_; +} + +void DeleteAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/DeleteAclResult.cc b/alb/src/model/DeleteAclResult.cc new file mode 100644 index 000000000..df0ad4cba --- /dev/null +++ b/alb/src/model/DeleteAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteAclResult::DeleteAclResult() : + ServiceResult() +{} + +DeleteAclResult::DeleteAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAclResult::~DeleteAclResult() +{} + +void DeleteAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteAclResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteHealthCheckTemplatesRequest.cc b/alb/src/model/DeleteHealthCheckTemplatesRequest.cc new file mode 100644 index 000000000..8c7cac29c --- /dev/null +++ b/alb/src/model/DeleteHealthCheckTemplatesRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteHealthCheckTemplatesRequest; + +DeleteHealthCheckTemplatesRequest::DeleteHealthCheckTemplatesRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteHealthCheckTemplates") { + setMethod(HttpRequest::Method::Post); +} + +DeleteHealthCheckTemplatesRequest::~DeleteHealthCheckTemplatesRequest() {} + +std::string DeleteHealthCheckTemplatesRequest::getClientToken() const { + return clientToken_; +} + +void DeleteHealthCheckTemplatesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DeleteHealthCheckTemplatesRequest::getDryRun() const { + return dryRun_; +} + +void DeleteHealthCheckTemplatesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector DeleteHealthCheckTemplatesRequest::getHealthCheckTemplateIds() const { + return healthCheckTemplateIds_; +} + +void DeleteHealthCheckTemplatesRequest::setHealthCheckTemplateIds(const std::vector &healthCheckTemplateIds) { + healthCheckTemplateIds_ = healthCheckTemplateIds; + for(int dep1 = 0; dep1 != healthCheckTemplateIds.size(); dep1++) { + setParameter(std::string("HealthCheckTemplateIds") + "." + std::to_string(dep1 + 1), healthCheckTemplateIds[dep1]); + } +} + diff --git a/alb/src/model/DeleteHealthCheckTemplatesResult.cc b/alb/src/model/DeleteHealthCheckTemplatesResult.cc new file mode 100644 index 000000000..1884f5062 --- /dev/null +++ b/alb/src/model/DeleteHealthCheckTemplatesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteHealthCheckTemplatesResult::DeleteHealthCheckTemplatesResult() : + ServiceResult() +{} + +DeleteHealthCheckTemplatesResult::DeleteHealthCheckTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHealthCheckTemplatesResult::~DeleteHealthCheckTemplatesResult() +{} + +void DeleteHealthCheckTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/DeleteListenerRequest.cc b/alb/src/model/DeleteListenerRequest.cc new file mode 100644 index 000000000..65b7e6d75 --- /dev/null +++ b/alb/src/model/DeleteListenerRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteListenerRequest; + +DeleteListenerRequest::DeleteListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteListener") { + setMethod(HttpRequest::Method::Post); +} + +DeleteListenerRequest::~DeleteListenerRequest() {} + +std::string DeleteListenerRequest::getClientToken() const { + return clientToken_; +} + +void DeleteListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteListenerRequest::getListenerId() const { + return listenerId_; +} + +void DeleteListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool DeleteListenerRequest::getDryRun() const { + return dryRun_; +} + +void DeleteListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/DeleteListenerResult.cc b/alb/src/model/DeleteListenerResult.cc new file mode 100644 index 000000000..cb983f7a8 --- /dev/null +++ b/alb/src/model/DeleteListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteListenerResult::DeleteListenerResult() : + ServiceResult() +{} + +DeleteListenerResult::DeleteListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteListenerResult::~DeleteListenerResult() +{} + +void DeleteListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteLoadBalancerRequest.cc b/alb/src/model/DeleteLoadBalancerRequest.cc new file mode 100644 index 000000000..f505ec5c3 --- /dev/null +++ b/alb/src/model/DeleteLoadBalancerRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteLoadBalancerRequest; + +DeleteLoadBalancerRequest::DeleteLoadBalancerRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLoadBalancerRequest::~DeleteLoadBalancerRequest() {} + +std::string DeleteLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void DeleteLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DeleteLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void DeleteLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteLoadBalancerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DeleteLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/alb/src/model/DeleteLoadBalancerResult.cc b/alb/src/model/DeleteLoadBalancerResult.cc new file mode 100644 index 000000000..4c89c2b3e --- /dev/null +++ b/alb/src/model/DeleteLoadBalancerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteLoadBalancerResult::DeleteLoadBalancerResult() : + ServiceResult() +{} + +DeleteLoadBalancerResult::DeleteLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLoadBalancerResult::~DeleteLoadBalancerResult() +{} + +void DeleteLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteLoadBalancerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteRuleRequest.cc b/alb/src/model/DeleteRuleRequest.cc new file mode 100644 index 000000000..eec56be7f --- /dev/null +++ b/alb/src/model/DeleteRuleRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteRuleRequest; + +DeleteRuleRequest::DeleteRuleRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRuleRequest::~DeleteRuleRequest() {} + +std::string DeleteRuleRequest::getClientToken() const { + return clientToken_; +} + +void DeleteRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DeleteRuleRequest::getDryRun() const { + return dryRun_; +} + +void DeleteRuleRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteRuleRequest::getRuleId() const { + return ruleId_; +} + +void DeleteRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/alb/src/model/DeleteRuleResult.cc b/alb/src/model/DeleteRuleResult.cc new file mode 100644 index 000000000..0b6b652c8 --- /dev/null +++ b/alb/src/model/DeleteRuleResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteRuleResult::DeleteRuleResult() : + ServiceResult() +{} + +DeleteRuleResult::DeleteRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRuleResult::~DeleteRuleResult() +{} + +void DeleteRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteRuleResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteRulesRequest.cc b/alb/src/model/DeleteRulesRequest.cc new file mode 100644 index 000000000..a2f03fbc6 --- /dev/null +++ b/alb/src/model/DeleteRulesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteRulesRequest; + +DeleteRulesRequest::DeleteRulesRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRulesRequest::~DeleteRulesRequest() {} + +std::string DeleteRulesRequest::getClientToken() const { + return clientToken_; +} + +void DeleteRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DeleteRulesRequest::getDryRun() const { + return dryRun_; +} + +void DeleteRulesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector DeleteRulesRequest::getRuleIds() const { + return ruleIds_; +} + +void DeleteRulesRequest::setRuleIds(const std::vector &ruleIds) { + ruleIds_ = ruleIds; +} + diff --git a/alb/src/model/DeleteRulesResult.cc b/alb/src/model/DeleteRulesResult.cc new file mode 100644 index 000000000..4e850577f --- /dev/null +++ b/alb/src/model/DeleteRulesResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteRulesResult::DeleteRulesResult() : + ServiceResult() +{} + +DeleteRulesResult::DeleteRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRulesResult::~DeleteRulesResult() +{} + +void DeleteRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteRulesResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DeleteSecurityPolicyRequest.cc b/alb/src/model/DeleteSecurityPolicyRequest.cc new file mode 100644 index 000000000..8b4bef6c8 --- /dev/null +++ b/alb/src/model/DeleteSecurityPolicyRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteSecurityPolicyRequest; + +DeleteSecurityPolicyRequest::DeleteSecurityPolicyRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSecurityPolicyRequest::~DeleteSecurityPolicyRequest() {} + +std::string DeleteSecurityPolicyRequest::getClientToken() const { + return clientToken_; +} + +void DeleteSecurityPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DeleteSecurityPolicyRequest::getDryRun() const { + return dryRun_; +} + +void DeleteSecurityPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteSecurityPolicyRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void DeleteSecurityPolicyRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + diff --git a/alb/src/model/DeleteSecurityPolicyResult.cc b/alb/src/model/DeleteSecurityPolicyResult.cc new file mode 100644 index 000000000..e32900d18 --- /dev/null +++ b/alb/src/model/DeleteSecurityPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteSecurityPolicyResult::DeleteSecurityPolicyResult() : + ServiceResult() +{} + +DeleteSecurityPolicyResult::DeleteSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityPolicyResult::~DeleteSecurityPolicyResult() +{} + +void DeleteSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/DeleteServerGroupRequest.cc b/alb/src/model/DeleteServerGroupRequest.cc new file mode 100644 index 000000000..1f796ba71 --- /dev/null +++ b/alb/src/model/DeleteServerGroupRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DeleteServerGroupRequest; + +DeleteServerGroupRequest::DeleteServerGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "DeleteServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteServerGroupRequest::~DeleteServerGroupRequest() {} + +std::string DeleteServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void DeleteServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void DeleteServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +bool DeleteServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void DeleteServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/DeleteServerGroupResult.cc b/alb/src/model/DeleteServerGroupResult.cc new file mode 100644 index 000000000..21a25225c --- /dev/null +++ b/alb/src/model/DeleteServerGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DeleteServerGroupResult::DeleteServerGroupResult() : + ServiceResult() +{} + +DeleteServerGroupResult::DeleteServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServerGroupResult::~DeleteServerGroupResult() +{} + +void DeleteServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DescribeRegionsRequest.cc b/alb/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..813a06a77 --- /dev/null +++ b/alb/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("alb", "2020-06-16", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/alb/src/model/DescribeRegionsResult.cc b/alb/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..c6f100253 --- /dev/null +++ b/alb/src/model/DescribeRegionsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/alb/src/model/DescribeZonesRequest.cc b/alb/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..9ac1d7235 --- /dev/null +++ b/alb/src/model/DescribeZonesRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("alb", "2020-06-16", "DescribeZones") { + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() {} + diff --git a/alb/src/model/DescribeZonesResult.cc b/alb/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..3716f8c22 --- /dev/null +++ b/alb/src/model/DescribeZonesResult.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::Alb; +using namespace AlibabaCloud::Alb::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZonesNode = value["Zones"]["Zone"]; + for (auto valueZonesZone : allZonesNode) + { + Zone zonesObject; + if(!valueZonesZone["LocalName"].isNull()) + zonesObject.localName = valueZonesZone["LocalName"].asString(); + if(!valueZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); + zones_.push_back(zonesObject); + } + +} + +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/alb/src/model/DisableDeletionProtectionRequest.cc b/alb/src/model/DisableDeletionProtectionRequest.cc new file mode 100644 index 000000000..dd1339148 --- /dev/null +++ b/alb/src/model/DisableDeletionProtectionRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DisableDeletionProtectionRequest; + +DisableDeletionProtectionRequest::DisableDeletionProtectionRequest() + : RpcServiceRequest("alb", "2020-06-16", "DisableDeletionProtection") { + setMethod(HttpRequest::Method::Post); +} + +DisableDeletionProtectionRequest::~DisableDeletionProtectionRequest() {} + +std::string DisableDeletionProtectionRequest::getClientToken() const { + return clientToken_; +} + +void DisableDeletionProtectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DisableDeletionProtectionRequest::getResourceId() const { + return resourceId_; +} + +void DisableDeletionProtectionRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +bool DisableDeletionProtectionRequest::getDryRun() const { + return dryRun_; +} + +void DisableDeletionProtectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/DisableDeletionProtectionResult.cc b/alb/src/model/DisableDeletionProtectionResult.cc new file mode 100644 index 000000000..fa1f1806d --- /dev/null +++ b/alb/src/model/DisableDeletionProtectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DisableDeletionProtectionResult::DisableDeletionProtectionResult() : + ServiceResult() +{} + +DisableDeletionProtectionResult::DisableDeletionProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableDeletionProtectionResult::~DisableDeletionProtectionResult() +{} + +void DisableDeletionProtectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/DisableLoadBalancerAccessLogRequest.cc b/alb/src/model/DisableLoadBalancerAccessLogRequest.cc new file mode 100644 index 000000000..082ef10f7 --- /dev/null +++ b/alb/src/model/DisableLoadBalancerAccessLogRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DisableLoadBalancerAccessLogRequest; + +DisableLoadBalancerAccessLogRequest::DisableLoadBalancerAccessLogRequest() + : RpcServiceRequest("alb", "2020-06-16", "DisableLoadBalancerAccessLog") { + setMethod(HttpRequest::Method::Post); +} + +DisableLoadBalancerAccessLogRequest::~DisableLoadBalancerAccessLogRequest() {} + +std::string DisableLoadBalancerAccessLogRequest::getClientToken() const { + return clientToken_; +} + +void DisableLoadBalancerAccessLogRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool DisableLoadBalancerAccessLogRequest::getDryRun() const { + return dryRun_; +} + +void DisableLoadBalancerAccessLogRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DisableLoadBalancerAccessLogRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DisableLoadBalancerAccessLogRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/alb/src/model/DisableLoadBalancerAccessLogResult.cc b/alb/src/model/DisableLoadBalancerAccessLogResult.cc new file mode 100644 index 000000000..f74bf22fe --- /dev/null +++ b/alb/src/model/DisableLoadBalancerAccessLogResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DisableLoadBalancerAccessLogResult::DisableLoadBalancerAccessLogResult() : + ServiceResult() +{} + +DisableLoadBalancerAccessLogResult::DisableLoadBalancerAccessLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableLoadBalancerAccessLogResult::~DisableLoadBalancerAccessLogResult() +{} + +void DisableLoadBalancerAccessLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/DissociateAclsFromListenerRequest.cc b/alb/src/model/DissociateAclsFromListenerRequest.cc new file mode 100644 index 000000000..d945afab5 --- /dev/null +++ b/alb/src/model/DissociateAclsFromListenerRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DissociateAclsFromListenerRequest; + +DissociateAclsFromListenerRequest::DissociateAclsFromListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "DissociateAclsFromListener") { + setMethod(HttpRequest::Method::Post); +} + +DissociateAclsFromListenerRequest::~DissociateAclsFromListenerRequest() {} + +std::string DissociateAclsFromListenerRequest::getClientToken() const { + return clientToken_; +} + +void DissociateAclsFromListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DissociateAclsFromListenerRequest::getAclIds() const { + return aclIds_; +} + +void DissociateAclsFromListenerRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; + for(int dep1 = 0; dep1 != aclIds.size(); dep1++) { + setParameter(std::string("AclIds") + "." + std::to_string(dep1 + 1), aclIds[dep1]); + } +} + +std::string DissociateAclsFromListenerRequest::getListenerId() const { + return listenerId_; +} + +void DissociateAclsFromListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool DissociateAclsFromListenerRequest::getDryRun() const { + return dryRun_; +} + +void DissociateAclsFromListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/DissociateAclsFromListenerResult.cc b/alb/src/model/DissociateAclsFromListenerResult.cc new file mode 100644 index 000000000..5b8c7c176 --- /dev/null +++ b/alb/src/model/DissociateAclsFromListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DissociateAclsFromListenerResult::DissociateAclsFromListenerResult() : + ServiceResult() +{} + +DissociateAclsFromListenerResult::DissociateAclsFromListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateAclsFromListenerResult::~DissociateAclsFromListenerResult() +{} + +void DissociateAclsFromListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DissociateAclsFromListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc b/alb/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc new file mode 100644 index 000000000..351fc1a27 --- /dev/null +++ b/alb/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::DissociateAdditionalCertificatesFromListenerRequest; + +DissociateAdditionalCertificatesFromListenerRequest::DissociateAdditionalCertificatesFromListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "DissociateAdditionalCertificatesFromListener") { + setMethod(HttpRequest::Method::Post); +} + +DissociateAdditionalCertificatesFromListenerRequest::~DissociateAdditionalCertificatesFromListenerRequest() {} + +std::string DissociateAdditionalCertificatesFromListenerRequest::getClientToken() const { + return clientToken_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DissociateAdditionalCertificatesFromListenerRequest::getListenerId() const { + return listenerId_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool DissociateAdditionalCertificatesFromListenerRequest::getDryRun() const { + return dryRun_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector DissociateAdditionalCertificatesFromListenerRequest::getCertificates() const { + return certificates_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + setParameter(std::string("Certificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", certificates[dep1].certificateId); + } +} + diff --git a/alb/src/model/DissociateAdditionalCertificatesFromListenerResult.cc b/alb/src/model/DissociateAdditionalCertificatesFromListenerResult.cc new file mode 100644 index 000000000..a18281157 --- /dev/null +++ b/alb/src/model/DissociateAdditionalCertificatesFromListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +DissociateAdditionalCertificatesFromListenerResult::DissociateAdditionalCertificatesFromListenerResult() : + ServiceResult() +{} + +DissociateAdditionalCertificatesFromListenerResult::DissociateAdditionalCertificatesFromListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateAdditionalCertificatesFromListenerResult::~DissociateAdditionalCertificatesFromListenerResult() +{} + +void DissociateAdditionalCertificatesFromListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DissociateAdditionalCertificatesFromListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/EnableDeletionProtectionRequest.cc b/alb/src/model/EnableDeletionProtectionRequest.cc new file mode 100644 index 000000000..af8111df7 --- /dev/null +++ b/alb/src/model/EnableDeletionProtectionRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::EnableDeletionProtectionRequest; + +EnableDeletionProtectionRequest::EnableDeletionProtectionRequest() + : RpcServiceRequest("alb", "2020-06-16", "EnableDeletionProtection") { + setMethod(HttpRequest::Method::Post); +} + +EnableDeletionProtectionRequest::~EnableDeletionProtectionRequest() {} + +std::string EnableDeletionProtectionRequest::getClientToken() const { + return clientToken_; +} + +void EnableDeletionProtectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string EnableDeletionProtectionRequest::getResourceId() const { + return resourceId_; +} + +void EnableDeletionProtectionRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +bool EnableDeletionProtectionRequest::getDryRun() const { + return dryRun_; +} + +void EnableDeletionProtectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/EnableDeletionProtectionResult.cc b/alb/src/model/EnableDeletionProtectionResult.cc new file mode 100644 index 000000000..6d76076e9 --- /dev/null +++ b/alb/src/model/EnableDeletionProtectionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +EnableDeletionProtectionResult::EnableDeletionProtectionResult() : + ServiceResult() +{} + +EnableDeletionProtectionResult::EnableDeletionProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableDeletionProtectionResult::~EnableDeletionProtectionResult() +{} + +void EnableDeletionProtectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/EnableLoadBalancerAccessLogRequest.cc b/alb/src/model/EnableLoadBalancerAccessLogRequest.cc new file mode 100644 index 000000000..4881167f1 --- /dev/null +++ b/alb/src/model/EnableLoadBalancerAccessLogRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::EnableLoadBalancerAccessLogRequest; + +EnableLoadBalancerAccessLogRequest::EnableLoadBalancerAccessLogRequest() + : RpcServiceRequest("alb", "2020-06-16", "EnableLoadBalancerAccessLog") { + setMethod(HttpRequest::Method::Post); +} + +EnableLoadBalancerAccessLogRequest::~EnableLoadBalancerAccessLogRequest() {} + +std::string EnableLoadBalancerAccessLogRequest::getLogProject() const { + return logProject_; +} + +void EnableLoadBalancerAccessLogRequest::setLogProject(const std::string &logProject) { + logProject_ = logProject; + setParameter(std::string("LogProject"), logProject); +} + +std::string EnableLoadBalancerAccessLogRequest::getClientToken() const { + return clientToken_; +} + +void EnableLoadBalancerAccessLogRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool EnableLoadBalancerAccessLogRequest::getDryRun() const { + return dryRun_; +} + +void EnableLoadBalancerAccessLogRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string EnableLoadBalancerAccessLogRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void EnableLoadBalancerAccessLogRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string EnableLoadBalancerAccessLogRequest::getLogStore() const { + return logStore_; +} + +void EnableLoadBalancerAccessLogRequest::setLogStore(const std::string &logStore) { + logStore_ = logStore; + setParameter(std::string("LogStore"), logStore); +} + diff --git a/alb/src/model/EnableLoadBalancerAccessLogResult.cc b/alb/src/model/EnableLoadBalancerAccessLogResult.cc new file mode 100644 index 000000000..863ecf95f --- /dev/null +++ b/alb/src/model/EnableLoadBalancerAccessLogResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +EnableLoadBalancerAccessLogResult::EnableLoadBalancerAccessLogResult() : + ServiceResult() +{} + +EnableLoadBalancerAccessLogResult::EnableLoadBalancerAccessLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableLoadBalancerAccessLogResult::~EnableLoadBalancerAccessLogResult() +{} + +void EnableLoadBalancerAccessLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/GetHealthCheckTemplateAttributeRequest.cc b/alb/src/model/GetHealthCheckTemplateAttributeRequest.cc new file mode 100644 index 000000000..f6c7a4fd2 --- /dev/null +++ b/alb/src/model/GetHealthCheckTemplateAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::GetHealthCheckTemplateAttributeRequest; + +GetHealthCheckTemplateAttributeRequest::GetHealthCheckTemplateAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "GetHealthCheckTemplateAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetHealthCheckTemplateAttributeRequest::~GetHealthCheckTemplateAttributeRequest() {} + +std::string GetHealthCheckTemplateAttributeRequest::getHealthCheckTemplateId() const { + return healthCheckTemplateId_; +} + +void GetHealthCheckTemplateAttributeRequest::setHealthCheckTemplateId(const std::string &healthCheckTemplateId) { + healthCheckTemplateId_ = healthCheckTemplateId; + setParameter(std::string("HealthCheckTemplateId"), healthCheckTemplateId); +} + diff --git a/alb/src/model/GetHealthCheckTemplateAttributeResult.cc b/alb/src/model/GetHealthCheckTemplateAttributeResult.cc new file mode 100644 index 000000000..f821ad547 --- /dev/null +++ b/alb/src/model/GetHealthCheckTemplateAttributeResult.cc @@ -0,0 +1,165 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +GetHealthCheckTemplateAttributeResult::GetHealthCheckTemplateAttributeResult() : + ServiceResult() +{} + +GetHealthCheckTemplateAttributeResult::GetHealthCheckTemplateAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHealthCheckTemplateAttributeResult::~GetHealthCheckTemplateAttributeResult() +{} + +void GetHealthCheckTemplateAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHealthCheckHttpCodes = value["HealthCheckHttpCodes"]["httpCode"]; + for (const auto &item : allHealthCheckHttpCodes) + healthCheckHttpCodes_.push_back(item.asString()); + auto allHealthCheckCodes = value["HealthCheckCodes"]["HealthCheckCode"]; + for (const auto &item : allHealthCheckCodes) + healthCheckCodes_.push_back(item.asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckHost"].isNull()) + healthCheckHost_ = value["HealthCheckHost"].asString(); + if(!value["HealthCheckHttpVersion"].isNull()) + healthCheckHttpVersion_ = value["HealthCheckHttpVersion"].asString(); + if(!value["HealthCheckTemplateId"].isNull()) + healthCheckTemplateId_ = value["HealthCheckTemplateId"].asString(); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); + if(!value["HealthCheckPath"].isNull()) + healthCheckPath_ = value["HealthCheckPath"].asString(); + if(!value["HealthCheckProtocol"].isNull()) + healthCheckProtocol_ = value["HealthCheckProtocol"].asString(); + if(!value["HealthCheckTemplateName"].isNull()) + healthCheckTemplateName_ = value["HealthCheckTemplateName"].asString(); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTcpFastCloseEnabled"].isNull()) + healthCheckTcpFastCloseEnabled_ = value["HealthCheckTcpFastCloseEnabled"].asString() == "true"; + if(!value["ServiceManagedEnabled"].isNull()) + serviceManagedEnabled_ = value["ServiceManagedEnabled"].asString() == "true"; + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckTemplateId()const +{ + return healthCheckTemplateId_; +} + +bool GetHealthCheckTemplateAttributeResult::getServiceManagedEnabled()const +{ + return serviceManagedEnabled_; +} + +int GetHealthCheckTemplateAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +int GetHealthCheckTemplateAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckHost()const +{ + return healthCheckHost_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckPath()const +{ + return healthCheckPath_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckTemplateName()const +{ + return healthCheckTemplateName_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckHttpVersion()const +{ + return healthCheckHttpVersion_; +} + +int GetHealthCheckTemplateAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +bool GetHealthCheckTemplateAttributeResult::getHealthCheckTcpFastCloseEnabled()const +{ + return healthCheckTcpFastCloseEnabled_; +} + +std::vector GetHealthCheckTemplateAttributeResult::getHealthCheckHttpCodes()const +{ + return healthCheckHttpCodes_; +} + +std::vector GetHealthCheckTemplateAttributeResult::getHealthCheckCodes()const +{ + return healthCheckCodes_; +} + +int GetHealthCheckTemplateAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +int GetHealthCheckTemplateAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string GetHealthCheckTemplateAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string GetHealthCheckTemplateAttributeResult::getHealthCheckProtocol()const +{ + return healthCheckProtocol_; +} + diff --git a/alb/src/model/GetListenerAttributeRequest.cc b/alb/src/model/GetListenerAttributeRequest.cc new file mode 100644 index 000000000..660b836eb --- /dev/null +++ b/alb/src/model/GetListenerAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::GetListenerAttributeRequest; + +GetListenerAttributeRequest::GetListenerAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "GetListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetListenerAttributeRequest::~GetListenerAttributeRequest() {} + +std::string GetListenerAttributeRequest::getListenerId() const { + return listenerId_; +} + +void GetListenerAttributeRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + diff --git a/alb/src/model/GetListenerAttributeResult.cc b/alb/src/model/GetListenerAttributeResult.cc new file mode 100644 index 000000000..92afd3b8d --- /dev/null +++ b/alb/src/model/GetListenerAttributeResult.cc @@ -0,0 +1,269 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +GetListenerAttributeResult::GetListenerAttributeResult() : + ServiceResult() +{} + +GetListenerAttributeResult::GetListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetListenerAttributeResult::~GetListenerAttributeResult() +{} + +void GetListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificatesNode = value["Certificates"]["Certificate"]; + for (auto valueCertificatesCertificate : allCertificatesNode) + { + Certificate certificatesObject; + if(!valueCertificatesCertificate["CertificateId"].isNull()) + certificatesObject.certificateId = valueCertificatesCertificate["CertificateId"].asString(); + certificates_.push_back(certificatesObject); + } + auto allCaCertificatesNode = value["CaCertificates"]["Certificate"]; + for (auto valueCaCertificatesCertificate : allCaCertificatesNode) + { + Certificate1 caCertificatesObject; + if(!valueCaCertificatesCertificate["CertificateId"].isNull()) + caCertificatesObject.certificateId = valueCaCertificatesCertificate["CertificateId"].asString(); + if(!valueCaCertificatesCertificate["Status"].isNull()) + caCertificatesObject.status = valueCaCertificatesCertificate["Status"].asString(); + if(!valueCaCertificatesCertificate["IsDefault"].isNull()) + caCertificatesObject.isDefault = valueCaCertificatesCertificate["IsDefault"].asString() == "true"; + caCertificates_.push_back(caCertificatesObject); + } + auto allDefaultActionsNode = value["DefaultActions"]["defaultAction"]; + for (auto valueDefaultActionsdefaultAction : allDefaultActionsNode) + { + DefaultAction defaultActionsObject; + if(!valueDefaultActionsdefaultAction["Type"].isNull()) + defaultActionsObject.type = valueDefaultActionsdefaultAction["Type"].asString(); + auto forwardGroupConfigNode = value["ForwardGroupConfig"]; + auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["serverGroupTuple"]; + for (auto forwardGroupConfigNodeServerGroupTuplesserverGroupTuple : allServerGroupTuplesNode) + { + DefaultAction::ForwardGroupConfig::ServerGroupTuple serverGroupTupleObject; + if(!forwardGroupConfigNodeServerGroupTuplesserverGroupTuple["ServerGroupId"].isNull()) + serverGroupTupleObject.serverGroupId = forwardGroupConfigNodeServerGroupTuplesserverGroupTuple["ServerGroupId"].asString(); + defaultActionsObject.forwardGroupConfig.serverGroupTuples.push_back(serverGroupTupleObject); + } + defaultActions_.push_back(defaultActionsObject); + } + auto aclConfigNode = value["AclConfig"]; + if(!aclConfigNode["AclType"].isNull()) + aclConfig_.aclType = aclConfigNode["AclType"].asString(); + auto allAclRelationsNode = aclConfigNode["AclRelations"]["aclRelation"]; + for (auto aclConfigNodeAclRelationsaclRelation : allAclRelationsNode) + { + AclConfig::AclRelation aclRelationObject; + if(!aclConfigNodeAclRelationsaclRelation["AclId"].isNull()) + aclRelationObject.aclId = aclConfigNodeAclRelationsaclRelation["AclId"].asString(); + if(!aclConfigNodeAclRelationsaclRelation["Status"].isNull()) + aclRelationObject.status = aclConfigNodeAclRelationsaclRelation["Status"].asString(); + aclConfig_.aclRelations.push_back(aclRelationObject); + } + auto logConfigNode = value["LogConfig"]; + if(!logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].isNull()) + logConfig_.accessLogRecordCustomizedHeadersEnabled = logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].asString() == "true"; + auto accessLogTracingConfigNode = logConfigNode["AccessLogTracingConfig"]; + if(!accessLogTracingConfigNode["TracingEnabled"].isNull()) + logConfig_.accessLogTracingConfig.tracingEnabled = accessLogTracingConfigNode["TracingEnabled"].asString() == "true"; + if(!accessLogTracingConfigNode["TracingSample"].isNull()) + logConfig_.accessLogTracingConfig.tracingSample = std::stoi(accessLogTracingConfigNode["TracingSample"].asString()); + if(!accessLogTracingConfigNode["TracingType"].isNull()) + logConfig_.accessLogTracingConfig.tracingType = accessLogTracingConfigNode["TracingType"].asString(); + auto quicConfigNode = value["QuicConfig"]; + if(!quicConfigNode["QuicListenerId"].isNull()) + quicConfig_.quicListenerId = quicConfigNode["QuicListenerId"].asString(); + if(!quicConfigNode["QuicUpgradeEnabled"].isNull()) + quicConfig_.quicUpgradeEnabled = quicConfigNode["QuicUpgradeEnabled"].asString() == "true"; + auto xForwardedForConfigNode = value["XForwardedForConfig"]; + if(!xForwardedForConfigNode["XForwardedForClientCertClientVerifyAlias"].isNull()) + xForwardedForConfig_.xForwardedForClientCertClientVerifyAlias = xForwardedForConfigNode["XForwardedForClientCertClientVerifyAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertClientVerifyEnabled"].isNull()) + xForwardedForConfig_.xForwardedForClientCertClientVerifyEnabled = xForwardedForConfigNode["XForwardedForClientCertClientVerifyEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertFingerprintAlias"].isNull()) + xForwardedForConfig_.xForwardedForClientCertFingerprintAlias = xForwardedForConfigNode["XForwardedForClientCertFingerprintAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertFingerprintEnabled"].isNull()) + xForwardedForConfig_.xForwardedForClientCertFingerprintEnabled = xForwardedForConfigNode["XForwardedForClientCertFingerprintEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertIssuerDNAlias"].isNull()) + xForwardedForConfig_.xForwardedForClientCertIssuerDNAlias = xForwardedForConfigNode["XForwardedForClientCertIssuerDNAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertIssuerDNEnabled"].isNull()) + xForwardedForConfig_.xForwardedForClientCertIssuerDNEnabled = xForwardedForConfigNode["XForwardedForClientCertIssuerDNEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertSubjectDNAlias"].isNull()) + xForwardedForConfig_.xForwardedForClientCertSubjectDNAlias = xForwardedForConfigNode["XForwardedForClientCertSubjectDNAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertSubjectDNEnabled"].isNull()) + xForwardedForConfig_.xForwardedForClientCertSubjectDNEnabled = xForwardedForConfigNode["XForwardedForClientCertSubjectDNEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].isNull()) + xForwardedForConfig_.xForwardedForClientSrcPortEnabled = xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForEnabled"].isNull()) + xForwardedForConfig_.xForwardedForEnabled = xForwardedForConfigNode["XForwardedForEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull()) + xForwardedForConfig_.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForSLBIdEnabled"].isNull()) + xForwardedForConfig_.xForwardedForSLBIdEnabled = xForwardedForConfigNode["XForwardedForSLBIdEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForSLBPortEnabled"].isNull()) + xForwardedForConfig_.xForwardedForSLBPortEnabled = xForwardedForConfigNode["XForwardedForSLBPortEnabled"].asString() == "true"; + if(!value["CaEnabled"].isNull()) + caEnabled_ = value["CaEnabled"].asString() == "true"; + if(!value["GzipEnabled"].isNull()) + gzipEnabled_ = value["GzipEnabled"].asString() == "true"; + if(!value["Http2Enabled"].isNull()) + http2Enabled_ = value["Http2Enabled"].asString() == "true"; + if(!value["ServiceManagedEnabled"].isNull()) + serviceManagedEnabled_ = value["ServiceManagedEnabled"].asString() == "true"; + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["ListenerDescription"].isNull()) + listenerDescription_ = value["ListenerDescription"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["ListenerProtocol"].isNull()) + listenerProtocol_ = value["ListenerProtocol"].asString(); + if(!value["ListenerStatus"].isNull()) + listenerStatus_ = value["ListenerStatus"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + +} + +bool GetListenerAttributeResult::getCaEnabled()const +{ + return caEnabled_; +} + +bool GetListenerAttributeResult::getServiceManagedEnabled()const +{ + return serviceManagedEnabled_; +} + +int GetListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int GetListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +bool GetListenerAttributeResult::getHttp2Enabled()const +{ + return http2Enabled_; +} + +std::vector GetListenerAttributeResult::getDefaultActions()const +{ + return defaultActions_; +} + +std::vector GetListenerAttributeResult::getCertificates()const +{ + return certificates_; +} + +int GetListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +std::string GetListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +GetListenerAttributeResult::QuicConfig GetListenerAttributeResult::getQuicConfig()const +{ + return quicConfig_; +} + +std::string GetListenerAttributeResult::getListenerProtocol()const +{ + return listenerProtocol_; +} + +bool GetListenerAttributeResult::getGzipEnabled()const +{ + return gzipEnabled_; +} + +std::string GetListenerAttributeResult::getListenerStatus()const +{ + return listenerStatus_; +} + +std::string GetListenerAttributeResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + +std::string GetListenerAttributeResult::getListenerDescription()const +{ + return listenerDescription_; +} + +GetListenerAttributeResult::AclConfig GetListenerAttributeResult::getAclConfig()const +{ + return aclConfig_; +} + +std::string GetListenerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +GetListenerAttributeResult::XForwardedForConfig GetListenerAttributeResult::getXForwardedForConfig()const +{ + return xForwardedForConfig_; +} + +std::vector GetListenerAttributeResult::getCaCertificates()const +{ + return caCertificates_; +} + +GetListenerAttributeResult::LogConfig GetListenerAttributeResult::getLogConfig()const +{ + return logConfig_; +} + +std::string GetListenerAttributeResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/alb/src/model/GetLoadBalancerAttributeRequest.cc b/alb/src/model/GetLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..af4324467 --- /dev/null +++ b/alb/src/model/GetLoadBalancerAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::GetLoadBalancerAttributeRequest; + +GetLoadBalancerAttributeRequest::GetLoadBalancerAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "GetLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetLoadBalancerAttributeRequest::~GetLoadBalancerAttributeRequest() {} + +std::string GetLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void GetLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/alb/src/model/GetLoadBalancerAttributeResult.cc b/alb/src/model/GetLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..bfbb8bd51 --- /dev/null +++ b/alb/src/model/GetLoadBalancerAttributeResult.cc @@ -0,0 +1,259 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +GetLoadBalancerAttributeResult::GetLoadBalancerAttributeResult() : + ServiceResult() +{} + +GetLoadBalancerAttributeResult::GetLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLoadBalancerAttributeResult::~GetLoadBalancerAttributeResult() +{} + +void GetLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancerOperationLocksNode = value["LoadBalancerOperationLocks"]["LoadBalancerOperationLock"]; + for (auto valueLoadBalancerOperationLocksLoadBalancerOperationLock : allLoadBalancerOperationLocksNode) + { + LoadBalancerOperationLock loadBalancerOperationLocksObject; + if(!valueLoadBalancerOperationLocksLoadBalancerOperationLock["LockReason"].isNull()) + loadBalancerOperationLocksObject.lockReason = valueLoadBalancerOperationLocksLoadBalancerOperationLock["LockReason"].asString(); + if(!valueLoadBalancerOperationLocksLoadBalancerOperationLock["LockType"].isNull()) + loadBalancerOperationLocksObject.lockType = valueLoadBalancerOperationLocksLoadBalancerOperationLock["LockType"].asString(); + loadBalancerOperationLocks_.push_back(loadBalancerOperationLocksObject); + } + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } + auto allZoneMappingsNode = value["ZoneMappings"]["ZoneMapping"]; + for (auto valueZoneMappingsZoneMapping : allZoneMappingsNode) + { + ZoneMapping zoneMappingsObject; + if(!valueZoneMappingsZoneMapping["VSwitchId"].isNull()) + zoneMappingsObject.vSwitchId = valueZoneMappingsZoneMapping["VSwitchId"].asString(); + if(!valueZoneMappingsZoneMapping["ZoneId"].isNull()) + zoneMappingsObject.zoneId = valueZoneMappingsZoneMapping["ZoneId"].asString(); + auto allLoadBalancerAddressesNode = valueZoneMappingsZoneMapping["LoadBalancerAddresses"]["LoadBalancerAddress"]; + for (auto valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress : allLoadBalancerAddressesNode) + { + ZoneMapping::LoadBalancerAddress loadBalancerAddressesObject; + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].isNull()) + loadBalancerAddressesObject.address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Address"].asString(); + zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject); + } + zoneMappings_.push_back(zoneMappingsObject); + } + auto accessLogConfigNode = value["AccessLogConfig"]; + if(!accessLogConfigNode["LogProject"].isNull()) + accessLogConfig_.logProject = accessLogConfigNode["LogProject"].asString(); + if(!accessLogConfigNode["LogStore"].isNull()) + accessLogConfig_.logStore = accessLogConfigNode["LogStore"].asString(); + auto deletionProtectionConfigNode = value["DeletionProtectionConfig"]; + if(!deletionProtectionConfigNode["Enabled"].isNull()) + deletionProtectionConfig_.enabled = deletionProtectionConfigNode["Enabled"].asString() == "true"; + if(!deletionProtectionConfigNode["EnabledTime"].isNull()) + deletionProtectionConfig_.enabledTime = deletionProtectionConfigNode["EnabledTime"].asString(); + auto loadBalancerBillingConfigNode = value["LoadBalancerBillingConfig"]; + if(!loadBalancerBillingConfigNode["InternetBandwidth"].isNull()) + loadBalancerBillingConfig_.internetBandwidth = std::stoi(loadBalancerBillingConfigNode["InternetBandwidth"].asString()); + if(!loadBalancerBillingConfigNode["InternetChargeType"].isNull()) + loadBalancerBillingConfig_.internetChargeType = loadBalancerBillingConfigNode["InternetChargeType"].asString(); + if(!loadBalancerBillingConfigNode["PayType"].isNull()) + loadBalancerBillingConfig_.payType = loadBalancerBillingConfigNode["PayType"].asString(); + auto modificationProtectionConfigNode = value["ModificationProtectionConfig"]; + if(!modificationProtectionConfigNode["Reason"].isNull()) + modificationProtectionConfig_.reason = modificationProtectionConfigNode["Reason"].asString(); + if(!modificationProtectionConfigNode["Status"].isNull()) + modificationProtectionConfig_.status = modificationProtectionConfigNode["Status"].asString(); + auto allFeatureLabels = value["FeatureLabels"]["FeatureLabel"]; + for (const auto &item : allFeatureLabels) + featureLabels_.push_back(item.asString()); + if(!value["AddressAllocatedMode"].isNull()) + addressAllocatedMode_ = value["AddressAllocatedMode"].asString(); + if(!value["AddressType"].isNull()) + addressType_ = value["AddressType"].asString(); + if(!value["BandwidthCapacity"].isNull()) + bandwidthCapacity_ = std::stoi(value["BandwidthCapacity"].asString()); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["DNSName"].isNull()) + dNSName_ = value["DNSName"].asString(); + if(!value["LoadBalancerBussinessStatus"].isNull()) + loadBalancerBussinessStatus_ = value["LoadBalancerBussinessStatus"].asString(); + if(!value["LoadBalancerEdition"].isNull()) + loadBalancerEdition_ = value["LoadBalancerEdition"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["ServiceManagedEnabled"].isNull()) + serviceManagedEnabled_ = value["ServiceManagedEnabled"].asString() == "true"; + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["LoadBalancerStatus"].isNull()) + loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + +} + +bool GetLoadBalancerAttributeResult::getServiceManagedEnabled()const +{ + return serviceManagedEnabled_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerEdition()const +{ + return loadBalancerEdition_; +} + +std::string GetLoadBalancerAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const +{ + return loadBalancerBillingConfig_; +} + +std::vector GetLoadBalancerAttributeResult::getFeatureLabels()const +{ + return featureLabels_; +} + +std::string GetLoadBalancerAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector GetLoadBalancerAttributeResult::getZoneMappings()const +{ + return zoneMappings_; +} + +std::string GetLoadBalancerAttributeResult::getDNSName()const +{ + return dNSName_; +} + +GetLoadBalancerAttributeResult::ModificationProtectionConfig GetLoadBalancerAttributeResult::getModificationProtectionConfig()const +{ + return modificationProtectionConfig_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +GetLoadBalancerAttributeResult::AccessLogConfig GetLoadBalancerAttributeResult::getAccessLogConfig()const +{ + return accessLogConfig_; +} + +int GetLoadBalancerAttributeResult::getBandwidthCapacity()const +{ + return bandwidthCapacity_; +} + +GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const +{ + return deletionProtectionConfig_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerBussinessStatus()const +{ + return loadBalancerBussinessStatus_; +} + +std::string GetLoadBalancerAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string GetLoadBalancerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +std::string GetLoadBalancerAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string GetLoadBalancerAttributeResult::getAddressAllocatedMode()const +{ + return addressAllocatedMode_; +} + +std::string GetLoadBalancerAttributeResult::getAddressType()const +{ + return addressType_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +std::vector GetLoadBalancerAttributeResult::getTags()const +{ + return tags_; +} + +std::vector GetLoadBalancerAttributeResult::getLoadBalancerOperationLocks()const +{ + return loadBalancerOperationLocks_; +} + diff --git a/alb/src/model/ListAclEntriesRequest.cc b/alb/src/model/ListAclEntriesRequest.cc new file mode 100644 index 000000000..5a024b861 --- /dev/null +++ b/alb/src/model/ListAclEntriesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListAclEntriesRequest; + +ListAclEntriesRequest::ListAclEntriesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListAclEntries") { + setMethod(HttpRequest::Method::Post); +} + +ListAclEntriesRequest::~ListAclEntriesRequest() {} + +std::string ListAclEntriesRequest::getNextToken() const { + return nextToken_; +} + +void ListAclEntriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListAclEntriesRequest::getAclId() const { + return aclId_; +} + +void ListAclEntriesRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +int ListAclEntriesRequest::getMaxResults() const { + return maxResults_; +} + +void ListAclEntriesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListAclEntriesResult.cc b/alb/src/model/ListAclEntriesResult.cc new file mode 100644 index 000000000..5065c63ee --- /dev/null +++ b/alb/src/model/ListAclEntriesResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListAclEntriesResult::ListAclEntriesResult() : + ServiceResult() +{} + +ListAclEntriesResult::ListAclEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAclEntriesResult::~ListAclEntriesResult() +{} + +void ListAclEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclEntriesNode = value["AclEntries"]["AclEntry"]; + for (auto valueAclEntriesAclEntry : allAclEntriesNode) + { + AclEntry aclEntriesObject; + if(!valueAclEntriesAclEntry["Description"].isNull()) + aclEntriesObject.description = valueAclEntriesAclEntry["Description"].asString(); + if(!valueAclEntriesAclEntry["Entry"].isNull()) + aclEntriesObject.entry = valueAclEntriesAclEntry["Entry"].asString(); + if(!valueAclEntriesAclEntry["Status"].isNull()) + aclEntriesObject.status = valueAclEntriesAclEntry["Status"].asString(); + aclEntries_.push_back(aclEntriesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListAclEntriesResult::getAclEntries()const +{ + return aclEntries_; +} + +int ListAclEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAclEntriesResult::getNextToken()const +{ + return nextToken_; +} + +int ListAclEntriesResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListAclRelationsRequest.cc b/alb/src/model/ListAclRelationsRequest.cc new file mode 100644 index 000000000..f391451f6 --- /dev/null +++ b/alb/src/model/ListAclRelationsRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListAclRelationsRequest; + +ListAclRelationsRequest::ListAclRelationsRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListAclRelations") { + setMethod(HttpRequest::Method::Post); +} + +ListAclRelationsRequest::~ListAclRelationsRequest() {} + +std::vector ListAclRelationsRequest::getAclIds() const { + return aclIds_; +} + +void ListAclRelationsRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; + for(int dep1 = 0; dep1 != aclIds.size(); dep1++) { + setParameter(std::string("AclIds") + "." + std::to_string(dep1 + 1), aclIds[dep1]); + } +} + diff --git a/alb/src/model/ListAclRelationsResult.cc b/alb/src/model/ListAclRelationsResult.cc new file mode 100644 index 000000000..e960f7854 --- /dev/null +++ b/alb/src/model/ListAclRelationsResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListAclRelationsResult::ListAclRelationsResult() : + ServiceResult() +{} + +ListAclRelationsResult::ListAclRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAclRelationsResult::~ListAclRelationsResult() +{} + +void ListAclRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclRelationsNode = value["AclRelations"]["AclRelation"]; + for (auto valueAclRelationsAclRelation : allAclRelationsNode) + { + AclRelation aclRelationsObject; + if(!valueAclRelationsAclRelation["AclId"].isNull()) + aclRelationsObject.aclId = valueAclRelationsAclRelation["AclId"].asString(); + auto allRelatedListenersNode = valueAclRelationsAclRelation["RelatedListeners"]["RelatedListener"]; + for (auto valueAclRelationsAclRelationRelatedListenersRelatedListener : allRelatedListenersNode) + { + AclRelation::RelatedListener relatedListenersObject; + if(!valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerId"].isNull()) + relatedListenersObject.listenerId = valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerId"].asString(); + if(!valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerPort"].isNull()) + relatedListenersObject.listenerPort = std::stoi(valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerPort"].asString()); + if(!valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerProtocol"].isNull()) + relatedListenersObject.listenerProtocol = valueAclRelationsAclRelationRelatedListenersRelatedListener["ListenerProtocol"].asString(); + if(!valueAclRelationsAclRelationRelatedListenersRelatedListener["LoadBalancerId"].isNull()) + relatedListenersObject.loadBalancerId = valueAclRelationsAclRelationRelatedListenersRelatedListener["LoadBalancerId"].asString(); + if(!valueAclRelationsAclRelationRelatedListenersRelatedListener["Status"].isNull()) + relatedListenersObject.status = valueAclRelationsAclRelationRelatedListenersRelatedListener["Status"].asString(); + aclRelationsObject.relatedListeners.push_back(relatedListenersObject); + } + aclRelations_.push_back(aclRelationsObject); + } + +} + +std::vector ListAclRelationsResult::getAclRelations()const +{ + return aclRelations_; +} + diff --git a/alb/src/model/ListAclsRequest.cc b/alb/src/model/ListAclsRequest.cc new file mode 100644 index 000000000..a4a118673 --- /dev/null +++ b/alb/src/model/ListAclsRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListAclsRequest; + +ListAclsRequest::ListAclsRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListAcls") { + setMethod(HttpRequest::Method::Post); +} + +ListAclsRequest::~ListAclsRequest() {} + +std::vector ListAclsRequest::getAclIds() const { + return aclIds_; +} + +void ListAclsRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; + for(int dep1 = 0; dep1 != aclIds.size(); dep1++) { + setParameter(std::string("AclIds") + "." + std::to_string(dep1 + 1), aclIds[dep1]); + } +} + +std::string ListAclsRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void ListAclsRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); +} + +std::string ListAclsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListAclsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListAclsRequest::getNextToken() const { + return nextToken_; +} + +void ListAclsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListAclsRequest::getAclNames() const { + return aclNames_; +} + +void ListAclsRequest::setAclNames(const std::vector &aclNames) { + aclNames_ = aclNames; + for(int dep1 = 0; dep1 != aclNames.size(); dep1++) { + setParameter(std::string("AclNames") + "." + std::to_string(dep1 + 1), aclNames[dep1]); + } +} + +int ListAclsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAclsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListAclsResult.cc b/alb/src/model/ListAclsResult.cc new file mode 100644 index 000000000..d80cf0d97 --- /dev/null +++ b/alb/src/model/ListAclsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListAclsResult::ListAclsResult() : + ServiceResult() +{} + +ListAclsResult::ListAclsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAclsResult::~ListAclsResult() +{} + +void ListAclsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclsNode = value["Acls"]["Acl"]; + for (auto valueAclsAcl : allAclsNode) + { + Acl aclsObject; + if(!valueAclsAcl["AclId"].isNull()) + aclsObject.aclId = valueAclsAcl["AclId"].asString(); + if(!valueAclsAcl["AclName"].isNull()) + aclsObject.aclName = valueAclsAcl["AclName"].asString(); + if(!valueAclsAcl["AclStatus"].isNull()) + aclsObject.aclStatus = valueAclsAcl["AclStatus"].asString(); + if(!valueAclsAcl["AddressIPVersion"].isNull()) + aclsObject.addressIPVersion = valueAclsAcl["AddressIPVersion"].asString(); + if(!valueAclsAcl["ResourceGroupId"].isNull()) + aclsObject.resourceGroupId = valueAclsAcl["ResourceGroupId"].asString(); + if(!valueAclsAcl["ServiceManagedEnabled"].isNull()) + aclsObject.serviceManagedEnabled = valueAclsAcl["ServiceManagedEnabled"].asString() == "true"; + if(!valueAclsAcl["ServiceManagedMode"].isNull()) + aclsObject.serviceManagedMode = valueAclsAcl["ServiceManagedMode"].asString(); + acls_.push_back(aclsObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListAclsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAclsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListAclsResult::getAcls()const +{ + return acls_; +} + +int ListAclsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListAsynJobsRequest.cc b/alb/src/model/ListAsynJobsRequest.cc new file mode 100644 index 000000000..8555eb0fe --- /dev/null +++ b/alb/src/model/ListAsynJobsRequest.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListAsynJobsRequest; + +ListAsynJobsRequest::ListAsynJobsRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListAsynJobs") { + setMethod(HttpRequest::Method::Post); +} + +ListAsynJobsRequest::~ListAsynJobsRequest() {} + +std::string ListAsynJobsRequest::getNextToken() const { + return nextToken_; +} + +void ListAsynJobsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +long ListAsynJobsRequest::getEndTime() const { + return endTime_; +} + +void ListAsynJobsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListAsynJobsRequest::getBeginTime() const { + return beginTime_; +} + +void ListAsynJobsRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); +} + +std::string ListAsynJobsRequest::getResourceType() const { + return resourceType_; +} + +void ListAsynJobsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListAsynJobsRequest::getApiName() const { + return apiName_; +} + +void ListAsynJobsRequest::setApiName(const std::string &apiName) { + apiName_ = apiName; + setParameter(std::string("ApiName"), apiName); +} + +std::vector ListAsynJobsRequest::getJobIds() const { + return jobIds_; +} + +void ListAsynJobsRequest::setJobIds(const std::vector &jobIds) { + jobIds_ = jobIds; + for(int dep1 = 0; dep1 != jobIds.size(); dep1++) { + setParameter(std::string("JobIds") + "." + std::to_string(dep1 + 1), jobIds[dep1]); + } +} + +long ListAsynJobsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAsynJobsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::vector ListAsynJobsRequest::getResourceIds() const { + return resourceIds_; +} + +void ListAsynJobsRequest::setResourceIds(const std::vector &resourceIds) { + resourceIds_ = resourceIds; + for(int dep1 = 0; dep1 != resourceIds.size(); dep1++) { + setParameter(std::string("ResourceIds") + "." + std::to_string(dep1 + 1), resourceIds[dep1]); + } +} + diff --git a/alb/src/model/ListAsynJobsResult.cc b/alb/src/model/ListAsynJobsResult.cc new file mode 100644 index 000000000..7a6fd894a --- /dev/null +++ b/alb/src/model/ListAsynJobsResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListAsynJobsResult::ListAsynJobsResult() : + ServiceResult() +{} + +ListAsynJobsResult::ListAsynJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAsynJobsResult::~ListAsynJobsResult() +{} + +void ListAsynJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allJobsNode = value["Jobs"]["Job"]; + for (auto valueJobsJob : allJobsNode) + { + Job jobsObject; + if(!valueJobsJob["ApiName"].isNull()) + jobsObject.apiName = valueJobsJob["ApiName"].asString(); + if(!valueJobsJob["CreateTime"].isNull()) + jobsObject.createTime = std::stol(valueJobsJob["CreateTime"].asString()); + if(!valueJobsJob["ErrorCode"].isNull()) + jobsObject.errorCode = valueJobsJob["ErrorCode"].asString(); + if(!valueJobsJob["ErrorMessage"].isNull()) + jobsObject.errorMessage = valueJobsJob["ErrorMessage"].asString(); + if(!valueJobsJob["Id"].isNull()) + jobsObject.id = valueJobsJob["Id"].asString(); + if(!valueJobsJob["ModifyTime"].isNull()) + jobsObject.modifyTime = std::stol(valueJobsJob["ModifyTime"].asString()); + if(!valueJobsJob["OperateType"].isNull()) + jobsObject.operateType = valueJobsJob["OperateType"].asString(); + if(!valueJobsJob["ResourceId"].isNull()) + jobsObject.resourceId = valueJobsJob["ResourceId"].asString(); + if(!valueJobsJob["ResourceType"].isNull()) + jobsObject.resourceType = valueJobsJob["ResourceType"].asString(); + if(!valueJobsJob["Status"].isNull()) + jobsObject.status = valueJobsJob["Status"].asString(); + jobs_.push_back(jobsObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListAsynJobsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAsynJobsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListAsynJobsResult::getJobs()const +{ + return jobs_; +} + +long ListAsynJobsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListHealthCheckTemplatesRequest.cc b/alb/src/model/ListHealthCheckTemplatesRequest.cc new file mode 100644 index 000000000..d028568bf --- /dev/null +++ b/alb/src/model/ListHealthCheckTemplatesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListHealthCheckTemplatesRequest; + +ListHealthCheckTemplatesRequest::ListHealthCheckTemplatesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListHealthCheckTemplates") { + setMethod(HttpRequest::Method::Post); +} + +ListHealthCheckTemplatesRequest::~ListHealthCheckTemplatesRequest() {} + +std::string ListHealthCheckTemplatesRequest::getNextToken() const { + return nextToken_; +} + +void ListHealthCheckTemplatesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListHealthCheckTemplatesRequest::getHealthCheckTemplateNames() const { + return healthCheckTemplateNames_; +} + +void ListHealthCheckTemplatesRequest::setHealthCheckTemplateNames(const std::vector &healthCheckTemplateNames) { + healthCheckTemplateNames_ = healthCheckTemplateNames; + for(int dep1 = 0; dep1 != healthCheckTemplateNames.size(); dep1++) { + setParameter(std::string("HealthCheckTemplateNames") + "." + std::to_string(dep1 + 1), healthCheckTemplateNames[dep1]); + } +} + +int ListHealthCheckTemplatesRequest::getMaxResults() const { + return maxResults_; +} + +void ListHealthCheckTemplatesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::vector ListHealthCheckTemplatesRequest::getHealthCheckTemplateIds() const { + return healthCheckTemplateIds_; +} + +void ListHealthCheckTemplatesRequest::setHealthCheckTemplateIds(const std::vector &healthCheckTemplateIds) { + healthCheckTemplateIds_ = healthCheckTemplateIds; + for(int dep1 = 0; dep1 != healthCheckTemplateIds.size(); dep1++) { + setParameter(std::string("HealthCheckTemplateIds") + "." + std::to_string(dep1 + 1), healthCheckTemplateIds[dep1]); + } +} + diff --git a/alb/src/model/ListHealthCheckTemplatesResult.cc b/alb/src/model/ListHealthCheckTemplatesResult.cc new file mode 100644 index 000000000..ef598be87 --- /dev/null +++ b/alb/src/model/ListHealthCheckTemplatesResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListHealthCheckTemplatesResult::ListHealthCheckTemplatesResult() : + ServiceResult() +{} + +ListHealthCheckTemplatesResult::ListHealthCheckTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHealthCheckTemplatesResult::~ListHealthCheckTemplatesResult() +{} + +void ListHealthCheckTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHealthCheckTemplatesNode = value["HealthCheckTemplates"]["HealthCheckTemplate"]; + for (auto valueHealthCheckTemplatesHealthCheckTemplate : allHealthCheckTemplatesNode) + { + HealthCheckTemplate healthCheckTemplatesObject; + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckConnectPort"].isNull()) + healthCheckTemplatesObject.healthCheckConnectPort = std::stoi(valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckConnectPort"].asString()); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckHost"].isNull()) + healthCheckTemplatesObject.healthCheckHost = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckHost"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckHttpVersion"].isNull()) + healthCheckTemplatesObject.healthCheckHttpVersion = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckHttpVersion"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckInterval"].isNull()) + healthCheckTemplatesObject.healthCheckInterval = std::stoi(valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckInterval"].asString()); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckMethod"].isNull()) + healthCheckTemplatesObject.healthCheckMethod = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckMethod"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckPath"].isNull()) + healthCheckTemplatesObject.healthCheckPath = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckPath"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckProtocol"].isNull()) + healthCheckTemplatesObject.healthCheckProtocol = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckProtocol"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTemplateId"].isNull()) + healthCheckTemplatesObject.healthCheckTemplateId = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTemplateId"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTemplateName"].isNull()) + healthCheckTemplatesObject.healthCheckTemplateName = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTemplateName"].asString(); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTimeout"].isNull()) + healthCheckTemplatesObject.healthCheckTimeout = std::stoi(valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTimeout"].asString()); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthyThreshold"].isNull()) + healthCheckTemplatesObject.healthyThreshold = std::stoi(valueHealthCheckTemplatesHealthCheckTemplate["HealthyThreshold"].asString()); + if(!valueHealthCheckTemplatesHealthCheckTemplate["UnhealthyThreshold"].isNull()) + healthCheckTemplatesObject.unhealthyThreshold = std::stoi(valueHealthCheckTemplatesHealthCheckTemplate["UnhealthyThreshold"].asString()); + if(!valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTcpFastCloseEnabled"].isNull()) + healthCheckTemplatesObject.healthCheckTcpFastCloseEnabled = valueHealthCheckTemplatesHealthCheckTemplate["HealthCheckTcpFastCloseEnabled"].asString() == "true"; + if(!valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedEnabled"].isNull()) + healthCheckTemplatesObject.serviceManagedEnabled = valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedEnabled"].asString() == "true"; + if(!valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedMode"].isNull()) + healthCheckTemplatesObject.serviceManagedMode = valueHealthCheckTemplatesHealthCheckTemplate["ServiceManagedMode"].asString(); + auto allHealthCheckHttpCodes = value["HealthCheckHttpCodes"]["httpCode"]; + for (auto value : allHealthCheckHttpCodes) + healthCheckTemplatesObject.healthCheckHttpCodes.push_back(value.asString()); + auto allHealthCheckCodes = value["HealthCheckCodes"]["HealthCheckCode"]; + for (auto value : allHealthCheckCodes) + healthCheckTemplatesObject.healthCheckCodes.push_back(value.asString()); + healthCheckTemplates_.push_back(healthCheckTemplatesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListHealthCheckTemplatesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListHealthCheckTemplatesResult::getHealthCheckTemplates()const +{ + return healthCheckTemplates_; +} + +std::string ListHealthCheckTemplatesResult::getNextToken()const +{ + return nextToken_; +} + +int ListHealthCheckTemplatesResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListListenerCertificatesRequest.cc b/alb/src/model/ListListenerCertificatesRequest.cc new file mode 100644 index 000000000..0be980368 --- /dev/null +++ b/alb/src/model/ListListenerCertificatesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListListenerCertificatesRequest; + +ListListenerCertificatesRequest::ListListenerCertificatesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListListenerCertificates") { + setMethod(HttpRequest::Method::Post); +} + +ListListenerCertificatesRequest::~ListListenerCertificatesRequest() {} + +std::string ListListenerCertificatesRequest::getCertificateType() const { + return certificateType_; +} + +void ListListenerCertificatesRequest::setCertificateType(const std::string &certificateType) { + certificateType_ = certificateType; + setParameter(std::string("CertificateType"), certificateType); +} + +std::string ListListenerCertificatesRequest::getListenerId() const { + return listenerId_; +} + +void ListListenerCertificatesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListListenerCertificatesRequest::getNextToken() const { + return nextToken_; +} + +void ListListenerCertificatesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListListenerCertificatesRequest::getMaxResults() const { + return maxResults_; +} + +void ListListenerCertificatesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListListenerCertificatesResult.cc b/alb/src/model/ListListenerCertificatesResult.cc new file mode 100644 index 000000000..8f1cad1fc --- /dev/null +++ b/alb/src/model/ListListenerCertificatesResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListListenerCertificatesResult::ListListenerCertificatesResult() : + ServiceResult() +{} + +ListListenerCertificatesResult::ListListenerCertificatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenerCertificatesResult::~ListListenerCertificatesResult() +{} + +void ListListenerCertificatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificatesNode = value["Certificates"]["CertificateModel"]; + for (auto valueCertificatesCertificateModel : allCertificatesNode) + { + CertificateModel certificatesObject; + if(!valueCertificatesCertificateModel["CertificateId"].isNull()) + certificatesObject.certificateId = valueCertificatesCertificateModel["CertificateId"].asString(); + if(!valueCertificatesCertificateModel["IsDefault"].isNull()) + certificatesObject.isDefault = valueCertificatesCertificateModel["IsDefault"].asString() == "true"; + if(!valueCertificatesCertificateModel["Status"].isNull()) + certificatesObject.status = valueCertificatesCertificateModel["Status"].asString(); + if(!valueCertificatesCertificateModel["CertificateType"].isNull()) + certificatesObject.certificateType = valueCertificatesCertificateModel["CertificateType"].asString(); + certificates_.push_back(certificatesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListListenerCertificatesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenerCertificatesResult::getNextToken()const +{ + return nextToken_; +} + +int ListListenerCertificatesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListListenerCertificatesResult::getCertificates()const +{ + return certificates_; +} + diff --git a/alb/src/model/ListListenersRequest.cc b/alb/src/model/ListListenersRequest.cc new file mode 100644 index 000000000..9a3d8c13d --- /dev/null +++ b/alb/src/model/ListListenersRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListListenersRequest; + +ListListenersRequest::ListListenersRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListListeners") { + setMethod(HttpRequest::Method::Post); +} + +ListListenersRequest::~ListListenersRequest() {} + +std::vector ListListenersRequest::getLoadBalancerIds() const { + return loadBalancerIds_; +} + +void ListListenersRequest::setLoadBalancerIds(const std::vector &loadBalancerIds) { + loadBalancerIds_ = loadBalancerIds; + for(int dep1 = 0; dep1 != loadBalancerIds.size(); dep1++) { + setParameter(std::string("LoadBalancerIds") + "." + std::to_string(dep1 + 1), loadBalancerIds[dep1]); + } +} + +std::string ListListenersRequest::getNextToken() const { + return nextToken_; +} + +void ListListenersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +bool ListListenersRequest::getAccessLogRecordCustomizedHeadersEnabled() const { + return accessLogRecordCustomizedHeadersEnabled_; +} + +void ListListenersRequest::setAccessLogRecordCustomizedHeadersEnabled(bool accessLogRecordCustomizedHeadersEnabled) { + accessLogRecordCustomizedHeadersEnabled_ = accessLogRecordCustomizedHeadersEnabled; + setParameter(std::string("AccessLogRecordCustomizedHeadersEnabled"), accessLogRecordCustomizedHeadersEnabled ? "true" : "false"); +} + +std::string ListListenersRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void ListListenersRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::vector ListListenersRequest::getListenerIds() const { + return listenerIds_; +} + +void ListListenersRequest::setListenerIds(const std::vector &listenerIds) { + listenerIds_ = listenerIds; + for(int dep1 = 0; dep1 != listenerIds.size(); dep1++) { + setParameter(std::string("ListenerIds") + "." + std::to_string(dep1 + 1), listenerIds[dep1]); + } +} + +int ListListenersRequest::getMaxResults() const { + return maxResults_; +} + +void ListListenersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListListenersResult.cc b/alb/src/model/ListListenersResult.cc new file mode 100644 index 000000000..9090c6acb --- /dev/null +++ b/alb/src/model/ListListenersResult.cc @@ -0,0 +1,161 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListListenersResult::ListListenersResult() : + ServiceResult() +{} + +ListListenersResult::ListListenersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenersResult::~ListListenersResult() +{} + +void ListListenersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["listener"]; + for (auto valueListenerslistener : allListenersNode) + { + Listener listenersObject; + if(!valueListenerslistener["GzipEnabled"].isNull()) + listenersObject.gzipEnabled = valueListenerslistener["GzipEnabled"].asString() == "true"; + if(!valueListenerslistener["Http2Enabled"].isNull()) + listenersObject.http2Enabled = valueListenerslistener["Http2Enabled"].asString() == "true"; + if(!valueListenerslistener["IdleTimeout"].isNull()) + listenersObject.idleTimeout = std::stoi(valueListenerslistener["IdleTimeout"].asString()); + if(!valueListenerslistener["ListenerDescription"].isNull()) + listenersObject.listenerDescription = valueListenerslistener["ListenerDescription"].asString(); + if(!valueListenerslistener["ListenerId"].isNull()) + listenersObject.listenerId = valueListenerslistener["ListenerId"].asString(); + if(!valueListenerslistener["ListenerPort"].isNull()) + listenersObject.listenerPort = std::stoi(valueListenerslistener["ListenerPort"].asString()); + if(!valueListenerslistener["ListenerProtocol"].isNull()) + listenersObject.listenerProtocol = valueListenerslistener["ListenerProtocol"].asString(); + if(!valueListenerslistener["ListenerStatus"].isNull()) + listenersObject.listenerStatus = valueListenerslistener["ListenerStatus"].asString(); + if(!valueListenerslistener["LoadBalancerId"].isNull()) + listenersObject.loadBalancerId = valueListenerslistener["LoadBalancerId"].asString(); + if(!valueListenerslistener["ServiceManagedEnabled"].isNull()) + listenersObject.serviceManagedEnabled = valueListenerslistener["ServiceManagedEnabled"].asString() == "true"; + if(!valueListenerslistener["ServiceManagedMode"].isNull()) + listenersObject.serviceManagedMode = valueListenerslistener["ServiceManagedMode"].asString(); + if(!valueListenerslistener["RequestTimeout"].isNull()) + listenersObject.requestTimeout = std::stoi(valueListenerslistener["RequestTimeout"].asString()); + if(!valueListenerslistener["SecurityPolicyId"].isNull()) + listenersObject.securityPolicyId = valueListenerslistener["SecurityPolicyId"].asString(); + auto allDefaultActionsNode = valueListenerslistener["DefaultActions"]["defaultAction"]; + for (auto valueListenerslistenerDefaultActionsdefaultAction : allDefaultActionsNode) + { + Listener::DefaultAction defaultActionsObject; + if(!valueListenerslistenerDefaultActionsdefaultAction["Type"].isNull()) + defaultActionsObject.type = valueListenerslistenerDefaultActionsdefaultAction["Type"].asString(); + auto forwardGroupConfigNode = value["ForwardGroupConfig"]; + auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["serverGroupTuple"]; + for (auto forwardGroupConfigNodeServerGroupTuplesserverGroupTuple : allServerGroupTuplesNode) + { + Listener::DefaultAction::ForwardGroupConfig::ServerGroupTuple serverGroupTupleObject; + if(!forwardGroupConfigNodeServerGroupTuplesserverGroupTuple["ServerGroupId"].isNull()) + serverGroupTupleObject.serverGroupId = forwardGroupConfigNodeServerGroupTuplesserverGroupTuple["ServerGroupId"].asString(); + defaultActionsObject.forwardGroupConfig.serverGroupTuples.push_back(serverGroupTupleObject); + } + listenersObject.defaultActions.push_back(defaultActionsObject); + } + auto logConfigNode = value["LogConfig"]; + if(!logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].isNull()) + listenersObject.logConfig.accessLogRecordCustomizedHeadersEnabled = logConfigNode["AccessLogRecordCustomizedHeadersEnabled"].asString() == "true"; + auto accessLogTracingConfigNode = logConfigNode["AccessLogTracingConfig"]; + if(!accessLogTracingConfigNode["TracingEnabled"].isNull()) + listenersObject.logConfig.accessLogTracingConfig.tracingEnabled = accessLogTracingConfigNode["TracingEnabled"].asString() == "true"; + if(!accessLogTracingConfigNode["TracingSample"].isNull()) + listenersObject.logConfig.accessLogTracingConfig.tracingSample = std::stoi(accessLogTracingConfigNode["TracingSample"].asString()); + if(!accessLogTracingConfigNode["TracingType"].isNull()) + listenersObject.logConfig.accessLogTracingConfig.tracingType = accessLogTracingConfigNode["TracingType"].asString(); + auto quicConfigNode = value["QuicConfig"]; + if(!quicConfigNode["QuicListenerId"].isNull()) + listenersObject.quicConfig.quicListenerId = quicConfigNode["QuicListenerId"].asString(); + if(!quicConfigNode["QuicUpgradeEnabled"].isNull()) + listenersObject.quicConfig.quicUpgradeEnabled = quicConfigNode["QuicUpgradeEnabled"].asString() == "true"; + auto xForwardedForConfigNode = value["XForwardedForConfig"]; + if(!xForwardedForConfigNode["XForwardedForClientCertClientVerifyAlias"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertClientVerifyAlias = xForwardedForConfigNode["XForwardedForClientCertClientVerifyAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertClientVerifyEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertClientVerifyEnabled = xForwardedForConfigNode["XForwardedForClientCertClientVerifyEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertFingerprintAlias"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertFingerprintAlias = xForwardedForConfigNode["XForwardedForClientCertFingerprintAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertFingerprintEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertFingerprintEnabled = xForwardedForConfigNode["XForwardedForClientCertFingerprintEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertIssuerDNAlias"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertIssuerDNAlias = xForwardedForConfigNode["XForwardedForClientCertIssuerDNAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertIssuerDNEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertIssuerDNEnabled = xForwardedForConfigNode["XForwardedForClientCertIssuerDNEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientCertSubjectDNAlias"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertSubjectDNAlias = xForwardedForConfigNode["XForwardedForClientCertSubjectDNAlias"].asString(); + if(!xForwardedForConfigNode["XForwardedForClientCertSubjectDNEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientCertSubjectDNEnabled = xForwardedForConfigNode["XForwardedForClientCertSubjectDNEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForClientSrcPortEnabled = xForwardedForConfigNode["XForwardedForClientSrcPortEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForEnabled = xForwardedForConfigNode["XForwardedForEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForSLBIdEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForSLBIdEnabled = xForwardedForConfigNode["XForwardedForSLBIdEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForSLBPortEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForSLBPortEnabled = xForwardedForConfigNode["XForwardedForSLBPortEnabled"].asString() == "true"; + listeners_.push_back(listenersObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListListenersResult::getListeners()const +{ + return listeners_; +} + +int ListListenersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenersResult::getNextToken()const +{ + return nextToken_; +} + +int ListListenersResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListLoadBalancersRequest.cc b/alb/src/model/ListLoadBalancersRequest.cc new file mode 100644 index 000000000..1ee0cf1ce --- /dev/null +++ b/alb/src/model/ListLoadBalancersRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListLoadBalancersRequest; + +ListLoadBalancersRequest::ListLoadBalancersRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListLoadBalancers") { + setMethod(HttpRequest::Method::Post); +} + +ListLoadBalancersRequest::~ListLoadBalancersRequest() {} + +std::vector ListLoadBalancersRequest::getLoadBalancerNames() const { + return loadBalancerNames_; +} + +void ListLoadBalancersRequest::setLoadBalancerNames(const std::vector &loadBalancerNames) { + loadBalancerNames_ = loadBalancerNames; + for(int dep1 = 0; dep1 != loadBalancerNames.size(); dep1++) { + setParameter(std::string("LoadBalancerNames") + "." + std::to_string(dep1 + 1), loadBalancerNames[dep1]); + } +} + +std::vector ListLoadBalancersRequest::getLoadBalancerIds() const { + return loadBalancerIds_; +} + +void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector &loadBalancerIds) { + loadBalancerIds_ = loadBalancerIds; + for(int dep1 = 0; dep1 != loadBalancerIds.size(); dep1++) { + setParameter(std::string("LoadBalancerIds") + "." + std::to_string(dep1 + 1), loadBalancerIds[dep1]); + } +} + +std::string ListLoadBalancersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListLoadBalancersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListLoadBalancersRequest::getNextToken() const { + return nextToken_; +} + +void ListLoadBalancersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListLoadBalancersRequest::getLoadBalancerBussinessStatus() const { + return loadBalancerBussinessStatus_; +} + +void ListLoadBalancersRequest::setLoadBalancerBussinessStatus(const std::string &loadBalancerBussinessStatus) { + loadBalancerBussinessStatus_ = loadBalancerBussinessStatus; + setParameter(std::string("LoadBalancerBussinessStatus"), loadBalancerBussinessStatus); +} + +std::string ListLoadBalancersRequest::getAddressType() const { + return addressType_; +} + +void ListLoadBalancersRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::vector ListLoadBalancersRequest::getVpcIds() const { + return vpcIds_; +} + +void ListLoadBalancersRequest::setVpcIds(const std::vector &vpcIds) { + vpcIds_ = vpcIds; + for(int dep1 = 0; dep1 != vpcIds.size(); dep1++) { + setParameter(std::string("VpcIds") + "." + std::to_string(dep1 + 1), vpcIds[dep1]); + } +} + +std::vector ListLoadBalancersRequest::getTag() const { + return tag_; +} + +void ListLoadBalancersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::string ListLoadBalancersRequest::getAddress() const { + return address_; +} + +void ListLoadBalancersRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string ListLoadBalancersRequest::getLoadBalancerStatus() const { + return loadBalancerStatus_; +} + +void ListLoadBalancersRequest::setLoadBalancerStatus(const std::string &loadBalancerStatus) { + loadBalancerStatus_ = loadBalancerStatus; + setParameter(std::string("LoadBalancerStatus"), loadBalancerStatus); +} + +std::string ListLoadBalancersRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void ListLoadBalancersRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +int ListLoadBalancersRequest::getMaxResults() const { + return maxResults_; +} + +void ListLoadBalancersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListLoadBalancersRequest::getZoneId() const { + return zoneId_; +} + +void ListLoadBalancersRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string ListLoadBalancersRequest::getPayType() const { + return payType_; +} + +void ListLoadBalancersRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/alb/src/model/ListLoadBalancersResult.cc b/alb/src/model/ListLoadBalancersResult.cc new file mode 100644 index 000000000..c3ee361f2 --- /dev/null +++ b/alb/src/model/ListLoadBalancersResult.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 +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListLoadBalancersResult::ListLoadBalancersResult() : + ServiceResult() +{} + +ListLoadBalancersResult::ListLoadBalancersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLoadBalancersResult::~ListLoadBalancersResult() +{} + +void ListLoadBalancersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancersNode = value["LoadBalancers"]["loadBalancer"]; + for (auto valueLoadBalancersloadBalancer : allLoadBalancersNode) + { + LoadBalancer loadBalancersObject; + if(!valueLoadBalancersloadBalancer["AddressAllocatedMode"].isNull()) + loadBalancersObject.addressAllocatedMode = valueLoadBalancersloadBalancer["AddressAllocatedMode"].asString(); + if(!valueLoadBalancersloadBalancer["AddressType"].isNull()) + loadBalancersObject.addressType = valueLoadBalancersloadBalancer["AddressType"].asString(); + if(!valueLoadBalancersloadBalancer["BandwidthCapacity"].isNull()) + loadBalancersObject.bandwidthCapacity = std::stoi(valueLoadBalancersloadBalancer["BandwidthCapacity"].asString()); + if(!valueLoadBalancersloadBalancer["BandwidthPackageId"].isNull()) + loadBalancersObject.bandwidthPackageId = valueLoadBalancersloadBalancer["BandwidthPackageId"].asString(); + if(!valueLoadBalancersloadBalancer["CreateTime"].isNull()) + loadBalancersObject.createTime = valueLoadBalancersloadBalancer["CreateTime"].asString(); + if(!valueLoadBalancersloadBalancer["DNSName"].isNull()) + loadBalancersObject.dNSName = valueLoadBalancersloadBalancer["DNSName"].asString(); + if(!valueLoadBalancersloadBalancer["ServiceManagedEnabled"].isNull()) + loadBalancersObject.serviceManagedEnabled = valueLoadBalancersloadBalancer["ServiceManagedEnabled"].asString() == "true"; + if(!valueLoadBalancersloadBalancer["ServiceManagedMode"].isNull()) + loadBalancersObject.serviceManagedMode = valueLoadBalancersloadBalancer["ServiceManagedMode"].asString(); + if(!valueLoadBalancersloadBalancer["LoadBalancerBussinessStatus"].isNull()) + loadBalancersObject.loadBalancerBussinessStatus = valueLoadBalancersloadBalancer["LoadBalancerBussinessStatus"].asString(); + if(!valueLoadBalancersloadBalancer["LoadBalancerEdition"].isNull()) + loadBalancersObject.loadBalancerEdition = valueLoadBalancersloadBalancer["LoadBalancerEdition"].asString(); + if(!valueLoadBalancersloadBalancer["LoadBalancerId"].isNull()) + loadBalancersObject.loadBalancerId = valueLoadBalancersloadBalancer["LoadBalancerId"].asString(); + if(!valueLoadBalancersloadBalancer["LoadBalancerName"].isNull()) + loadBalancersObject.loadBalancerName = valueLoadBalancersloadBalancer["LoadBalancerName"].asString(); + if(!valueLoadBalancersloadBalancer["LoadBalancerStatus"].isNull()) + loadBalancersObject.loadBalancerStatus = valueLoadBalancersloadBalancer["LoadBalancerStatus"].asString(); + if(!valueLoadBalancersloadBalancer["ResourceGroupId"].isNull()) + loadBalancersObject.resourceGroupId = valueLoadBalancersloadBalancer["ResourceGroupId"].asString(); + if(!valueLoadBalancersloadBalancer["VpcId"].isNull()) + loadBalancersObject.vpcId = valueLoadBalancersloadBalancer["VpcId"].asString(); + auto allLoadBalancerOperationLocksNode = valueLoadBalancersloadBalancer["LoadBalancerOperationLocks"]["LoadBalancerOperationLock"]; + for (auto valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock : allLoadBalancerOperationLocksNode) + { + LoadBalancer::LoadBalancerOperationLock loadBalancerOperationLocksObject; + if(!valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock["LockReason"].isNull()) + loadBalancerOperationLocksObject.lockReason = valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock["LockReason"].asString(); + if(!valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock["LockType"].isNull()) + loadBalancerOperationLocksObject.lockType = valueLoadBalancersloadBalancerLoadBalancerOperationLocksLoadBalancerOperationLock["LockType"].asString(); + loadBalancersObject.loadBalancerOperationLocks.push_back(loadBalancerOperationLocksObject); + } + auto allTagsNode = valueLoadBalancersloadBalancer["Tags"]["Tag"]; + for (auto valueLoadBalancersloadBalancerTagsTag : allTagsNode) + { + LoadBalancer::Tag tagsObject; + if(!valueLoadBalancersloadBalancerTagsTag["Key"].isNull()) + tagsObject.key = valueLoadBalancersloadBalancerTagsTag["Key"].asString(); + if(!valueLoadBalancersloadBalancerTagsTag["Value"].isNull()) + tagsObject.value = valueLoadBalancersloadBalancerTagsTag["Value"].asString(); + loadBalancersObject.tags.push_back(tagsObject); + } + auto accessLogConfigNode = value["AccessLogConfig"]; + if(!accessLogConfigNode["LogProject"].isNull()) + loadBalancersObject.accessLogConfig.logProject = accessLogConfigNode["LogProject"].asString(); + if(!accessLogConfigNode["LogStore"].isNull()) + loadBalancersObject.accessLogConfig.logStore = accessLogConfigNode["LogStore"].asString(); + auto deletionProtectionConfigNode = value["DeletionProtectionConfig"]; + if(!deletionProtectionConfigNode["Enabled"].isNull()) + loadBalancersObject.deletionProtectionConfig.enabled = deletionProtectionConfigNode["Enabled"].asString() == "true"; + if(!deletionProtectionConfigNode["EnabledTime"].isNull()) + loadBalancersObject.deletionProtectionConfig.enabledTime = deletionProtectionConfigNode["EnabledTime"].asString(); + auto loadBalancerBillingConfigNode = value["LoadBalancerBillingConfig"]; + if(!loadBalancerBillingConfigNode["InternetBandwidth"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.internetBandwidth = std::stoi(loadBalancerBillingConfigNode["InternetBandwidth"].asString()); + if(!loadBalancerBillingConfigNode["InternetChargeType"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.internetChargeType = loadBalancerBillingConfigNode["InternetChargeType"].asString(); + if(!loadBalancerBillingConfigNode["PayType"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.payType = loadBalancerBillingConfigNode["PayType"].asString(); + auto modificationProtectionConfigNode = value["ModificationProtectionConfig"]; + if(!modificationProtectionConfigNode["Reason"].isNull()) + loadBalancersObject.modificationProtectionConfig.reason = modificationProtectionConfigNode["Reason"].asString(); + if(!modificationProtectionConfigNode["Status"].isNull()) + loadBalancersObject.modificationProtectionConfig.status = modificationProtectionConfigNode["Status"].asString(); + loadBalancers_.push_back(loadBalancersObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListLoadBalancersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListLoadBalancersResult::getNextToken()const +{ + return nextToken_; +} + +int ListLoadBalancersResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListLoadBalancersResult::getLoadBalancers()const +{ + return loadBalancers_; +} + diff --git a/alb/src/model/ListRulesRequest.cc b/alb/src/model/ListRulesRequest.cc new file mode 100644 index 000000000..b92ebfd45 --- /dev/null +++ b/alb/src/model/ListRulesRequest.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListRulesRequest; + +ListRulesRequest::ListRulesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListRules") { + setMethod(HttpRequest::Method::Post); +} + +ListRulesRequest::~ListRulesRequest() {} + +std::vector ListRulesRequest::getLoadBalancerIds() const { + return loadBalancerIds_; +} + +void ListRulesRequest::setLoadBalancerIds(const std::vector &loadBalancerIds) { + loadBalancerIds_ = loadBalancerIds; + for(int dep1 = 0; dep1 != loadBalancerIds.size(); dep1++) { + setParameter(std::string("LoadBalancerIds") + "." + std::to_string(dep1 + 1), loadBalancerIds[dep1]); + } +} + +std::string ListRulesRequest::getListenerId() const { + return listenerId_; +} + +void ListRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListRulesRequest::getNextToken() const { + return nextToken_; +} + +void ListRulesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListRulesRequest::getDirection() const { + return direction_; +} + +void ListRulesRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); +} + +std::vector ListRulesRequest::getRuleIds() const { + return ruleIds_; +} + +void ListRulesRequest::setRuleIds(const std::vector &ruleIds) { + ruleIds_ = ruleIds; + for(int dep1 = 0; dep1 != ruleIds.size(); dep1++) { + setParameter(std::string("RuleIds") + "." + std::to_string(dep1 + 1), ruleIds[dep1]); + } +} + +std::vector ListRulesRequest::getListenerIds() const { + return listenerIds_; +} + +void ListRulesRequest::setListenerIds(const std::vector &listenerIds) { + listenerIds_ = listenerIds; + for(int dep1 = 0; dep1 != listenerIds.size(); dep1++) { + setParameter(std::string("ListenerIds") + "." + std::to_string(dep1 + 1), listenerIds[dep1]); + } +} + +int ListRulesRequest::getMaxResults() const { + return maxResults_; +} + +void ListRulesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListRulesResult.cc b/alb/src/model/ListRulesResult.cc new file mode 100644 index 000000000..96cb752ea --- /dev/null +++ b/alb/src/model/ListRulesResult.cc @@ -0,0 +1,238 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListRulesResult::ListRulesResult() : + ServiceResult() +{} + +ListRulesResult::ListRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRulesResult::~ListRulesResult() +{} + +void ListRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRulesNode = value["Rules"]["Rule"]; + for (auto valueRulesRule : allRulesNode) + { + Rule rulesObject; + if(!valueRulesRule["ListenerId"].isNull()) + rulesObject.listenerId = valueRulesRule["ListenerId"].asString(); + if(!valueRulesRule["LoadBalancerId"].isNull()) + rulesObject.loadBalancerId = valueRulesRule["LoadBalancerId"].asString(); + if(!valueRulesRule["Priority"].isNull()) + rulesObject.priority = std::stoi(valueRulesRule["Priority"].asString()); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = valueRulesRule["RuleId"].asString(); + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + if(!valueRulesRule["RuleStatus"].isNull()) + rulesObject.ruleStatus = valueRulesRule["RuleStatus"].asString(); + if(!valueRulesRule["Direction"].isNull()) + rulesObject.direction = valueRulesRule["Direction"].asString(); + if(!valueRulesRule["ServiceManagedEnabled"].isNull()) + rulesObject.serviceManagedEnabled = valueRulesRule["ServiceManagedEnabled"].asString() == "true"; + if(!valueRulesRule["ServiceManagedMode"].isNull()) + rulesObject.serviceManagedMode = valueRulesRule["ServiceManagedMode"].asString(); + auto allRuleActionsNode = valueRulesRule["RuleActions"]["Action"]; + for (auto valueRulesRuleRuleActionsAction : allRuleActionsNode) + { + Rule::Action ruleActionsObject; + if(!valueRulesRuleRuleActionsAction["Order"].isNull()) + ruleActionsObject.order = std::stoi(valueRulesRuleRuleActionsAction["Order"].asString()); + if(!valueRulesRuleRuleActionsAction["Type"].isNull()) + ruleActionsObject.type = valueRulesRuleRuleActionsAction["Type"].asString(); + auto fixedResponseConfigNode = value["FixedResponseConfig"]; + if(!fixedResponseConfigNode["Content"].isNull()) + ruleActionsObject.fixedResponseConfig.content = fixedResponseConfigNode["Content"].asString(); + if(!fixedResponseConfigNode["ContentType"].isNull()) + ruleActionsObject.fixedResponseConfig.contentType = fixedResponseConfigNode["ContentType"].asString(); + if(!fixedResponseConfigNode["HttpCode"].isNull()) + ruleActionsObject.fixedResponseConfig.httpCode = fixedResponseConfigNode["HttpCode"].asString(); + auto forwardGroupConfigNode = value["ForwardGroupConfig"]; + auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["ServerGroupTuple"]; + for (auto forwardGroupConfigNodeServerGroupTuplesServerGroupTuple : allServerGroupTuplesNode) + { + Rule::Action::ForwardGroupConfig::ServerGroupTuple serverGroupTupleObject; + if(!forwardGroupConfigNodeServerGroupTuplesServerGroupTuple["ServerGroupId"].isNull()) + serverGroupTupleObject.serverGroupId = forwardGroupConfigNodeServerGroupTuplesServerGroupTuple["ServerGroupId"].asString(); + if(!forwardGroupConfigNodeServerGroupTuplesServerGroupTuple["Weight"].isNull()) + serverGroupTupleObject.weight = std::stoi(forwardGroupConfigNodeServerGroupTuplesServerGroupTuple["Weight"].asString()); + ruleActionsObject.forwardGroupConfig.serverGroupTuples.push_back(serverGroupTupleObject); + } + auto serverGroupStickySessionNode = forwardGroupConfigNode["ServerGroupStickySession"]; + if(!serverGroupStickySessionNode["Enabled"].isNull()) + ruleActionsObject.forwardGroupConfig.serverGroupStickySession.enabled = serverGroupStickySessionNode["Enabled"].asString() == "true"; + if(!serverGroupStickySessionNode["Timeout"].isNull()) + ruleActionsObject.forwardGroupConfig.serverGroupStickySession.timeout = std::stoi(serverGroupStickySessionNode["Timeout"].asString()); + auto insertHeaderConfigNode = value["InsertHeaderConfig"]; + if(!insertHeaderConfigNode["CoverEnabled"].isNull()) + ruleActionsObject.insertHeaderConfig.coverEnabled = insertHeaderConfigNode["CoverEnabled"].asString() == "true"; + if(!insertHeaderConfigNode["Key"].isNull()) + ruleActionsObject.insertHeaderConfig.key = insertHeaderConfigNode["Key"].asString(); + if(!insertHeaderConfigNode["Value"].isNull()) + ruleActionsObject.insertHeaderConfig.value = insertHeaderConfigNode["Value"].asString(); + if(!insertHeaderConfigNode["ValueType"].isNull()) + ruleActionsObject.insertHeaderConfig.valueType = insertHeaderConfigNode["ValueType"].asString(); + auto redirectConfigNode = value["RedirectConfig"]; + if(!redirectConfigNode["Host"].isNull()) + ruleActionsObject.redirectConfig.host = redirectConfigNode["Host"].asString(); + if(!redirectConfigNode["HttpCode"].isNull()) + ruleActionsObject.redirectConfig.httpCode = redirectConfigNode["HttpCode"].asString(); + if(!redirectConfigNode["Path"].isNull()) + ruleActionsObject.redirectConfig.path = redirectConfigNode["Path"].asString(); + if(!redirectConfigNode["Port"].isNull()) + ruleActionsObject.redirectConfig.port = redirectConfigNode["Port"].asString(); + if(!redirectConfigNode["Protocol"].isNull()) + ruleActionsObject.redirectConfig.protocol = redirectConfigNode["Protocol"].asString(); + if(!redirectConfigNode["Query"].isNull()) + ruleActionsObject.redirectConfig.query = redirectConfigNode["Query"].asString(); + auto removeHeaderConfigNode = value["RemoveHeaderConfig"]; + if(!removeHeaderConfigNode["Key"].isNull()) + ruleActionsObject.removeHeaderConfig.key = removeHeaderConfigNode["Key"].asString(); + auto rewriteConfigNode = value["RewriteConfig"]; + if(!rewriteConfigNode["Host"].isNull()) + ruleActionsObject.rewriteConfig.host = rewriteConfigNode["Host"].asString(); + if(!rewriteConfigNode["Path"].isNull()) + ruleActionsObject.rewriteConfig.path = rewriteConfigNode["Path"].asString(); + if(!rewriteConfigNode["Query"].isNull()) + ruleActionsObject.rewriteConfig.query = rewriteConfigNode["Query"].asString(); + auto trafficMirrorConfigNode = value["TrafficMirrorConfig"]; + if(!trafficMirrorConfigNode["TargetType"].isNull()) + ruleActionsObject.trafficMirrorConfig.targetType = trafficMirrorConfigNode["TargetType"].asString(); + auto mirrorGroupConfigNode = trafficMirrorConfigNode["MirrorGroupConfig"]; + auto allServerGroupTuples1Node = mirrorGroupConfigNode["ServerGroupTuples"]["ServerGroupTuple"]; + for (auto mirrorGroupConfigNodeServerGroupTuplesServerGroupTuple : allServerGroupTuples1Node) + { + Rule::Action::TrafficMirrorConfig::MirrorGroupConfig::ServerGroupTuple2 serverGroupTuple2Object; + if(!mirrorGroupConfigNodeServerGroupTuplesServerGroupTuple["ServerGroupId"].isNull()) + serverGroupTuple2Object.serverGroupId = mirrorGroupConfigNodeServerGroupTuplesServerGroupTuple["ServerGroupId"].asString(); + if(!mirrorGroupConfigNodeServerGroupTuplesServerGroupTuple["Weight"].isNull()) + serverGroupTuple2Object.weight = std::stoi(mirrorGroupConfigNodeServerGroupTuplesServerGroupTuple["Weight"].asString()); + ruleActionsObject.trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples1.push_back(serverGroupTuple2Object); + } + auto trafficLimitConfigNode = value["TrafficLimitConfig"]; + if(!trafficLimitConfigNode["QPS"].isNull()) + ruleActionsObject.trafficLimitConfig.qPS = std::stoi(trafficLimitConfigNode["QPS"].asString()); + rulesObject.ruleActions.push_back(ruleActionsObject); + } + auto allRuleConditionsNode = valueRulesRule["RuleConditions"]["Condition"]; + for (auto valueRulesRuleRuleConditionsCondition : allRuleConditionsNode) + { + Rule::Condition ruleConditionsObject; + if(!valueRulesRuleRuleConditionsCondition["Type"].isNull()) + ruleConditionsObject.type = valueRulesRuleRuleConditionsCondition["Type"].asString(); + auto cookieConfigNode = value["CookieConfig"]; + auto allValuesNode = cookieConfigNode["Values"]["Value"]; + for (auto cookieConfigNodeValuesValue : allValuesNode) + { + Rule::Condition::CookieConfig::Value valueObject; + if(!cookieConfigNodeValuesValue["Key"].isNull()) + valueObject.key = cookieConfigNodeValuesValue["Key"].asString(); + if(!cookieConfigNodeValuesValue["Value"].isNull()) + valueObject.value = cookieConfigNodeValuesValue["Value"].asString(); + ruleConditionsObject.cookieConfig.values.push_back(valueObject); + } + auto headerConfigNode = value["HeaderConfig"]; + if(!headerConfigNode["Key"].isNull()) + ruleConditionsObject.headerConfig.key = headerConfigNode["Key"].asString(); + auto allValues3 = headerConfigNode["Values"]["Value"]; + for (auto value : allValues3) + ruleConditionsObject.headerConfig.values3.push_back(value.asString()); + auto hostConfigNode = value["HostConfig"]; + auto allValues4 = hostConfigNode["Values"]["Value"]; + for (auto value : allValues4) + ruleConditionsObject.hostConfig.values4.push_back(value.asString()); + auto methodConfigNode = value["MethodConfig"]; + auto allValues5 = methodConfigNode["Values"]["Value"]; + for (auto value : allValues5) + ruleConditionsObject.methodConfig.values5.push_back(value.asString()); + auto pathConfigNode = value["PathConfig"]; + auto allValues6 = pathConfigNode["Values"]["Value"]; + for (auto value : allValues6) + ruleConditionsObject.pathConfig.values6.push_back(value.asString()); + auto queryStringConfigNode = value["QueryStringConfig"]; + auto allValues7Node = queryStringConfigNode["Values"]["Value"]; + for (auto queryStringConfigNodeValuesValue : allValues7Node) + { + Rule::Condition::QueryStringConfig::Value8 value8Object; + if(!queryStringConfigNodeValuesValue["Key"].isNull()) + value8Object.key = queryStringConfigNodeValuesValue["Key"].asString(); + if(!queryStringConfigNodeValuesValue["Value"].isNull()) + value8Object.value = queryStringConfigNodeValuesValue["Value"].asString(); + ruleConditionsObject.queryStringConfig.values7.push_back(value8Object); + } + auto sourceIpConfigNode = value["SourceIpConfig"]; + auto allValues9 = sourceIpConfigNode["Values"]["Value"]; + for (auto value : allValues9) + ruleConditionsObject.sourceIpConfig.values9.push_back(value.asString()); + auto responseStatusCodeConfigNode = value["ResponseStatusCodeConfig"]; + auto allValues10 = responseStatusCodeConfigNode["Values"]["Value"]; + for (auto value : allValues10) + ruleConditionsObject.responseStatusCodeConfig.values10.push_back(value.asString()); + auto responseHeaderConfigNode = value["ResponseHeaderConfig"]; + if(!responseHeaderConfigNode["Key"].isNull()) + ruleConditionsObject.responseHeaderConfig.key = responseHeaderConfigNode["Key"].asString(); + auto allValues11 = responseHeaderConfigNode["Values"]["Value"]; + for (auto value : allValues11) + ruleConditionsObject.responseHeaderConfig.values11.push_back(value.asString()); + rulesObject.ruleConditions.push_back(ruleConditionsObject); + } + rules_.push_back(rulesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListRulesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListRulesResult::getNextToken()const +{ + return nextToken_; +} + +int ListRulesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListRulesResult::getRules()const +{ + return rules_; +} + diff --git a/alb/src/model/ListSecurityPoliciesRequest.cc b/alb/src/model/ListSecurityPoliciesRequest.cc new file mode 100644 index 000000000..1f822afea --- /dev/null +++ b/alb/src/model/ListSecurityPoliciesRequest.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListSecurityPoliciesRequest; + +ListSecurityPoliciesRequest::ListSecurityPoliciesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListSecurityPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListSecurityPoliciesRequest::~ListSecurityPoliciesRequest() {} + +std::vector ListSecurityPoliciesRequest::getSecurityPolicyNames() const { + return securityPolicyNames_; +} + +void ListSecurityPoliciesRequest::setSecurityPolicyNames(const std::vector &securityPolicyNames) { + securityPolicyNames_ = securityPolicyNames; + for(int dep1 = 0; dep1 != securityPolicyNames.size(); dep1++) { + setParameter(std::string("SecurityPolicyNames") + "." + std::to_string(dep1 + 1), securityPolicyNames[dep1]); + } +} + +std::string ListSecurityPoliciesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListSecurityPoliciesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListSecurityPoliciesRequest::getNextToken() const { + return nextToken_; +} + +void ListSecurityPoliciesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListSecurityPoliciesRequest::getSecurityPolicyIds() const { + return securityPolicyIds_; +} + +void ListSecurityPoliciesRequest::setSecurityPolicyIds(const std::vector &securityPolicyIds) { + securityPolicyIds_ = securityPolicyIds; + for(int dep1 = 0; dep1 != securityPolicyIds.size(); dep1++) { + setParameter(std::string("SecurityPolicyIds") + "." + std::to_string(dep1 + 1), securityPolicyIds[dep1]); + } +} + +int ListSecurityPoliciesRequest::getMaxResults() const { + return maxResults_; +} + +void ListSecurityPoliciesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListSecurityPoliciesResult.cc b/alb/src/model/ListSecurityPoliciesResult.cc new file mode 100644 index 000000000..25c3aaf3c --- /dev/null +++ b/alb/src/model/ListSecurityPoliciesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListSecurityPoliciesResult::ListSecurityPoliciesResult() : + ServiceResult() +{} + +ListSecurityPoliciesResult::ListSecurityPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityPoliciesResult::~ListSecurityPoliciesResult() +{} + +void ListSecurityPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityPoliciesNode = value["SecurityPolicies"]["SecurityPolicy"]; + for (auto valueSecurityPoliciesSecurityPolicy : allSecurityPoliciesNode) + { + SecurityPolicy securityPoliciesObject; + if(!valueSecurityPoliciesSecurityPolicy["ResourceGroupId"].isNull()) + securityPoliciesObject.resourceGroupId = valueSecurityPoliciesSecurityPolicy["ResourceGroupId"].asString(); + if(!valueSecurityPoliciesSecurityPolicy["SecurityPolicyId"].isNull()) + securityPoliciesObject.securityPolicyId = valueSecurityPoliciesSecurityPolicy["SecurityPolicyId"].asString(); + if(!valueSecurityPoliciesSecurityPolicy["SecurityPolicyName"].isNull()) + securityPoliciesObject.securityPolicyName = valueSecurityPoliciesSecurityPolicy["SecurityPolicyName"].asString(); + if(!valueSecurityPoliciesSecurityPolicy["SecurityPolicyStatus"].isNull()) + securityPoliciesObject.securityPolicyStatus = valueSecurityPoliciesSecurityPolicy["SecurityPolicyStatus"].asString(); + if(!valueSecurityPoliciesSecurityPolicy["ServiceManagedEnabled"].isNull()) + securityPoliciesObject.serviceManagedEnabled = valueSecurityPoliciesSecurityPolicy["ServiceManagedEnabled"].asString() == "true"; + if(!valueSecurityPoliciesSecurityPolicy["ServiceManagedMode"].isNull()) + securityPoliciesObject.serviceManagedMode = valueSecurityPoliciesSecurityPolicy["ServiceManagedMode"].asString(); + auto allCiphers = value["Ciphers"]["Cipher"]; + for (auto value : allCiphers) + securityPoliciesObject.ciphers.push_back(value.asString()); + auto allTLSVersions = value["TLSVersions"]["TLSVersion"]; + for (auto value : allTLSVersions) + securityPoliciesObject.tLSVersions.push_back(value.asString()); + securityPolicies_.push_back(securityPoliciesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListSecurityPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSecurityPoliciesResult::getNextToken()const +{ + return nextToken_; +} + +int ListSecurityPoliciesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListSecurityPoliciesResult::getSecurityPolicies()const +{ + return securityPolicies_; +} + diff --git a/alb/src/model/ListSecurityPolicyRelationsRequest.cc b/alb/src/model/ListSecurityPolicyRelationsRequest.cc new file mode 100644 index 000000000..c81d5c429 --- /dev/null +++ b/alb/src/model/ListSecurityPolicyRelationsRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListSecurityPolicyRelationsRequest; + +ListSecurityPolicyRelationsRequest::ListSecurityPolicyRelationsRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListSecurityPolicyRelations") { + setMethod(HttpRequest::Method::Post); +} + +ListSecurityPolicyRelationsRequest::~ListSecurityPolicyRelationsRequest() {} + +std::vector ListSecurityPolicyRelationsRequest::getSecurityPolicyIds() const { + return securityPolicyIds_; +} + +void ListSecurityPolicyRelationsRequest::setSecurityPolicyIds(const std::vector &securityPolicyIds) { + securityPolicyIds_ = securityPolicyIds; + for(int dep1 = 0; dep1 != securityPolicyIds.size(); dep1++) { + setParameter(std::string("SecurityPolicyIds") + "." + std::to_string(dep1 + 1), securityPolicyIds[dep1]); + } +} + diff --git a/alb/src/model/ListSecurityPolicyRelationsResult.cc b/alb/src/model/ListSecurityPolicyRelationsResult.cc new file mode 100644 index 000000000..4f36556fa --- /dev/null +++ b/alb/src/model/ListSecurityPolicyRelationsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListSecurityPolicyRelationsResult::ListSecurityPolicyRelationsResult() : + ServiceResult() +{} + +ListSecurityPolicyRelationsResult::ListSecurityPolicyRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityPolicyRelationsResult::~ListSecurityPolicyRelationsResult() +{} + +void ListSecurityPolicyRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecrityPolicyRelationsNode = value["SecrityPolicyRelations"]["SecrityPolicyRelation"]; + for (auto valueSecrityPolicyRelationsSecrityPolicyRelation : allSecrityPolicyRelationsNode) + { + SecrityPolicyRelation secrityPolicyRelationsObject; + if(!valueSecrityPolicyRelationsSecrityPolicyRelation["SecurityPolicyId"].isNull()) + secrityPolicyRelationsObject.securityPolicyId = valueSecrityPolicyRelationsSecrityPolicyRelation["SecurityPolicyId"].asString(); + auto allRelatedListenersNode = valueSecrityPolicyRelationsSecrityPolicyRelation["RelatedListeners"]["RelatedListener"]; + for (auto valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener : allRelatedListenersNode) + { + SecrityPolicyRelation::RelatedListener relatedListenersObject; + if(!valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerId"].isNull()) + relatedListenersObject.listenerId = valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerId"].asString(); + if(!valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerPort"].isNull()) + relatedListenersObject.listenerPort = std::stol(valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerPort"].asString()); + if(!valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerProtocol"].isNull()) + relatedListenersObject.listenerProtocol = valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["ListenerProtocol"].asString(); + if(!valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["LoadBalancerId"].isNull()) + relatedListenersObject.loadBalancerId = valueSecrityPolicyRelationsSecrityPolicyRelationRelatedListenersRelatedListener["LoadBalancerId"].asString(); + secrityPolicyRelationsObject.relatedListeners.push_back(relatedListenersObject); + } + secrityPolicyRelations_.push_back(secrityPolicyRelationsObject); + } + +} + +std::vector ListSecurityPolicyRelationsResult::getSecrityPolicyRelations()const +{ + return secrityPolicyRelations_; +} + diff --git a/alb/src/model/ListServerGroupServersRequest.cc b/alb/src/model/ListServerGroupServersRequest.cc new file mode 100644 index 000000000..377ccb73d --- /dev/null +++ b/alb/src/model/ListServerGroupServersRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::ListServerGroupServersRequest; + +ListServerGroupServersRequest::ListServerGroupServersRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListServerGroupServers") { + setMethod(HttpRequest::Method::Post); +} + +ListServerGroupServersRequest::~ListServerGroupServersRequest() {} + +std::string ListServerGroupServersRequest::getServerGroupId() const { + return serverGroupId_; +} + +void ListServerGroupServersRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::string ListServerGroupServersRequest::getNextToken() const { + return nextToken_; +} + +void ListServerGroupServersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListServerGroupServersRequest::getServerIp() const { + return serverIp_; +} + +void ListServerGroupServersRequest::setServerIp(const std::string &serverIp) { + serverIp_ = serverIp; + setParameter(std::string("ServerIp"), serverIp); +} + +std::vector ListServerGroupServersRequest::getTag() const { + return tag_; +} + +void ListServerGroupServersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::string ListServerGroupServersRequest::getServerId() const { + return serverId_; +} + +void ListServerGroupServersRequest::setServerId(const std::string &serverId) { + serverId_ = serverId; + setParameter(std::string("ServerId"), serverId); +} + +std::vector ListServerGroupServersRequest::getServerIds() const { + return serverIds_; +} + +void ListServerGroupServersRequest::setServerIds(const std::vector &serverIds) { + serverIds_ = serverIds; + for(int dep1 = 0; dep1 != serverIds.size(); dep1++) { + setParameter(std::string("ServerIds") + "." + std::to_string(dep1 + 1), serverIds[dep1]); + } +} + +int ListServerGroupServersRequest::getMaxResults() const { + return maxResults_; +} + +void ListServerGroupServersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListServerGroupServersResult.cc b/alb/src/model/ListServerGroupServersResult.cc new file mode 100644 index 000000000..fd7b2e92d --- /dev/null +++ b/alb/src/model/ListServerGroupServersResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListServerGroupServersResult::ListServerGroupServersResult() : + ServiceResult() +{} + +ListServerGroupServersResult::ListServerGroupServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServerGroupServersResult::~ListServerGroupServersResult() +{} + +void ListServerGroupServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServersNode = value["Servers"]["BackendServer"]; + for (auto valueServersBackendServer : allServersNode) + { + BackendServer serversObject; + if(!valueServersBackendServer["Description"].isNull()) + serversObject.description = valueServersBackendServer["Description"].asString(); + if(!valueServersBackendServer["Port"].isNull()) + serversObject.port = std::stoi(valueServersBackendServer["Port"].asString()); + if(!valueServersBackendServer["ServerId"].isNull()) + serversObject.serverId = valueServersBackendServer["ServerId"].asString(); + if(!valueServersBackendServer["ServerIp"].isNull()) + serversObject.serverIp = valueServersBackendServer["ServerIp"].asString(); + if(!valueServersBackendServer["ServerType"].isNull()) + serversObject.serverType = valueServersBackendServer["ServerType"].asString(); + if(!valueServersBackendServer["Status"].isNull()) + serversObject.status = valueServersBackendServer["Status"].asString(); + if(!valueServersBackendServer["Weight"].isNull()) + serversObject.weight = std::stoi(valueServersBackendServer["Weight"].asString()); + if(!valueServersBackendServer["ServerGroupId"].isNull()) + serversObject.serverGroupId = valueServersBackendServer["ServerGroupId"].asString(); + servers_.push_back(serversObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListServerGroupServersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListServerGroupServersResult::getNextToken()const +{ + return nextToken_; +} + +int ListServerGroupServersResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListServerGroupServersResult::getServers()const +{ + return servers_; +} + diff --git a/alb/src/model/ListServerGroupsRequest.cc b/alb/src/model/ListServerGroupsRequest.cc new file mode 100644 index 000000000..3aa1560ba --- /dev/null +++ b/alb/src/model/ListServerGroupsRequest.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::Alb::Model::ListServerGroupsRequest; + +ListServerGroupsRequest::ListServerGroupsRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListServerGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListServerGroupsRequest::~ListServerGroupsRequest() {} + +std::vector ListServerGroupsRequest::getServerGroupNames() const { + return serverGroupNames_; +} + +void ListServerGroupsRequest::setServerGroupNames(const std::vector &serverGroupNames) { + serverGroupNames_ = serverGroupNames; + for(int dep1 = 0; dep1 != serverGroupNames.size(); dep1++) { + setParameter(std::string("ServerGroupNames") + "." + std::to_string(dep1 + 1), serverGroupNames[dep1]); + } +} + +std::string ListServerGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListServerGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListServerGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListServerGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListServerGroupsRequest::getTag() const { + return tag_; +} + +void ListServerGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +bool ListServerGroupsRequest::getShowRelationEnabled() const { + return showRelationEnabled_; +} + +void ListServerGroupsRequest::setShowRelationEnabled(bool showRelationEnabled) { + showRelationEnabled_ = showRelationEnabled; + setParameter(std::string("ShowRelationEnabled"), showRelationEnabled ? "true" : "false"); +} + +std::vector ListServerGroupsRequest::getServerGroupIds() const { + return serverGroupIds_; +} + +void ListServerGroupsRequest::setServerGroupIds(const std::vector &serverGroupIds) { + serverGroupIds_ = serverGroupIds; + for(int dep1 = 0; dep1 != serverGroupIds.size(); dep1++) { + setParameter(std::string("ServerGroupIds") + "." + std::to_string(dep1 + 1), serverGroupIds[dep1]); + } +} + +std::string ListServerGroupsRequest::getServerGroupType() const { + return serverGroupType_; +} + +void ListServerGroupsRequest::setServerGroupType(const std::string &serverGroupType) { + serverGroupType_ = serverGroupType; + setParameter(std::string("ServerGroupType"), serverGroupType); +} + +std::string ListServerGroupsRequest::getVpcId() const { + return vpcId_; +} + +void ListServerGroupsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +int ListServerGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListServerGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListServerGroupsResult.cc b/alb/src/model/ListServerGroupsResult.cc new file mode 100644 index 000000000..6bf586a94 --- /dev/null +++ b/alb/src/model/ListServerGroupsResult.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListServerGroupsResult::ListServerGroupsResult() : + ServiceResult() +{} + +ListServerGroupsResult::ListServerGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServerGroupsResult::~ListServerGroupsResult() +{} + +void ListServerGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServerGroupsNode = value["ServerGroups"]["ServerGroup"]; + for (auto valueServerGroupsServerGroup : allServerGroupsNode) + { + ServerGroup serverGroupsObject; + if(!valueServerGroupsServerGroup["Protocol"].isNull()) + serverGroupsObject.protocol = valueServerGroupsServerGroup["Protocol"].asString(); + if(!valueServerGroupsServerGroup["ResourceGroupId"].isNull()) + serverGroupsObject.resourceGroupId = valueServerGroupsServerGroup["ResourceGroupId"].asString(); + if(!valueServerGroupsServerGroup["Scheduler"].isNull()) + serverGroupsObject.scheduler = valueServerGroupsServerGroup["Scheduler"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupId"].isNull()) + serverGroupsObject.serverGroupId = valueServerGroupsServerGroup["ServerGroupId"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupName"].isNull()) + serverGroupsObject.serverGroupName = valueServerGroupsServerGroup["ServerGroupName"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupStatus"].isNull()) + serverGroupsObject.serverGroupStatus = valueServerGroupsServerGroup["ServerGroupStatus"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupType"].isNull()) + serverGroupsObject.serverGroupType = valueServerGroupsServerGroup["ServerGroupType"].asString(); + if(!valueServerGroupsServerGroup["VpcId"].isNull()) + serverGroupsObject.vpcId = valueServerGroupsServerGroup["VpcId"].asString(); + if(!valueServerGroupsServerGroup["ServiceManagedEnabled"].isNull()) + serverGroupsObject.serviceManagedEnabled = valueServerGroupsServerGroup["ServiceManagedEnabled"].asString() == "true"; + if(!valueServerGroupsServerGroup["ServiceManagedMode"].isNull()) + serverGroupsObject.serviceManagedMode = valueServerGroupsServerGroup["ServiceManagedMode"].asString(); + auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"]; + for (auto valueServerGroupsServerGroupTagsTag : allTagsNode) + { + ServerGroup::Tag tagsObject; + if(!valueServerGroupsServerGroupTagsTag["Key"].isNull()) + tagsObject.key = valueServerGroupsServerGroupTagsTag["Key"].asString(); + if(!valueServerGroupsServerGroupTagsTag["Value"].isNull()) + tagsObject.value = valueServerGroupsServerGroupTagsTag["Value"].asString(); + serverGroupsObject.tags.push_back(tagsObject); + } + auto healthCheckConfigNode = value["HealthCheckConfig"]; + if(!healthCheckConfigNode["HealthCheckConnectPort"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckConnectPort = std::stoi(healthCheckConfigNode["HealthCheckConnectPort"].asString()); + if(!healthCheckConfigNode["HealthCheckEnabled"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckEnabled = healthCheckConfigNode["HealthCheckEnabled"].asString() == "true"; + if(!healthCheckConfigNode["HealthCheckHost"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckHost = healthCheckConfigNode["HealthCheckHost"].asString(); + if(!healthCheckConfigNode["HealthCheckHttpVersion"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckHttpVersion = healthCheckConfigNode["HealthCheckHttpVersion"].asString(); + if(!healthCheckConfigNode["HealthCheckInterval"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckInterval = std::stoi(healthCheckConfigNode["HealthCheckInterval"].asString()); + if(!healthCheckConfigNode["HealthCheckMethod"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckMethod = healthCheckConfigNode["HealthCheckMethod"].asString(); + if(!healthCheckConfigNode["HealthCheckPath"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckPath = healthCheckConfigNode["HealthCheckPath"].asString(); + if(!healthCheckConfigNode["HealthCheckProtocol"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckProtocol = healthCheckConfigNode["HealthCheckProtocol"].asString(); + if(!healthCheckConfigNode["HealthCheckTimeout"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckTimeout = std::stoi(healthCheckConfigNode["HealthCheckTimeout"].asString()); + if(!healthCheckConfigNode["HealthyThreshold"].isNull()) + serverGroupsObject.healthCheckConfig.healthyThreshold = std::stoi(healthCheckConfigNode["HealthyThreshold"].asString()); + if(!healthCheckConfigNode["UnhealthyThreshold"].isNull()) + serverGroupsObject.healthCheckConfig.unhealthyThreshold = std::stoi(healthCheckConfigNode["UnhealthyThreshold"].asString()); + if(!healthCheckConfigNode["HealthCheckTcpFastCloseEnabled"].isNull()) + serverGroupsObject.healthCheckConfig.healthCheckTcpFastCloseEnabled = healthCheckConfigNode["HealthCheckTcpFastCloseEnabled"].asString() == "true"; + auto allHealthCheckHttpCodes = healthCheckConfigNode["HealthCheckHttpCodes"]["HealthCheckHttpCode"]; + for (auto value : allHealthCheckHttpCodes) + serverGroupsObject.healthCheckConfig.healthCheckHttpCodes.push_back(value.asString()); + auto allHealthCheckCodes = healthCheckConfigNode["HealthCheckCodes"]["HealthCheckCode"]; + for (auto value : allHealthCheckCodes) + serverGroupsObject.healthCheckConfig.healthCheckCodes.push_back(value.asString()); + auto stickySessionConfigNode = value["StickySessionConfig"]; + if(!stickySessionConfigNode["Cookie"].isNull()) + serverGroupsObject.stickySessionConfig.cookie = stickySessionConfigNode["Cookie"].asString(); + if(!stickySessionConfigNode["CookieTimeout"].isNull()) + serverGroupsObject.stickySessionConfig.cookieTimeout = std::stoi(stickySessionConfigNode["CookieTimeout"].asString()); + if(!stickySessionConfigNode["StickySessionEnabled"].isNull()) + serverGroupsObject.stickySessionConfig.stickySessionEnabled = stickySessionConfigNode["StickySessionEnabled"].asString() == "true"; + if(!stickySessionConfigNode["StickySessionType"].isNull()) + serverGroupsObject.stickySessionConfig.stickySessionType = stickySessionConfigNode["StickySessionType"].asString(); + auto allRelatedLoadBalancerIds = value["RelatedLoadBalancerIds"]["RelatedLoadBalancerId"]; + for (auto value : allRelatedLoadBalancerIds) + serverGroupsObject.relatedLoadBalancerIds.push_back(value.asString()); + serverGroups_.push_back(serverGroupsObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListServerGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListServerGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListServerGroupsResult::getServerGroups()const +{ + return serverGroups_; +} + +int ListServerGroupsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListSystemSecurityPoliciesRequest.cc b/alb/src/model/ListSystemSecurityPoliciesRequest.cc new file mode 100644 index 000000000..636f36334 --- /dev/null +++ b/alb/src/model/ListSystemSecurityPoliciesRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListSystemSecurityPoliciesRequest; + +ListSystemSecurityPoliciesRequest::ListSystemSecurityPoliciesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListSystemSecurityPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListSystemSecurityPoliciesRequest::~ListSystemSecurityPoliciesRequest() {} + diff --git a/alb/src/model/ListSystemSecurityPoliciesResult.cc b/alb/src/model/ListSystemSecurityPoliciesResult.cc new file mode 100644 index 000000000..ffe5aa5e3 --- /dev/null +++ b/alb/src/model/ListSystemSecurityPoliciesResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListSystemSecurityPoliciesResult::ListSystemSecurityPoliciesResult() : + ServiceResult() +{} + +ListSystemSecurityPoliciesResult::ListSystemSecurityPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSystemSecurityPoliciesResult::~ListSystemSecurityPoliciesResult() +{} + +void ListSystemSecurityPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityPoliciesNode = value["SecurityPolicies"]["SecurityPolicy"]; + for (auto valueSecurityPoliciesSecurityPolicy : allSecurityPoliciesNode) + { + SecurityPolicy securityPoliciesObject; + if(!valueSecurityPoliciesSecurityPolicy["SecurityPolicyId"].isNull()) + securityPoliciesObject.securityPolicyId = valueSecurityPoliciesSecurityPolicy["SecurityPolicyId"].asString(); + auto allCiphers = value["Ciphers"]["Cipher"]; + for (auto value : allCiphers) + securityPoliciesObject.ciphers.push_back(value.asString()); + auto allTLSVersions = value["TLSVersions"]["Version"]; + for (auto value : allTLSVersions) + securityPoliciesObject.tLSVersions.push_back(value.asString()); + securityPolicies_.push_back(securityPoliciesObject); + } + +} + +std::vector ListSystemSecurityPoliciesResult::getSecurityPolicies()const +{ + return securityPolicies_; +} + diff --git a/alb/src/model/ListTagKeysRequest.cc b/alb/src/model/ListTagKeysRequest.cc new file mode 100644 index 000000000..b07d1a0e9 --- /dev/null +++ b/alb/src/model/ListTagKeysRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListTagKeysRequest; + +ListTagKeysRequest::ListTagKeysRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListTagKeys") { + setMethod(HttpRequest::Method::Post); +} + +ListTagKeysRequest::~ListTagKeysRequest() {} + +std::string ListTagKeysRequest::getNextToken() const { + return nextToken_; +} + +void ListTagKeysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagKeysRequest::getKeyword() const { + return keyword_; +} + +void ListTagKeysRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string ListTagKeysRequest::getResourceType() const { + return resourceType_; +} + +void ListTagKeysRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int ListTagKeysRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagKeysRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagKeysRequest::getCategory() const { + return category_; +} + +void ListTagKeysRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); +} + diff --git a/alb/src/model/ListTagKeysResult.cc b/alb/src/model/ListTagKeysResult.cc new file mode 100644 index 000000000..2df5d456e --- /dev/null +++ b/alb/src/model/ListTagKeysResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListTagKeysResult::ListTagKeysResult() : + ServiceResult() +{} + +ListTagKeysResult::ListTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagKeysResult::~ListTagKeysResult() +{} + +void ListTagKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagKeysNode = value["TagKeys"]["TagKey"]; + for (auto valueTagKeysTagKey : allTagKeysNode) + { + TagKey tagKeysObject; + if(!valueTagKeysTagKey["Category"].isNull()) + tagKeysObject.category = valueTagKeysTagKey["Category"].asString(); + if(!valueTagKeysTagKey["TagKey"].isNull()) + tagKeysObject.tagKey = valueTagKeysTagKey["TagKey"].asString(); + tagKeys_.push_back(tagKeysObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListTagKeysResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTagKeysResult::getNextToken()const +{ + return nextToken_; +} + +int ListTagKeysResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + diff --git a/alb/src/model/ListTagResourcesRequest.cc b/alb/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..92864c211 --- /dev/null +++ b/alb/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int ListTagResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/alb/src/model/ListTagResourcesResult.cc b/alb/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..404ef4d7e --- /dev/null +++ b/alb/src/model/ListTagResourcesResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListTagResourcesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + +int ListTagResourcesResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/alb/src/model/ListTagValuesRequest.cc b/alb/src/model/ListTagValuesRequest.cc new file mode 100644 index 000000000..05c5370b1 --- /dev/null +++ b/alb/src/model/ListTagValuesRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ListTagValuesRequest; + +ListTagValuesRequest::ListTagValuesRequest() + : RpcServiceRequest("alb", "2020-06-16", "ListTagValues") { + setMethod(HttpRequest::Method::Post); +} + +ListTagValuesRequest::~ListTagValuesRequest() {} + +std::string ListTagValuesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagValuesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagValuesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagValuesRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListTagValuesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagValuesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +int ListTagValuesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagValuesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagValuesRequest::getTagKey() const { + return tagKey_; +} + +void ListTagValuesRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/alb/src/model/ListTagValuesResult.cc b/alb/src/model/ListTagValuesResult.cc new file mode 100644 index 000000000..50b371d8e --- /dev/null +++ b/alb/src/model/ListTagValuesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ListTagValuesResult::ListTagValuesResult() : + ServiceResult() +{} + +ListTagValuesResult::ListTagValuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagValuesResult::~ListTagValuesResult() +{} + +void ListTagValuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagValues = value["TagValues"]["TagValue"]; + for (const auto &item : allTagValues) + tagValues_.push_back(item.asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListTagValuesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTagValuesResult::getNextToken()const +{ + return nextToken_; +} + +int ListTagValuesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListTagValuesResult::getTagValues()const +{ + return tagValues_; +} + diff --git a/alb/src/model/MoveResourceGroupRequest.cc b/alb/src/model/MoveResourceGroupRequest.cc new file mode 100644 index 000000000..ce7baa69f --- /dev/null +++ b/alb/src/model/MoveResourceGroupRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "MoveResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +std::string MoveResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void MoveResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string MoveResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void MoveResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string MoveResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + diff --git a/alb/src/model/MoveResourceGroupResult.cc b/alb/src/model/MoveResourceGroupResult.cc new file mode 100644 index 000000000..cdc2c3f79 --- /dev/null +++ b/alb/src/model/MoveResourceGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +MoveResourceGroupResult::MoveResourceGroupResult() : + ServiceResult() +{} + +MoveResourceGroupResult::MoveResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveResourceGroupResult::~MoveResourceGroupResult() +{} + +void MoveResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/RemoveEntriesFromAclRequest.cc b/alb/src/model/RemoveEntriesFromAclRequest.cc new file mode 100644 index 000000000..01bd36596 --- /dev/null +++ b/alb/src/model/RemoveEntriesFromAclRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::RemoveEntriesFromAclRequest; + +RemoveEntriesFromAclRequest::RemoveEntriesFromAclRequest() + : RpcServiceRequest("alb", "2020-06-16", "RemoveEntriesFromAcl") { + setMethod(HttpRequest::Method::Post); +} + +RemoveEntriesFromAclRequest::~RemoveEntriesFromAclRequest() {} + +std::string RemoveEntriesFromAclRequest::getClientToken() const { + return clientToken_; +} + +void RemoveEntriesFromAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RemoveEntriesFromAclRequest::getAclId() const { + return aclId_; +} + +void RemoveEntriesFromAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +bool RemoveEntriesFromAclRequest::getDryRun() const { + return dryRun_; +} + +void RemoveEntriesFromAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector RemoveEntriesFromAclRequest::getEntries() const { + return entries_; +} + +void RemoveEntriesFromAclRequest::setEntries(const std::vector &entries) { + entries_ = entries; + for(int dep1 = 0; dep1 != entries.size(); dep1++) { + setParameter(std::string("Entries") + "." + std::to_string(dep1 + 1), entries[dep1]); + } +} + diff --git a/alb/src/model/RemoveEntriesFromAclResult.cc b/alb/src/model/RemoveEntriesFromAclResult.cc new file mode 100644 index 000000000..e4c13fdc3 --- /dev/null +++ b/alb/src/model/RemoveEntriesFromAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +RemoveEntriesFromAclResult::RemoveEntriesFromAclResult() : + ServiceResult() +{} + +RemoveEntriesFromAclResult::RemoveEntriesFromAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveEntriesFromAclResult::~RemoveEntriesFromAclResult() +{} + +void RemoveEntriesFromAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string RemoveEntriesFromAclResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/RemoveServersFromServerGroupRequest.cc b/alb/src/model/RemoveServersFromServerGroupRequest.cc new file mode 100644 index 000000000..67e7ec5a9 --- /dev/null +++ b/alb/src/model/RemoveServersFromServerGroupRequest.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::RemoveServersFromServerGroupRequest; + +RemoveServersFromServerGroupRequest::RemoveServersFromServerGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "RemoveServersFromServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +RemoveServersFromServerGroupRequest::~RemoveServersFromServerGroupRequest() {} + +std::string RemoveServersFromServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void RemoveServersFromServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RemoveServersFromServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void RemoveServersFromServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector RemoveServersFromServerGroupRequest::getServers() const { + return servers_; +} + +void RemoveServersFromServerGroupRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port)); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerIp", servers[dep1].serverIp); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerId", servers[dep1].serverId); + } +} + +bool RemoveServersFromServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void RemoveServersFromServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/RemoveServersFromServerGroupResult.cc b/alb/src/model/RemoveServersFromServerGroupResult.cc new file mode 100644 index 000000000..261188af0 --- /dev/null +++ b/alb/src/model/RemoveServersFromServerGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +RemoveServersFromServerGroupResult::RemoveServersFromServerGroupResult() : + ServiceResult() +{} + +RemoveServersFromServerGroupResult::RemoveServersFromServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveServersFromServerGroupResult::~RemoveServersFromServerGroupResult() +{} + +void RemoveServersFromServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string RemoveServersFromServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/ReplaceServersInServerGroupRequest.cc b/alb/src/model/ReplaceServersInServerGroupRequest.cc new file mode 100644 index 000000000..a37de8925 --- /dev/null +++ b/alb/src/model/ReplaceServersInServerGroupRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::ReplaceServersInServerGroupRequest; + +ReplaceServersInServerGroupRequest::ReplaceServersInServerGroupRequest() + : RpcServiceRequest("alb", "2020-06-16", "ReplaceServersInServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +ReplaceServersInServerGroupRequest::~ReplaceServersInServerGroupRequest() {} + +std::string ReplaceServersInServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void ReplaceServersInServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ReplaceServersInServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void ReplaceServersInServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector ReplaceServersInServerGroupRequest::getAddedServers() const { + return addedServers_; +} + +void ReplaceServersInServerGroupRequest::setAddedServers(const std::vector &addedServers) { + addedServers_ = addedServers; + for(int dep1 = 0; dep1 != addedServers.size(); dep1++) { + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".ServerType", addedServers[dep1].serverType); + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(addedServers[dep1].port)); + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Description", addedServers[dep1].description); + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".ServerIp", addedServers[dep1].serverIp); + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(addedServers[dep1].weight)); + setParameter(std::string("AddedServers") + "." + std::to_string(dep1 + 1) + ".ServerId", addedServers[dep1].serverId); + } +} + +bool ReplaceServersInServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void ReplaceServersInServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector ReplaceServersInServerGroupRequest::getRemovedServers() const { + return removedServers_; +} + +void ReplaceServersInServerGroupRequest::setRemovedServers(const std::vector &removedServers) { + removedServers_ = removedServers; + for(int dep1 = 0; dep1 != removedServers.size(); dep1++) { + setParameter(std::string("RemovedServers") + "." + std::to_string(dep1 + 1) + ".ServerType", removedServers[dep1].serverType); + setParameter(std::string("RemovedServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(removedServers[dep1].port)); + setParameter(std::string("RemovedServers") + "." + std::to_string(dep1 + 1) + ".ServerIp", removedServers[dep1].serverIp); + setParameter(std::string("RemovedServers") + "." + std::to_string(dep1 + 1) + ".ServerId", removedServers[dep1].serverId); + } +} + diff --git a/alb/src/model/ReplaceServersInServerGroupResult.cc b/alb/src/model/ReplaceServersInServerGroupResult.cc new file mode 100644 index 000000000..ceb956022 --- /dev/null +++ b/alb/src/model/ReplaceServersInServerGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +ReplaceServersInServerGroupResult::ReplaceServersInServerGroupResult() : + ServiceResult() +{} + +ReplaceServersInServerGroupResult::ReplaceServersInServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceServersInServerGroupResult::~ReplaceServersInServerGroupResult() +{} + +void ReplaceServersInServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string ReplaceServersInServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/StartListenerRequest.cc b/alb/src/model/StartListenerRequest.cc new file mode 100644 index 000000000..531753e8e --- /dev/null +++ b/alb/src/model/StartListenerRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::StartListenerRequest; + +StartListenerRequest::StartListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "StartListener") { + setMethod(HttpRequest::Method::Post); +} + +StartListenerRequest::~StartListenerRequest() {} + +std::string StartListenerRequest::getClientToken() const { + return clientToken_; +} + +void StartListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StartListenerRequest::getListenerId() const { + return listenerId_; +} + +void StartListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool StartListenerRequest::getDryRun() const { + return dryRun_; +} + +void StartListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/StartListenerResult.cc b/alb/src/model/StartListenerResult.cc new file mode 100644 index 000000000..d46104b75 --- /dev/null +++ b/alb/src/model/StartListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +StartListenerResult::StartListenerResult() : + ServiceResult() +{} + +StartListenerResult::StartListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartListenerResult::~StartListenerResult() +{} + +void StartListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string StartListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/StopListenerRequest.cc b/alb/src/model/StopListenerRequest.cc new file mode 100644 index 000000000..54ddfe684 --- /dev/null +++ b/alb/src/model/StopListenerRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::StopListenerRequest; + +StopListenerRequest::StopListenerRequest() + : RpcServiceRequest("alb", "2020-06-16", "StopListener") { + setMethod(HttpRequest::Method::Post); +} + +StopListenerRequest::~StopListenerRequest() {} + +std::string StopListenerRequest::getClientToken() const { + return clientToken_; +} + +void StopListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StopListenerRequest::getListenerId() const { + return listenerId_; +} + +void StopListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool StopListenerRequest::getDryRun() const { + return dryRun_; +} + +void StopListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/StopListenerResult.cc b/alb/src/model/StopListenerResult.cc new file mode 100644 index 000000000..6aa3f3912 --- /dev/null +++ b/alb/src/model/StopListenerResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +StopListenerResult::StopListenerResult() : + ServiceResult() +{} + +StopListenerResult::StopListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopListenerResult::~StopListenerResult() +{} + +void StopListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string StopListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/TagResourcesRequest.cc b/alb/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..5aaabbc6b --- /dev/null +++ b/alb/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Alb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("alb", "2020-06-16", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/alb/src/model/TagResourcesResult.cc b/alb/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..7e32ee232 --- /dev/null +++ b/alb/src/model/TagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/UnTagResourcesRequest.cc b/alb/src/model/UnTagResourcesRequest.cc new file mode 100644 index 000000000..1b2019f44 --- /dev/null +++ b/alb/src/model/UnTagResourcesRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UnTagResourcesRequest; + +UnTagResourcesRequest::UnTagResourcesRequest() + : RpcServiceRequest("alb", "2020-06-16", "UnTagResources") { + setMethod(HttpRequest::Method::Post); +} + +UnTagResourcesRequest::~UnTagResourcesRequest() {} + +std::vector UnTagResourcesRequest::getTag() const { + return tag_; +} + +void UnTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::vector UnTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UnTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string UnTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UnTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UnTagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UnTagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; + for(int dep1 = 0; dep1 != tagKey.size(); dep1++) { + setParameter(std::string("TagKey") + "." + std::to_string(dep1 + 1), tagKey[dep1]); + } +} + diff --git a/alb/src/model/UnTagResourcesResult.cc b/alb/src/model/UnTagResourcesResult.cc new file mode 100644 index 000000000..938b9dfee --- /dev/null +++ b/alb/src/model/UnTagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UnTagResourcesResult::UnTagResourcesResult() : + ServiceResult() +{} + +UnTagResourcesResult::UnTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnTagResourcesResult::~UnTagResourcesResult() +{} + +void UnTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/UpdateAclAttributeRequest.cc b/alb/src/model/UpdateAclAttributeRequest.cc new file mode 100644 index 000000000..35d3734e8 --- /dev/null +++ b/alb/src/model/UpdateAclAttributeRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateAclAttributeRequest; + +UpdateAclAttributeRequest::UpdateAclAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateAclAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAclAttributeRequest::~UpdateAclAttributeRequest() {} + +std::string UpdateAclAttributeRequest::getAclName() const { + return aclName_; +} + +void UpdateAclAttributeRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); +} + +std::string UpdateAclAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAclAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateAclAttributeRequest::getAclId() const { + return aclId_; +} + +void UpdateAclAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +bool UpdateAclAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateAclAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/UpdateAclAttributeResult.cc b/alb/src/model/UpdateAclAttributeResult.cc new file mode 100644 index 000000000..8ddc69515 --- /dev/null +++ b/alb/src/model/UpdateAclAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateAclAttributeResult::UpdateAclAttributeResult() : + ServiceResult() +{} + +UpdateAclAttributeResult::UpdateAclAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAclAttributeResult::~UpdateAclAttributeResult() +{} + +void UpdateAclAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/UpdateHealthCheckTemplateAttributeRequest.cc b/alb/src/model/UpdateHealthCheckTemplateAttributeRequest.cc new file mode 100644 index 000000000..b7a03b815 --- /dev/null +++ b/alb/src/model/UpdateHealthCheckTemplateAttributeRequest.cc @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::UpdateHealthCheckTemplateAttributeRequest; + +UpdateHealthCheckTemplateAttributeRequest::UpdateHealthCheckTemplateAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateHealthCheckTemplateAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateHealthCheckTemplateAttributeRequest::~UpdateHealthCheckTemplateAttributeRequest() {} + +int UpdateHealthCheckTemplateAttributeRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckProtocol() const { + return healthCheckProtocol_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckProtocol(const std::string &healthCheckProtocol) { + healthCheckProtocol_ = healthCheckProtocol; + setParameter(std::string("HealthCheckProtocol"), healthCheckProtocol); +} + +int UpdateHealthCheckTemplateAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int UpdateHealthCheckTemplateAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +bool UpdateHealthCheckTemplateAttributeRequest::getHealthCheckTcpFastCloseEnabled() const { + return healthCheckTcpFastCloseEnabled_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled) { + healthCheckTcpFastCloseEnabled_ = healthCheckTcpFastCloseEnabled; + setParameter(std::string("HealthCheckTcpFastCloseEnabled"), healthCheckTcpFastCloseEnabled ? "true" : "false"); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckPath() const { + return healthCheckPath_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckPath(const std::string &healthCheckPath) { + healthCheckPath_ = healthCheckPath; + setParameter(std::string("HealthCheckPath"), healthCheckPath); +} + +std::vector UpdateHealthCheckTemplateAttributeRequest::getHealthCheckCodes() const { + return healthCheckCodes_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckCodes(const std::vector &healthCheckCodes) { + healthCheckCodes_ = healthCheckCodes; + for(int dep1 = 0; dep1 != healthCheckCodes.size(); dep1++) { + setParameter(std::string("HealthCheckCodes") + "." + std::to_string(dep1 + 1), healthCheckCodes[dep1]); + } +} + +bool UpdateHealthCheckTemplateAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckHost() const { + return healthCheckHost_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckHost(const std::string &healthCheckHost) { + healthCheckHost_ = healthCheckHost; + setParameter(std::string("HealthCheckHost"), healthCheckHost); +} + +int UpdateHealthCheckTemplateAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckTemplateName() const { + return healthCheckTemplateName_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckTemplateName(const std::string &healthCheckTemplateName) { + healthCheckTemplateName_ = healthCheckTemplateName; + setParameter(std::string("HealthCheckTemplateName"), healthCheckTemplateName); +} + +std::vector UpdateHealthCheckTemplateAttributeRequest::getHealthCheckHttpCodes() const { + return healthCheckHttpCodes_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckHttpCodes(const std::vector &healthCheckHttpCodes) { + healthCheckHttpCodes_ = healthCheckHttpCodes; + for(int dep1 = 0; dep1 != healthCheckHttpCodes.size(); dep1++) { + setParameter(std::string("HealthCheckHttpCodes") + "." + std::to_string(dep1 + 1), healthCheckHttpCodes[dep1]); + } +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckTemplateId() const { + return healthCheckTemplateId_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckTemplateId(const std::string &healthCheckTemplateId) { + healthCheckTemplateId_ = healthCheckTemplateId; + setParameter(std::string("HealthCheckTemplateId"), healthCheckTemplateId); +} + +std::string UpdateHealthCheckTemplateAttributeRequest::getHealthCheckHttpVersion() const { + return healthCheckHttpVersion_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion) { + healthCheckHttpVersion_ = healthCheckHttpVersion; + setParameter(std::string("HealthCheckHttpVersion"), healthCheckHttpVersion); +} + +int UpdateHealthCheckTemplateAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void UpdateHealthCheckTemplateAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + diff --git a/alb/src/model/UpdateHealthCheckTemplateAttributeResult.cc b/alb/src/model/UpdateHealthCheckTemplateAttributeResult.cc new file mode 100644 index 000000000..bda992237 --- /dev/null +++ b/alb/src/model/UpdateHealthCheckTemplateAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateHealthCheckTemplateAttributeResult::UpdateHealthCheckTemplateAttributeResult() : + ServiceResult() +{} + +UpdateHealthCheckTemplateAttributeResult::UpdateHealthCheckTemplateAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateHealthCheckTemplateAttributeResult::~UpdateHealthCheckTemplateAttributeResult() +{} + +void UpdateHealthCheckTemplateAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/UpdateListenerAttributeRequest.cc b/alb/src/model/UpdateListenerAttributeRequest.cc new file mode 100644 index 000000000..0687ec08d --- /dev/null +++ b/alb/src/model/UpdateListenerAttributeRequest.cc @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::UpdateListenerAttributeRequest; + +UpdateListenerAttributeRequest::UpdateListenerAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateListenerAttributeRequest::~UpdateListenerAttributeRequest() {} + +std::string UpdateListenerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateListenerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateListenerAttributeRequest::getGzipEnabled() const { + return gzipEnabled_; +} + +void UpdateListenerAttributeRequest::setGzipEnabled(bool gzipEnabled) { + gzipEnabled_ = gzipEnabled; + setParameter(std::string("GzipEnabled"), gzipEnabled ? "true" : "false"); +} + +std::string UpdateListenerAttributeRequest::getListenerId() const { + return listenerId_; +} + +void UpdateListenerAttributeRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +UpdateListenerAttributeRequest::QuicConfig UpdateListenerAttributeRequest::getQuicConfig() const { + return quicConfig_; +} + +void UpdateListenerAttributeRequest::setQuicConfig(const UpdateListenerAttributeRequest::QuicConfig &quicConfig) { + quicConfig_ = quicConfig; + setParameter(std::string("QuicConfig") + ".QuicUpgradeEnabled", quicConfig.quicUpgradeEnabled ? "true" : "false"); + setParameter(std::string("QuicConfig") + ".QuicListenerId", quicConfig.quicListenerId); +} + +bool UpdateListenerAttributeRequest::getHttp2Enabled() const { + return http2Enabled_; +} + +void UpdateListenerAttributeRequest::setHttp2Enabled(bool http2Enabled) { + http2Enabled_ = http2Enabled; + setParameter(std::string("Http2Enabled"), http2Enabled ? "true" : "false"); +} + +std::vector UpdateListenerAttributeRequest::getDefaultActions() const { + return defaultActions_; +} + +void UpdateListenerAttributeRequest::setDefaultActions(const std::vector &defaultActions) { + defaultActions_ = defaultActions; + for(int dep1 = 0; dep1 != defaultActions.size(); dep1++) { + for(int dep2 = 0; dep2 != defaultActions[dep1].forwardGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("DefaultActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", defaultActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].serverGroupId); + } + setParameter(std::string("DefaultActions") + "." + std::to_string(dep1 + 1) + ".Type", defaultActions[dep1].type); + } +} + +bool UpdateListenerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateListenerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +int UpdateListenerAttributeRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void UpdateListenerAttributeRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::vector UpdateListenerAttributeRequest::getCaCertificates() const { + return caCertificates_; +} + +void UpdateListenerAttributeRequest::setCaCertificates(const std::vector &caCertificates) { + caCertificates_ = caCertificates; + for(int dep1 = 0; dep1 != caCertificates.size(); dep1++) { + setParameter(std::string("CaCertificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", caCertificates[dep1].certificateId); + } +} + +UpdateListenerAttributeRequest::XForwardedForConfig UpdateListenerAttributeRequest::getXForwardedForConfig() const { + return xForwardedForConfig_; +} + +void UpdateListenerAttributeRequest::setXForwardedForConfig(const UpdateListenerAttributeRequest::XForwardedForConfig &xForwardedForConfig) { + xForwardedForConfig_ = xForwardedForConfig; + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNAlias", xForwardedForConfig.xForwardedForClientCertSubjectDNAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNEnabled", xForwardedForConfig.xForwardedForClientCertIssuerDNEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintEnabled", xForwardedForConfig.xForwardedForClientCertFingerprintEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertIssuerDNAlias", xForwardedForConfig.xForwardedForClientCertIssuerDNAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertFingerprintAlias", xForwardedForConfig.xForwardedForClientCertFingerprintAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertClientVerifyEnabled", xForwardedForConfig.xForwardedForClientCertClientVerifyEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForSLBPortEnabled", xForwardedForConfig.xForwardedForSLBPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertSubjectDNEnabled", xForwardedForConfig.xForwardedForClientCertSubjectDNEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientCertClientVerifyAlias", xForwardedForConfig.xForwardedForClientCertClientVerifyAlias); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForClientSrcPortEnabled", xForwardedForConfig.xForwardedForClientSrcPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForEnabled", xForwardedForConfig.xForwardedForEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForSLBIdEnabled", xForwardedForConfig.xForwardedForSLBIdEnabled ? "true" : "false"); +} + +std::string UpdateListenerAttributeRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void UpdateListenerAttributeRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + +int UpdateListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void UpdateListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::vector UpdateListenerAttributeRequest::getCertificates() const { + return certificates_; +} + +void UpdateListenerAttributeRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + setParameter(std::string("Certificates") + "." + std::to_string(dep1 + 1) + ".CertificateId", certificates[dep1].certificateId); + } +} + +std::string UpdateListenerAttributeRequest::getListenerDescription() const { + return listenerDescription_; +} + +void UpdateListenerAttributeRequest::setListenerDescription(const std::string &listenerDescription) { + listenerDescription_ = listenerDescription; + setParameter(std::string("ListenerDescription"), listenerDescription); +} + +bool UpdateListenerAttributeRequest::getCaEnabled() const { + return caEnabled_; +} + +void UpdateListenerAttributeRequest::setCaEnabled(bool caEnabled) { + caEnabled_ = caEnabled; + setParameter(std::string("CaEnabled"), caEnabled ? "true" : "false"); +} + diff --git a/alb/src/model/UpdateListenerAttributeResult.cc b/alb/src/model/UpdateListenerAttributeResult.cc new file mode 100644 index 000000000..e703132bb --- /dev/null +++ b/alb/src/model/UpdateListenerAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateListenerAttributeResult::UpdateListenerAttributeResult() : + ServiceResult() +{} + +UpdateListenerAttributeResult::UpdateListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateListenerAttributeResult::~UpdateListenerAttributeResult() +{} + +void UpdateListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateListenerAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateListenerLogConfigRequest.cc b/alb/src/model/UpdateListenerLogConfigRequest.cc new file mode 100644 index 000000000..ea87579f0 --- /dev/null +++ b/alb/src/model/UpdateListenerLogConfigRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::UpdateListenerLogConfigRequest; + +UpdateListenerLogConfigRequest::UpdateListenerLogConfigRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateListenerLogConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateListenerLogConfigRequest::~UpdateListenerLogConfigRequest() {} + +std::string UpdateListenerLogConfigRequest::getClientToken() const { + return clientToken_; +} + +void UpdateListenerLogConfigRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateListenerLogConfigRequest::getListenerId() const { + return listenerId_; +} + +void UpdateListenerLogConfigRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +bool UpdateListenerLogConfigRequest::getAccessLogRecordCustomizedHeadersEnabled() const { + return accessLogRecordCustomizedHeadersEnabled_; +} + +void UpdateListenerLogConfigRequest::setAccessLogRecordCustomizedHeadersEnabled(bool accessLogRecordCustomizedHeadersEnabled) { + accessLogRecordCustomizedHeadersEnabled_ = accessLogRecordCustomizedHeadersEnabled; + setParameter(std::string("AccessLogRecordCustomizedHeadersEnabled"), accessLogRecordCustomizedHeadersEnabled ? "true" : "false"); +} + +bool UpdateListenerLogConfigRequest::getDryRun() const { + return dryRun_; +} + +void UpdateListenerLogConfigRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +UpdateListenerLogConfigRequest::AccessLogTracingConfig UpdateListenerLogConfigRequest::getAccessLogTracingConfig() const { + return accessLogTracingConfig_; +} + +void UpdateListenerLogConfigRequest::setAccessLogTracingConfig(const UpdateListenerLogConfigRequest::AccessLogTracingConfig &accessLogTracingConfig) { + accessLogTracingConfig_ = accessLogTracingConfig; + setParameter(std::string("AccessLogTracingConfig") + ".TracingType", accessLogTracingConfig.tracingType); + setParameter(std::string("AccessLogTracingConfig") + ".TracingEnabled", accessLogTracingConfig.tracingEnabled ? "true" : "false"); + setParameter(std::string("AccessLogTracingConfig") + ".TracingSample", std::to_string(accessLogTracingConfig.tracingSample)); +} + diff --git a/alb/src/model/UpdateListenerLogConfigResult.cc b/alb/src/model/UpdateListenerLogConfigResult.cc new file mode 100644 index 000000000..0f076e8ab --- /dev/null +++ b/alb/src/model/UpdateListenerLogConfigResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateListenerLogConfigResult::UpdateListenerLogConfigResult() : + ServiceResult() +{} + +UpdateListenerLogConfigResult::UpdateListenerLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateListenerLogConfigResult::~UpdateListenerLogConfigResult() +{} + +void UpdateListenerLogConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateListenerLogConfigResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateLoadBalancerAttributeRequest.cc b/alb/src/model/UpdateLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..1c62245af --- /dev/null +++ b/alb/src/model/UpdateLoadBalancerAttributeRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateLoadBalancerAttributeRequest; + +UpdateLoadBalancerAttributeRequest::UpdateLoadBalancerAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerAttributeRequest::~UpdateLoadBalancerAttributeRequest() {} + +std::string UpdateLoadBalancerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +UpdateLoadBalancerAttributeRequest::ModificationProtectionConfig UpdateLoadBalancerAttributeRequest::getModificationProtectionConfig() const { + return modificationProtectionConfig_; +} + +void UpdateLoadBalancerAttributeRequest::setModificationProtectionConfig(const UpdateLoadBalancerAttributeRequest::ModificationProtectionConfig &modificationProtectionConfig) { + modificationProtectionConfig_ = modificationProtectionConfig; + setParameter(std::string("ModificationProtectionConfig") + ".Reason", modificationProtectionConfig.reason); + setParameter(std::string("ModificationProtectionConfig") + ".Status", modificationProtectionConfig.status); +} + +std::string UpdateLoadBalancerAttributeRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void UpdateLoadBalancerAttributeRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +bool UpdateLoadBalancerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/alb/src/model/UpdateLoadBalancerAttributeResult.cc b/alb/src/model/UpdateLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..9a96c4287 --- /dev/null +++ b/alb/src/model/UpdateLoadBalancerAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateLoadBalancerAttributeResult::UpdateLoadBalancerAttributeResult() : + ServiceResult() +{} + +UpdateLoadBalancerAttributeResult::UpdateLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerAttributeResult::~UpdateLoadBalancerAttributeResult() +{} + +void UpdateLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateLoadBalancerAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateLoadBalancerEditionRequest.cc b/alb/src/model/UpdateLoadBalancerEditionRequest.cc new file mode 100644 index 000000000..ba23d1ebd --- /dev/null +++ b/alb/src/model/UpdateLoadBalancerEditionRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateLoadBalancerEditionRequest; + +UpdateLoadBalancerEditionRequest::UpdateLoadBalancerEditionRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerEdition") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerEditionRequest::~UpdateLoadBalancerEditionRequest() {} + +std::string UpdateLoadBalancerEditionRequest::getLoadBalancerEdition() const { + return loadBalancerEdition_; +} + +void UpdateLoadBalancerEditionRequest::setLoadBalancerEdition(const std::string &loadBalancerEdition) { + loadBalancerEdition_ = loadBalancerEdition; + setParameter(std::string("LoadBalancerEdition"), loadBalancerEdition); +} + +std::string UpdateLoadBalancerEditionRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerEditionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateLoadBalancerEditionRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerEditionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateLoadBalancerEditionRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerEditionRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/alb/src/model/UpdateLoadBalancerEditionResult.cc b/alb/src/model/UpdateLoadBalancerEditionResult.cc new file mode 100644 index 000000000..4070a575f --- /dev/null +++ b/alb/src/model/UpdateLoadBalancerEditionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateLoadBalancerEditionResult::UpdateLoadBalancerEditionResult() : + ServiceResult() +{} + +UpdateLoadBalancerEditionResult::UpdateLoadBalancerEditionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerEditionResult::~UpdateLoadBalancerEditionResult() +{} + +void UpdateLoadBalancerEditionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/alb/src/model/UpdateRuleAttributeRequest.cc b/alb/src/model/UpdateRuleAttributeRequest.cc new file mode 100644 index 000000000..493b6dc01 --- /dev/null +++ b/alb/src/model/UpdateRuleAttributeRequest.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateRuleAttributeRequest; + +UpdateRuleAttributeRequest::UpdateRuleAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateRuleAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateRuleAttributeRequest::~UpdateRuleAttributeRequest() {} + +std::string UpdateRuleAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateRuleAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateRuleAttributeRequest::getRuleName() const { + return ruleName_; +} + +void UpdateRuleAttributeRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::vector UpdateRuleAttributeRequest::getRuleActions() const { + return ruleActions_; +} + +void UpdateRuleAttributeRequest::setRuleActions(const std::vector &ruleActions) { + ruleActions_ = ruleActions; + for(int dep1 = 0; dep1 != ruleActions.size(); dep1++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.HttpCode", ruleActions[dep1].fixedResponseConfig.httpCode); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.Content", ruleActions[dep1].fixedResponseConfig.content); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".FixedResponseConfig.ContentType", ruleActions[dep1].fixedResponseConfig.contentType); + for(int dep2 = 0; dep2 != ruleActions[dep1].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", ruleActions[dep1].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep2].serverGroupId); + } + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficMirrorConfig.TargetType", ruleActions[dep1].trafficMirrorConfig.targetType); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", ruleActions[dep1].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false"); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(ruleActions[dep1].forwardGroupConfig.serverGroupStickySession.timeout)); + for(int dep2 = 0; dep2 != ruleActions[dep1].forwardGroupConfig.serverGroupTuples.size(); dep2++) { + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".ServerGroupId", ruleActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].serverGroupId); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep2 + 1) + ".Weight", std::to_string(ruleActions[dep1].forwardGroupConfig.serverGroupTuples[dep2].weight)); + } + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RemoveHeaderConfig.Key", ruleActions[dep1].removeHeaderConfig.key); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.ValueType", ruleActions[dep1].insertHeaderConfig.valueType); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.CoverEnabled", ruleActions[dep1].insertHeaderConfig.coverEnabled ? "true" : "false"); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Value", ruleActions[dep1].insertHeaderConfig.value); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".InsertHeaderConfig.Key", ruleActions[dep1].insertHeaderConfig.key); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".TrafficLimitConfig.QPS", std::to_string(ruleActions[dep1].trafficLimitConfig.qPS)); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Path", ruleActions[dep1].redirectConfig.path); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Protocol", ruleActions[dep1].redirectConfig.protocol); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Port", ruleActions[dep1].redirectConfig.port); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Query", ruleActions[dep1].redirectConfig.query); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.Host", ruleActions[dep1].redirectConfig.host); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RedirectConfig.HttpCode", ruleActions[dep1].redirectConfig.httpCode); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".Type", ruleActions[dep1].type); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".Order", std::to_string(ruleActions[dep1].order)); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Path", ruleActions[dep1].rewriteConfig.path); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Query", ruleActions[dep1].rewriteConfig.query); + setParameter(std::string("RuleActions") + "." + std::to_string(dep1 + 1) + ".RewriteConfig.Host", ruleActions[dep1].rewriteConfig.host); + } +} + +std::vector UpdateRuleAttributeRequest::getRuleConditions() const { + return ruleConditions_; +} + +void UpdateRuleAttributeRequest::setRuleConditions(const std::vector &ruleConditions) { + ruleConditions_ = ruleConditions; + for(int dep1 = 0; dep1 != ruleConditions.size(); dep1++) { + for(int dep2 = 0; dep2 != ruleConditions[dep1].methodConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".MethodConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].methodConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].sourceIpConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".SourceIpConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].sourceIpConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].hostConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HostConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].hostConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].queryStringConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".QueryStringConfig.Values." + std::to_string(dep2 + 1) + ".Value", ruleConditions[dep1].queryStringConfig.values[dep2].value); + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".QueryStringConfig.Values." + std::to_string(dep2 + 1) + ".Key", ruleConditions[dep1].queryStringConfig.values[dep2].key); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].responseStatusCodeConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].responseStatusCodeConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].pathConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".PathConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].pathConfig.values[dep2]); + } + for(int dep2 = 0; dep2 != ruleConditions[dep1].cookieConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".CookieConfig.Values." + std::to_string(dep2 + 1) + ".Value", ruleConditions[dep1].cookieConfig.values[dep2].value); + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".CookieConfig.Values." + std::to_string(dep2 + 1) + ".Key", ruleConditions[dep1].cookieConfig.values[dep2].key); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".Type", ruleConditions[dep1].type); + for(int dep2 = 0; dep2 != ruleConditions[dep1].headerConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HeaderConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].headerConfig.values[dep2]); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".HeaderConfig.Key", ruleConditions[dep1].headerConfig.key); + for(int dep2 = 0; dep2 != ruleConditions[dep1].responseHeaderConfig.values.size(); dep2++) { + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep2 + 1), ruleConditions[dep1].responseHeaderConfig.values[dep2]); + } + setParameter(std::string("RuleConditions") + "." + std::to_string(dep1 + 1) + ".ResponseHeaderConfig.Key", ruleConditions[dep1].responseHeaderConfig.key); + } +} + +bool UpdateRuleAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateRuleAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +int UpdateRuleAttributeRequest::getPriority() const { + return priority_; +} + +void UpdateRuleAttributeRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string UpdateRuleAttributeRequest::getRuleId() const { + return ruleId_; +} + +void UpdateRuleAttributeRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/alb/src/model/UpdateRuleAttributeResult.cc b/alb/src/model/UpdateRuleAttributeResult.cc new file mode 100644 index 000000000..1cde78ec8 --- /dev/null +++ b/alb/src/model/UpdateRuleAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateRuleAttributeResult::UpdateRuleAttributeResult() : + ServiceResult() +{} + +UpdateRuleAttributeResult::UpdateRuleAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRuleAttributeResult::~UpdateRuleAttributeResult() +{} + +void UpdateRuleAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateRuleAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateRulesAttributeRequest.cc b/alb/src/model/UpdateRulesAttributeRequest.cc new file mode 100644 index 000000000..4a28ef338 --- /dev/null +++ b/alb/src/model/UpdateRulesAttributeRequest.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateRulesAttributeRequest; + +UpdateRulesAttributeRequest::UpdateRulesAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateRulesAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateRulesAttributeRequest::~UpdateRulesAttributeRequest() {} + +std::string UpdateRulesAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateRulesAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateRulesAttributeRequest::getRules() const { + return rules_; +} + +void UpdateRulesAttributeRequest::setRules(const std::vector &rules) { + rules_ = rules; + for(int dep1 = 0; dep1 != rules.size(); dep1++) { + for(int dep2 = 0; dep2 != rules[dep1].ruleConditions.size(); dep2++) { + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].methodConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".MethodConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].methodConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].sourceIpConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".SourceIpConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].sourceIpConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].hostConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].queryStringConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".QueryStringConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].queryStringConfig.values[dep3].key); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseStatusCodeConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseStatusCodeConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].pathConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].cookieConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Value", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".CookieConfig.Values." + std::to_string(dep3 + 1) + ".Key", rules[dep1].ruleConditions[dep2].cookieConfig.values[dep3].key); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleConditions[dep2].type); + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].headerConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].headerConfig.values[dep3]); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HeaderConfig.Key", rules[dep1].ruleConditions[dep2].headerConfig.key); + for(int dep3 = 0; dep3 != rules[dep1].ruleConditions[dep2].responseHeaderConfig.values.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Values." + std::to_string(dep3 + 1), rules[dep1].ruleConditions[dep2].responseHeaderConfig.values[dep3]); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".ResponseHeaderConfig.Key", rules[dep1].ruleConditions[dep2].responseHeaderConfig.key); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleName", rules[dep1].ruleName); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(rules[dep1].priority)); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleId", rules[dep1].ruleId); + for(int dep2 = 0; dep2 != rules[dep1].ruleActions.size(); dep2++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.HttpCode", rules[dep1].ruleActions[dep2].fixedResponseConfig.httpCode); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.Content", rules[dep1].ruleActions[dep2].fixedResponseConfig.content); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".FixedResponseConfig.ContentType", rules[dep1].ruleActions[dep2].fixedResponseConfig.contentType); + for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.MirrorGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].trafficMirrorConfig.mirrorGroupConfig.serverGroupTuples[dep3].serverGroupId); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficMirrorConfig.TargetType", rules[dep1].ruleActions[dep2].trafficMirrorConfig.targetType); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Enabled", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.enabled ? "true" : "false"); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupStickySession.Timeout", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupStickySession.timeout)); + for(int dep3 = 0; dep3 != rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".ServerGroupId", rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].serverGroupId); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".Weight", std::to_string(rules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].weight)); + } + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RemoveHeaderConfig.Key", rules[dep1].ruleActions[dep2].removeHeaderConfig.key); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.ValueType", rules[dep1].ruleActions[dep2].insertHeaderConfig.valueType); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.CoverEnabled", rules[dep1].ruleActions[dep2].insertHeaderConfig.coverEnabled ? "true" : "false"); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Value", rules[dep1].ruleActions[dep2].insertHeaderConfig.value); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".InsertHeaderConfig.Key", rules[dep1].ruleActions[dep2].insertHeaderConfig.key); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".TrafficLimitConfig.QPS", std::to_string(rules[dep1].ruleActions[dep2].trafficLimitConfig.qPS)); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Path", rules[dep1].ruleActions[dep2].redirectConfig.path); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Protocol", rules[dep1].ruleActions[dep2].redirectConfig.protocol); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Port", rules[dep1].ruleActions[dep2].redirectConfig.port); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Query", rules[dep1].ruleActions[dep2].redirectConfig.query); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.Host", rules[dep1].ruleActions[dep2].redirectConfig.host); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RedirectConfig.HttpCode", rules[dep1].ruleActions[dep2].redirectConfig.httpCode); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Type", rules[dep1].ruleActions[dep2].type); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(rules[dep1].ruleActions[dep2].order)); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Path", rules[dep1].ruleActions[dep2].rewriteConfig.path); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Query", rules[dep1].ruleActions[dep2].rewriteConfig.query); + setParameter(std::string("Rules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RewriteConfig.Host", rules[dep1].ruleActions[dep2].rewriteConfig.host); + } + } +} + +bool UpdateRulesAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateRulesAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/UpdateRulesAttributeResult.cc b/alb/src/model/UpdateRulesAttributeResult.cc new file mode 100644 index 000000000..82265b54c --- /dev/null +++ b/alb/src/model/UpdateRulesAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateRulesAttributeResult::UpdateRulesAttributeResult() : + ServiceResult() +{} + +UpdateRulesAttributeResult::UpdateRulesAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRulesAttributeResult::~UpdateRulesAttributeResult() +{} + +void UpdateRulesAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateRulesAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateSecurityPolicyAttributeRequest.cc b/alb/src/model/UpdateSecurityPolicyAttributeRequest.cc new file mode 100644 index 000000000..aed5064cd --- /dev/null +++ b/alb/src/model/UpdateSecurityPolicyAttributeRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::UpdateSecurityPolicyAttributeRequest; + +UpdateSecurityPolicyAttributeRequest::UpdateSecurityPolicyAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateSecurityPolicyAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSecurityPolicyAttributeRequest::~UpdateSecurityPolicyAttributeRequest() {} + +std::string UpdateSecurityPolicyAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateSecurityPolicyAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateSecurityPolicyAttributeRequest::getCiphers() const { + return ciphers_; +} + +void UpdateSecurityPolicyAttributeRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; + for(int dep1 = 0; dep1 != ciphers.size(); dep1++) { + setParameter(std::string("Ciphers") + "." + std::to_string(dep1 + 1), ciphers[dep1]); + } +} + +std::vector UpdateSecurityPolicyAttributeRequest::getTLSVersions() const { + return tLSVersions_; +} + +void UpdateSecurityPolicyAttributeRequest::setTLSVersions(const std::vector &tLSVersions) { + tLSVersions_ = tLSVersions; + for(int dep1 = 0; dep1 != tLSVersions.size(); dep1++) { + setParameter(std::string("TLSVersions") + "." + std::to_string(dep1 + 1), tLSVersions[dep1]); + } +} + +std::string UpdateSecurityPolicyAttributeRequest::getSecurityPolicyName() const { + return securityPolicyName_; +} + +void UpdateSecurityPolicyAttributeRequest::setSecurityPolicyName(const std::string &securityPolicyName) { + securityPolicyName_ = securityPolicyName; + setParameter(std::string("SecurityPolicyName"), securityPolicyName); +} + +bool UpdateSecurityPolicyAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateSecurityPolicyAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateSecurityPolicyAttributeRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void UpdateSecurityPolicyAttributeRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + diff --git a/alb/src/model/UpdateSecurityPolicyAttributeResult.cc b/alb/src/model/UpdateSecurityPolicyAttributeResult.cc new file mode 100644 index 000000000..92738c600 --- /dev/null +++ b/alb/src/model/UpdateSecurityPolicyAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateSecurityPolicyAttributeResult::UpdateSecurityPolicyAttributeResult() : + ServiceResult() +{} + +UpdateSecurityPolicyAttributeResult::UpdateSecurityPolicyAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSecurityPolicyAttributeResult::~UpdateSecurityPolicyAttributeResult() +{} + +void UpdateSecurityPolicyAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateSecurityPolicyAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateServerGroupAttributeRequest.cc b/alb/src/model/UpdateServerGroupAttributeRequest.cc new file mode 100644 index 000000000..41fa09229 --- /dev/null +++ b/alb/src/model/UpdateServerGroupAttributeRequest.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Alb::Model::UpdateServerGroupAttributeRequest; + +UpdateServerGroupAttributeRequest::UpdateServerGroupAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateServerGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateServerGroupAttributeRequest::~UpdateServerGroupAttributeRequest() {} + +std::string UpdateServerGroupAttributeRequest::getServerGroupName() const { + return serverGroupName_; +} + +void UpdateServerGroupAttributeRequest::setServerGroupName(const std::string &serverGroupName) { + serverGroupName_ = serverGroupName; + setParameter(std::string("ServerGroupName"), serverGroupName); +} + +std::string UpdateServerGroupAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateServerGroupAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +UpdateServerGroupAttributeRequest::HealthCheckConfig UpdateServerGroupAttributeRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void UpdateServerGroupAttributeRequest::setHealthCheckConfig(const UpdateServerGroupAttributeRequest::HealthCheckConfig &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckCodes.size(); dep1++) { + setParameter(std::string("HealthCheckConfig") + ".HealthCheckCodes." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckCodes[dep1]); + } + setParameter(std::string("HealthCheckConfig") + ".HealthCheckEnabled", healthCheckConfig.healthCheckEnabled ? "true" : "false"); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckTimeout", std::to_string(healthCheckConfig.healthCheckTimeout)); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckMethod", healthCheckConfig.healthCheckMethod); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHost", healthCheckConfig.healthCheckHost); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckProtocol", healthCheckConfig.healthCheckProtocol); + setParameter(std::string("HealthCheckConfig") + ".UnhealthyThreshold", std::to_string(healthCheckConfig.unhealthyThreshold)); + setParameter(std::string("HealthCheckConfig") + ".HealthyThreshold", std::to_string(healthCheckConfig.healthyThreshold)); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckTcpFastCloseEnabled", healthCheckConfig.healthCheckTcpFastCloseEnabled ? "true" : "false"); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckPath", healthCheckConfig.healthCheckPath); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckInterval", std::to_string(healthCheckConfig.healthCheckInterval)); + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckHttpCodes.size(); dep1++) { + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpCodes." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckHttpCodes[dep1]); + } + setParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpVersion", healthCheckConfig.healthCheckHttpVersion); + setParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort)); +} + +std::string UpdateServerGroupAttributeRequest::getScheduler() const { + return scheduler_; +} + +void UpdateServerGroupAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string UpdateServerGroupAttributeRequest::getServerGroupId() const { + return serverGroupId_; +} + +void UpdateServerGroupAttributeRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const { + return stickySessionConfig_; +} + +void UpdateServerGroupAttributeRequest::setStickySessionConfig(const UpdateServerGroupAttributeRequest::StickySessionConfig &stickySessionConfig) { + stickySessionConfig_ = stickySessionConfig; + setParameter(std::string("StickySessionConfig") + ".StickySessionEnabled", stickySessionConfig.stickySessionEnabled ? "true" : "false"); + setParameter(std::string("StickySessionConfig") + ".Cookie", stickySessionConfig.cookie); + setParameter(std::string("StickySessionConfig") + ".CookieTimeout", std::to_string(stickySessionConfig.cookieTimeout)); + setParameter(std::string("StickySessionConfig") + ".StickySessionType", stickySessionConfig.stickySessionType); +} + +bool UpdateServerGroupAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateServerGroupAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/UpdateServerGroupAttributeResult.cc b/alb/src/model/UpdateServerGroupAttributeResult.cc new file mode 100644 index 000000000..3340c9458 --- /dev/null +++ b/alb/src/model/UpdateServerGroupAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateServerGroupAttributeResult::UpdateServerGroupAttributeResult() : + ServiceResult() +{} + +UpdateServerGroupAttributeResult::UpdateServerGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServerGroupAttributeResult::~UpdateServerGroupAttributeResult() +{} + +void UpdateServerGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateServerGroupAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/alb/src/model/UpdateServerGroupServersAttributeRequest.cc b/alb/src/model/UpdateServerGroupServersAttributeRequest.cc new file mode 100644 index 000000000..9680bebc5 --- /dev/null +++ b/alb/src/model/UpdateServerGroupServersAttributeRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Alb::Model::UpdateServerGroupServersAttributeRequest; + +UpdateServerGroupServersAttributeRequest::UpdateServerGroupServersAttributeRequest() + : RpcServiceRequest("alb", "2020-06-16", "UpdateServerGroupServersAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateServerGroupServersAttributeRequest::~UpdateServerGroupServersAttributeRequest() {} + +std::string UpdateServerGroupServersAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateServerGroupServersAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateServerGroupServersAttributeRequest::getServerGroupId() const { + return serverGroupId_; +} + +void UpdateServerGroupServersAttributeRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector UpdateServerGroupServersAttributeRequest::getServers() const { + return servers_; +} + +void UpdateServerGroupServersAttributeRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port)); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Description", servers[dep1].description); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerIp", servers[dep1].serverIp); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(servers[dep1].weight)); + setParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerId", servers[dep1].serverId); + } +} + +bool UpdateServerGroupServersAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateServerGroupServersAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/alb/src/model/UpdateServerGroupServersAttributeResult.cc b/alb/src/model/UpdateServerGroupServersAttributeResult.cc new file mode 100644 index 000000000..cf5e5dffa --- /dev/null +++ b/alb/src/model/UpdateServerGroupServersAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Alb; +using namespace AlibabaCloud::Alb::Model; + +UpdateServerGroupServersAttributeResult::UpdateServerGroupServersAttributeResult() : + ServiceResult() +{} + +UpdateServerGroupServersAttributeResult::UpdateServerGroupServersAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServerGroupServersAttributeResult::~UpdateServerGroupServersAttributeResult() +{} + +void UpdateServerGroupServersAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateServerGroupServersAttributeResult::getJobId()const +{ + return jobId_; +} +