diff --git a/VERSION b/VERSION index d400f75f8..1584f0dce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1607 \ No newline at end of file +1.36.1608 \ No newline at end of file diff --git a/ga/CMakeLists.txt b/ga/CMakeLists.txt index 616a66d0a..57eab6f9b 100644 --- a/ga/CMakeLists.txt +++ b/ga/CMakeLists.txt @@ -25,6 +25,8 @@ set(ga_public_header_model include/alibabacloud/ga/model/AddEntriesToAclResult.h include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h include/alibabacloud/ga/model/AssociateAclsWithListenerResult.h + include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerRequest.h + include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerResult.h include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.h include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h @@ -33,30 +35,90 @@ set(ga_public_header_model include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.h + include/alibabacloud/ga/model/ChangeResourceGroupRequest.h + include/alibabacloud/ga/model/ChangeResourceGroupResult.h include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h include/alibabacloud/ga/model/ConfigEndpointProbeResult.h include/alibabacloud/ga/model/CreateAcceleratorRequest.h include/alibabacloud/ga/model/CreateAcceleratorResult.h include/alibabacloud/ga/model/CreateAclRequest.h include/alibabacloud/ga/model/CreateAclResult.h + include/alibabacloud/ga/model/CreateApplicationMonitorRequest.h + include/alibabacloud/ga/model/CreateApplicationMonitorResult.h include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h include/alibabacloud/ga/model/CreateBandwidthPackageResult.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpRequest.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpResult.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationRequest.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationResult.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsRequest.h + include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsResult.h + include/alibabacloud/ga/model/CreateBasicAcceleratorRequest.h + include/alibabacloud/ga/model/CreateBasicAcceleratorResult.h + include/alibabacloud/ga/model/CreateBasicEndpointRequest.h + include/alibabacloud/ga/model/CreateBasicEndpointResult.h + include/alibabacloud/ga/model/CreateBasicEndpointGroupRequest.h + include/alibabacloud/ga/model/CreateBasicEndpointGroupResult.h + include/alibabacloud/ga/model/CreateBasicEndpointsRequest.h + include/alibabacloud/ga/model/CreateBasicEndpointsResult.h + include/alibabacloud/ga/model/CreateBasicIpSetRequest.h + include/alibabacloud/ga/model/CreateBasicIpSetResult.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsRequest.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsResult.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsRequest.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsResult.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesResult.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointsRequest.h + include/alibabacloud/ga/model/CreateCustomRoutingEndpointsResult.h + include/alibabacloud/ga/model/CreateDomainRequest.h + include/alibabacloud/ga/model/CreateDomainResult.h include/alibabacloud/ga/model/CreateEndpointGroupRequest.h include/alibabacloud/ga/model/CreateEndpointGroupResult.h + include/alibabacloud/ga/model/CreateEndpointGroupsRequest.h + include/alibabacloud/ga/model/CreateEndpointGroupsResult.h include/alibabacloud/ga/model/CreateForwardingRulesRequest.h include/alibabacloud/ga/model/CreateForwardingRulesResult.h include/alibabacloud/ga/model/CreateIpSetsRequest.h include/alibabacloud/ga/model/CreateIpSetsResult.h include/alibabacloud/ga/model/CreateListenerRequest.h include/alibabacloud/ga/model/CreateListenerResult.h + include/alibabacloud/ga/model/CreateSpareIpsRequest.h + include/alibabacloud/ga/model/CreateSpareIpsResult.h include/alibabacloud/ga/model/DeleteAcceleratorRequest.h include/alibabacloud/ga/model/DeleteAcceleratorResult.h include/alibabacloud/ga/model/DeleteAclRequest.h include/alibabacloud/ga/model/DeleteAclResult.h + include/alibabacloud/ga/model/DeleteApplicationMonitorRequest.h + include/alibabacloud/ga/model/DeleteApplicationMonitorResult.h include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h include/alibabacloud/ga/model/DeleteBandwidthPackageResult.h + include/alibabacloud/ga/model/DeleteBasicAccelerateIpRequest.h + include/alibabacloud/ga/model/DeleteBasicAccelerateIpResult.h + include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationRequest.h + include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationResult.h + include/alibabacloud/ga/model/DeleteBasicAcceleratorRequest.h + include/alibabacloud/ga/model/DeleteBasicAcceleratorResult.h + include/alibabacloud/ga/model/DeleteBasicEndpointRequest.h + include/alibabacloud/ga/model/DeleteBasicEndpointResult.h + include/alibabacloud/ga/model/DeleteBasicEndpointGroupRequest.h + include/alibabacloud/ga/model/DeleteBasicEndpointGroupResult.h + include/alibabacloud/ga/model/DeleteBasicIpSetRequest.h + include/alibabacloud/ga/model/DeleteBasicIpSetResult.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsResult.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsRequest.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsResult.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsRequest.h + include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsResult.h + include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationRequest.h + include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationResult.h include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h include/alibabacloud/ga/model/DeleteEndpointGroupResult.h + include/alibabacloud/ga/model/DeleteEndpointGroupsRequest.h + include/alibabacloud/ga/model/DeleteEndpointGroupsResult.h include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h include/alibabacloud/ga/model/DeleteForwardingRulesResult.h include/alibabacloud/ga/model/DeleteIpSetRequest.h @@ -65,10 +127,30 @@ set(ga_public_header_model include/alibabacloud/ga/model/DeleteIpSetsResult.h include/alibabacloud/ga/model/DeleteListenerRequest.h include/alibabacloud/ga/model/DeleteListenerResult.h + include/alibabacloud/ga/model/DeleteSpareIpsRequest.h + include/alibabacloud/ga/model/DeleteSpareIpsResult.h include/alibabacloud/ga/model/DescribeAcceleratorRequest.h include/alibabacloud/ga/model/DescribeAcceleratorResult.h + include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeRequest.h + include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeResult.h + include/alibabacloud/ga/model/DescribeApplicationMonitorRequest.h + include/alibabacloud/ga/model/DescribeApplicationMonitorResult.h include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h + include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeRequest.h + include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeResult.h + include/alibabacloud/ga/model/DescribeCommodityRequest.h + include/alibabacloud/ga/model/DescribeCommodityResult.h + include/alibabacloud/ga/model/DescribeCommodityPriceRequest.h + include/alibabacloud/ga/model/DescribeCommodityPriceResult.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyResult.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointRequest.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointResult.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupRequest.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupResult.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.h + include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsResult.h include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h include/alibabacloud/ga/model/DescribeEndpointGroupResult.h include/alibabacloud/ga/model/DescribeIpSetRequest.h @@ -81,16 +163,50 @@ set(ga_public_header_model include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.h include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h + include/alibabacloud/ga/model/DetectApplicationMonitorRequest.h + include/alibabacloud/ga/model/DetectApplicationMonitorResult.h + include/alibabacloud/ga/model/DisableApplicationMonitorRequest.h + include/alibabacloud/ga/model/DisableApplicationMonitorResult.h include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h include/alibabacloud/ga/model/DissociateAclsFromListenerResult.h + include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerRequest.h + include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerResult.h + include/alibabacloud/ga/model/EnableApplicationMonitorRequest.h + include/alibabacloud/ga/model/EnableApplicationMonitorResult.h include/alibabacloud/ga/model/GetAclRequest.h include/alibabacloud/ga/model/GetAclResult.h + include/alibabacloud/ga/model/GetBasicAccelerateIpRequest.h + include/alibabacloud/ga/model/GetBasicAccelerateIpResult.h + include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationRequest.h + include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationResult.h + include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountRequest.h + include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountResult.h + include/alibabacloud/ga/model/GetBasicAcceleratorRequest.h + include/alibabacloud/ga/model/GetBasicAcceleratorResult.h + include/alibabacloud/ga/model/GetBasicEndpointRequest.h + include/alibabacloud/ga/model/GetBasicEndpointResult.h + include/alibabacloud/ga/model/GetBasicEndpointGroupRequest.h + include/alibabacloud/ga/model/GetBasicEndpointGroupResult.h + include/alibabacloud/ga/model/GetBasicIpSetRequest.h + include/alibabacloud/ga/model/GetBasicIpSetResult.h + include/alibabacloud/ga/model/GetHealthStatusRequest.h + include/alibabacloud/ga/model/GetHealthStatusResult.h + include/alibabacloud/ga/model/GetInvalidDomainCountRequest.h + include/alibabacloud/ga/model/GetInvalidDomainCountResult.h + include/alibabacloud/ga/model/GetIpsetsBandwidthLimitRequest.h + include/alibabacloud/ga/model/GetIpsetsBandwidthLimitResult.h + include/alibabacloud/ga/model/GetSpareIpRequest.h + include/alibabacloud/ga/model/GetSpareIpResult.h include/alibabacloud/ga/model/ListAccelerateAreasRequest.h include/alibabacloud/ga/model/ListAccelerateAreasResult.h include/alibabacloud/ga/model/ListAcceleratorsRequest.h include/alibabacloud/ga/model/ListAcceleratorsResult.h include/alibabacloud/ga/model/ListAclsRequest.h include/alibabacloud/ga/model/ListAclsResult.h + include/alibabacloud/ga/model/ListApplicationMonitorRequest.h + include/alibabacloud/ga/model/ListApplicationMonitorResult.h + include/alibabacloud/ga/model/ListApplicationMonitorDetectResultRequest.h + include/alibabacloud/ga/model/ListApplicationMonitorDetectResultResult.h include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h @@ -99,30 +215,104 @@ set(ga_public_header_model include/alibabacloud/ga/model/ListBandwidthPackagesResult.h include/alibabacloud/ga/model/ListBandwidthackagesRequest.h include/alibabacloud/ga/model/ListBandwidthackagesResult.h + include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsRequest.h + include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsResult.h + include/alibabacloud/ga/model/ListBasicAccelerateIpsRequest.h + include/alibabacloud/ga/model/ListBasicAccelerateIpsResult.h + include/alibabacloud/ga/model/ListBasicAcceleratorsRequest.h + include/alibabacloud/ga/model/ListBasicAcceleratorsResult.h + include/alibabacloud/ga/model/ListBasicEndpointsRequest.h + include/alibabacloud/ga/model/ListBasicEndpointsResult.h include/alibabacloud/ga/model/ListBusiRegionsRequest.h include/alibabacloud/ga/model/ListBusiRegionsResult.h + include/alibabacloud/ga/model/ListCommonAreasRequest.h + include/alibabacloud/ga/model/ListCommonAreasResult.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsRequest.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsResult.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsRequest.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsResult.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesRequest.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesResult.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointsRequest.h + include/alibabacloud/ga/model/ListCustomRoutingEndpointsResult.h + include/alibabacloud/ga/model/ListCustomRoutingPortMappingsRequest.h + include/alibabacloud/ga/model/ListCustomRoutingPortMappingsResult.h + include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationRequest.h + include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationResult.h + include/alibabacloud/ga/model/ListDomainsRequest.h + include/alibabacloud/ga/model/ListDomainsResult.h include/alibabacloud/ga/model/ListEndpointGroupsRequest.h include/alibabacloud/ga/model/ListEndpointGroupsResult.h include/alibabacloud/ga/model/ListForwardingRulesRequest.h include/alibabacloud/ga/model/ListForwardingRulesResult.h include/alibabacloud/ga/model/ListIpSetsRequest.h include/alibabacloud/ga/model/ListIpSetsResult.h + include/alibabacloud/ga/model/ListIspTypesRequest.h + include/alibabacloud/ga/model/ListIspTypesResult.h + include/alibabacloud/ga/model/ListListenerCertificatesRequest.h + include/alibabacloud/ga/model/ListListenerCertificatesResult.h include/alibabacloud/ga/model/ListListenersRequest.h include/alibabacloud/ga/model/ListListenersResult.h + include/alibabacloud/ga/model/ListSpareIpsRequest.h + include/alibabacloud/ga/model/ListSpareIpsResult.h + include/alibabacloud/ga/model/ListSystemSecurityPoliciesRequest.h + include/alibabacloud/ga/model/ListSystemSecurityPoliciesResult.h + include/alibabacloud/ga/model/ListTagResourcesRequest.h + include/alibabacloud/ga/model/ListTagResourcesResult.h + include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusRequest.h + include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusResult.h include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h include/alibabacloud/ga/model/RemoveEntriesFromAclResult.h include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h include/alibabacloud/ga/model/ReplaceBandwidthPackageResult.h + include/alibabacloud/ga/model/TagResourcesRequest.h + include/alibabacloud/ga/model/TagResourcesResult.h + include/alibabacloud/ga/model/UntagResourcesRequest.h + include/alibabacloud/ga/model/UntagResourcesResult.h include/alibabacloud/ga/model/UpdateAcceleratorRequest.h include/alibabacloud/ga/model/UpdateAcceleratorResult.h + include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeRequest.h + include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeResult.h + include/alibabacloud/ga/model/UpdateAcceleratorConfirmRequest.h + include/alibabacloud/ga/model/UpdateAcceleratorConfirmResult.h + include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeRequest.h + include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeResult.h include/alibabacloud/ga/model/UpdateAclAttributeRequest.h include/alibabacloud/ga/model/UpdateAclAttributeResult.h + include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerRequest.h + include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerResult.h + include/alibabacloud/ga/model/UpdateApplicationMonitorRequest.h + include/alibabacloud/ga/model/UpdateApplicationMonitorResult.h + include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.h + include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeResult.h include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h include/alibabacloud/ga/model/UpdateBandwidthPackageResult.h + include/alibabacloud/ga/model/UpdateBasicAcceleratorRequest.h + include/alibabacloud/ga/model/UpdateBasicAcceleratorResult.h + include/alibabacloud/ga/model/UpdateBasicEndpointRequest.h + include/alibabacloud/ga/model/UpdateBasicEndpointResult.h + include/alibabacloud/ga/model/UpdateBasicEndpointGroupRequest.h + include/alibabacloud/ga/model/UpdateBasicEndpointGroupResult.h + include/alibabacloud/ga/model/UpdateBasicIpSetRequest.h + include/alibabacloud/ga/model/UpdateBasicIpSetResult.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeRequest.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeResult.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsResult.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsRequest.h + include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsResult.h + include/alibabacloud/ga/model/UpdateDomainRequest.h + include/alibabacloud/ga/model/UpdateDomainResult.h + include/alibabacloud/ga/model/UpdateDomainStateRequest.h + include/alibabacloud/ga/model/UpdateDomainStateResult.h include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h include/alibabacloud/ga/model/UpdateEndpointGroupResult.h include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h include/alibabacloud/ga/model/UpdateEndpointGroupAttributeResult.h + include/alibabacloud/ga/model/UpdateEndpointGroupsRequest.h + include/alibabacloud/ga/model/UpdateEndpointGroupsResult.h include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h include/alibabacloud/ga/model/UpdateForwardingRulesResult.h include/alibabacloud/ga/model/UpdateIpSetRequest.h @@ -138,6 +328,8 @@ set(ga_src src/model/AddEntriesToAclResult.cc src/model/AssociateAclsWithListenerRequest.cc src/model/AssociateAclsWithListenerResult.cc + src/model/AssociateAdditionalCertificatesWithListenerRequest.cc + src/model/AssociateAdditionalCertificatesWithListenerResult.cc src/model/AttachDdosToAcceleratorRequest.cc src/model/AttachDdosToAcceleratorResult.cc src/model/AttachLogStoreToEndpointGroupRequest.cc @@ -146,30 +338,90 @@ set(ga_src src/model/BandwidthPackageAddAcceleratorResult.cc src/model/BandwidthPackageRemoveAcceleratorRequest.cc src/model/BandwidthPackageRemoveAcceleratorResult.cc + src/model/ChangeResourceGroupRequest.cc + src/model/ChangeResourceGroupResult.cc src/model/ConfigEndpointProbeRequest.cc src/model/ConfigEndpointProbeResult.cc src/model/CreateAcceleratorRequest.cc src/model/CreateAcceleratorResult.cc src/model/CreateAclRequest.cc src/model/CreateAclResult.cc + src/model/CreateApplicationMonitorRequest.cc + src/model/CreateApplicationMonitorResult.cc src/model/CreateBandwidthPackageRequest.cc src/model/CreateBandwidthPackageResult.cc + src/model/CreateBasicAccelerateIpRequest.cc + src/model/CreateBasicAccelerateIpResult.cc + src/model/CreateBasicAccelerateIpEndpointRelationRequest.cc + src/model/CreateBasicAccelerateIpEndpointRelationResult.cc + src/model/CreateBasicAccelerateIpEndpointRelationsRequest.cc + src/model/CreateBasicAccelerateIpEndpointRelationsResult.cc + src/model/CreateBasicAcceleratorRequest.cc + src/model/CreateBasicAcceleratorResult.cc + src/model/CreateBasicEndpointRequest.cc + src/model/CreateBasicEndpointResult.cc + src/model/CreateBasicEndpointGroupRequest.cc + src/model/CreateBasicEndpointGroupResult.cc + src/model/CreateBasicEndpointsRequest.cc + src/model/CreateBasicEndpointsResult.cc + src/model/CreateBasicIpSetRequest.cc + src/model/CreateBasicIpSetResult.cc + src/model/CreateCustomRoutingEndpointGroupDestinationsRequest.cc + src/model/CreateCustomRoutingEndpointGroupDestinationsResult.cc + src/model/CreateCustomRoutingEndpointGroupsRequest.cc + src/model/CreateCustomRoutingEndpointGroupsResult.cc + src/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.cc + src/model/CreateCustomRoutingEndpointTrafficPoliciesResult.cc + src/model/CreateCustomRoutingEndpointsRequest.cc + src/model/CreateCustomRoutingEndpointsResult.cc + src/model/CreateDomainRequest.cc + src/model/CreateDomainResult.cc src/model/CreateEndpointGroupRequest.cc src/model/CreateEndpointGroupResult.cc + src/model/CreateEndpointGroupsRequest.cc + src/model/CreateEndpointGroupsResult.cc src/model/CreateForwardingRulesRequest.cc src/model/CreateForwardingRulesResult.cc src/model/CreateIpSetsRequest.cc src/model/CreateIpSetsResult.cc src/model/CreateListenerRequest.cc src/model/CreateListenerResult.cc + src/model/CreateSpareIpsRequest.cc + src/model/CreateSpareIpsResult.cc src/model/DeleteAcceleratorRequest.cc src/model/DeleteAcceleratorResult.cc src/model/DeleteAclRequest.cc src/model/DeleteAclResult.cc + src/model/DeleteApplicationMonitorRequest.cc + src/model/DeleteApplicationMonitorResult.cc src/model/DeleteBandwidthPackageRequest.cc src/model/DeleteBandwidthPackageResult.cc + src/model/DeleteBasicAccelerateIpRequest.cc + src/model/DeleteBasicAccelerateIpResult.cc + src/model/DeleteBasicAccelerateIpEndpointRelationRequest.cc + src/model/DeleteBasicAccelerateIpEndpointRelationResult.cc + src/model/DeleteBasicAcceleratorRequest.cc + src/model/DeleteBasicAcceleratorResult.cc + src/model/DeleteBasicEndpointRequest.cc + src/model/DeleteBasicEndpointResult.cc + src/model/DeleteBasicEndpointGroupRequest.cc + src/model/DeleteBasicEndpointGroupResult.cc + src/model/DeleteBasicIpSetRequest.cc + src/model/DeleteBasicIpSetResult.cc + src/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.cc + src/model/DeleteCustomRoutingEndpointGroupDestinationsResult.cc + src/model/DeleteCustomRoutingEndpointGroupsRequest.cc + src/model/DeleteCustomRoutingEndpointGroupsResult.cc + src/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.cc + src/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.cc + src/model/DeleteCustomRoutingEndpointsRequest.cc + src/model/DeleteCustomRoutingEndpointsResult.cc + src/model/DeleteDomainAcceleratorRelationRequest.cc + src/model/DeleteDomainAcceleratorRelationResult.cc src/model/DeleteEndpointGroupRequest.cc src/model/DeleteEndpointGroupResult.cc + src/model/DeleteEndpointGroupsRequest.cc + src/model/DeleteEndpointGroupsResult.cc src/model/DeleteForwardingRulesRequest.cc src/model/DeleteForwardingRulesResult.cc src/model/DeleteIpSetRequest.cc @@ -178,10 +430,30 @@ set(ga_src src/model/DeleteIpSetsResult.cc src/model/DeleteListenerRequest.cc src/model/DeleteListenerResult.cc + src/model/DeleteSpareIpsRequest.cc + src/model/DeleteSpareIpsResult.cc src/model/DescribeAcceleratorRequest.cc src/model/DescribeAcceleratorResult.cc + src/model/DescribeAcceleratorAutoRenewAttributeRequest.cc + src/model/DescribeAcceleratorAutoRenewAttributeResult.cc + src/model/DescribeApplicationMonitorRequest.cc + src/model/DescribeApplicationMonitorResult.cc src/model/DescribeBandwidthPackageRequest.cc src/model/DescribeBandwidthPackageResult.cc + src/model/DescribeBandwidthPackageAutoRenewAttributeRequest.cc + src/model/DescribeBandwidthPackageAutoRenewAttributeResult.cc + src/model/DescribeCommodityRequest.cc + src/model/DescribeCommodityResult.cc + src/model/DescribeCommodityPriceRequest.cc + src/model/DescribeCommodityPriceResult.cc + src/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.cc + src/model/DescribeCustomRoutingEndPointTrafficPolicyResult.cc + src/model/DescribeCustomRoutingEndpointRequest.cc + src/model/DescribeCustomRoutingEndpointResult.cc + src/model/DescribeCustomRoutingEndpointGroupRequest.cc + src/model/DescribeCustomRoutingEndpointGroupResult.cc + src/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.cc + src/model/DescribeCustomRoutingEndpointGroupDestinationsResult.cc src/model/DescribeEndpointGroupRequest.cc src/model/DescribeEndpointGroupResult.cc src/model/DescribeIpSetRequest.cc @@ -194,16 +466,50 @@ set(ga_src src/model/DetachDdosFromAcceleratorResult.cc src/model/DetachLogStoreFromEndpointGroupRequest.cc src/model/DetachLogStoreFromEndpointGroupResult.cc + src/model/DetectApplicationMonitorRequest.cc + src/model/DetectApplicationMonitorResult.cc + src/model/DisableApplicationMonitorRequest.cc + src/model/DisableApplicationMonitorResult.cc src/model/DissociateAclsFromListenerRequest.cc src/model/DissociateAclsFromListenerResult.cc + src/model/DissociateAdditionalCertificatesFromListenerRequest.cc + src/model/DissociateAdditionalCertificatesFromListenerResult.cc + src/model/EnableApplicationMonitorRequest.cc + src/model/EnableApplicationMonitorResult.cc src/model/GetAclRequest.cc src/model/GetAclResult.cc + src/model/GetBasicAccelerateIpRequest.cc + src/model/GetBasicAccelerateIpResult.cc + src/model/GetBasicAccelerateIpEndpointRelationRequest.cc + src/model/GetBasicAccelerateIpEndpointRelationResult.cc + src/model/GetBasicAccelerateIpIdleCountRequest.cc + src/model/GetBasicAccelerateIpIdleCountResult.cc + src/model/GetBasicAcceleratorRequest.cc + src/model/GetBasicAcceleratorResult.cc + src/model/GetBasicEndpointRequest.cc + src/model/GetBasicEndpointResult.cc + src/model/GetBasicEndpointGroupRequest.cc + src/model/GetBasicEndpointGroupResult.cc + src/model/GetBasicIpSetRequest.cc + src/model/GetBasicIpSetResult.cc + src/model/GetHealthStatusRequest.cc + src/model/GetHealthStatusResult.cc + src/model/GetInvalidDomainCountRequest.cc + src/model/GetInvalidDomainCountResult.cc + src/model/GetIpsetsBandwidthLimitRequest.cc + src/model/GetIpsetsBandwidthLimitResult.cc + src/model/GetSpareIpRequest.cc + src/model/GetSpareIpResult.cc src/model/ListAccelerateAreasRequest.cc src/model/ListAccelerateAreasResult.cc src/model/ListAcceleratorsRequest.cc src/model/ListAcceleratorsResult.cc src/model/ListAclsRequest.cc src/model/ListAclsResult.cc + src/model/ListApplicationMonitorRequest.cc + src/model/ListApplicationMonitorResult.cc + src/model/ListApplicationMonitorDetectResultRequest.cc + src/model/ListApplicationMonitorDetectResultResult.cc src/model/ListAvailableAccelerateAreasRequest.cc src/model/ListAvailableAccelerateAreasResult.cc src/model/ListAvailableBusiRegionsRequest.cc @@ -212,30 +518,104 @@ set(ga_src src/model/ListBandwidthPackagesResult.cc src/model/ListBandwidthackagesRequest.cc src/model/ListBandwidthackagesResult.cc + src/model/ListBasicAccelerateIpEndpointRelationsRequest.cc + src/model/ListBasicAccelerateIpEndpointRelationsResult.cc + src/model/ListBasicAccelerateIpsRequest.cc + src/model/ListBasicAccelerateIpsResult.cc + src/model/ListBasicAcceleratorsRequest.cc + src/model/ListBasicAcceleratorsResult.cc + src/model/ListBasicEndpointsRequest.cc + src/model/ListBasicEndpointsResult.cc src/model/ListBusiRegionsRequest.cc src/model/ListBusiRegionsResult.cc + src/model/ListCommonAreasRequest.cc + src/model/ListCommonAreasResult.cc + src/model/ListCustomRoutingEndpointGroupDestinationsRequest.cc + src/model/ListCustomRoutingEndpointGroupDestinationsResult.cc + src/model/ListCustomRoutingEndpointGroupsRequest.cc + src/model/ListCustomRoutingEndpointGroupsResult.cc + src/model/ListCustomRoutingEndpointTrafficPoliciesRequest.cc + src/model/ListCustomRoutingEndpointTrafficPoliciesResult.cc + src/model/ListCustomRoutingEndpointsRequest.cc + src/model/ListCustomRoutingEndpointsResult.cc + src/model/ListCustomRoutingPortMappingsRequest.cc + src/model/ListCustomRoutingPortMappingsResult.cc + src/model/ListCustomRoutingPortMappingsByDestinationRequest.cc + src/model/ListCustomRoutingPortMappingsByDestinationResult.cc + src/model/ListDomainsRequest.cc + src/model/ListDomainsResult.cc src/model/ListEndpointGroupsRequest.cc src/model/ListEndpointGroupsResult.cc src/model/ListForwardingRulesRequest.cc src/model/ListForwardingRulesResult.cc src/model/ListIpSetsRequest.cc src/model/ListIpSetsResult.cc + src/model/ListIspTypesRequest.cc + src/model/ListIspTypesResult.cc + src/model/ListListenerCertificatesRequest.cc + src/model/ListListenerCertificatesResult.cc src/model/ListListenersRequest.cc src/model/ListListenersResult.cc + src/model/ListSpareIpsRequest.cc + src/model/ListSpareIpsResult.cc + src/model/ListSystemSecurityPoliciesRequest.cc + src/model/ListSystemSecurityPoliciesResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/QueryCrossBorderApprovalStatusRequest.cc + src/model/QueryCrossBorderApprovalStatusResult.cc src/model/RemoveEntriesFromAclRequest.cc src/model/RemoveEntriesFromAclResult.cc src/model/ReplaceBandwidthPackageRequest.cc src/model/ReplaceBandwidthPackageResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/UpdateAcceleratorRequest.cc src/model/UpdateAcceleratorResult.cc + src/model/UpdateAcceleratorAutoRenewAttributeRequest.cc + src/model/UpdateAcceleratorAutoRenewAttributeResult.cc + src/model/UpdateAcceleratorConfirmRequest.cc + src/model/UpdateAcceleratorConfirmResult.cc + src/model/UpdateAcceleratorCrossBorderModeRequest.cc + src/model/UpdateAcceleratorCrossBorderModeResult.cc src/model/UpdateAclAttributeRequest.cc src/model/UpdateAclAttributeResult.cc + src/model/UpdateAdditionalCertificateWithListenerRequest.cc + src/model/UpdateAdditionalCertificateWithListenerResult.cc + src/model/UpdateApplicationMonitorRequest.cc + src/model/UpdateApplicationMonitorResult.cc + src/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.cc + src/model/UpdateBandwidthPackagaAutoRenewAttributeResult.cc src/model/UpdateBandwidthPackageRequest.cc src/model/UpdateBandwidthPackageResult.cc + src/model/UpdateBasicAcceleratorRequest.cc + src/model/UpdateBasicAcceleratorResult.cc + src/model/UpdateBasicEndpointRequest.cc + src/model/UpdateBasicEndpointResult.cc + src/model/UpdateBasicEndpointGroupRequest.cc + src/model/UpdateBasicEndpointGroupResult.cc + src/model/UpdateBasicIpSetRequest.cc + src/model/UpdateBasicIpSetResult.cc + src/model/UpdateCustomRoutingEndpointGroupAttributeRequest.cc + src/model/UpdateCustomRoutingEndpointGroupAttributeResult.cc + src/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.cc + src/model/UpdateCustomRoutingEndpointGroupDestinationsResult.cc + src/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.cc + src/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.cc + src/model/UpdateCustomRoutingEndpointsRequest.cc + src/model/UpdateCustomRoutingEndpointsResult.cc + src/model/UpdateDomainRequest.cc + src/model/UpdateDomainResult.cc + src/model/UpdateDomainStateRequest.cc + src/model/UpdateDomainStateResult.cc src/model/UpdateEndpointGroupRequest.cc src/model/UpdateEndpointGroupResult.cc src/model/UpdateEndpointGroupAttributeRequest.cc src/model/UpdateEndpointGroupAttributeResult.cc + src/model/UpdateEndpointGroupsRequest.cc + src/model/UpdateEndpointGroupsResult.cc src/model/UpdateForwardingRulesRequest.cc src/model/UpdateForwardingRulesResult.cc src/model/UpdateIpSetRequest.cc diff --git a/ga/include/alibabacloud/ga/GaClient.h b/ga/include/alibabacloud/ga/GaClient.h index 028022440..91bf07294 100644 --- a/ga/include/alibabacloud/ga/GaClient.h +++ b/ga/include/alibabacloud/ga/GaClient.h @@ -26,6 +26,8 @@ #include "model/AddEntriesToAclResult.h" #include "model/AssociateAclsWithListenerRequest.h" #include "model/AssociateAclsWithListenerResult.h" +#include "model/AssociateAdditionalCertificatesWithListenerRequest.h" +#include "model/AssociateAdditionalCertificatesWithListenerResult.h" #include "model/AttachDdosToAcceleratorRequest.h" #include "model/AttachDdosToAcceleratorResult.h" #include "model/AttachLogStoreToEndpointGroupRequest.h" @@ -34,30 +36,90 @@ #include "model/BandwidthPackageAddAcceleratorResult.h" #include "model/BandwidthPackageRemoveAcceleratorRequest.h" #include "model/BandwidthPackageRemoveAcceleratorResult.h" +#include "model/ChangeResourceGroupRequest.h" +#include "model/ChangeResourceGroupResult.h" #include "model/ConfigEndpointProbeRequest.h" #include "model/ConfigEndpointProbeResult.h" #include "model/CreateAcceleratorRequest.h" #include "model/CreateAcceleratorResult.h" #include "model/CreateAclRequest.h" #include "model/CreateAclResult.h" +#include "model/CreateApplicationMonitorRequest.h" +#include "model/CreateApplicationMonitorResult.h" #include "model/CreateBandwidthPackageRequest.h" #include "model/CreateBandwidthPackageResult.h" +#include "model/CreateBasicAccelerateIpRequest.h" +#include "model/CreateBasicAccelerateIpResult.h" +#include "model/CreateBasicAccelerateIpEndpointRelationRequest.h" +#include "model/CreateBasicAccelerateIpEndpointRelationResult.h" +#include "model/CreateBasicAccelerateIpEndpointRelationsRequest.h" +#include "model/CreateBasicAccelerateIpEndpointRelationsResult.h" +#include "model/CreateBasicAcceleratorRequest.h" +#include "model/CreateBasicAcceleratorResult.h" +#include "model/CreateBasicEndpointRequest.h" +#include "model/CreateBasicEndpointResult.h" +#include "model/CreateBasicEndpointGroupRequest.h" +#include "model/CreateBasicEndpointGroupResult.h" +#include "model/CreateBasicEndpointsRequest.h" +#include "model/CreateBasicEndpointsResult.h" +#include "model/CreateBasicIpSetRequest.h" +#include "model/CreateBasicIpSetResult.h" +#include "model/CreateCustomRoutingEndpointGroupDestinationsRequest.h" +#include "model/CreateCustomRoutingEndpointGroupDestinationsResult.h" +#include "model/CreateCustomRoutingEndpointGroupsRequest.h" +#include "model/CreateCustomRoutingEndpointGroupsResult.h" +#include "model/CreateCustomRoutingEndpointTrafficPoliciesRequest.h" +#include "model/CreateCustomRoutingEndpointTrafficPoliciesResult.h" +#include "model/CreateCustomRoutingEndpointsRequest.h" +#include "model/CreateCustomRoutingEndpointsResult.h" +#include "model/CreateDomainRequest.h" +#include "model/CreateDomainResult.h" #include "model/CreateEndpointGroupRequest.h" #include "model/CreateEndpointGroupResult.h" +#include "model/CreateEndpointGroupsRequest.h" +#include "model/CreateEndpointGroupsResult.h" #include "model/CreateForwardingRulesRequest.h" #include "model/CreateForwardingRulesResult.h" #include "model/CreateIpSetsRequest.h" #include "model/CreateIpSetsResult.h" #include "model/CreateListenerRequest.h" #include "model/CreateListenerResult.h" +#include "model/CreateSpareIpsRequest.h" +#include "model/CreateSpareIpsResult.h" #include "model/DeleteAcceleratorRequest.h" #include "model/DeleteAcceleratorResult.h" #include "model/DeleteAclRequest.h" #include "model/DeleteAclResult.h" +#include "model/DeleteApplicationMonitorRequest.h" +#include "model/DeleteApplicationMonitorResult.h" #include "model/DeleteBandwidthPackageRequest.h" #include "model/DeleteBandwidthPackageResult.h" +#include "model/DeleteBasicAccelerateIpRequest.h" +#include "model/DeleteBasicAccelerateIpResult.h" +#include "model/DeleteBasicAccelerateIpEndpointRelationRequest.h" +#include "model/DeleteBasicAccelerateIpEndpointRelationResult.h" +#include "model/DeleteBasicAcceleratorRequest.h" +#include "model/DeleteBasicAcceleratorResult.h" +#include "model/DeleteBasicEndpointRequest.h" +#include "model/DeleteBasicEndpointResult.h" +#include "model/DeleteBasicEndpointGroupRequest.h" +#include "model/DeleteBasicEndpointGroupResult.h" +#include "model/DeleteBasicIpSetRequest.h" +#include "model/DeleteBasicIpSetResult.h" +#include "model/DeleteCustomRoutingEndpointGroupDestinationsRequest.h" +#include "model/DeleteCustomRoutingEndpointGroupDestinationsResult.h" +#include "model/DeleteCustomRoutingEndpointGroupsRequest.h" +#include "model/DeleteCustomRoutingEndpointGroupsResult.h" +#include "model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.h" +#include "model/DeleteCustomRoutingEndpointTrafficPoliciesResult.h" +#include "model/DeleteCustomRoutingEndpointsRequest.h" +#include "model/DeleteCustomRoutingEndpointsResult.h" +#include "model/DeleteDomainAcceleratorRelationRequest.h" +#include "model/DeleteDomainAcceleratorRelationResult.h" #include "model/DeleteEndpointGroupRequest.h" #include "model/DeleteEndpointGroupResult.h" +#include "model/DeleteEndpointGroupsRequest.h" +#include "model/DeleteEndpointGroupsResult.h" #include "model/DeleteForwardingRulesRequest.h" #include "model/DeleteForwardingRulesResult.h" #include "model/DeleteIpSetRequest.h" @@ -66,10 +128,30 @@ #include "model/DeleteIpSetsResult.h" #include "model/DeleteListenerRequest.h" #include "model/DeleteListenerResult.h" +#include "model/DeleteSpareIpsRequest.h" +#include "model/DeleteSpareIpsResult.h" #include "model/DescribeAcceleratorRequest.h" #include "model/DescribeAcceleratorResult.h" +#include "model/DescribeAcceleratorAutoRenewAttributeRequest.h" +#include "model/DescribeAcceleratorAutoRenewAttributeResult.h" +#include "model/DescribeApplicationMonitorRequest.h" +#include "model/DescribeApplicationMonitorResult.h" #include "model/DescribeBandwidthPackageRequest.h" #include "model/DescribeBandwidthPackageResult.h" +#include "model/DescribeBandwidthPackageAutoRenewAttributeRequest.h" +#include "model/DescribeBandwidthPackageAutoRenewAttributeResult.h" +#include "model/DescribeCommodityRequest.h" +#include "model/DescribeCommodityResult.h" +#include "model/DescribeCommodityPriceRequest.h" +#include "model/DescribeCommodityPriceResult.h" +#include "model/DescribeCustomRoutingEndPointTrafficPolicyRequest.h" +#include "model/DescribeCustomRoutingEndPointTrafficPolicyResult.h" +#include "model/DescribeCustomRoutingEndpointRequest.h" +#include "model/DescribeCustomRoutingEndpointResult.h" +#include "model/DescribeCustomRoutingEndpointGroupRequest.h" +#include "model/DescribeCustomRoutingEndpointGroupResult.h" +#include "model/DescribeCustomRoutingEndpointGroupDestinationsRequest.h" +#include "model/DescribeCustomRoutingEndpointGroupDestinationsResult.h" #include "model/DescribeEndpointGroupRequest.h" #include "model/DescribeEndpointGroupResult.h" #include "model/DescribeIpSetRequest.h" @@ -82,16 +164,50 @@ #include "model/DetachDdosFromAcceleratorResult.h" #include "model/DetachLogStoreFromEndpointGroupRequest.h" #include "model/DetachLogStoreFromEndpointGroupResult.h" +#include "model/DetectApplicationMonitorRequest.h" +#include "model/DetectApplicationMonitorResult.h" +#include "model/DisableApplicationMonitorRequest.h" +#include "model/DisableApplicationMonitorResult.h" #include "model/DissociateAclsFromListenerRequest.h" #include "model/DissociateAclsFromListenerResult.h" +#include "model/DissociateAdditionalCertificatesFromListenerRequest.h" +#include "model/DissociateAdditionalCertificatesFromListenerResult.h" +#include "model/EnableApplicationMonitorRequest.h" +#include "model/EnableApplicationMonitorResult.h" #include "model/GetAclRequest.h" #include "model/GetAclResult.h" +#include "model/GetBasicAccelerateIpRequest.h" +#include "model/GetBasicAccelerateIpResult.h" +#include "model/GetBasicAccelerateIpEndpointRelationRequest.h" +#include "model/GetBasicAccelerateIpEndpointRelationResult.h" +#include "model/GetBasicAccelerateIpIdleCountRequest.h" +#include "model/GetBasicAccelerateIpIdleCountResult.h" +#include "model/GetBasicAcceleratorRequest.h" +#include "model/GetBasicAcceleratorResult.h" +#include "model/GetBasicEndpointRequest.h" +#include "model/GetBasicEndpointResult.h" +#include "model/GetBasicEndpointGroupRequest.h" +#include "model/GetBasicEndpointGroupResult.h" +#include "model/GetBasicIpSetRequest.h" +#include "model/GetBasicIpSetResult.h" +#include "model/GetHealthStatusRequest.h" +#include "model/GetHealthStatusResult.h" +#include "model/GetInvalidDomainCountRequest.h" +#include "model/GetInvalidDomainCountResult.h" +#include "model/GetIpsetsBandwidthLimitRequest.h" +#include "model/GetIpsetsBandwidthLimitResult.h" +#include "model/GetSpareIpRequest.h" +#include "model/GetSpareIpResult.h" #include "model/ListAccelerateAreasRequest.h" #include "model/ListAccelerateAreasResult.h" #include "model/ListAcceleratorsRequest.h" #include "model/ListAcceleratorsResult.h" #include "model/ListAclsRequest.h" #include "model/ListAclsResult.h" +#include "model/ListApplicationMonitorRequest.h" +#include "model/ListApplicationMonitorResult.h" +#include "model/ListApplicationMonitorDetectResultRequest.h" +#include "model/ListApplicationMonitorDetectResultResult.h" #include "model/ListAvailableAccelerateAreasRequest.h" #include "model/ListAvailableAccelerateAreasResult.h" #include "model/ListAvailableBusiRegionsRequest.h" @@ -100,30 +216,104 @@ #include "model/ListBandwidthPackagesResult.h" #include "model/ListBandwidthackagesRequest.h" #include "model/ListBandwidthackagesResult.h" +#include "model/ListBasicAccelerateIpEndpointRelationsRequest.h" +#include "model/ListBasicAccelerateIpEndpointRelationsResult.h" +#include "model/ListBasicAccelerateIpsRequest.h" +#include "model/ListBasicAccelerateIpsResult.h" +#include "model/ListBasicAcceleratorsRequest.h" +#include "model/ListBasicAcceleratorsResult.h" +#include "model/ListBasicEndpointsRequest.h" +#include "model/ListBasicEndpointsResult.h" #include "model/ListBusiRegionsRequest.h" #include "model/ListBusiRegionsResult.h" +#include "model/ListCommonAreasRequest.h" +#include "model/ListCommonAreasResult.h" +#include "model/ListCustomRoutingEndpointGroupDestinationsRequest.h" +#include "model/ListCustomRoutingEndpointGroupDestinationsResult.h" +#include "model/ListCustomRoutingEndpointGroupsRequest.h" +#include "model/ListCustomRoutingEndpointGroupsResult.h" +#include "model/ListCustomRoutingEndpointTrafficPoliciesRequest.h" +#include "model/ListCustomRoutingEndpointTrafficPoliciesResult.h" +#include "model/ListCustomRoutingEndpointsRequest.h" +#include "model/ListCustomRoutingEndpointsResult.h" +#include "model/ListCustomRoutingPortMappingsRequest.h" +#include "model/ListCustomRoutingPortMappingsResult.h" +#include "model/ListCustomRoutingPortMappingsByDestinationRequest.h" +#include "model/ListCustomRoutingPortMappingsByDestinationResult.h" +#include "model/ListDomainsRequest.h" +#include "model/ListDomainsResult.h" #include "model/ListEndpointGroupsRequest.h" #include "model/ListEndpointGroupsResult.h" #include "model/ListForwardingRulesRequest.h" #include "model/ListForwardingRulesResult.h" #include "model/ListIpSetsRequest.h" #include "model/ListIpSetsResult.h" +#include "model/ListIspTypesRequest.h" +#include "model/ListIspTypesResult.h" +#include "model/ListListenerCertificatesRequest.h" +#include "model/ListListenerCertificatesResult.h" #include "model/ListListenersRequest.h" #include "model/ListListenersResult.h" +#include "model/ListSpareIpsRequest.h" +#include "model/ListSpareIpsResult.h" +#include "model/ListSystemSecurityPoliciesRequest.h" +#include "model/ListSystemSecurityPoliciesResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/QueryCrossBorderApprovalStatusRequest.h" +#include "model/QueryCrossBorderApprovalStatusResult.h" #include "model/RemoveEntriesFromAclRequest.h" #include "model/RemoveEntriesFromAclResult.h" #include "model/ReplaceBandwidthPackageRequest.h" #include "model/ReplaceBandwidthPackageResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/UpdateAcceleratorRequest.h" #include "model/UpdateAcceleratorResult.h" +#include "model/UpdateAcceleratorAutoRenewAttributeRequest.h" +#include "model/UpdateAcceleratorAutoRenewAttributeResult.h" +#include "model/UpdateAcceleratorConfirmRequest.h" +#include "model/UpdateAcceleratorConfirmResult.h" +#include "model/UpdateAcceleratorCrossBorderModeRequest.h" +#include "model/UpdateAcceleratorCrossBorderModeResult.h" #include "model/UpdateAclAttributeRequest.h" #include "model/UpdateAclAttributeResult.h" +#include "model/UpdateAdditionalCertificateWithListenerRequest.h" +#include "model/UpdateAdditionalCertificateWithListenerResult.h" +#include "model/UpdateApplicationMonitorRequest.h" +#include "model/UpdateApplicationMonitorResult.h" +#include "model/UpdateBandwidthPackagaAutoRenewAttributeRequest.h" +#include "model/UpdateBandwidthPackagaAutoRenewAttributeResult.h" #include "model/UpdateBandwidthPackageRequest.h" #include "model/UpdateBandwidthPackageResult.h" +#include "model/UpdateBasicAcceleratorRequest.h" +#include "model/UpdateBasicAcceleratorResult.h" +#include "model/UpdateBasicEndpointRequest.h" +#include "model/UpdateBasicEndpointResult.h" +#include "model/UpdateBasicEndpointGroupRequest.h" +#include "model/UpdateBasicEndpointGroupResult.h" +#include "model/UpdateBasicIpSetRequest.h" +#include "model/UpdateBasicIpSetResult.h" +#include "model/UpdateCustomRoutingEndpointGroupAttributeRequest.h" +#include "model/UpdateCustomRoutingEndpointGroupAttributeResult.h" +#include "model/UpdateCustomRoutingEndpointGroupDestinationsRequest.h" +#include "model/UpdateCustomRoutingEndpointGroupDestinationsResult.h" +#include "model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.h" +#include "model/UpdateCustomRoutingEndpointTrafficPoliciesResult.h" +#include "model/UpdateCustomRoutingEndpointsRequest.h" +#include "model/UpdateCustomRoutingEndpointsResult.h" +#include "model/UpdateDomainRequest.h" +#include "model/UpdateDomainResult.h" +#include "model/UpdateDomainStateRequest.h" +#include "model/UpdateDomainStateResult.h" #include "model/UpdateEndpointGroupRequest.h" #include "model/UpdateEndpointGroupResult.h" #include "model/UpdateEndpointGroupAttributeRequest.h" #include "model/UpdateEndpointGroupAttributeResult.h" +#include "model/UpdateEndpointGroupsRequest.h" +#include "model/UpdateEndpointGroupsResult.h" #include "model/UpdateForwardingRulesRequest.h" #include "model/UpdateForwardingRulesResult.h" #include "model/UpdateIpSetRequest.h" @@ -147,6 +337,9 @@ namespace AlibabaCloud typedef Outcome AssociateAclsWithListenerOutcome; typedef std::future AssociateAclsWithListenerOutcomeCallable; typedef std::function&)> AssociateAclsWithListenerAsyncHandler; + typedef Outcome AssociateAdditionalCertificatesWithListenerOutcome; + typedef std::future AssociateAdditionalCertificatesWithListenerOutcomeCallable; + typedef std::function&)> AssociateAdditionalCertificatesWithListenerAsyncHandler; typedef Outcome AttachDdosToAcceleratorOutcome; typedef std::future AttachDdosToAcceleratorOutcomeCallable; typedef std::function&)> AttachDdosToAcceleratorAsyncHandler; @@ -159,6 +352,9 @@ namespace AlibabaCloud typedef Outcome BandwidthPackageRemoveAcceleratorOutcome; typedef std::future BandwidthPackageRemoveAcceleratorOutcomeCallable; typedef std::function&)> BandwidthPackageRemoveAcceleratorAsyncHandler; + typedef Outcome ChangeResourceGroupOutcome; + typedef std::future ChangeResourceGroupOutcomeCallable; + typedef std::function&)> ChangeResourceGroupAsyncHandler; typedef Outcome ConfigEndpointProbeOutcome; typedef std::future ConfigEndpointProbeOutcomeCallable; typedef std::function&)> ConfigEndpointProbeAsyncHandler; @@ -168,12 +364,57 @@ namespace AlibabaCloud typedef Outcome CreateAclOutcome; typedef std::future CreateAclOutcomeCallable; typedef std::function&)> CreateAclAsyncHandler; + typedef Outcome CreateApplicationMonitorOutcome; + typedef std::future CreateApplicationMonitorOutcomeCallable; + typedef std::function&)> CreateApplicationMonitorAsyncHandler; typedef Outcome CreateBandwidthPackageOutcome; typedef std::future CreateBandwidthPackageOutcomeCallable; typedef std::function&)> CreateBandwidthPackageAsyncHandler; + typedef Outcome CreateBasicAccelerateIpOutcome; + typedef std::future CreateBasicAccelerateIpOutcomeCallable; + typedef std::function&)> CreateBasicAccelerateIpAsyncHandler; + typedef Outcome CreateBasicAccelerateIpEndpointRelationOutcome; + typedef std::future CreateBasicAccelerateIpEndpointRelationOutcomeCallable; + typedef std::function&)> CreateBasicAccelerateIpEndpointRelationAsyncHandler; + typedef Outcome CreateBasicAccelerateIpEndpointRelationsOutcome; + typedef std::future CreateBasicAccelerateIpEndpointRelationsOutcomeCallable; + typedef std::function&)> CreateBasicAccelerateIpEndpointRelationsAsyncHandler; + typedef Outcome CreateBasicAcceleratorOutcome; + typedef std::future CreateBasicAcceleratorOutcomeCallable; + typedef std::function&)> CreateBasicAcceleratorAsyncHandler; + typedef Outcome CreateBasicEndpointOutcome; + typedef std::future CreateBasicEndpointOutcomeCallable; + typedef std::function&)> CreateBasicEndpointAsyncHandler; + typedef Outcome CreateBasicEndpointGroupOutcome; + typedef std::future CreateBasicEndpointGroupOutcomeCallable; + typedef std::function&)> CreateBasicEndpointGroupAsyncHandler; + typedef Outcome CreateBasicEndpointsOutcome; + typedef std::future CreateBasicEndpointsOutcomeCallable; + typedef std::function&)> CreateBasicEndpointsAsyncHandler; + typedef Outcome CreateBasicIpSetOutcome; + typedef std::future CreateBasicIpSetOutcomeCallable; + typedef std::function&)> CreateBasicIpSetAsyncHandler; + typedef Outcome CreateCustomRoutingEndpointGroupDestinationsOutcome; + typedef std::future CreateCustomRoutingEndpointGroupDestinationsOutcomeCallable; + typedef std::function&)> CreateCustomRoutingEndpointGroupDestinationsAsyncHandler; + typedef Outcome CreateCustomRoutingEndpointGroupsOutcome; + typedef std::future CreateCustomRoutingEndpointGroupsOutcomeCallable; + typedef std::function&)> CreateCustomRoutingEndpointGroupsAsyncHandler; + typedef Outcome CreateCustomRoutingEndpointTrafficPoliciesOutcome; + typedef std::future CreateCustomRoutingEndpointTrafficPoliciesOutcomeCallable; + typedef std::function&)> CreateCustomRoutingEndpointTrafficPoliciesAsyncHandler; + typedef Outcome CreateCustomRoutingEndpointsOutcome; + typedef std::future CreateCustomRoutingEndpointsOutcomeCallable; + typedef std::function&)> CreateCustomRoutingEndpointsAsyncHandler; + typedef Outcome CreateDomainOutcome; + typedef std::future CreateDomainOutcomeCallable; + typedef std::function&)> CreateDomainAsyncHandler; typedef Outcome CreateEndpointGroupOutcome; typedef std::future CreateEndpointGroupOutcomeCallable; typedef std::function&)> CreateEndpointGroupAsyncHandler; + typedef Outcome CreateEndpointGroupsOutcome; + typedef std::future CreateEndpointGroupsOutcomeCallable; + typedef std::function&)> CreateEndpointGroupsAsyncHandler; typedef Outcome CreateForwardingRulesOutcome; typedef std::future CreateForwardingRulesOutcomeCallable; typedef std::function&)> CreateForwardingRulesAsyncHandler; @@ -183,18 +424,60 @@ namespace AlibabaCloud typedef Outcome CreateListenerOutcome; typedef std::future CreateListenerOutcomeCallable; typedef std::function&)> CreateListenerAsyncHandler; + typedef Outcome CreateSpareIpsOutcome; + typedef std::future CreateSpareIpsOutcomeCallable; + typedef std::function&)> CreateSpareIpsAsyncHandler; typedef Outcome DeleteAcceleratorOutcome; typedef std::future DeleteAcceleratorOutcomeCallable; typedef std::function&)> DeleteAcceleratorAsyncHandler; typedef Outcome DeleteAclOutcome; typedef std::future DeleteAclOutcomeCallable; typedef std::function&)> DeleteAclAsyncHandler; + typedef Outcome DeleteApplicationMonitorOutcome; + typedef std::future DeleteApplicationMonitorOutcomeCallable; + typedef std::function&)> DeleteApplicationMonitorAsyncHandler; typedef Outcome DeleteBandwidthPackageOutcome; typedef std::future DeleteBandwidthPackageOutcomeCallable; typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DeleteBasicAccelerateIpOutcome; + typedef std::future DeleteBasicAccelerateIpOutcomeCallable; + typedef std::function&)> DeleteBasicAccelerateIpAsyncHandler; + typedef Outcome DeleteBasicAccelerateIpEndpointRelationOutcome; + typedef std::future DeleteBasicAccelerateIpEndpointRelationOutcomeCallable; + typedef std::function&)> DeleteBasicAccelerateIpEndpointRelationAsyncHandler; + typedef Outcome DeleteBasicAcceleratorOutcome; + typedef std::future DeleteBasicAcceleratorOutcomeCallable; + typedef std::function&)> DeleteBasicAcceleratorAsyncHandler; + typedef Outcome DeleteBasicEndpointOutcome; + typedef std::future DeleteBasicEndpointOutcomeCallable; + typedef std::function&)> DeleteBasicEndpointAsyncHandler; + typedef Outcome DeleteBasicEndpointGroupOutcome; + typedef std::future DeleteBasicEndpointGroupOutcomeCallable; + typedef std::function&)> DeleteBasicEndpointGroupAsyncHandler; + typedef Outcome DeleteBasicIpSetOutcome; + typedef std::future DeleteBasicIpSetOutcomeCallable; + typedef std::function&)> DeleteBasicIpSetAsyncHandler; + typedef Outcome DeleteCustomRoutingEndpointGroupDestinationsOutcome; + typedef std::future DeleteCustomRoutingEndpointGroupDestinationsOutcomeCallable; + typedef std::function&)> DeleteCustomRoutingEndpointGroupDestinationsAsyncHandler; + typedef Outcome DeleteCustomRoutingEndpointGroupsOutcome; + typedef std::future DeleteCustomRoutingEndpointGroupsOutcomeCallable; + typedef std::function&)> DeleteCustomRoutingEndpointGroupsAsyncHandler; + typedef Outcome DeleteCustomRoutingEndpointTrafficPoliciesOutcome; + typedef std::future DeleteCustomRoutingEndpointTrafficPoliciesOutcomeCallable; + typedef std::function&)> DeleteCustomRoutingEndpointTrafficPoliciesAsyncHandler; + typedef Outcome DeleteCustomRoutingEndpointsOutcome; + typedef std::future DeleteCustomRoutingEndpointsOutcomeCallable; + typedef std::function&)> DeleteCustomRoutingEndpointsAsyncHandler; + typedef Outcome DeleteDomainAcceleratorRelationOutcome; + typedef std::future DeleteDomainAcceleratorRelationOutcomeCallable; + typedef std::function&)> DeleteDomainAcceleratorRelationAsyncHandler; typedef Outcome DeleteEndpointGroupOutcome; typedef std::future DeleteEndpointGroupOutcomeCallable; typedef std::function&)> DeleteEndpointGroupAsyncHandler; + typedef Outcome DeleteEndpointGroupsOutcome; + typedef std::future DeleteEndpointGroupsOutcomeCallable; + typedef std::function&)> DeleteEndpointGroupsAsyncHandler; typedef Outcome DeleteForwardingRulesOutcome; typedef std::future DeleteForwardingRulesOutcomeCallable; typedef std::function&)> DeleteForwardingRulesAsyncHandler; @@ -207,12 +490,42 @@ namespace AlibabaCloud typedef Outcome DeleteListenerOutcome; typedef std::future DeleteListenerOutcomeCallable; typedef std::function&)> DeleteListenerAsyncHandler; + typedef Outcome DeleteSpareIpsOutcome; + typedef std::future DeleteSpareIpsOutcomeCallable; + typedef std::function&)> DeleteSpareIpsAsyncHandler; typedef Outcome DescribeAcceleratorOutcome; typedef std::future DescribeAcceleratorOutcomeCallable; typedef std::function&)> DescribeAcceleratorAsyncHandler; + typedef Outcome DescribeAcceleratorAutoRenewAttributeOutcome; + typedef std::future DescribeAcceleratorAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeAcceleratorAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeApplicationMonitorOutcome; + typedef std::future DescribeApplicationMonitorOutcomeCallable; + typedef std::function&)> DescribeApplicationMonitorAsyncHandler; typedef Outcome DescribeBandwidthPackageOutcome; typedef std::future DescribeBandwidthPackageOutcomeCallable; typedef std::function&)> DescribeBandwidthPackageAsyncHandler; + typedef Outcome DescribeBandwidthPackageAutoRenewAttributeOutcome; + typedef std::future DescribeBandwidthPackageAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackageAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeCommodityOutcome; + typedef std::future DescribeCommodityOutcomeCallable; + typedef std::function&)> DescribeCommodityAsyncHandler; + typedef Outcome DescribeCommodityPriceOutcome; + typedef std::future DescribeCommodityPriceOutcomeCallable; + typedef std::function&)> DescribeCommodityPriceAsyncHandler; + typedef Outcome DescribeCustomRoutingEndPointTrafficPolicyOutcome; + typedef std::future DescribeCustomRoutingEndPointTrafficPolicyOutcomeCallable; + typedef std::function&)> DescribeCustomRoutingEndPointTrafficPolicyAsyncHandler; + typedef Outcome DescribeCustomRoutingEndpointOutcome; + typedef std::future DescribeCustomRoutingEndpointOutcomeCallable; + typedef std::function&)> DescribeCustomRoutingEndpointAsyncHandler; + typedef Outcome DescribeCustomRoutingEndpointGroupOutcome; + typedef std::future DescribeCustomRoutingEndpointGroupOutcomeCallable; + typedef std::function&)> DescribeCustomRoutingEndpointGroupAsyncHandler; + typedef Outcome DescribeCustomRoutingEndpointGroupDestinationsOutcome; + typedef std::future DescribeCustomRoutingEndpointGroupDestinationsOutcomeCallable; + typedef std::function&)> DescribeCustomRoutingEndpointGroupDestinationsAsyncHandler; typedef Outcome DescribeEndpointGroupOutcome; typedef std::future DescribeEndpointGroupOutcomeCallable; typedef std::function&)> DescribeEndpointGroupAsyncHandler; @@ -231,12 +544,57 @@ namespace AlibabaCloud typedef Outcome DetachLogStoreFromEndpointGroupOutcome; typedef std::future DetachLogStoreFromEndpointGroupOutcomeCallable; typedef std::function&)> DetachLogStoreFromEndpointGroupAsyncHandler; + typedef Outcome DetectApplicationMonitorOutcome; + typedef std::future DetectApplicationMonitorOutcomeCallable; + typedef std::function&)> DetectApplicationMonitorAsyncHandler; + typedef Outcome DisableApplicationMonitorOutcome; + typedef std::future DisableApplicationMonitorOutcomeCallable; + typedef std::function&)> DisableApplicationMonitorAsyncHandler; typedef Outcome DissociateAclsFromListenerOutcome; typedef std::future DissociateAclsFromListenerOutcomeCallable; typedef std::function&)> DissociateAclsFromListenerAsyncHandler; + typedef Outcome DissociateAdditionalCertificatesFromListenerOutcome; + typedef std::future DissociateAdditionalCertificatesFromListenerOutcomeCallable; + typedef std::function&)> DissociateAdditionalCertificatesFromListenerAsyncHandler; + typedef Outcome EnableApplicationMonitorOutcome; + typedef std::future EnableApplicationMonitorOutcomeCallable; + typedef std::function&)> EnableApplicationMonitorAsyncHandler; typedef Outcome GetAclOutcome; typedef std::future GetAclOutcomeCallable; typedef std::function&)> GetAclAsyncHandler; + typedef Outcome GetBasicAccelerateIpOutcome; + typedef std::future GetBasicAccelerateIpOutcomeCallable; + typedef std::function&)> GetBasicAccelerateIpAsyncHandler; + typedef Outcome GetBasicAccelerateIpEndpointRelationOutcome; + typedef std::future GetBasicAccelerateIpEndpointRelationOutcomeCallable; + typedef std::function&)> GetBasicAccelerateIpEndpointRelationAsyncHandler; + typedef Outcome GetBasicAccelerateIpIdleCountOutcome; + typedef std::future GetBasicAccelerateIpIdleCountOutcomeCallable; + typedef std::function&)> GetBasicAccelerateIpIdleCountAsyncHandler; + typedef Outcome GetBasicAcceleratorOutcome; + typedef std::future GetBasicAcceleratorOutcomeCallable; + typedef std::function&)> GetBasicAcceleratorAsyncHandler; + typedef Outcome GetBasicEndpointOutcome; + typedef std::future GetBasicEndpointOutcomeCallable; + typedef std::function&)> GetBasicEndpointAsyncHandler; + typedef Outcome GetBasicEndpointGroupOutcome; + typedef std::future GetBasicEndpointGroupOutcomeCallable; + typedef std::function&)> GetBasicEndpointGroupAsyncHandler; + typedef Outcome GetBasicIpSetOutcome; + typedef std::future GetBasicIpSetOutcomeCallable; + typedef std::function&)> GetBasicIpSetAsyncHandler; + typedef Outcome GetHealthStatusOutcome; + typedef std::future GetHealthStatusOutcomeCallable; + typedef std::function&)> GetHealthStatusAsyncHandler; + typedef Outcome GetInvalidDomainCountOutcome; + typedef std::future GetInvalidDomainCountOutcomeCallable; + typedef std::function&)> GetInvalidDomainCountAsyncHandler; + typedef Outcome GetIpsetsBandwidthLimitOutcome; + typedef std::future GetIpsetsBandwidthLimitOutcomeCallable; + typedef std::function&)> GetIpsetsBandwidthLimitAsyncHandler; + typedef Outcome GetSpareIpOutcome; + typedef std::future GetSpareIpOutcomeCallable; + typedef std::function&)> GetSpareIpAsyncHandler; typedef Outcome ListAccelerateAreasOutcome; typedef std::future ListAccelerateAreasOutcomeCallable; typedef std::function&)> ListAccelerateAreasAsyncHandler; @@ -246,6 +604,12 @@ namespace AlibabaCloud typedef Outcome ListAclsOutcome; typedef std::future ListAclsOutcomeCallable; typedef std::function&)> ListAclsAsyncHandler; + typedef Outcome ListApplicationMonitorOutcome; + typedef std::future ListApplicationMonitorOutcomeCallable; + typedef std::function&)> ListApplicationMonitorAsyncHandler; + typedef Outcome ListApplicationMonitorDetectResultOutcome; + typedef std::future ListApplicationMonitorDetectResultOutcomeCallable; + typedef std::function&)> ListApplicationMonitorDetectResultAsyncHandler; typedef Outcome ListAvailableAccelerateAreasOutcome; typedef std::future ListAvailableAccelerateAreasOutcomeCallable; typedef std::function&)> ListAvailableAccelerateAreasAsyncHandler; @@ -258,9 +622,45 @@ namespace AlibabaCloud typedef Outcome ListBandwidthackagesOutcome; typedef std::future ListBandwidthackagesOutcomeCallable; typedef std::function&)> ListBandwidthackagesAsyncHandler; + typedef Outcome ListBasicAccelerateIpEndpointRelationsOutcome; + typedef std::future ListBasicAccelerateIpEndpointRelationsOutcomeCallable; + typedef std::function&)> ListBasicAccelerateIpEndpointRelationsAsyncHandler; + typedef Outcome ListBasicAccelerateIpsOutcome; + typedef std::future ListBasicAccelerateIpsOutcomeCallable; + typedef std::function&)> ListBasicAccelerateIpsAsyncHandler; + typedef Outcome ListBasicAcceleratorsOutcome; + typedef std::future ListBasicAcceleratorsOutcomeCallable; + typedef std::function&)> ListBasicAcceleratorsAsyncHandler; + typedef Outcome ListBasicEndpointsOutcome; + typedef std::future ListBasicEndpointsOutcomeCallable; + typedef std::function&)> ListBasicEndpointsAsyncHandler; typedef Outcome ListBusiRegionsOutcome; typedef std::future ListBusiRegionsOutcomeCallable; typedef std::function&)> ListBusiRegionsAsyncHandler; + typedef Outcome ListCommonAreasOutcome; + typedef std::future ListCommonAreasOutcomeCallable; + typedef std::function&)> ListCommonAreasAsyncHandler; + typedef Outcome ListCustomRoutingEndpointGroupDestinationsOutcome; + typedef std::future ListCustomRoutingEndpointGroupDestinationsOutcomeCallable; + typedef std::function&)> ListCustomRoutingEndpointGroupDestinationsAsyncHandler; + typedef Outcome ListCustomRoutingEndpointGroupsOutcome; + typedef std::future ListCustomRoutingEndpointGroupsOutcomeCallable; + typedef std::function&)> ListCustomRoutingEndpointGroupsAsyncHandler; + typedef Outcome ListCustomRoutingEndpointTrafficPoliciesOutcome; + typedef std::future ListCustomRoutingEndpointTrafficPoliciesOutcomeCallable; + typedef std::function&)> ListCustomRoutingEndpointTrafficPoliciesAsyncHandler; + typedef Outcome ListCustomRoutingEndpointsOutcome; + typedef std::future ListCustomRoutingEndpointsOutcomeCallable; + typedef std::function&)> ListCustomRoutingEndpointsAsyncHandler; + typedef Outcome ListCustomRoutingPortMappingsOutcome; + typedef std::future ListCustomRoutingPortMappingsOutcomeCallable; + typedef std::function&)> ListCustomRoutingPortMappingsAsyncHandler; + typedef Outcome ListCustomRoutingPortMappingsByDestinationOutcome; + typedef std::future ListCustomRoutingPortMappingsByDestinationOutcomeCallable; + typedef std::function&)> ListCustomRoutingPortMappingsByDestinationAsyncHandler; + typedef Outcome ListDomainsOutcome; + typedef std::future ListDomainsOutcomeCallable; + typedef std::function&)> ListDomainsAsyncHandler; typedef Outcome ListEndpointGroupsOutcome; typedef std::future ListEndpointGroupsOutcomeCallable; typedef std::function&)> ListEndpointGroupsAsyncHandler; @@ -270,30 +670,105 @@ namespace AlibabaCloud typedef Outcome ListIpSetsOutcome; typedef std::future ListIpSetsOutcomeCallable; typedef std::function&)> ListIpSetsAsyncHandler; + typedef Outcome ListIspTypesOutcome; + typedef std::future ListIspTypesOutcomeCallable; + typedef std::function&)> ListIspTypesAsyncHandler; + typedef Outcome ListListenerCertificatesOutcome; + typedef std::future ListListenerCertificatesOutcomeCallable; + typedef std::function&)> ListListenerCertificatesAsyncHandler; typedef Outcome ListListenersOutcome; typedef std::future ListListenersOutcomeCallable; typedef std::function&)> ListListenersAsyncHandler; + typedef Outcome ListSpareIpsOutcome; + typedef std::future ListSpareIpsOutcomeCallable; + typedef std::function&)> ListSpareIpsAsyncHandler; + typedef Outcome ListSystemSecurityPoliciesOutcome; + typedef std::future ListSystemSecurityPoliciesOutcomeCallable; + typedef std::function&)> ListSystemSecurityPoliciesAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome QueryCrossBorderApprovalStatusOutcome; + typedef std::future QueryCrossBorderApprovalStatusOutcomeCallable; + typedef std::function&)> QueryCrossBorderApprovalStatusAsyncHandler; typedef Outcome RemoveEntriesFromAclOutcome; typedef std::future RemoveEntriesFromAclOutcomeCallable; typedef std::function&)> RemoveEntriesFromAclAsyncHandler; typedef Outcome ReplaceBandwidthPackageOutcome; typedef std::future ReplaceBandwidthPackageOutcomeCallable; typedef std::function&)> ReplaceBandwidthPackageAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome UpdateAcceleratorOutcome; typedef std::future UpdateAcceleratorOutcomeCallable; typedef std::function&)> UpdateAcceleratorAsyncHandler; + typedef Outcome UpdateAcceleratorAutoRenewAttributeOutcome; + typedef std::future UpdateAcceleratorAutoRenewAttributeOutcomeCallable; + typedef std::function&)> UpdateAcceleratorAutoRenewAttributeAsyncHandler; + typedef Outcome UpdateAcceleratorConfirmOutcome; + typedef std::future UpdateAcceleratorConfirmOutcomeCallable; + typedef std::function&)> UpdateAcceleratorConfirmAsyncHandler; + typedef Outcome UpdateAcceleratorCrossBorderModeOutcome; + typedef std::future UpdateAcceleratorCrossBorderModeOutcomeCallable; + typedef std::function&)> UpdateAcceleratorCrossBorderModeAsyncHandler; typedef Outcome UpdateAclAttributeOutcome; typedef std::future UpdateAclAttributeOutcomeCallable; typedef std::function&)> UpdateAclAttributeAsyncHandler; + typedef Outcome UpdateAdditionalCertificateWithListenerOutcome; + typedef std::future UpdateAdditionalCertificateWithListenerOutcomeCallable; + typedef std::function&)> UpdateAdditionalCertificateWithListenerAsyncHandler; + typedef Outcome UpdateApplicationMonitorOutcome; + typedef std::future UpdateApplicationMonitorOutcomeCallable; + typedef std::function&)> UpdateApplicationMonitorAsyncHandler; + typedef Outcome UpdateBandwidthPackagaAutoRenewAttributeOutcome; + typedef std::future UpdateBandwidthPackagaAutoRenewAttributeOutcomeCallable; + typedef std::function&)> UpdateBandwidthPackagaAutoRenewAttributeAsyncHandler; typedef Outcome UpdateBandwidthPackageOutcome; typedef std::future UpdateBandwidthPackageOutcomeCallable; typedef std::function&)> UpdateBandwidthPackageAsyncHandler; + typedef Outcome UpdateBasicAcceleratorOutcome; + typedef std::future UpdateBasicAcceleratorOutcomeCallable; + typedef std::function&)> UpdateBasicAcceleratorAsyncHandler; + typedef Outcome UpdateBasicEndpointOutcome; + typedef std::future UpdateBasicEndpointOutcomeCallable; + typedef std::function&)> UpdateBasicEndpointAsyncHandler; + typedef Outcome UpdateBasicEndpointGroupOutcome; + typedef std::future UpdateBasicEndpointGroupOutcomeCallable; + typedef std::function&)> UpdateBasicEndpointGroupAsyncHandler; + typedef Outcome UpdateBasicIpSetOutcome; + typedef std::future UpdateBasicIpSetOutcomeCallable; + typedef std::function&)> UpdateBasicIpSetAsyncHandler; + typedef Outcome UpdateCustomRoutingEndpointGroupAttributeOutcome; + typedef std::future UpdateCustomRoutingEndpointGroupAttributeOutcomeCallable; + typedef std::function&)> UpdateCustomRoutingEndpointGroupAttributeAsyncHandler; + typedef Outcome UpdateCustomRoutingEndpointGroupDestinationsOutcome; + typedef std::future UpdateCustomRoutingEndpointGroupDestinationsOutcomeCallable; + typedef std::function&)> UpdateCustomRoutingEndpointGroupDestinationsAsyncHandler; + typedef Outcome UpdateCustomRoutingEndpointTrafficPoliciesOutcome; + typedef std::future UpdateCustomRoutingEndpointTrafficPoliciesOutcomeCallable; + typedef std::function&)> UpdateCustomRoutingEndpointTrafficPoliciesAsyncHandler; + typedef Outcome UpdateCustomRoutingEndpointsOutcome; + typedef std::future UpdateCustomRoutingEndpointsOutcomeCallable; + typedef std::function&)> UpdateCustomRoutingEndpointsAsyncHandler; + typedef Outcome UpdateDomainOutcome; + typedef std::future UpdateDomainOutcomeCallable; + typedef std::function&)> UpdateDomainAsyncHandler; + typedef Outcome UpdateDomainStateOutcome; + typedef std::future UpdateDomainStateOutcomeCallable; + typedef std::function&)> UpdateDomainStateAsyncHandler; typedef Outcome UpdateEndpointGroupOutcome; typedef std::future UpdateEndpointGroupOutcomeCallable; typedef std::function&)> UpdateEndpointGroupAsyncHandler; typedef Outcome UpdateEndpointGroupAttributeOutcome; typedef std::future UpdateEndpointGroupAttributeOutcomeCallable; typedef std::function&)> UpdateEndpointGroupAttributeAsyncHandler; + typedef Outcome UpdateEndpointGroupsOutcome; + typedef std::future UpdateEndpointGroupsOutcomeCallable; + typedef std::function&)> UpdateEndpointGroupsAsyncHandler; typedef Outcome UpdateForwardingRulesOutcome; typedef std::future UpdateForwardingRulesOutcomeCallable; typedef std::function&)> UpdateForwardingRulesAsyncHandler; @@ -317,6 +792,9 @@ namespace AlibabaCloud 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; AttachDdosToAcceleratorOutcome attachDdosToAccelerator(const Model::AttachDdosToAcceleratorRequest &request)const; void attachDdosToAcceleratorAsync(const Model::AttachDdosToAcceleratorRequest& request, const AttachDdosToAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachDdosToAcceleratorOutcomeCallable attachDdosToAcceleratorCallable(const Model::AttachDdosToAcceleratorRequest& request) const; @@ -329,6 +807,9 @@ namespace AlibabaCloud BandwidthPackageRemoveAcceleratorOutcome bandwidthPackageRemoveAccelerator(const Model::BandwidthPackageRemoveAcceleratorRequest &request)const; void bandwidthPackageRemoveAcceleratorAsync(const Model::BandwidthPackageRemoveAcceleratorRequest& request, const BandwidthPackageRemoveAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BandwidthPackageRemoveAcceleratorOutcomeCallable bandwidthPackageRemoveAcceleratorCallable(const Model::BandwidthPackageRemoveAcceleratorRequest& request) const; + ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; + void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; ConfigEndpointProbeOutcome configEndpointProbe(const Model::ConfigEndpointProbeRequest &request)const; void configEndpointProbeAsync(const Model::ConfigEndpointProbeRequest& request, const ConfigEndpointProbeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfigEndpointProbeOutcomeCallable configEndpointProbeCallable(const Model::ConfigEndpointProbeRequest& request) const; @@ -338,12 +819,57 @@ namespace AlibabaCloud 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; + CreateApplicationMonitorOutcome createApplicationMonitor(const Model::CreateApplicationMonitorRequest &request)const; + void createApplicationMonitorAsync(const Model::CreateApplicationMonitorRequest& request, const CreateApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationMonitorOutcomeCallable createApplicationMonitorCallable(const Model::CreateApplicationMonitorRequest& request) const; CreateBandwidthPackageOutcome createBandwidthPackage(const Model::CreateBandwidthPackageRequest &request)const; void createBandwidthPackageAsync(const Model::CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBandwidthPackageOutcomeCallable createBandwidthPackageCallable(const Model::CreateBandwidthPackageRequest& request) const; + CreateBasicAccelerateIpOutcome createBasicAccelerateIp(const Model::CreateBasicAccelerateIpRequest &request)const; + void createBasicAccelerateIpAsync(const Model::CreateBasicAccelerateIpRequest& request, const CreateBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicAccelerateIpOutcomeCallable createBasicAccelerateIpCallable(const Model::CreateBasicAccelerateIpRequest& request) const; + CreateBasicAccelerateIpEndpointRelationOutcome createBasicAccelerateIpEndpointRelation(const Model::CreateBasicAccelerateIpEndpointRelationRequest &request)const; + void createBasicAccelerateIpEndpointRelationAsync(const Model::CreateBasicAccelerateIpEndpointRelationRequest& request, const CreateBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicAccelerateIpEndpointRelationOutcomeCallable createBasicAccelerateIpEndpointRelationCallable(const Model::CreateBasicAccelerateIpEndpointRelationRequest& request) const; + CreateBasicAccelerateIpEndpointRelationsOutcome createBasicAccelerateIpEndpointRelations(const Model::CreateBasicAccelerateIpEndpointRelationsRequest &request)const; + void createBasicAccelerateIpEndpointRelationsAsync(const Model::CreateBasicAccelerateIpEndpointRelationsRequest& request, const CreateBasicAccelerateIpEndpointRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicAccelerateIpEndpointRelationsOutcomeCallable createBasicAccelerateIpEndpointRelationsCallable(const Model::CreateBasicAccelerateIpEndpointRelationsRequest& request) const; + CreateBasicAcceleratorOutcome createBasicAccelerator(const Model::CreateBasicAcceleratorRequest &request)const; + void createBasicAcceleratorAsync(const Model::CreateBasicAcceleratorRequest& request, const CreateBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicAcceleratorOutcomeCallable createBasicAcceleratorCallable(const Model::CreateBasicAcceleratorRequest& request) const; + CreateBasicEndpointOutcome createBasicEndpoint(const Model::CreateBasicEndpointRequest &request)const; + void createBasicEndpointAsync(const Model::CreateBasicEndpointRequest& request, const CreateBasicEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicEndpointOutcomeCallable createBasicEndpointCallable(const Model::CreateBasicEndpointRequest& request) const; + CreateBasicEndpointGroupOutcome createBasicEndpointGroup(const Model::CreateBasicEndpointGroupRequest &request)const; + void createBasicEndpointGroupAsync(const Model::CreateBasicEndpointGroupRequest& request, const CreateBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicEndpointGroupOutcomeCallable createBasicEndpointGroupCallable(const Model::CreateBasicEndpointGroupRequest& request) const; + CreateBasicEndpointsOutcome createBasicEndpoints(const Model::CreateBasicEndpointsRequest &request)const; + void createBasicEndpointsAsync(const Model::CreateBasicEndpointsRequest& request, const CreateBasicEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicEndpointsOutcomeCallable createBasicEndpointsCallable(const Model::CreateBasicEndpointsRequest& request) const; + CreateBasicIpSetOutcome createBasicIpSet(const Model::CreateBasicIpSetRequest &request)const; + void createBasicIpSetAsync(const Model::CreateBasicIpSetRequest& request, const CreateBasicIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBasicIpSetOutcomeCallable createBasicIpSetCallable(const Model::CreateBasicIpSetRequest& request) const; + CreateCustomRoutingEndpointGroupDestinationsOutcome createCustomRoutingEndpointGroupDestinations(const Model::CreateCustomRoutingEndpointGroupDestinationsRequest &request)const; + void createCustomRoutingEndpointGroupDestinationsAsync(const Model::CreateCustomRoutingEndpointGroupDestinationsRequest& request, const CreateCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomRoutingEndpointGroupDestinationsOutcomeCallable createCustomRoutingEndpointGroupDestinationsCallable(const Model::CreateCustomRoutingEndpointGroupDestinationsRequest& request) const; + CreateCustomRoutingEndpointGroupsOutcome createCustomRoutingEndpointGroups(const Model::CreateCustomRoutingEndpointGroupsRequest &request)const; + void createCustomRoutingEndpointGroupsAsync(const Model::CreateCustomRoutingEndpointGroupsRequest& request, const CreateCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomRoutingEndpointGroupsOutcomeCallable createCustomRoutingEndpointGroupsCallable(const Model::CreateCustomRoutingEndpointGroupsRequest& request) const; + CreateCustomRoutingEndpointTrafficPoliciesOutcome createCustomRoutingEndpointTrafficPolicies(const Model::CreateCustomRoutingEndpointTrafficPoliciesRequest &request)const; + void createCustomRoutingEndpointTrafficPoliciesAsync(const Model::CreateCustomRoutingEndpointTrafficPoliciesRequest& request, const CreateCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomRoutingEndpointTrafficPoliciesOutcomeCallable createCustomRoutingEndpointTrafficPoliciesCallable(const Model::CreateCustomRoutingEndpointTrafficPoliciesRequest& request) const; + CreateCustomRoutingEndpointsOutcome createCustomRoutingEndpoints(const Model::CreateCustomRoutingEndpointsRequest &request)const; + void createCustomRoutingEndpointsAsync(const Model::CreateCustomRoutingEndpointsRequest& request, const CreateCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomRoutingEndpointsOutcomeCallable createCustomRoutingEndpointsCallable(const Model::CreateCustomRoutingEndpointsRequest& request) const; + CreateDomainOutcome createDomain(const Model::CreateDomainRequest &request)const; + void createDomainAsync(const Model::CreateDomainRequest& request, const CreateDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDomainOutcomeCallable createDomainCallable(const Model::CreateDomainRequest& request) const; CreateEndpointGroupOutcome createEndpointGroup(const Model::CreateEndpointGroupRequest &request)const; void createEndpointGroupAsync(const Model::CreateEndpointGroupRequest& request, const CreateEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEndpointGroupOutcomeCallable createEndpointGroupCallable(const Model::CreateEndpointGroupRequest& request) const; + CreateEndpointGroupsOutcome createEndpointGroups(const Model::CreateEndpointGroupsRequest &request)const; + void createEndpointGroupsAsync(const Model::CreateEndpointGroupsRequest& request, const CreateEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEndpointGroupsOutcomeCallable createEndpointGroupsCallable(const Model::CreateEndpointGroupsRequest& request) const; CreateForwardingRulesOutcome createForwardingRules(const Model::CreateForwardingRulesRequest &request)const; void createForwardingRulesAsync(const Model::CreateForwardingRulesRequest& request, const CreateForwardingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateForwardingRulesOutcomeCallable createForwardingRulesCallable(const Model::CreateForwardingRulesRequest& request) const; @@ -353,18 +879,60 @@ namespace AlibabaCloud 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; + CreateSpareIpsOutcome createSpareIps(const Model::CreateSpareIpsRequest &request)const; + void createSpareIpsAsync(const Model::CreateSpareIpsRequest& request, const CreateSpareIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSpareIpsOutcomeCallable createSpareIpsCallable(const Model::CreateSpareIpsRequest& request) const; DeleteAcceleratorOutcome deleteAccelerator(const Model::DeleteAcceleratorRequest &request)const; void deleteAcceleratorAsync(const Model::DeleteAcceleratorRequest& request, const DeleteAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAcceleratorOutcomeCallable deleteAcceleratorCallable(const Model::DeleteAcceleratorRequest& 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; + DeleteApplicationMonitorOutcome deleteApplicationMonitor(const Model::DeleteApplicationMonitorRequest &request)const; + void deleteApplicationMonitorAsync(const Model::DeleteApplicationMonitorRequest& request, const DeleteApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationMonitorOutcomeCallable deleteApplicationMonitorCallable(const Model::DeleteApplicationMonitorRequest& request) const; DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; + DeleteBasicAccelerateIpOutcome deleteBasicAccelerateIp(const Model::DeleteBasicAccelerateIpRequest &request)const; + void deleteBasicAccelerateIpAsync(const Model::DeleteBasicAccelerateIpRequest& request, const DeleteBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicAccelerateIpOutcomeCallable deleteBasicAccelerateIpCallable(const Model::DeleteBasicAccelerateIpRequest& request) const; + DeleteBasicAccelerateIpEndpointRelationOutcome deleteBasicAccelerateIpEndpointRelation(const Model::DeleteBasicAccelerateIpEndpointRelationRequest &request)const; + void deleteBasicAccelerateIpEndpointRelationAsync(const Model::DeleteBasicAccelerateIpEndpointRelationRequest& request, const DeleteBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicAccelerateIpEndpointRelationOutcomeCallable deleteBasicAccelerateIpEndpointRelationCallable(const Model::DeleteBasicAccelerateIpEndpointRelationRequest& request) const; + DeleteBasicAcceleratorOutcome deleteBasicAccelerator(const Model::DeleteBasicAcceleratorRequest &request)const; + void deleteBasicAcceleratorAsync(const Model::DeleteBasicAcceleratorRequest& request, const DeleteBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicAcceleratorOutcomeCallable deleteBasicAcceleratorCallable(const Model::DeleteBasicAcceleratorRequest& request) const; + DeleteBasicEndpointOutcome deleteBasicEndpoint(const Model::DeleteBasicEndpointRequest &request)const; + void deleteBasicEndpointAsync(const Model::DeleteBasicEndpointRequest& request, const DeleteBasicEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicEndpointOutcomeCallable deleteBasicEndpointCallable(const Model::DeleteBasicEndpointRequest& request) const; + DeleteBasicEndpointGroupOutcome deleteBasicEndpointGroup(const Model::DeleteBasicEndpointGroupRequest &request)const; + void deleteBasicEndpointGroupAsync(const Model::DeleteBasicEndpointGroupRequest& request, const DeleteBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicEndpointGroupOutcomeCallable deleteBasicEndpointGroupCallable(const Model::DeleteBasicEndpointGroupRequest& request) const; + DeleteBasicIpSetOutcome deleteBasicIpSet(const Model::DeleteBasicIpSetRequest &request)const; + void deleteBasicIpSetAsync(const Model::DeleteBasicIpSetRequest& request, const DeleteBasicIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBasicIpSetOutcomeCallable deleteBasicIpSetCallable(const Model::DeleteBasicIpSetRequest& request) const; + DeleteCustomRoutingEndpointGroupDestinationsOutcome deleteCustomRoutingEndpointGroupDestinations(const Model::DeleteCustomRoutingEndpointGroupDestinationsRequest &request)const; + void deleteCustomRoutingEndpointGroupDestinationsAsync(const Model::DeleteCustomRoutingEndpointGroupDestinationsRequest& request, const DeleteCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomRoutingEndpointGroupDestinationsOutcomeCallable deleteCustomRoutingEndpointGroupDestinationsCallable(const Model::DeleteCustomRoutingEndpointGroupDestinationsRequest& request) const; + DeleteCustomRoutingEndpointGroupsOutcome deleteCustomRoutingEndpointGroups(const Model::DeleteCustomRoutingEndpointGroupsRequest &request)const; + void deleteCustomRoutingEndpointGroupsAsync(const Model::DeleteCustomRoutingEndpointGroupsRequest& request, const DeleteCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomRoutingEndpointGroupsOutcomeCallable deleteCustomRoutingEndpointGroupsCallable(const Model::DeleteCustomRoutingEndpointGroupsRequest& request) const; + DeleteCustomRoutingEndpointTrafficPoliciesOutcome deleteCustomRoutingEndpointTrafficPolicies(const Model::DeleteCustomRoutingEndpointTrafficPoliciesRequest &request)const; + void deleteCustomRoutingEndpointTrafficPoliciesAsync(const Model::DeleteCustomRoutingEndpointTrafficPoliciesRequest& request, const DeleteCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomRoutingEndpointTrafficPoliciesOutcomeCallable deleteCustomRoutingEndpointTrafficPoliciesCallable(const Model::DeleteCustomRoutingEndpointTrafficPoliciesRequest& request) const; + DeleteCustomRoutingEndpointsOutcome deleteCustomRoutingEndpoints(const Model::DeleteCustomRoutingEndpointsRequest &request)const; + void deleteCustomRoutingEndpointsAsync(const Model::DeleteCustomRoutingEndpointsRequest& request, const DeleteCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCustomRoutingEndpointsOutcomeCallable deleteCustomRoutingEndpointsCallable(const Model::DeleteCustomRoutingEndpointsRequest& request) const; + DeleteDomainAcceleratorRelationOutcome deleteDomainAcceleratorRelation(const Model::DeleteDomainAcceleratorRelationRequest &request)const; + void deleteDomainAcceleratorRelationAsync(const Model::DeleteDomainAcceleratorRelationRequest& request, const DeleteDomainAcceleratorRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainAcceleratorRelationOutcomeCallable deleteDomainAcceleratorRelationCallable(const Model::DeleteDomainAcceleratorRelationRequest& request) const; DeleteEndpointGroupOutcome deleteEndpointGroup(const Model::DeleteEndpointGroupRequest &request)const; void deleteEndpointGroupAsync(const Model::DeleteEndpointGroupRequest& request, const DeleteEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteEndpointGroupOutcomeCallable deleteEndpointGroupCallable(const Model::DeleteEndpointGroupRequest& request) const; + DeleteEndpointGroupsOutcome deleteEndpointGroups(const Model::DeleteEndpointGroupsRequest &request)const; + void deleteEndpointGroupsAsync(const Model::DeleteEndpointGroupsRequest& request, const DeleteEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEndpointGroupsOutcomeCallable deleteEndpointGroupsCallable(const Model::DeleteEndpointGroupsRequest& request) const; DeleteForwardingRulesOutcome deleteForwardingRules(const Model::DeleteForwardingRulesRequest &request)const; void deleteForwardingRulesAsync(const Model::DeleteForwardingRulesRequest& request, const DeleteForwardingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteForwardingRulesOutcomeCallable deleteForwardingRulesCallable(const Model::DeleteForwardingRulesRequest& request) const; @@ -377,12 +945,42 @@ namespace AlibabaCloud 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; + DeleteSpareIpsOutcome deleteSpareIps(const Model::DeleteSpareIpsRequest &request)const; + void deleteSpareIpsAsync(const Model::DeleteSpareIpsRequest& request, const DeleteSpareIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSpareIpsOutcomeCallable deleteSpareIpsCallable(const Model::DeleteSpareIpsRequest& request) const; DescribeAcceleratorOutcome describeAccelerator(const Model::DescribeAcceleratorRequest &request)const; void describeAcceleratorAsync(const Model::DescribeAcceleratorRequest& request, const DescribeAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAcceleratorOutcomeCallable describeAcceleratorCallable(const Model::DescribeAcceleratorRequest& request) const; + DescribeAcceleratorAutoRenewAttributeOutcome describeAcceleratorAutoRenewAttribute(const Model::DescribeAcceleratorAutoRenewAttributeRequest &request)const; + void describeAcceleratorAutoRenewAttributeAsync(const Model::DescribeAcceleratorAutoRenewAttributeRequest& request, const DescribeAcceleratorAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAcceleratorAutoRenewAttributeOutcomeCallable describeAcceleratorAutoRenewAttributeCallable(const Model::DescribeAcceleratorAutoRenewAttributeRequest& request) const; + DescribeApplicationMonitorOutcome describeApplicationMonitor(const Model::DescribeApplicationMonitorRequest &request)const; + void describeApplicationMonitorAsync(const Model::DescribeApplicationMonitorRequest& request, const DescribeApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationMonitorOutcomeCallable describeApplicationMonitorCallable(const Model::DescribeApplicationMonitorRequest& request) const; DescribeBandwidthPackageOutcome describeBandwidthPackage(const Model::DescribeBandwidthPackageRequest &request)const; void describeBandwidthPackageAsync(const Model::DescribeBandwidthPackageRequest& request, const DescribeBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBandwidthPackageOutcomeCallable describeBandwidthPackageCallable(const Model::DescribeBandwidthPackageRequest& request) const; + DescribeBandwidthPackageAutoRenewAttributeOutcome describeBandwidthPackageAutoRenewAttribute(const Model::DescribeBandwidthPackageAutoRenewAttributeRequest &request)const; + void describeBandwidthPackageAutoRenewAttributeAsync(const Model::DescribeBandwidthPackageAutoRenewAttributeRequest& request, const DescribeBandwidthPackageAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwidthPackageAutoRenewAttributeOutcomeCallable describeBandwidthPackageAutoRenewAttributeCallable(const Model::DescribeBandwidthPackageAutoRenewAttributeRequest& request) const; + DescribeCommodityOutcome describeCommodity(const Model::DescribeCommodityRequest &request)const; + void describeCommodityAsync(const Model::DescribeCommodityRequest& request, const DescribeCommodityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCommodityOutcomeCallable describeCommodityCallable(const Model::DescribeCommodityRequest& request) const; + DescribeCommodityPriceOutcome describeCommodityPrice(const Model::DescribeCommodityPriceRequest &request)const; + void describeCommodityPriceAsync(const Model::DescribeCommodityPriceRequest& request, const DescribeCommodityPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCommodityPriceOutcomeCallable describeCommodityPriceCallable(const Model::DescribeCommodityPriceRequest& request) const; + DescribeCustomRoutingEndPointTrafficPolicyOutcome describeCustomRoutingEndPointTrafficPolicy(const Model::DescribeCustomRoutingEndPointTrafficPolicyRequest &request)const; + void describeCustomRoutingEndPointTrafficPolicyAsync(const Model::DescribeCustomRoutingEndPointTrafficPolicyRequest& request, const DescribeCustomRoutingEndPointTrafficPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomRoutingEndPointTrafficPolicyOutcomeCallable describeCustomRoutingEndPointTrafficPolicyCallable(const Model::DescribeCustomRoutingEndPointTrafficPolicyRequest& request) const; + DescribeCustomRoutingEndpointOutcome describeCustomRoutingEndpoint(const Model::DescribeCustomRoutingEndpointRequest &request)const; + void describeCustomRoutingEndpointAsync(const Model::DescribeCustomRoutingEndpointRequest& request, const DescribeCustomRoutingEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomRoutingEndpointOutcomeCallable describeCustomRoutingEndpointCallable(const Model::DescribeCustomRoutingEndpointRequest& request) const; + DescribeCustomRoutingEndpointGroupOutcome describeCustomRoutingEndpointGroup(const Model::DescribeCustomRoutingEndpointGroupRequest &request)const; + void describeCustomRoutingEndpointGroupAsync(const Model::DescribeCustomRoutingEndpointGroupRequest& request, const DescribeCustomRoutingEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomRoutingEndpointGroupOutcomeCallable describeCustomRoutingEndpointGroupCallable(const Model::DescribeCustomRoutingEndpointGroupRequest& request) const; + DescribeCustomRoutingEndpointGroupDestinationsOutcome describeCustomRoutingEndpointGroupDestinations(const Model::DescribeCustomRoutingEndpointGroupDestinationsRequest &request)const; + void describeCustomRoutingEndpointGroupDestinationsAsync(const Model::DescribeCustomRoutingEndpointGroupDestinationsRequest& request, const DescribeCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomRoutingEndpointGroupDestinationsOutcomeCallable describeCustomRoutingEndpointGroupDestinationsCallable(const Model::DescribeCustomRoutingEndpointGroupDestinationsRequest& request) const; DescribeEndpointGroupOutcome describeEndpointGroup(const Model::DescribeEndpointGroupRequest &request)const; void describeEndpointGroupAsync(const Model::DescribeEndpointGroupRequest& request, const DescribeEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEndpointGroupOutcomeCallable describeEndpointGroupCallable(const Model::DescribeEndpointGroupRequest& request) const; @@ -401,12 +999,57 @@ namespace AlibabaCloud DetachLogStoreFromEndpointGroupOutcome detachLogStoreFromEndpointGroup(const Model::DetachLogStoreFromEndpointGroupRequest &request)const; void detachLogStoreFromEndpointGroupAsync(const Model::DetachLogStoreFromEndpointGroupRequest& request, const DetachLogStoreFromEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachLogStoreFromEndpointGroupOutcomeCallable detachLogStoreFromEndpointGroupCallable(const Model::DetachLogStoreFromEndpointGroupRequest& request) const; + DetectApplicationMonitorOutcome detectApplicationMonitor(const Model::DetectApplicationMonitorRequest &request)const; + void detectApplicationMonitorAsync(const Model::DetectApplicationMonitorRequest& request, const DetectApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectApplicationMonitorOutcomeCallable detectApplicationMonitorCallable(const Model::DetectApplicationMonitorRequest& request) const; + DisableApplicationMonitorOutcome disableApplicationMonitor(const Model::DisableApplicationMonitorRequest &request)const; + void disableApplicationMonitorAsync(const Model::DisableApplicationMonitorRequest& request, const DisableApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableApplicationMonitorOutcomeCallable disableApplicationMonitorCallable(const Model::DisableApplicationMonitorRequest& 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; + EnableApplicationMonitorOutcome enableApplicationMonitor(const Model::EnableApplicationMonitorRequest &request)const; + void enableApplicationMonitorAsync(const Model::EnableApplicationMonitorRequest& request, const EnableApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableApplicationMonitorOutcomeCallable enableApplicationMonitorCallable(const Model::EnableApplicationMonitorRequest& request) const; GetAclOutcome getAcl(const Model::GetAclRequest &request)const; void getAclAsync(const Model::GetAclRequest& request, const GetAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAclOutcomeCallable getAclCallable(const Model::GetAclRequest& request) const; + GetBasicAccelerateIpOutcome getBasicAccelerateIp(const Model::GetBasicAccelerateIpRequest &request)const; + void getBasicAccelerateIpAsync(const Model::GetBasicAccelerateIpRequest& request, const GetBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicAccelerateIpOutcomeCallable getBasicAccelerateIpCallable(const Model::GetBasicAccelerateIpRequest& request) const; + GetBasicAccelerateIpEndpointRelationOutcome getBasicAccelerateIpEndpointRelation(const Model::GetBasicAccelerateIpEndpointRelationRequest &request)const; + void getBasicAccelerateIpEndpointRelationAsync(const Model::GetBasicAccelerateIpEndpointRelationRequest& request, const GetBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicAccelerateIpEndpointRelationOutcomeCallable getBasicAccelerateIpEndpointRelationCallable(const Model::GetBasicAccelerateIpEndpointRelationRequest& request) const; + GetBasicAccelerateIpIdleCountOutcome getBasicAccelerateIpIdleCount(const Model::GetBasicAccelerateIpIdleCountRequest &request)const; + void getBasicAccelerateIpIdleCountAsync(const Model::GetBasicAccelerateIpIdleCountRequest& request, const GetBasicAccelerateIpIdleCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicAccelerateIpIdleCountOutcomeCallable getBasicAccelerateIpIdleCountCallable(const Model::GetBasicAccelerateIpIdleCountRequest& request) const; + GetBasicAcceleratorOutcome getBasicAccelerator(const Model::GetBasicAcceleratorRequest &request)const; + void getBasicAcceleratorAsync(const Model::GetBasicAcceleratorRequest& request, const GetBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicAcceleratorOutcomeCallable getBasicAcceleratorCallable(const Model::GetBasicAcceleratorRequest& request) const; + GetBasicEndpointOutcome getBasicEndpoint(const Model::GetBasicEndpointRequest &request)const; + void getBasicEndpointAsync(const Model::GetBasicEndpointRequest& request, const GetBasicEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicEndpointOutcomeCallable getBasicEndpointCallable(const Model::GetBasicEndpointRequest& request) const; + GetBasicEndpointGroupOutcome getBasicEndpointGroup(const Model::GetBasicEndpointGroupRequest &request)const; + void getBasicEndpointGroupAsync(const Model::GetBasicEndpointGroupRequest& request, const GetBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicEndpointGroupOutcomeCallable getBasicEndpointGroupCallable(const Model::GetBasicEndpointGroupRequest& request) const; + GetBasicIpSetOutcome getBasicIpSet(const Model::GetBasicIpSetRequest &request)const; + void getBasicIpSetAsync(const Model::GetBasicIpSetRequest& request, const GetBasicIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBasicIpSetOutcomeCallable getBasicIpSetCallable(const Model::GetBasicIpSetRequest& request) const; + GetHealthStatusOutcome getHealthStatus(const Model::GetHealthStatusRequest &request)const; + void getHealthStatusAsync(const Model::GetHealthStatusRequest& request, const GetHealthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHealthStatusOutcomeCallable getHealthStatusCallable(const Model::GetHealthStatusRequest& request) const; + GetInvalidDomainCountOutcome getInvalidDomainCount(const Model::GetInvalidDomainCountRequest &request)const; + void getInvalidDomainCountAsync(const Model::GetInvalidDomainCountRequest& request, const GetInvalidDomainCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInvalidDomainCountOutcomeCallable getInvalidDomainCountCallable(const Model::GetInvalidDomainCountRequest& request) const; + GetIpsetsBandwidthLimitOutcome getIpsetsBandwidthLimit(const Model::GetIpsetsBandwidthLimitRequest &request)const; + void getIpsetsBandwidthLimitAsync(const Model::GetIpsetsBandwidthLimitRequest& request, const GetIpsetsBandwidthLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetIpsetsBandwidthLimitOutcomeCallable getIpsetsBandwidthLimitCallable(const Model::GetIpsetsBandwidthLimitRequest& request) const; + GetSpareIpOutcome getSpareIp(const Model::GetSpareIpRequest &request)const; + void getSpareIpAsync(const Model::GetSpareIpRequest& request, const GetSpareIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSpareIpOutcomeCallable getSpareIpCallable(const Model::GetSpareIpRequest& request) const; ListAccelerateAreasOutcome listAccelerateAreas(const Model::ListAccelerateAreasRequest &request)const; void listAccelerateAreasAsync(const Model::ListAccelerateAreasRequest& request, const ListAccelerateAreasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAccelerateAreasOutcomeCallable listAccelerateAreasCallable(const Model::ListAccelerateAreasRequest& request) const; @@ -416,6 +1059,12 @@ namespace AlibabaCloud 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; + ListApplicationMonitorOutcome listApplicationMonitor(const Model::ListApplicationMonitorRequest &request)const; + void listApplicationMonitorAsync(const Model::ListApplicationMonitorRequest& request, const ListApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationMonitorOutcomeCallable listApplicationMonitorCallable(const Model::ListApplicationMonitorRequest& request) const; + ListApplicationMonitorDetectResultOutcome listApplicationMonitorDetectResult(const Model::ListApplicationMonitorDetectResultRequest &request)const; + void listApplicationMonitorDetectResultAsync(const Model::ListApplicationMonitorDetectResultRequest& request, const ListApplicationMonitorDetectResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationMonitorDetectResultOutcomeCallable listApplicationMonitorDetectResultCallable(const Model::ListApplicationMonitorDetectResultRequest& request) const; ListAvailableAccelerateAreasOutcome listAvailableAccelerateAreas(const Model::ListAvailableAccelerateAreasRequest &request)const; void listAvailableAccelerateAreasAsync(const Model::ListAvailableAccelerateAreasRequest& request, const ListAvailableAccelerateAreasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAvailableAccelerateAreasOutcomeCallable listAvailableAccelerateAreasCallable(const Model::ListAvailableAccelerateAreasRequest& request) const; @@ -428,9 +1077,45 @@ namespace AlibabaCloud ListBandwidthackagesOutcome listBandwidthackages(const Model::ListBandwidthackagesRequest &request)const; void listBandwidthackagesAsync(const Model::ListBandwidthackagesRequest& request, const ListBandwidthackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListBandwidthackagesOutcomeCallable listBandwidthackagesCallable(const Model::ListBandwidthackagesRequest& request) const; + ListBasicAccelerateIpEndpointRelationsOutcome listBasicAccelerateIpEndpointRelations(const Model::ListBasicAccelerateIpEndpointRelationsRequest &request)const; + void listBasicAccelerateIpEndpointRelationsAsync(const Model::ListBasicAccelerateIpEndpointRelationsRequest& request, const ListBasicAccelerateIpEndpointRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicAccelerateIpEndpointRelationsOutcomeCallable listBasicAccelerateIpEndpointRelationsCallable(const Model::ListBasicAccelerateIpEndpointRelationsRequest& request) const; + ListBasicAccelerateIpsOutcome listBasicAccelerateIps(const Model::ListBasicAccelerateIpsRequest &request)const; + void listBasicAccelerateIpsAsync(const Model::ListBasicAccelerateIpsRequest& request, const ListBasicAccelerateIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicAccelerateIpsOutcomeCallable listBasicAccelerateIpsCallable(const Model::ListBasicAccelerateIpsRequest& request) const; + ListBasicAcceleratorsOutcome listBasicAccelerators(const Model::ListBasicAcceleratorsRequest &request)const; + void listBasicAcceleratorsAsync(const Model::ListBasicAcceleratorsRequest& request, const ListBasicAcceleratorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicAcceleratorsOutcomeCallable listBasicAcceleratorsCallable(const Model::ListBasicAcceleratorsRequest& request) const; + ListBasicEndpointsOutcome listBasicEndpoints(const Model::ListBasicEndpointsRequest &request)const; + void listBasicEndpointsAsync(const Model::ListBasicEndpointsRequest& request, const ListBasicEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBasicEndpointsOutcomeCallable listBasicEndpointsCallable(const Model::ListBasicEndpointsRequest& request) const; ListBusiRegionsOutcome listBusiRegions(const Model::ListBusiRegionsRequest &request)const; void listBusiRegionsAsync(const Model::ListBusiRegionsRequest& request, const ListBusiRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListBusiRegionsOutcomeCallable listBusiRegionsCallable(const Model::ListBusiRegionsRequest& request) const; + ListCommonAreasOutcome listCommonAreas(const Model::ListCommonAreasRequest &request)const; + void listCommonAreasAsync(const Model::ListCommonAreasRequest& request, const ListCommonAreasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCommonAreasOutcomeCallable listCommonAreasCallable(const Model::ListCommonAreasRequest& request) const; + ListCustomRoutingEndpointGroupDestinationsOutcome listCustomRoutingEndpointGroupDestinations(const Model::ListCustomRoutingEndpointGroupDestinationsRequest &request)const; + void listCustomRoutingEndpointGroupDestinationsAsync(const Model::ListCustomRoutingEndpointGroupDestinationsRequest& request, const ListCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingEndpointGroupDestinationsOutcomeCallable listCustomRoutingEndpointGroupDestinationsCallable(const Model::ListCustomRoutingEndpointGroupDestinationsRequest& request) const; + ListCustomRoutingEndpointGroupsOutcome listCustomRoutingEndpointGroups(const Model::ListCustomRoutingEndpointGroupsRequest &request)const; + void listCustomRoutingEndpointGroupsAsync(const Model::ListCustomRoutingEndpointGroupsRequest& request, const ListCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingEndpointGroupsOutcomeCallable listCustomRoutingEndpointGroupsCallable(const Model::ListCustomRoutingEndpointGroupsRequest& request) const; + ListCustomRoutingEndpointTrafficPoliciesOutcome listCustomRoutingEndpointTrafficPolicies(const Model::ListCustomRoutingEndpointTrafficPoliciesRequest &request)const; + void listCustomRoutingEndpointTrafficPoliciesAsync(const Model::ListCustomRoutingEndpointTrafficPoliciesRequest& request, const ListCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingEndpointTrafficPoliciesOutcomeCallable listCustomRoutingEndpointTrafficPoliciesCallable(const Model::ListCustomRoutingEndpointTrafficPoliciesRequest& request) const; + ListCustomRoutingEndpointsOutcome listCustomRoutingEndpoints(const Model::ListCustomRoutingEndpointsRequest &request)const; + void listCustomRoutingEndpointsAsync(const Model::ListCustomRoutingEndpointsRequest& request, const ListCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingEndpointsOutcomeCallable listCustomRoutingEndpointsCallable(const Model::ListCustomRoutingEndpointsRequest& request) const; + ListCustomRoutingPortMappingsOutcome listCustomRoutingPortMappings(const Model::ListCustomRoutingPortMappingsRequest &request)const; + void listCustomRoutingPortMappingsAsync(const Model::ListCustomRoutingPortMappingsRequest& request, const ListCustomRoutingPortMappingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingPortMappingsOutcomeCallable listCustomRoutingPortMappingsCallable(const Model::ListCustomRoutingPortMappingsRequest& request) const; + ListCustomRoutingPortMappingsByDestinationOutcome listCustomRoutingPortMappingsByDestination(const Model::ListCustomRoutingPortMappingsByDestinationRequest &request)const; + void listCustomRoutingPortMappingsByDestinationAsync(const Model::ListCustomRoutingPortMappingsByDestinationRequest& request, const ListCustomRoutingPortMappingsByDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomRoutingPortMappingsByDestinationOutcomeCallable listCustomRoutingPortMappingsByDestinationCallable(const Model::ListCustomRoutingPortMappingsByDestinationRequest& request) const; + ListDomainsOutcome listDomains(const Model::ListDomainsRequest &request)const; + void listDomainsAsync(const Model::ListDomainsRequest& request, const ListDomainsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDomainsOutcomeCallable listDomainsCallable(const Model::ListDomainsRequest& request) const; ListEndpointGroupsOutcome listEndpointGroups(const Model::ListEndpointGroupsRequest &request)const; void listEndpointGroupsAsync(const Model::ListEndpointGroupsRequest& request, const ListEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListEndpointGroupsOutcomeCallable listEndpointGroupsCallable(const Model::ListEndpointGroupsRequest& request) const; @@ -440,30 +1125,105 @@ namespace AlibabaCloud ListIpSetsOutcome listIpSets(const Model::ListIpSetsRequest &request)const; void listIpSetsAsync(const Model::ListIpSetsRequest& request, const ListIpSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListIpSetsOutcomeCallable listIpSetsCallable(const Model::ListIpSetsRequest& request) const; + ListIspTypesOutcome listIspTypes(const Model::ListIspTypesRequest &request)const; + void listIspTypesAsync(const Model::ListIspTypesRequest& request, const ListIspTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListIspTypesOutcomeCallable listIspTypesCallable(const Model::ListIspTypesRequest& 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; + ListSpareIpsOutcome listSpareIps(const Model::ListSpareIpsRequest &request)const; + void listSpareIpsAsync(const Model::ListSpareIpsRequest& request, const ListSpareIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSpareIpsOutcomeCallable listSpareIpsCallable(const Model::ListSpareIpsRequest& 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; + 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; + QueryCrossBorderApprovalStatusOutcome queryCrossBorderApprovalStatus(const Model::QueryCrossBorderApprovalStatusRequest &request)const; + void queryCrossBorderApprovalStatusAsync(const Model::QueryCrossBorderApprovalStatusRequest& request, const QueryCrossBorderApprovalStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCrossBorderApprovalStatusOutcomeCallable queryCrossBorderApprovalStatusCallable(const Model::QueryCrossBorderApprovalStatusRequest& 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; ReplaceBandwidthPackageOutcome replaceBandwidthPackage(const Model::ReplaceBandwidthPackageRequest &request)const; void replaceBandwidthPackageAsync(const Model::ReplaceBandwidthPackageRequest& request, const ReplaceBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReplaceBandwidthPackageOutcomeCallable replaceBandwidthPackageCallable(const Model::ReplaceBandwidthPackageRequest& 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; UpdateAcceleratorOutcome updateAccelerator(const Model::UpdateAcceleratorRequest &request)const; void updateAcceleratorAsync(const Model::UpdateAcceleratorRequest& request, const UpdateAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAcceleratorOutcomeCallable updateAcceleratorCallable(const Model::UpdateAcceleratorRequest& request) const; + UpdateAcceleratorAutoRenewAttributeOutcome updateAcceleratorAutoRenewAttribute(const Model::UpdateAcceleratorAutoRenewAttributeRequest &request)const; + void updateAcceleratorAutoRenewAttributeAsync(const Model::UpdateAcceleratorAutoRenewAttributeRequest& request, const UpdateAcceleratorAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAcceleratorAutoRenewAttributeOutcomeCallable updateAcceleratorAutoRenewAttributeCallable(const Model::UpdateAcceleratorAutoRenewAttributeRequest& request) const; + UpdateAcceleratorConfirmOutcome updateAcceleratorConfirm(const Model::UpdateAcceleratorConfirmRequest &request)const; + void updateAcceleratorConfirmAsync(const Model::UpdateAcceleratorConfirmRequest& request, const UpdateAcceleratorConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAcceleratorConfirmOutcomeCallable updateAcceleratorConfirmCallable(const Model::UpdateAcceleratorConfirmRequest& request) const; + UpdateAcceleratorCrossBorderModeOutcome updateAcceleratorCrossBorderMode(const Model::UpdateAcceleratorCrossBorderModeRequest &request)const; + void updateAcceleratorCrossBorderModeAsync(const Model::UpdateAcceleratorCrossBorderModeRequest& request, const UpdateAcceleratorCrossBorderModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAcceleratorCrossBorderModeOutcomeCallable updateAcceleratorCrossBorderModeCallable(const Model::UpdateAcceleratorCrossBorderModeRequest& 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; + UpdateAdditionalCertificateWithListenerOutcome updateAdditionalCertificateWithListener(const Model::UpdateAdditionalCertificateWithListenerRequest &request)const; + void updateAdditionalCertificateWithListenerAsync(const Model::UpdateAdditionalCertificateWithListenerRequest& request, const UpdateAdditionalCertificateWithListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAdditionalCertificateWithListenerOutcomeCallable updateAdditionalCertificateWithListenerCallable(const Model::UpdateAdditionalCertificateWithListenerRequest& request) const; + UpdateApplicationMonitorOutcome updateApplicationMonitor(const Model::UpdateApplicationMonitorRequest &request)const; + void updateApplicationMonitorAsync(const Model::UpdateApplicationMonitorRequest& request, const UpdateApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApplicationMonitorOutcomeCallable updateApplicationMonitorCallable(const Model::UpdateApplicationMonitorRequest& request) const; + UpdateBandwidthPackagaAutoRenewAttributeOutcome updateBandwidthPackagaAutoRenewAttribute(const Model::UpdateBandwidthPackagaAutoRenewAttributeRequest &request)const; + void updateBandwidthPackagaAutoRenewAttributeAsync(const Model::UpdateBandwidthPackagaAutoRenewAttributeRequest& request, const UpdateBandwidthPackagaAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBandwidthPackagaAutoRenewAttributeOutcomeCallable updateBandwidthPackagaAutoRenewAttributeCallable(const Model::UpdateBandwidthPackagaAutoRenewAttributeRequest& request) const; UpdateBandwidthPackageOutcome updateBandwidthPackage(const Model::UpdateBandwidthPackageRequest &request)const; void updateBandwidthPackageAsync(const Model::UpdateBandwidthPackageRequest& request, const UpdateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBandwidthPackageOutcomeCallable updateBandwidthPackageCallable(const Model::UpdateBandwidthPackageRequest& request) const; + UpdateBasicAcceleratorOutcome updateBasicAccelerator(const Model::UpdateBasicAcceleratorRequest &request)const; + void updateBasicAcceleratorAsync(const Model::UpdateBasicAcceleratorRequest& request, const UpdateBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBasicAcceleratorOutcomeCallable updateBasicAcceleratorCallable(const Model::UpdateBasicAcceleratorRequest& request) const; + UpdateBasicEndpointOutcome updateBasicEndpoint(const Model::UpdateBasicEndpointRequest &request)const; + void updateBasicEndpointAsync(const Model::UpdateBasicEndpointRequest& request, const UpdateBasicEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBasicEndpointOutcomeCallable updateBasicEndpointCallable(const Model::UpdateBasicEndpointRequest& request) const; + UpdateBasicEndpointGroupOutcome updateBasicEndpointGroup(const Model::UpdateBasicEndpointGroupRequest &request)const; + void updateBasicEndpointGroupAsync(const Model::UpdateBasicEndpointGroupRequest& request, const UpdateBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBasicEndpointGroupOutcomeCallable updateBasicEndpointGroupCallable(const Model::UpdateBasicEndpointGroupRequest& request) const; + UpdateBasicIpSetOutcome updateBasicIpSet(const Model::UpdateBasicIpSetRequest &request)const; + void updateBasicIpSetAsync(const Model::UpdateBasicIpSetRequest& request, const UpdateBasicIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateBasicIpSetOutcomeCallable updateBasicIpSetCallable(const Model::UpdateBasicIpSetRequest& request) const; + UpdateCustomRoutingEndpointGroupAttributeOutcome updateCustomRoutingEndpointGroupAttribute(const Model::UpdateCustomRoutingEndpointGroupAttributeRequest &request)const; + void updateCustomRoutingEndpointGroupAttributeAsync(const Model::UpdateCustomRoutingEndpointGroupAttributeRequest& request, const UpdateCustomRoutingEndpointGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomRoutingEndpointGroupAttributeOutcomeCallable updateCustomRoutingEndpointGroupAttributeCallable(const Model::UpdateCustomRoutingEndpointGroupAttributeRequest& request) const; + UpdateCustomRoutingEndpointGroupDestinationsOutcome updateCustomRoutingEndpointGroupDestinations(const Model::UpdateCustomRoutingEndpointGroupDestinationsRequest &request)const; + void updateCustomRoutingEndpointGroupDestinationsAsync(const Model::UpdateCustomRoutingEndpointGroupDestinationsRequest& request, const UpdateCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomRoutingEndpointGroupDestinationsOutcomeCallable updateCustomRoutingEndpointGroupDestinationsCallable(const Model::UpdateCustomRoutingEndpointGroupDestinationsRequest& request) const; + UpdateCustomRoutingEndpointTrafficPoliciesOutcome updateCustomRoutingEndpointTrafficPolicies(const Model::UpdateCustomRoutingEndpointTrafficPoliciesRequest &request)const; + void updateCustomRoutingEndpointTrafficPoliciesAsync(const Model::UpdateCustomRoutingEndpointTrafficPoliciesRequest& request, const UpdateCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomRoutingEndpointTrafficPoliciesOutcomeCallable updateCustomRoutingEndpointTrafficPoliciesCallable(const Model::UpdateCustomRoutingEndpointTrafficPoliciesRequest& request) const; + UpdateCustomRoutingEndpointsOutcome updateCustomRoutingEndpoints(const Model::UpdateCustomRoutingEndpointsRequest &request)const; + void updateCustomRoutingEndpointsAsync(const Model::UpdateCustomRoutingEndpointsRequest& request, const UpdateCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCustomRoutingEndpointsOutcomeCallable updateCustomRoutingEndpointsCallable(const Model::UpdateCustomRoutingEndpointsRequest& request) const; + UpdateDomainOutcome updateDomain(const Model::UpdateDomainRequest &request)const; + void updateDomainAsync(const Model::UpdateDomainRequest& request, const UpdateDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDomainOutcomeCallable updateDomainCallable(const Model::UpdateDomainRequest& request) const; + UpdateDomainStateOutcome updateDomainState(const Model::UpdateDomainStateRequest &request)const; + void updateDomainStateAsync(const Model::UpdateDomainStateRequest& request, const UpdateDomainStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDomainStateOutcomeCallable updateDomainStateCallable(const Model::UpdateDomainStateRequest& request) const; UpdateEndpointGroupOutcome updateEndpointGroup(const Model::UpdateEndpointGroupRequest &request)const; void updateEndpointGroupAsync(const Model::UpdateEndpointGroupRequest& request, const UpdateEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateEndpointGroupOutcomeCallable updateEndpointGroupCallable(const Model::UpdateEndpointGroupRequest& request) const; UpdateEndpointGroupAttributeOutcome updateEndpointGroupAttribute(const Model::UpdateEndpointGroupAttributeRequest &request)const; void updateEndpointGroupAttributeAsync(const Model::UpdateEndpointGroupAttributeRequest& request, const UpdateEndpointGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateEndpointGroupAttributeOutcomeCallable updateEndpointGroupAttributeCallable(const Model::UpdateEndpointGroupAttributeRequest& request) const; + UpdateEndpointGroupsOutcome updateEndpointGroups(const Model::UpdateEndpointGroupsRequest &request)const; + void updateEndpointGroupsAsync(const Model::UpdateEndpointGroupsRequest& request, const UpdateEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEndpointGroupsOutcomeCallable updateEndpointGroupsCallable(const Model::UpdateEndpointGroupsRequest& request) const; UpdateForwardingRulesOutcome updateForwardingRules(const Model::UpdateForwardingRulesRequest &request)const; void updateForwardingRulesAsync(const Model::UpdateForwardingRulesRequest& request, const UpdateForwardingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateForwardingRulesOutcomeCallable updateForwardingRulesCallable(const Model::UpdateForwardingRulesRequest& request) const; diff --git a/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h b/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h index 2e6271559..38e78dc9f 100644 --- a/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h +++ b/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h @@ -1,66 +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_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT AddEntriesToAclRequest : public RpcServiceRequest - { - public: - struct AclEntries - { - std::string entry; - std::string entryDescription; - }; - - public: - AddEntriesToAclRequest(); - ~AddEntriesToAclRequest(); - - std::string getAclId()const; - void setAclId(const std::string& aclId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getAclEntries()const; - void setAclEntries(const std::vector& aclEntries); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string aclId_; - bool dryRun_; - std::string clientToken_; - std::vector aclEntries_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT AddEntriesToAclRequest : public RpcServiceRequest { +public: + struct AclEntries { + std::string entry; + std::string entryDescription; + }; + AddEntriesToAclRequest(); + ~AddEntriesToAclRequest(); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getAclEntries() const; + void setAclEntries(const std::vector &aclEntries); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string aclId_; + bool dryRun_; + std::string clientToken_; + std::vector aclEntries_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h index 6eb7d5f87..97c77250f 100644 --- a/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h @@ -1,63 +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_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT AssociateAclsWithListenerRequest : public RpcServiceRequest - { - - public: - AssociateAclsWithListenerRequest(); - ~AssociateAclsWithListenerRequest(); - - bool getDryRun()const; - void setDryRun(bool dryRun); - 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); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - bool dryRun_; - std::string clientToken_; - std::vector aclIds_; - std::string aclType_; - std::string listenerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT AssociateAclsWithListenerRequest : public RpcServiceRequest { +public: + AssociateAclsWithListenerRequest(); + ~AssociateAclsWithListenerRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + 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); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector aclIds_; + std::string aclType_; + std::string listenerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerRequest.h b/ga/include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerRequest.h new file mode 100644 index 000000000..3357b4da3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerRequest.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_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT AssociateAdditionalCertificatesWithListenerRequest : public RpcServiceRequest { +public: + struct Certificates { + std::string id; + std::string domain; + }; + AssociateAdditionalCertificatesWithListenerRequest(); + ~AssociateAdditionalCertificatesWithListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string listenerId_; + std::vector certificates_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerResult.h b/ga/include/alibabacloud/ga/model/AssociateAdditionalCertificatesWithListenerResult.h new file mode 100644 index 000000000..3418bd567 --- /dev/null +++ b/ga/include/alibabacloud/ga/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_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT AssociateAdditionalCertificatesWithListenerResult : public ServiceResult + { + public: + + + AssociateAdditionalCertificatesWithListenerResult(); + explicit AssociateAdditionalCertificatesWithListenerResult(const std::string &payload); + ~AssociateAdditionalCertificatesWithListenerResult(); + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h index 91d3c6a42..dc31756f6 100644 --- a/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h @@ -1,57 +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_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT AttachDdosToAcceleratorRequest : public RpcServiceRequest - { - - public: - AttachDdosToAcceleratorRequest(); - ~AttachDdosToAcceleratorRequest(); - - std::string getDdosId()const; - void setDdosId(const std::string& ddosId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDdosRegionId()const; - void setDdosRegionId(const std::string& ddosRegionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string ddosId_; - std::string regionId_; - std::string ddosRegionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT AttachDdosToAcceleratorRequest : public RpcServiceRequest { +public: + AttachDdosToAcceleratorRequest(); + ~AttachDdosToAcceleratorRequest(); + std::string getDdosId() const; + void setDdosId(const std::string &ddosId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDdosRegionId() const; + void setDdosRegionId(const std::string &ddosRegionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string ddosId_; + std::string regionId_; + std::string ddosRegionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h index 7b7d0835b..6dc760321 100644 --- a/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h @@ -1,69 +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_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT AttachLogStoreToEndpointGroupRequest : public RpcServiceRequest - { - - public: - AttachLogStoreToEndpointGroupRequest(); - ~AttachLogStoreToEndpointGroupRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSlsLogStoreName()const; - void setSlsLogStoreName(const std::string& slsLogStoreName); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::vector getEndpointGroupIds()const; - void setEndpointGroupIds(const std::vector& endpointGroupIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSlsProjectName()const; - void setSlsProjectName(const std::string& slsProjectName); - std::string getSlsRegionId()const; - void setSlsRegionId(const std::string& slsRegionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string clientToken_; - std::string slsLogStoreName_; - std::string listenerId_; - std::vector endpointGroupIds_; - std::string regionId_; - std::string slsProjectName_; - std::string slsRegionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT AttachLogStoreToEndpointGroupRequest : public RpcServiceRequest { +public: + AttachLogStoreToEndpointGroupRequest(); + ~AttachLogStoreToEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSlsLogStoreName() const; + void setSlsLogStoreName(const std::string &slsLogStoreName); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::vector getEndpointGroupIds() const; + void setEndpointGroupIds(const std::vector &endpointGroupIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSlsProjectName() const; + void setSlsProjectName(const std::string &slsProjectName); + std::string getSlsRegionId() const; + void setSlsRegionId(const std::string &slsRegionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string slsLogStoreName_; + std::string listenerId_; + std::vector endpointGroupIds_; + std::string regionId_; + std::string slsProjectName_; + std::string slsRegionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h index a8dac55e0..322d3bcde 100644 --- a/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h @@ -1,54 +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_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT BandwidthPackageAddAcceleratorRequest : public RpcServiceRequest - { - - public: - BandwidthPackageAddAcceleratorRequest(); - ~BandwidthPackageAddAcceleratorRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string bandwidthPackageId_; - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT BandwidthPackageAddAcceleratorRequest : public RpcServiceRequest { +public: + BandwidthPackageAddAcceleratorRequest(); + ~BandwidthPackageAddAcceleratorRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string bandwidthPackageId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h index a6e19f4c2..08fff4ca9 100644 --- a/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h @@ -1,54 +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_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT BandwidthPackageRemoveAcceleratorRequest : public RpcServiceRequest - { - - public: - BandwidthPackageRemoveAcceleratorRequest(); - ~BandwidthPackageRemoveAcceleratorRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string bandwidthPackageId_; - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT BandwidthPackageRemoveAcceleratorRequest : public RpcServiceRequest { +public: + BandwidthPackageRemoveAcceleratorRequest(); + ~BandwidthPackageRemoveAcceleratorRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string bandwidthPackageId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ChangeResourceGroupRequest.h b/ga/include/alibabacloud/ga/model/ChangeResourceGroupRequest.h new file mode 100644 index 000000000..5ab5988e8 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ChangeResourceGroupRequest.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_GA_MODEL_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest { +public: + ChangeResourceGroupRequest(); + ~ChangeResourceGroupRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string resourceId_; + std::string clientToken_; + std::string resourceType_; + std::string newResourceGroupId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CHANGERESOURCEGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ChangeResourceGroupResult.h b/ga/include/alibabacloud/ga/model/ChangeResourceGroupResult.h new file mode 100644 index 000000000..eb701e628 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ChangeResourceGroupResult.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_GA_MODEL_CHANGERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CHANGERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ChangeResourceGroupResult : public ServiceResult + { + public: + + + ChangeResourceGroupResult(); + explicit ChangeResourceGroupResult(const std::string &payload); + ~ChangeResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CHANGERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h b/ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h index ef54f08f3..0325b2a85 100644 --- a/ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h +++ b/ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h @@ -1,69 +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_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ConfigEndpointProbeRequest : public RpcServiceRequest - { - - public: - ConfigEndpointProbeRequest(); - ~ConfigEndpointProbeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getEndpoint()const; - void setEndpoint(const std::string& endpoint); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEndpointType()const; - void setEndpointType(const std::string& endpointType); - std::string getEnable()const; - void setEnable(const std::string& enable); - std::string getProbeProtocol()const; - void setProbeProtocol(const std::string& probeProtocol); - std::string getProbePort()const; - void setProbePort(const std::string& probePort); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - - private: - std::string clientToken_; - std::string endpoint_; - std::string regionId_; - std::string endpointType_; - std::string enable_; - std::string probeProtocol_; - std::string probePort_; - std::string endpointGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ConfigEndpointProbeRequest : public RpcServiceRequest { +public: + ConfigEndpointProbeRequest(); + ~ConfigEndpointProbeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpoint() const; + void setEndpoint(const std::string &endpoint); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getEnable() const; + void setEnable(const std::string &enable); + std::string getProbeProtocol() const; + void setProbeProtocol(const std::string &probeProtocol); + std::string getProbePort() const; + void setProbePort(const std::string &probePort); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string endpoint_; + std::string regionId_; + std::string endpointType_; + std::string enable_; + std::string probeProtocol_; + std::string probePort_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h index 73aefca5d..b78048519 100644 --- a/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h @@ -1,72 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_CREATEACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateAcceleratorRequest : public RpcServiceRequest - { - - public: - CreateAcceleratorRequest(); - ~CreateAcceleratorRequest(); - - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getPromotionOptionNo()const; - void setPromotionOptionNo(const std::string& promotionOptionNo); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAutoUseCoupon()const; - void setAutoUseCoupon(const std::string& autoUseCoupon); - std::string getSpec()const; - void setSpec(const std::string& spec); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getName()const; - void setName(const std::string& name); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - bool autoPay_; - std::string promotionOptionNo_; - std::string clientToken_; - std::string autoUseCoupon_; - std::string spec_; - int duration_; - std::string regionId_; - std::string name_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateAcceleratorRequest : public RpcServiceRequest { +public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct IpSetConfig { + std::string accessMode; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateAcceleratorRequest(); + ~CreateAcceleratorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + IpSetConfig getIpSetConfig() const; + void setIpSetConfig(const IpSetConfig &ipSetConfig); + std::string getAutoUseCoupon() const; + void setAutoUseCoupon(const std::string &autoUseCoupon); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + std::string getSpec() const; + void setSpec(const std::string &spec); + int getDuration() const; + void setDuration(int duration); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + std::string getBandwidthBillingType() const; + void setBandwidthBillingType(const std::string &bandwidthBillingType); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getName() const; + void setName(const std::string &name); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string clientToken_; + std::vector systemTag_; + IpSetConfig ipSetConfig_; + std::string autoUseCoupon_; + int autoRenewDuration_; + std::string spec_; + int duration_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string instanceChargeType_; + bool autoPay_; + bool dryRun_; + std::string promotionOptionNo_; + std::string bandwidthBillingType_; + bool autoRenew_; + std::string name_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateAclRequest.h b/ga/include/alibabacloud/ga/model/CreateAclRequest.h index c319f68e6..f486af94f 100644 --- a/ga/include/alibabacloud/ga/model/CreateAclRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateAclRequest.h @@ -1,69 +1,79 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_CREATEACLREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateAclRequest : public RpcServiceRequest - { - public: - struct AclEntries - { - std::string entry; - std::string entryDescription; - }; - - public: - CreateAclRequest(); - ~CreateAclRequest(); - - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getAclName()const; - void setAclName(const std::string& aclName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getAclEntries()const; - void setAclEntries(const std::vector& aclEntries); - std::string getAddressIPVersion()const; - void setAddressIPVersion(const std::string& addressIPVersion); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - bool dryRun_; - std::string aclName_; - std::string clientToken_; - std::vector aclEntries_; - std::string addressIPVersion_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateAclRequest : public RpcServiceRequest { +public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct AclEntries { + std::string entry; + std::string entryDescription; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateAclRequest(); + ~CreateAclRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + std::vector getAclEntries() const; + void setAclEntries(const std::vector &aclEntries); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + bool dryRun_; + std::string aclName_; + std::string clientToken_; + std::vector systemTag_; + std::vector aclEntries_; + std::string addressIPVersion_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEACLREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/CreateApplicationMonitorRequest.h new file mode 100644 index 000000000..46d602b74 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateApplicationMonitorRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateApplicationMonitorRequest : public RpcServiceRequest { +public: + CreateApplicationMonitorRequest(); + ~CreateApplicationMonitorRequest(); + std::string getAddress() const; + void setAddress(const std::string &address); + bool getDetectEnable() const; + void setDetectEnable(bool detectEnable); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + int getDetectThreshold() const; + void setDetectThreshold(int detectThreshold); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getOptionsJson() const; + void setOptionsJson(const std::string &optionsJson); + int getDetectTimes() const; + void setDetectTimes(int detectTimes); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + int getSilenceTime() const; + void setSilenceTime(int silenceTime); + +private: + std::string address_; + bool detectEnable_; + std::string clientToken_; + std::string taskName_; + int detectThreshold_; + std::string listenerId_; + std::string optionsJson_; + int detectTimes_; + std::string regionId_; + std::string acceleratorId_; + int silenceTime_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/CreateApplicationMonitorResult.h new file mode 100644 index 000000000..f9d2630e3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateApplicationMonitorResult.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_GA_MODEL_CREATEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateApplicationMonitorResult : public ServiceResult + { + public: + + + CreateApplicationMonitorResult(); + explicit CreateApplicationMonitorResult(const std::string &payload); + ~CreateApplicationMonitorResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h index f0c6e3c3a..ff712ac64 100644 --- a/ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h @@ -1,90 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateBandwidthPackageRequest : public RpcServiceRequest - { - - public: - CreateBandwidthPackageRequest(); - ~CreateBandwidthPackageRequest(); - - std::string getBandwidthType()const; - void setBandwidthType(const std::string& bandwidthType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAutoUseCoupon()const; - void setAutoUseCoupon(const std::string& autoUseCoupon); - std::string getType()const; - void setType(const std::string& type); - std::string getDuration()const; - void setDuration(const std::string& duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getPromotionOptionNo()const; - void setPromotionOptionNo(const std::string& promotionOptionNo); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getCbnGeographicRegionIdB()const; - void setCbnGeographicRegionIdB(const std::string& cbnGeographicRegionIdB); - std::string getCbnGeographicRegionIdA()const; - void setCbnGeographicRegionIdA(const std::string& cbnGeographicRegionIdA); - std::string getBillingType()const; - void setBillingType(const std::string& billingType); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - int getRatio()const; - void setRatio(int ratio); - - private: - std::string bandwidthType_; - std::string clientToken_; - std::string autoUseCoupon_; - std::string type_; - std::string duration_; - std::string regionId_; - bool autoPay_; - std::string promotionOptionNo_; - int bandwidth_; - std::string cbnGeographicRegionIdB_; - std::string cbnGeographicRegionIdA_; - std::string billingType_; - std::string chargeType_; - std::string pricingCycle_; - int ratio_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBandwidthPackageRequest : public RpcServiceRequest { +public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateBandwidthPackageRequest(); + ~CreateBandwidthPackageRequest(); + std::string getBandwidthType() const; + void setBandwidthType(const std::string &bandwidthType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + std::string getAutoUseCoupon() const; + void setAutoUseCoupon(const std::string &autoUseCoupon); + std::string getType() const; + void setType(const std::string &type); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getCbnGeographicRegionIdB() const; + void setCbnGeographicRegionIdB(const std::string &cbnGeographicRegionIdB); + std::string getCbnGeographicRegionIdA() const; + void setCbnGeographicRegionIdA(const std::string &cbnGeographicRegionIdA); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getBillingType() const; + void setBillingType(const std::string &billingType); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + int getRatio() const; + void setRatio(int ratio); + +private: + std::string bandwidthType_; + std::string clientToken_; + std::vector systemTag_; + std::string autoUseCoupon_; + std::string type_; + int autoRenewDuration_; + std::string duration_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + bool autoPay_; + std::string promotionOptionNo_; + int bandwidth_; + std::string cbnGeographicRegionIdB_; + std::string cbnGeographicRegionIdA_; + bool autoRenew_; + std::string billingType_; + std::string chargeType_; + std::string pricingCycle_; + int ratio_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationRequest.h new file mode 100644 index 000000000..381060a43 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationRequest.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_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpEndpointRelationRequest : public RpcServiceRequest { +public: + CreateBasicAccelerateIpEndpointRelationRequest(); + ~CreateBasicAccelerateIpEndpointRelationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string accelerateIpId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationResult.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationResult.h new file mode 100644 index 000000000..8741a5cea --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationResult.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_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpEndpointRelationResult : public ServiceResult + { + public: + + + CreateBasicAccelerateIpEndpointRelationResult(); + explicit CreateBasicAccelerateIpEndpointRelationResult(const std::string &payload); + ~CreateBasicAccelerateIpEndpointRelationResult(); + std::string getAccelerateIpId()const; + std::string getState()const; + std::string getEndpointId()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string accelerateIpId_; + std::string state_; + std::string endpointId_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsRequest.h new file mode 100644 index 000000000..c8c26abab --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsRequest.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_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpEndpointRelationsRequest : public RpcServiceRequest { +public: + struct AccelerateIpEndpointRelations { + std::string accelerateIpId; + std::string endpointId; + }; + CreateBasicAccelerateIpEndpointRelationsRequest(); + ~CreateBasicAccelerateIpEndpointRelationsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getAccelerateIpEndpointRelations() const; + void setAccelerateIpEndpointRelations(const std::vector &accelerateIpEndpointRelations); + +private: + std::string clientToken_; + std::string regionId_; + std::string acceleratorId_; + std::vector accelerateIpEndpointRelations_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsResult.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsResult.h new file mode 100644 index 000000000..b11203437 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpEndpointRelationsResult.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_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpEndpointRelationsResult : public ServiceResult + { + public: + + + CreateBasicAccelerateIpEndpointRelationsResult(); + explicit CreateBasicAccelerateIpEndpointRelationsResult(const std::string &payload); + ~CreateBasicAccelerateIpEndpointRelationsResult(); + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpRequest.h new file mode 100644 index 000000000..dbd79139e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpRequest.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_GA_MODEL_CREATEBASICACCELERATEIPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpRequest : public RpcServiceRequest { +public: + CreateBasicAccelerateIpRequest(); + ~CreateBasicAccelerateIpRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpResult.h b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpResult.h new file mode 100644 index 000000000..9071833c1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAccelerateIpResult.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_GA_MODEL_CREATEBASICACCELERATEIPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicAccelerateIpResult : public ServiceResult + { + public: + + + CreateBasicAccelerateIpResult(); + explicit CreateBasicAccelerateIpResult(const std::string &payload); + ~CreateBasicAccelerateIpResult(); + std::string getIpSetId()const; + std::string getAccelerateIpId()const; + std::string getAccelerateIpAddress()const; + std::string getState()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipSetId_; + std::string accelerateIpId_; + std::string accelerateIpAddress_; + std::string state_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATEIPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorRequest.h new file mode 100644 index 000000000..61f32cb2b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorRequest.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_GA_MODEL_CREATEBASICACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicAcceleratorRequest : public RpcServiceRequest { +public: + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateBasicAcceleratorRequest(); + ~CreateBasicAcceleratorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + std::string getAutoUseCoupon() const; + void setAutoUseCoupon(const std::string &autoUseCoupon); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + int getDuration() const; + void setDuration(int duration); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + std::string getBandwidthBillingType() const; + void setBandwidthBillingType(const std::string &bandwidthBillingType); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string clientToken_; + std::vector systemTag_; + std::string autoUseCoupon_; + int autoRenewDuration_; + int duration_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + bool autoPay_; + bool dryRun_; + std::string promotionOptionNo_; + std::string bandwidthBillingType_; + bool autoRenew_; + std::string chargeType_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorResult.h b/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorResult.h new file mode 100644 index 000000000..3851c5d95 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicAcceleratorResult.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_GA_MODEL_CREATEBASICACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicAcceleratorResult : public ServiceResult + { + public: + + + CreateBasicAcceleratorResult(); + explicit CreateBasicAcceleratorResult(const std::string &payload); + ~CreateBasicAcceleratorResult(); + std::string getOrderId()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupRequest.h new file mode 100644 index 000000000..670de2fbf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointGroupRequest : public RpcServiceRequest { +public: + CreateBasicEndpointGroupRequest(); + ~CreateBasicEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEndpointAddress() const; + void setEndpointAddress(const std::string &endpointAddress); + std::string getEndpointGroupRegion() const; + void setEndpointGroupRegion(const std::string &endpointGroupRegion); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointSubAddress() const; + void setEndpointSubAddress(const std::string &endpointSubAddress); + +private: + std::string clientToken_; + std::string description_; + std::string endpointAddress_; + std::string endpointGroupRegion_; + std::string regionId_; + std::string endpointType_; + std::string name_; + std::string acceleratorId_; + std::string endpointSubAddress_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupResult.h new file mode 100644 index 000000000..6190337f6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointGroupResult.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_GA_MODEL_CREATEBASICENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointGroupResult : public ServiceResult + { + public: + + + CreateBasicEndpointGroupResult(); + explicit CreateBasicEndpointGroupResult(const std::string &payload); + ~CreateBasicEndpointGroupResult(); + std::string getEndpointGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointRequest.h new file mode 100644 index 000000000..0dfbfdcd4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointRequest : public RpcServiceRequest { +public: + CreateBasicEndpointRequest(); + ~CreateBasicEndpointRequest(); + std::string getEndpointZoneId() const; + void setEndpointZoneId(const std::string &endpointZoneId); + std::string getEndpointSubAddressType() const; + void setEndpointSubAddressType(const std::string &endpointSubAddressType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointAddress() const; + void setEndpointAddress(const std::string &endpointAddress); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointSubAddress() const; + void setEndpointSubAddress(const std::string &endpointSubAddress); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string endpointZoneId_; + std::string endpointSubAddressType_; + std::string clientToken_; + std::string endpointAddress_; + std::string regionId_; + std::string endpointType_; + std::string name_; + std::string acceleratorId_; + std::string endpointSubAddress_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointResult.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointResult.h new file mode 100644 index 000000000..345bfaad3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointResult.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_GA_MODEL_CREATEBASICENDPOINTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointResult : public ServiceResult + { + public: + + + CreateBasicEndpointResult(); + explicit CreateBasicEndpointResult(const std::string &payload); + ~CreateBasicEndpointResult(); + std::string getEndpointGroupId()const; + std::string getEndpointId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + std::string endpointId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointsRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointsRequest.h new file mode 100644 index 000000000..0463d8af7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointsRequest.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_GA_MODEL_CREATEBASICENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointsRequest : public RpcServiceRequest { +public: + struct Endpoints { + std::string name; + std::string endpointType; + std::string endpointAddress; + std::string endpointSubAddress; + std::string endpointSubAddressType; + std::string endpointZoneId; + }; + CreateBasicEndpointsRequest(); + ~CreateBasicEndpointsRequest(); + std::vector getEndpoints() const; + void setEndpoints(const std::vector &endpoints); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::vector endpoints_; + std::string clientToken_; + std::string regionId_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicEndpointsResult.h b/ga/include/alibabacloud/ga/model/CreateBasicEndpointsResult.h new file mode 100644 index 000000000..f3fb0cade --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicEndpointsResult.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_GA_MODEL_CREATEBASICENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicEndpointsResult : public ServiceResult + { + public: + struct EndpointsItem + { + std::string endpointId; + std::string endpointType; + std::string endpointSubAddress; + std::string endpointAddress; + }; + + + CreateBasicEndpointsResult(); + explicit CreateBasicEndpointsResult(const std::string &payload); + ~CreateBasicEndpointsResult(); + std::vector getEndpoints()const; + std::string getEndpointGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpoints_; + std::string endpointGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateBasicIpSetRequest.h b/ga/include/alibabacloud/ga/model/CreateBasicIpSetRequest.h new file mode 100644 index 000000000..1adb24909 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicIpSetRequest.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_GA_MODEL_CREATEBASICIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateBasicIpSetRequest : public RpcServiceRequest { +public: + CreateBasicIpSetRequest(); + ~CreateBasicIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + long getBandwidth() const; + void setBandwidth(long bandwidth); + std::string getIspType() const; + void setIspType(const std::string &ispType); + std::string getAccelerateRegionId() const; + void setAccelerateRegionId(const std::string &accelerateRegionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + long bandwidth_; + std::string ispType_; + std::string accelerateRegionId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateBasicIpSetResult.h b/ga/include/alibabacloud/ga/model/CreateBasicIpSetResult.h new file mode 100644 index 000000000..ad8eb13e6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBasicIpSetResult.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_GA_MODEL_CREATEBASICIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBASICIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBasicIpSetResult : public ServiceResult + { + public: + + + CreateBasicIpSetResult(); + explicit CreateBasicIpSetResult(const std::string &payload); + ~CreateBasicIpSetResult(); + std::string getIpSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipSetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBASICIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsRequest.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsRequest.h new file mode 100644 index 000000000..8d40a84be --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsRequest.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointGroupDestinationsRequest : public RpcServiceRequest { +public: + struct DestinationConfigurations { + int fromPort; + int toPort; + }; + CreateCustomRoutingEndpointGroupDestinationsRequest(); + ~CreateCustomRoutingEndpointGroupDestinationsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getDestinationConfigurations() const; + void setDestinationConfigurations(const std::vector &destinationConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector destinationConfigurations_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsResult.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsResult.h new file mode 100644 index 000000000..89a349dfb --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupDestinationsResult.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointGroupDestinationsResult : public ServiceResult + { + public: + + + CreateCustomRoutingEndpointGroupDestinationsResult(); + explicit CreateCustomRoutingEndpointGroupDestinationsResult(const std::string &payload); + ~CreateCustomRoutingEndpointGroupDestinationsResult(); + std::vector getDestinationIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector destinationIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsRequest.h new file mode 100644 index 000000000..ee9b6b01a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointGroupsRequest : public RpcServiceRequest { +public: + struct EndpointGroupConfigurations { + std::string endpointGroupRegion; + std::string name; + std::string description; + struct DestinationConfigurations { + int fromPort; + int toPort; + }; + std::vector destinationConfigurations; + struct EndpointConfigurations { + std::string type; + std::string endpoint; + std::string trafficToEndpointPolicy; + struct PolicyConfigurations { + std::string address; + struct PortRanges { + int fromPort; + int toPort; + }; + std::vector portRanges; + }; + std::vector policyConfigurations; + }; + std::vector endpointConfigurations; + }; + CreateCustomRoutingEndpointGroupsRequest(); + ~CreateCustomRoutingEndpointGroupsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointGroupConfigurations() const; + void setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector endpointGroupConfigurations_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsResult.h new file mode 100644 index 000000000..c6a56a2f9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointGroupsResult.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointGroupsResult : public ServiceResult + { + public: + + + CreateCustomRoutingEndpointGroupsResult(); + explicit CreateCustomRoutingEndpointGroupsResult(const std::string &payload); + ~CreateCustomRoutingEndpointGroupsResult(); + std::vector getEndpointGroupIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpointGroupIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.h new file mode 100644 index 000000000..65364c74f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointTrafficPoliciesRequest : public RpcServiceRequest { +public: + struct PolicyConfigurations { + std::string address; + struct PortRanges { + int fromPort; + int toPort; + }; + std::vector portRanges; + }; + CreateCustomRoutingEndpointTrafficPoliciesRequest(); + ~CreateCustomRoutingEndpointTrafficPoliciesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::vector getPolicyConfigurations() const; + void setPolicyConfigurations(const std::vector &policyConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string endpointId_; + std::vector policyConfigurations_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesResult.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesResult.h new file mode 100644 index 000000000..991384d39 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointTrafficPoliciesResult.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointTrafficPoliciesResult : public ServiceResult + { + public: + + + CreateCustomRoutingEndpointTrafficPoliciesResult(); + explicit CreateCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload); + ~CreateCustomRoutingEndpointTrafficPoliciesResult(); + std::vector getPolicyIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policyIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsRequest.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsRequest.h new file mode 100644 index 000000000..23ef1efb7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointsRequest : public RpcServiceRequest { +public: + struct EndpointConfigurations { + std::string type; + std::string endpoint; + std::string trafficToEndpointPolicy; + struct PolicyConfigurations { + std::string address; + struct PortRanges { + int fromPort; + int toPort; + }; + std::vector portRanges; + }; + std::vector policyConfigurations; + }; + CreateCustomRoutingEndpointsRequest(); + ~CreateCustomRoutingEndpointsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointConfigurations() const; + void setEndpointConfigurations(const std::vector &endpointConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::vector endpointConfigurations_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsResult.h b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsResult.h new file mode 100644 index 000000000..13f345366 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateCustomRoutingEndpointsResult.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_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateCustomRoutingEndpointsResult : public ServiceResult + { + public: + + + CreateCustomRoutingEndpointsResult(); + explicit CreateCustomRoutingEndpointsResult(const std::string &payload); + ~CreateCustomRoutingEndpointsResult(); + std::vector getEndpointIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpointIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATECUSTOMROUTINGENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateDomainRequest.h b/ga/include/alibabacloud/ga/model/CreateDomainRequest.h new file mode 100644 index 000000000..408a26ffc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateDomainRequest.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_GA_MODEL_CREATEDOMAINREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateDomainRequest : public RpcServiceRequest { +public: + CreateDomainRequest(); + ~CreateDomainRequest(); + std::vector getAcceleratorIds() const; + void setAcceleratorIds(const std::vector &acceleratorIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::vector acceleratorIds_; + std::string regionId_; + std::string domain_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEDOMAINREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateDomainResult.h b/ga/include/alibabacloud/ga/model/CreateDomainResult.h new file mode 100644 index 000000000..779ca911b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateDomainResult.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_GA_MODEL_CREATEDOMAINRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateDomainResult : public ServiceResult + { + public: + + + CreateDomainResult(); + explicit CreateDomainResult(const std::string &payload); + ~CreateDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEDOMAINRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h index 567b2df12..250db2855 100644 --- a/ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h @@ -1,110 +1,119 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateEndpointGroupRequest : public RpcServiceRequest - { - public: - struct PortOverrides - { - int listenerPort; - int endpointPort; - }; - struct EndpointConfigurations - { - std::string type; - bool enableClientIPPreservation; - int weight; - bool enableProxyProtocol; - std::string endpoint; - }; - - public: - CreateEndpointGroupRequest(); - ~CreateEndpointGroupRequest(); - - std::vector getPortOverrides()const; - void setPortOverrides(const std::vector& portOverrides); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getHealthCheckIntervalSeconds()const; - void setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getHealthCheckProtocol()const; - void setHealthCheckProtocol(const std::string& healthCheckProtocol); - std::string getEndpointRequestProtocol()const; - void setEndpointRequestProtocol(const std::string& endpointRequestProtocol); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getHealthCheckPath()const; - void setHealthCheckPath(const std::string& healthCheckPath); - std::vector getEndpointConfigurations()const; - void setEndpointConfigurations(const std::vector& endpointConfigurations); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEndpointGroupType()const; - void setEndpointGroupType(const std::string& endpointGroupType); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - int getTrafficPercentage()const; - void setTrafficPercentage(int trafficPercentage); - int getHealthCheckPort()const; - void setHealthCheckPort(int healthCheckPort); - int getThresholdCount()const; - void setThresholdCount(int thresholdCount); - std::string getEndpointGroupRegion()const; - void setEndpointGroupRegion(const std::string& endpointGroupRegion); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector portOverrides_; - std::string clientToken_; - int healthCheckIntervalSeconds_; - std::string description_; - std::string healthCheckProtocol_; - std::string endpointRequestProtocol_; - std::string listenerId_; - std::string healthCheckPath_; - std::vector endpointConfigurations_; - std::string regionId_; - std::string endpointGroupType_; - std::string acceleratorId_; - int trafficPercentage_; - int healthCheckPort_; - int thresholdCount_; - std::string endpointGroupRegion_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateEndpointGroupRequest : public RpcServiceRequest { +public: + struct PortOverrides { + int listenerPort; + int endpointPort; + }; + struct SystemTag { + std::string key; + std::string value; + std::string scope; + }; + struct EndpointConfigurations { + std::string type; + bool enableClientIPPreservation; + int weight; + bool enableProxyProtocol; + std::string endpoint; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateEndpointGroupRequest(); + ~CreateEndpointGroupRequest(); + std::vector getPortOverrides() const; + void setPortOverrides(const std::vector &portOverrides); + bool getHealthCheckEnabled() const; + void setHealthCheckEnabled(bool healthCheckEnabled); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSystemTag() const; + void setSystemTag(const std::vector &systemTag); + int getHealthCheckIntervalSeconds() const; + void setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getHealthCheckProtocol() const; + void setHealthCheckProtocol(const std::string &healthCheckProtocol); + std::string getEndpointRequestProtocol() const; + void setEndpointRequestProtocol(const std::string &endpointRequestProtocol); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getHealthCheckPath() const; + void setHealthCheckPath(const std::string &healthCheckPath); + std::vector getEndpointConfigurations() const; + void setEndpointConfigurations(const std::vector &endpointConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupType() const; + void setEndpointGroupType(const std::string &endpointGroupType); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getTrafficPercentage() const; + void setTrafficPercentage(int trafficPercentage); + int getHealthCheckPort() const; + void setHealthCheckPort(int healthCheckPort); + int getThresholdCount() const; + void setThresholdCount(int thresholdCount); + std::string getEndpointGroupRegion() const; + void setEndpointGroupRegion(const std::string &endpointGroupRegion); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector portOverrides_; + bool healthCheckEnabled_; + std::string clientToken_; + std::vector systemTag_; + int healthCheckIntervalSeconds_; + std::string description_; + std::string healthCheckProtocol_; + std::string endpointRequestProtocol_; + std::string listenerId_; + std::string healthCheckPath_; + std::vector endpointConfigurations_; + std::string regionId_; + std::string endpointGroupType_; + std::string acceleratorId_; + std::vector tag_; + int trafficPercentage_; + int healthCheckPort_; + int thresholdCount_; + std::string endpointGroupRegion_; + std::string name_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/CreateEndpointGroupsRequest.h new file mode 100644 index 000000000..e03e2deca --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateEndpointGroupsRequest.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_GA_MODEL_CREATEENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateEndpointGroupsRequest : public RpcServiceRequest { +public: + struct EndpointGroupConfigurations { + std::string endpointGroupName; + std::string endpointGroupDescription; + std::string endpointGroupRegion; + long trafficPercentage; + bool healthCheckEnabled; + long healthCheckIntervalSeconds; + std::string healthCheckPath; + long healthCheckPort; + std::string healthCheckProtocol; + long thresholdCount; + struct EndpointConfigurations { + std::string type; + long weight; + std::string endpoint; + }; + std::vector endpointConfigurations; + std::string endpointRequestProtocol; + std::string endpointGroupType; + struct PortOverrides { + long listenerPort; + long endpointPort; + }; + std::vector portOverrides; + bool enableClientIPPreservationToa; + bool enableClientIPPreservationProxyProtocol; + }; + CreateEndpointGroupsRequest(); + ~CreateEndpointGroupsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointGroupConfigurations() const; + void setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector endpointGroupConfigurations_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/CreateEndpointGroupsResult.h new file mode 100644 index 000000000..9f65bd00a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateEndpointGroupsResult.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_GA_MODEL_CREATEENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateEndpointGroupsResult : public ServiceResult + { + public: + + + CreateEndpointGroupsResult(); + explicit CreateEndpointGroupsResult(const std::string &payload); + ~CreateEndpointGroupsResult(); + std::vector getEndpointGroupIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpointGroupIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.h b/ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.h index e0333fbd6..a79763fc8 100644 --- a/ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.h @@ -1,60 +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_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateForwardingRulesRequest : public RpcServiceRequest - { - - public: - CreateForwardingRulesRequest(); - ~CreateForwardingRulesRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - Array getForwardingRules()const; - void setForwardingRules(const Array& forwardingRules); - - private: - std::string clientToken_; - std::string listenerId_; - std::string regionId_; - std::string acceleratorId_; - Array forwardingRules_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateForwardingRulesRequest : public RpcServiceRequest { +public: + struct ForwardingRules { + int priority; + struct RuleConditionsItem { + std::string ruleConditionType; + std::string ruleConditionValue; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + }; + RuleConditionsItem ruleConditionsItem; + std::vector ruleConditions; + struct RuleActionsItem { + int order; + std::string ruleActionType; + std::string ruleActionValue; + struct ForwardGroupConfig { + struct ServerGroupTuplesItem { + std::string endpointGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + }; + RuleActionsItem ruleActionsItem; + std::vector ruleActions; + std::string forwardingRuleName; + std::string ruleDirection; + }; + CreateForwardingRulesRequest(); + ~CreateForwardingRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getForwardingRules() const; + void setForwardingRules(const std::vector &forwardingRules); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; + std::vector forwardingRules_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h b/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h index 99aa1140b..a5086918f 100644 --- a/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h @@ -1,64 +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_GA_MODEL_CREATEIPSETSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATEIPSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateIpSetsRequest : public RpcServiceRequest - { - public: - struct AccelerateRegion - { - std::string accelerateRegionId; - std::string ipVersion; - int bandwidth; - }; - - public: - CreateIpSetsRequest(); - ~CreateIpSetsRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - std::vector getAccelerateRegion()const; - void setAccelerateRegion(const std::vector& accelerateRegion); - - private: - std::string clientToken_; - std::string regionId_; - std::string acceleratorId_; - std::vector accelerateRegion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATEIPSETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATEIPSETSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEIPSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateIpSetsRequest : public RpcServiceRequest { +public: + struct AccelerateRegion { + std::string accelerateRegionId; + std::string ipVersion; + int bandwidth; + std::string ispType; + }; + CreateIpSetsRequest(); + ~CreateIpSetsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getAccelerateRegion() const; + void setAccelerateRegion(const std::vector &accelerateRegion); + +private: + std::string clientToken_; + std::string regionId_; + std::string acceleratorId_; + std::vector accelerateRegion_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATEIPSETSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h b/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h index 086366bb0..541a85442 100644 --- a/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h +++ b/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string ipSetId; std::vector ipList; + std::string ispType; int bandwidth; std::string accelerateRegionId; }; diff --git a/ga/include/alibabacloud/ga/model/CreateListenerRequest.h b/ga/include/alibabacloud/ga/model/CreateListenerRequest.h index c9af626a6..d026ba0b9 100644 --- a/ga/include/alibabacloud/ga/model/CreateListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/CreateListenerRequest.h @@ -1,93 +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. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT CreateListenerRequest : public RpcServiceRequest - { - public: - struct BackendPorts - { + */ + +#ifndef ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateListenerRequest : public RpcServiceRequest { +public: + struct CustomRoutingEndpointGroupConfigurations { + std::string endpointGroupRegion; + std::string name; + std::string description; + struct DestinationConfigurationsItem { + std::string string; + std::vector protocols; + int fromPort; + int toPort; + }; + DestinationConfigurationsItem destinationConfigurationsItem; + std::vector destinationConfigurations; + struct EndpointConfigurationsItem { + std::string type; + std::string endpoint; + std::string trafficToEndpointPolicy; + struct PolicyConfigurationsItem { + std::string address; + struct PortRangesItem { int fromPort; int toPort; }; - struct PortRanges - { - int fromPort; - int toPort; - }; - struct Certificates - { - std::string id; - }; - - public: - CreateListenerRequest(); - ~CreateListenerRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::vector getBackendPorts()const; - void setBackendPorts(const std::vector& backendPorts); - std::string getProtocol()const; - void setProtocol(const std::string& protocol); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - bool getProxyProtocol()const; - void setProxyProtocol(bool proxyProtocol); - std::vector getPortRanges()const; - void setPortRanges(const std::vector& portRanges); - std::vector getCertificates()const; - void setCertificates(const std::vector& certificates); - std::string getName()const; - void setName(const std::string& name); - std::string getClientAffinity()const; - void setClientAffinity(const std::string& clientAffinity); - - private: - std::string clientToken_; - std::string description_; - std::vector backendPorts_; - std::string protocol_; - std::string regionId_; - std::string acceleratorId_; - bool proxyProtocol_; - std::vector portRanges_; - std::vector certificates_; - std::string name_; - std::string clientAffinity_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ \ No newline at end of file + PortRangesItem portRangesItem; + std::vector portRanges; + }; + PolicyConfigurationsItem policyConfigurationsItem; + std::vector policyConfigurations; + }; + EndpointConfigurationsItem endpointConfigurationsItem; + std::vector endpointConfigurations; + }; + struct BackendPorts { + int fromPort; + int toPort; + }; + struct EndpointGroupConfigurations { + std::string endpointGroupName; + std::string endpointGroupDescription; + std::string endpointGroupRegion; + long trafficPercentage; + bool healthCheckEnabled; + long healthCheckIntervalSeconds; + std::string healthCheckPath; + long healthCheckPort; + std::string healthCheckProtocol; + long thresholdCount; + struct EndpointConfigurationsItem { + std::string type; + long weight; + std::string endpoint; + }; + EndpointConfigurationsItem endpointConfigurationsItem; + std::vector endpointConfigurations; + std::string endpointRequestProtocol; + std::string endpointGroupType; + struct PortOverridesItem { + long listenerPort; + long endpointPort; + }; + PortOverridesItem portOverridesItem; + std::vector portOverrides; + bool enableClientIPPreservationToa; + bool enableClientIPPreservationProxyProtocol; + }; + struct XForwardedForConfig { + bool xForwardedForGaIdEnabled; + bool xForwardedForGaApEnabled; + bool xForwardedForProtoEnabled; + bool xForwardedForPortEnabled; + bool xRealIpEnabled; + }; + struct PortRanges { + int fromPort; + int toPort; + }; + struct Certificates { + std::string id; + }; + CreateListenerRequest(); + ~CreateListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::vector getCustomRoutingEndpointGroupConfigurations() const; + void setCustomRoutingEndpointGroupConfigurations(const std::vector &customRoutingEndpointGroupConfigurations); + std::string getType() const; + void setType(const std::string &type); + std::vector getBackendPorts() const; + void setBackendPorts(const std::vector &backendPorts); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getEndpointGroupConfigurations() const; + void setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations); + XForwardedForConfig getXForwardedForConfig() const; + void setXForwardedForConfig(const XForwardedForConfig &xForwardedForConfig); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + bool getProxyProtocol() const; + void setProxyProtocol(bool proxyProtocol); + std::vector getPortRanges() const; + void setPortRanges(const std::vector &portRanges); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + std::string getName() const; + void setName(const std::string &name); + std::string getClientAffinity() const; + void setClientAffinity(const std::string &clientAffinity); + +private: + std::string clientToken_; + std::string description_; + std::vector customRoutingEndpointGroupConfigurations_; + std::string type_; + std::vector backendPorts_; + std::string protocol_; + std::string regionId_; + std::string acceleratorId_; + std::vector endpointGroupConfigurations_; + XForwardedForConfig xForwardedForConfig_; + std::string securityPolicyId_; + bool proxyProtocol_; + std::vector portRanges_; + std::vector certificates_; + std::string name_; + std::string clientAffinity_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATELISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateSpareIpsRequest.h b/ga/include/alibabacloud/ga/model/CreateSpareIpsRequest.h new file mode 100644 index 000000000..b3e14c3ec --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateSpareIpsRequest.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_GA_MODEL_CREATESPAREIPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_CREATESPAREIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT CreateSpareIpsRequest : public RpcServiceRequest { +public: + CreateSpareIpsRequest(); + ~CreateSpareIpsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSpareIps() const; + void setSpareIps(const std::vector &spareIps); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector spareIps_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_CREATESPAREIPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/CreateSpareIpsResult.h b/ga/include/alibabacloud/ga/model/CreateSpareIpsResult.h new file mode 100644 index 000000000..1dd7dcbcc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateSpareIpsResult.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_GA_MODEL_CREATESPAREIPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATESPAREIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateSpareIpsResult : public ServiceResult + { + public: + + + CreateSpareIpsResult(); + explicit CreateSpareIpsResult(const std::string &payload); + ~CreateSpareIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATESPAREIPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.h index ee173c7fc..d73235803 100644 --- a/ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteAcceleratorRequest : public RpcServiceRequest - { - - public: - DeleteAcceleratorRequest(); - ~DeleteAcceleratorRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteAcceleratorRequest : public RpcServiceRequest { +public: + DeleteAcceleratorRequest(); + ~DeleteAcceleratorRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteAclRequest.h b/ga/include/alibabacloud/ga/model/DeleteAclRequest.h index 072075ab3..954101dd9 100644 --- a/ga/include/alibabacloud/ga/model/DeleteAclRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteAclRequest.h @@ -1,57 +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_GA_MODEL_DELETEACLREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteAclRequest : public RpcServiceRequest - { - - public: - DeleteAclRequest(); - ~DeleteAclRequest(); - - std::string getAclId()const; - void setAclId(const std::string& aclId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string aclId_; - bool dryRun_; - std::string clientToken_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteAclRequest : public RpcServiceRequest { +public: + DeleteAclRequest(); + ~DeleteAclRequest(); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string aclId_; + bool dryRun_; + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEACLREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorRequest.h new file mode 100644 index 000000000..6eeb354b9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorRequest.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_GA_MODEL_DELETEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteApplicationMonitorRequest : public RpcServiceRequest { +public: + DeleteApplicationMonitorRequest(); + ~DeleteApplicationMonitorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string regionId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorResult.h new file mode 100644 index 000000000..6acdf99cd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteApplicationMonitorResult.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_GA_MODEL_DELETEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteApplicationMonitorResult : public ServiceResult + { + public: + + + DeleteApplicationMonitorResult(); + explicit DeleteApplicationMonitorResult(const std::string &payload); + ~DeleteApplicationMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h index 741406d53..5955fe7df 100644 --- a/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h @@ -1,54 +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_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest - { - - public: - DeleteBandwidthPackageRequest(); - ~DeleteBandwidthPackageRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string bandwidthPackageId_; - std::string clientToken_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest { +public: + DeleteBandwidthPackageRequest(); + ~DeleteBandwidthPackageRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string bandwidthPackageId_; + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationRequest.h new file mode 100644 index 000000000..3d4f24d48 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationRequest.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_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicAccelerateIpEndpointRelationRequest : public RpcServiceRequest { +public: + DeleteBasicAccelerateIpEndpointRelationRequest(); + ~DeleteBasicAccelerateIpEndpointRelationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string accelerateIpId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationResult.h new file mode 100644 index 000000000..8d2603eb3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpEndpointRelationResult.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_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicAccelerateIpEndpointRelationResult : public ServiceResult + { + public: + + + DeleteBasicAccelerateIpEndpointRelationResult(); + explicit DeleteBasicAccelerateIpEndpointRelationResult(const std::string &payload); + ~DeleteBasicAccelerateIpEndpointRelationResult(); + std::string getAccelerateIpId()const; + std::string getState()const; + std::string getEndpointId()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string accelerateIpId_; + std::string state_; + std::string endpointId_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpRequest.h new file mode 100644 index 000000000..196a36782 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpRequest.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_GA_MODEL_DELETEBASICACCELERATEIPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicAccelerateIpRequest : public RpcServiceRequest { +public: + DeleteBasicAccelerateIpRequest(); + ~DeleteBasicAccelerateIpRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string accelerateIpId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpResult.h new file mode 100644 index 000000000..8db5dfdf3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAccelerateIpResult.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_GA_MODEL_DELETEBASICACCELERATEIPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicAccelerateIpResult : public ServiceResult + { + public: + + + DeleteBasicAccelerateIpResult(); + explicit DeleteBasicAccelerateIpResult(const std::string &payload); + ~DeleteBasicAccelerateIpResult(); + std::string getAccelerateIpId()const; + + protected: + void parse(const std::string &payload); + private: + std::string accelerateIpId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATEIPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorRequest.h new file mode 100644 index 000000000..78cde4ed4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicAcceleratorRequest : public RpcServiceRequest { +public: + DeleteBasicAcceleratorRequest(); + ~DeleteBasicAcceleratorRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorResult.h new file mode 100644 index 000000000..196c0ae31 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicAcceleratorResult.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_GA_MODEL_DELETEBASICACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicAcceleratorResult : public ServiceResult + { + public: + + + DeleteBasicAcceleratorResult(); + explicit DeleteBasicAcceleratorResult(const std::string &payload); + ~DeleteBasicAcceleratorResult(); + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupRequest.h new file mode 100644 index 000000000..6cc6b2a1a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupRequest.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_GA_MODEL_DELETEBASICENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicEndpointGroupRequest : public RpcServiceRequest { +public: + DeleteBasicEndpointGroupRequest(); + ~DeleteBasicEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupResult.h new file mode 100644 index 000000000..67fa23b8f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointGroupResult.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_GA_MODEL_DELETEBASICENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicEndpointGroupResult : public ServiceResult + { + public: + + + DeleteBasicEndpointGroupResult(); + explicit DeleteBasicEndpointGroupResult(const std::string &payload); + ~DeleteBasicEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicEndpointRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointRequest.h new file mode 100644 index 000000000..286e5119e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointRequest.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_GA_MODEL_DELETEBASICENDPOINTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicEndpointRequest : public RpcServiceRequest { +public: + DeleteBasicEndpointRequest(); + ~DeleteBasicEndpointRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicEndpointResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointResult.h new file mode 100644 index 000000000..6dc95e5b6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicEndpointResult.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_GA_MODEL_DELETEBASICENDPOINTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicEndpointResult : public ServiceResult + { + public: + + + DeleteBasicEndpointResult(); + explicit DeleteBasicEndpointResult(const std::string &payload); + ~DeleteBasicEndpointResult(); + std::string getEndpointId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICENDPOINTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicIpSetRequest.h b/ga/include/alibabacloud/ga/model/DeleteBasicIpSetRequest.h new file mode 100644 index 000000000..76d17c77b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicIpSetRequest.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_GA_MODEL_DELETEBASICIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteBasicIpSetRequest : public RpcServiceRequest { +public: + DeleteBasicIpSetRequest(); + ~DeleteBasicIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteBasicIpSetResult.h b/ga/include/alibabacloud/ga/model/DeleteBasicIpSetResult.h new file mode 100644 index 000000000..5b76c20e5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBasicIpSetResult.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_GA_MODEL_DELETEBASICIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBASICIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBasicIpSetResult : public ServiceResult + { + public: + + + DeleteBasicIpSetResult(); + explicit DeleteBasicIpSetResult(const std::string &payload); + ~DeleteBasicIpSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBASICIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.h new file mode 100644 index 000000000..9389de48b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointGroupDestinationsRequest : public RpcServiceRequest { +public: + DeleteCustomRoutingEndpointGroupDestinationsRequest(); + ~DeleteCustomRoutingEndpointGroupDestinationsRequest(); + std::vector getDestinationIds() const; + void setDestinationIds(const std::vector &destinationIds); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::vector destinationIds_; + bool dryRun_; + std::string clientToken_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsResult.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsResult.h new file mode 100644 index 000000000..e358e71bf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupDestinationsResult.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointGroupDestinationsResult : public ServiceResult + { + public: + + + DeleteCustomRoutingEndpointGroupDestinationsResult(); + explicit DeleteCustomRoutingEndpointGroupDestinationsResult(const std::string &payload); + ~DeleteCustomRoutingEndpointGroupDestinationsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsRequest.h new file mode 100644 index 000000000..c1948d17e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsRequest.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointGroupsRequest : public RpcServiceRequest { +public: + DeleteCustomRoutingEndpointGroupsRequest(); + ~DeleteCustomRoutingEndpointGroupsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointGroupIds() const; + void setEndpointGroupIds(const std::vector &endpointGroupIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector endpointGroupIds_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsResult.h new file mode 100644 index 000000000..175235034 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointGroupsResult.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointGroupsResult : public ServiceResult + { + public: + + + DeleteCustomRoutingEndpointGroupsResult(); + explicit DeleteCustomRoutingEndpointGroupsResult(const std::string &payload); + ~DeleteCustomRoutingEndpointGroupsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.h new file mode 100644 index 000000000..7ab66073e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointTrafficPoliciesRequest : public RpcServiceRequest { +public: + DeleteCustomRoutingEndpointTrafficPoliciesRequest(); + ~DeleteCustomRoutingEndpointTrafficPoliciesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::vector getPolicyIds() const; + void setPolicyIds(const std::vector &policyIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string endpointId_; + std::vector policyIds_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.h new file mode 100644 index 000000000..0d0829ae6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointTrafficPoliciesResult : public ServiceResult + { + public: + + + DeleteCustomRoutingEndpointTrafficPoliciesResult(); + explicit DeleteCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload); + ~DeleteCustomRoutingEndpointTrafficPoliciesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsRequest.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsRequest.h new file mode 100644 index 000000000..5398239aa --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsRequest.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointsRequest : public RpcServiceRequest { +public: + DeleteCustomRoutingEndpointsRequest(); + ~DeleteCustomRoutingEndpointsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointIds() const; + void setEndpointIds(const std::vector &endpointIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::vector endpointIds_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsResult.h b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsResult.h new file mode 100644 index 000000000..e22e4fbc6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteCustomRoutingEndpointsResult.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_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteCustomRoutingEndpointsResult : public ServiceResult + { + public: + + + DeleteCustomRoutingEndpointsResult(); + explicit DeleteCustomRoutingEndpointsResult(const std::string &payload); + ~DeleteCustomRoutingEndpointsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETECUSTOMROUTINGENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationRequest.h b/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationRequest.h new file mode 100644 index 000000000..b19c7318e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationRequest.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_GA_MODEL_DELETEDOMAINACCELERATORRELATIONREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEDOMAINACCELERATORRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteDomainAcceleratorRelationRequest : public RpcServiceRequest { +public: + DeleteDomainAcceleratorRelationRequest(); + ~DeleteDomainAcceleratorRelationRequest(); + std::vector getAcceleratorIds() const; + void setAcceleratorIds(const std::vector &acceleratorIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::vector acceleratorIds_; + std::string regionId_; + std::string domain_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEDOMAINACCELERATORRELATIONREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationResult.h b/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationResult.h new file mode 100644 index 000000000..1a940ebc0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteDomainAcceleratorRelationResult.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_GA_MODEL_DELETEDOMAINACCELERATORRELATIONRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEDOMAINACCELERATORRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteDomainAcceleratorRelationResult : public ServiceResult + { + public: + + + DeleteDomainAcceleratorRelationResult(); + explicit DeleteDomainAcceleratorRelationResult(const std::string &payload); + ~DeleteDomainAcceleratorRelationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEDOMAINACCELERATORRELATIONRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h index df6fe878e..ae39cdccb 100644 --- a/ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h @@ -1,57 +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_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteEndpointGroupRequest : public RpcServiceRequest - { - - public: - DeleteEndpointGroupRequest(); - ~DeleteEndpointGroupRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - - private: - std::string clientToken_; - std::string regionId_; - std::string acceleratorId_; - std::string endpointGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteEndpointGroupRequest : public RpcServiceRequest { +public: + DeleteEndpointGroupRequest(); + ~DeleteEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string regionId_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsRequest.h new file mode 100644 index 000000000..3dac1bfc2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsRequest.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_GA_MODEL_DELETEENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteEndpointGroupsRequest : public RpcServiceRequest { +public: + DeleteEndpointGroupsRequest(); + ~DeleteEndpointGroupsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointGroupIds() const; + void setEndpointGroupIds(const std::vector &endpointGroupIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector endpointGroupIds_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsResult.h new file mode 100644 index 000000000..4bcd9bc96 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupsResult.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_GA_MODEL_DELETEENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteEndpointGroupsResult : public ServiceResult + { + public: + + + DeleteEndpointGroupsResult(); + explicit DeleteEndpointGroupsResult(const std::string &payload); + ~DeleteEndpointGroupsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h b/ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h index 675be59e7..7b1f4958f 100644 --- a/ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h @@ -1,60 +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_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteForwardingRulesRequest : public RpcServiceRequest - { - - public: - DeleteForwardingRulesRequest(); - ~DeleteForwardingRulesRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - Array getForwardingRuleIds()const; - void setForwardingRuleIds(const Array& forwardingRuleIds); - - private: - std::string clientToken_; - std::string listenerId_; - std::string regionId_; - std::string acceleratorId_; - Array forwardingRuleIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteForwardingRulesRequest : public RpcServiceRequest { +public: + DeleteForwardingRulesRequest(); + ~DeleteForwardingRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getForwardingRuleIds() const; + void setForwardingRuleIds(const std::vector &forwardingRuleIds); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; + std::vector forwardingRuleIds_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h b/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h index a1c5a973e..794aec947 100644 --- a/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h @@ -1,57 +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_GA_MODEL_DELETEIPSETREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEIPSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteIpSetRequest : public RpcServiceRequest - { - - public: - DeleteIpSetRequest(); - ~DeleteIpSetRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getIpSetId()const; - void setIpSetId(const std::string& ipSetId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string clientToken_; - std::string ipSetId_; - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteIpSetRequest : public RpcServiceRequest { +public: + DeleteIpSetRequest(); + ~DeleteIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h b/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h index 27066825b..ee6f6b1dc 100644 --- a/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DeleteIpSetsRequest : public RpcServiceRequest - { - - public: - DeleteIpSetsRequest(); - ~DeleteIpSetsRequest(); - - std::vector getIpSetIds()const; - void setIpSetIds(const std::vector& ipSetIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::vector ipSetIds_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteIpSetsRequest : public RpcServiceRequest { +public: + DeleteIpSetsRequest(); + ~DeleteIpSetsRequest(); + std::vector getIpSetIds() const; + void setIpSetIds(const std::vector &ipSetIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::vector ipSetIds_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h b/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h index b47445419..fc3546977 100644 --- a/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h @@ -1,57 +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_GA_MODEL_DELETELISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DELETELISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_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); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string clientToken_; - std::string listenerId_; - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DELETELISTENERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETELISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_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); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETELISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteSpareIpsRequest.h b/ga/include/alibabacloud/ga/model/DeleteSpareIpsRequest.h new file mode 100644 index 000000000..e6b5f1e3a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteSpareIpsRequest.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_GA_MODEL_DELETESPAREIPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DELETESPAREIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DeleteSpareIpsRequest : public RpcServiceRequest { +public: + DeleteSpareIpsRequest(); + ~DeleteSpareIpsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getSpareIps() const; + void setSpareIps(const std::vector &spareIps); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector spareIps_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DELETESPAREIPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DeleteSpareIpsResult.h b/ga/include/alibabacloud/ga/model/DeleteSpareIpsResult.h new file mode 100644 index 000000000..9fb9a6eb2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteSpareIpsResult.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_GA_MODEL_DELETESPAREIPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETESPAREIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteSpareIpsResult : public ServiceResult + { + public: + + + DeleteSpareIpsResult(); + explicit DeleteSpareIpsResult(const std::string &payload); + ~DeleteSpareIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETESPAREIPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeRequest.h b/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeRequest.h new file mode 100644 index 000000000..3818570b3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorAutoRenewAttributeRequest : public RpcServiceRequest { +public: + DescribeAcceleratorAutoRenewAttributeRequest(); + ~DescribeAcceleratorAutoRenewAttributeRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeResult.h b/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeResult.h new file mode 100644 index 000000000..32b6898d3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorAutoRenewAttributeResult.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_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorAutoRenewAttributeResult : public ServiceResult + { + public: + + + DescribeAcceleratorAutoRenewAttributeResult(); + explicit DescribeAcceleratorAutoRenewAttributeResult(const std::string &payload); + ~DescribeAcceleratorAutoRenewAttributeResult(); + bool getAutoRenew()const; + std::string getRenewalStatus()const; + std::string getAcceleratorId()const; + int getAutoRenewDuration()const; + + protected: + void parse(const std::string &payload); + private: + bool autoRenew_; + std::string renewalStatus_; + std::string acceleratorId_; + int autoRenewDuration_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.h index ba02796cd..2a37515ca 100644 --- a/ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorRequest : public RpcServiceRequest - { - - public: - DescribeAcceleratorRequest(); - ~DescribeAcceleratorRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorRequest : public RpcServiceRequest { +public: + DescribeAcceleratorRequest(); + ~DescribeAcceleratorRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h b/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h index 28e0e4f35..39791193f 100644 --- a/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h @@ -32,56 +32,81 @@ namespace AlibabaCloud class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorResult : public ServiceResult { public: + struct CrossDomainBandwidthPackage + { + std::string instanceId; + int bandwidth; + }; struct BasicBandwidthPackage { std::string bandwidthType; std::string instanceId; int bandwidth; }; - struct CrossDomainBandwidthPackage + struct IpSetConfig { - std::string instanceId; - int bandwidth; + std::string accessMode; + }; + struct TagsItem + { + std::string value; + std::string key; }; DescribeAcceleratorResult(); explicit DescribeAcceleratorResult(const std::string &payload); ~DescribeAcceleratorResult(); + std::string getUpgradableStatus()const; std::string getDdosId()const; std::string getDnsName()const; std::string getDescription()const; + std::string getResourceGroupId()const; std::string getInstanceChargeType()const; long getCreateTime()const; CrossDomainBandwidthPackage getCrossDomainBandwidthPackage()const; + IpSetConfig getIpSetConfig()const; std::string getSecondDnsName()const; std::string getName()const; + std::string getCrossBorderMode()const; + std::string getBandwidthBillingType()const; BasicBandwidthPackage getBasicBandwidthPackage()const; std::string getState()const; long getExpiredTime()const; std::string getCenId()const; + std::string getCrossPrivateState()const; std::string getRegionId()const; std::string getSpec()const; std::string getAcceleratorId()const; + std::vector getTags()const; + bool getCrossBorderStatus()const; protected: void parse(const std::string &payload); private: + std::string upgradableStatus_; std::string ddosId_; std::string dnsName_; std::string description_; + std::string resourceGroupId_; std::string instanceChargeType_; long createTime_; CrossDomainBandwidthPackage crossDomainBandwidthPackage_; + IpSetConfig ipSetConfig_; std::string secondDnsName_; std::string name_; + std::string crossBorderMode_; + std::string bandwidthBillingType_; BasicBandwidthPackage basicBandwidthPackage_; std::string state_; long expiredTime_; std::string cenId_; + std::string crossPrivateState_; std::string regionId_; std::string spec_; std::string acceleratorId_; + std::vector tags_; + bool crossBorderStatus_; }; } diff --git a/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorRequest.h new file mode 100644 index 000000000..18c24c7bd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorRequest.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_GA_MODEL_DESCRIBEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeApplicationMonitorRequest : public RpcServiceRequest { +public: + DescribeApplicationMonitorRequest(); + ~DescribeApplicationMonitorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string regionId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorResult.h new file mode 100644 index 000000000..6164f43f2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeApplicationMonitorResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeApplicationMonitorResult : public ServiceResult + { + public: + struct 探测点列表 + { + std::string ispName; + std::string isp; + std::string city; + std::string cityName; + }; + + + DescribeApplicationMonitorResult(); + explicit DescribeApplicationMonitorResult(const std::string &payload); + ~DescribeApplicationMonitorResult(); + int getSilenceTime()const; + int getDetectThreshold()const; + std::string getTaskId()const; + std::string getAddress()const; + bool getDetectEnable()const; + std::string getTaskName()const; + std::string getOptionsJson()const; + std::string getRegionId()const; + std::string getAcceleratorId()const; + int getDetectTimes()const; + std::vector<探测点列表> getIspCityList()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + int silenceTime_; + int detectThreshold_; + std::string taskId_; + std::string address_; + bool detectEnable_; + std::string taskName_; + std::string optionsJson_; + std::string regionId_; + std::string acceleratorId_; + int detectTimes_; + std::vector<探测点列表> ispCityList_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeRequest.h b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeRequest.h new file mode 100644 index 000000000..29ceb33de --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageAutoRenewAttributeRequest : public RpcServiceRequest { +public: + DescribeBandwidthPackageAutoRenewAttributeRequest(); + ~DescribeBandwidthPackageAutoRenewAttributeRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeResult.h b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeResult.h new file mode 100644 index 000000000..a4f7438de --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageAutoRenewAttributeResult.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_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageAutoRenewAttributeResult : public ServiceResult + { + public: + + + DescribeBandwidthPackageAutoRenewAttributeResult(); + explicit DescribeBandwidthPackageAutoRenewAttributeResult(const std::string &payload); + ~DescribeBandwidthPackageAutoRenewAttributeResult(); + std::string getInstanceId()const; + bool getAutoRenew()const; + std::string getRenewalStatus()const; + int getAutoRenewDuration()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + bool autoRenew_; + std::string renewalStatus_; + int autoRenewDuration_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h index d6cbdeee0..47d0994d3 100644 --- a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageRequest : public RpcServiceRequest - { - - public: - DescribeBandwidthPackageRequest(); - ~DescribeBandwidthPackageRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string bandwidthPackageId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageRequest : public RpcServiceRequest { +public: + DescribeBandwidthPackageRequest(); + ~DescribeBandwidthPackageRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string bandwidthPackageId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h index 5cc5b6234..26bb67347 100644 --- a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h @@ -32,46 +32,55 @@ namespace AlibabaCloud class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageResult : public ServiceResult { public: + struct TagsItem + { + std::string value; + std::string key; + }; DescribeBandwidthPackageResult(); explicit DescribeBandwidthPackageResult(const std::string &payload); ~DescribeBandwidthPackageResult(); std::string getCbnGeographicRegionIdB()const; - std::string getDescription()const; std::string getCbnGeographicRegionIdA()const; + std::string getDescription()const; + std::string getResourceGroupId()const; std::string getCreateTime()const; std::string getName()const; std::string getBandwidthType()const; std::string getType()const; std::vector getAccelerators()const; - std::string getChargeType()const; std::string getState()const; - std::string getExpiredTime()const; + std::string getChargeType()const; int getBandwidth()const; + std::string getExpiredTime()const; std::string getBandwidthPackageId()const; int getRatio()const; std::string getRegionId()const; + std::vector getTags()const; std::string getBillingType()const; protected: void parse(const std::string &payload); private: std::string cbnGeographicRegionIdB_; - std::string description_; std::string cbnGeographicRegionIdA_; + std::string description_; + std::string resourceGroupId_; std::string createTime_; std::string name_; std::string bandwidthType_; std::string type_; std::vector accelerators_; - std::string chargeType_; std::string state_; - std::string expiredTime_; + std::string chargeType_; int bandwidth_; + std::string expiredTime_; std::string bandwidthPackageId_; int ratio_; std::string regionId_; + std::vector tags_; std::string billingType_; }; diff --git a/ga/include/alibabacloud/ga/model/DescribeCommodityPriceRequest.h b/ga/include/alibabacloud/ga/model/DescribeCommodityPriceRequest.h new file mode 100644 index 000000000..797df5c7f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCommodityPriceRequest.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_GA_MODEL_DESCRIBECOMMODITYPRICEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCommodityPriceRequest : public RpcServiceRequest { +public: + struct Orders { + std::string commodityCode; + std::string orderType; + std::string chargeType; + std::string pricingCycle; + long duration; + long quantity; + struct ComponentsItem { + std::string componentCode; + struct PropertiesItem { + std::string code; + std::string value; + }; + PropertiesItem propertiesItem; + std::vector properties; + }; + ComponentsItem componentsItem; + std::vector components; + }; + DescribeCommodityPriceRequest(); + ~DescribeCommodityPriceRequest(); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getOrders() const; + void setOrders(const std::vector &orders); + +private: + std::string promotionOptionNo_; + std::string regionId_; + std::vector orders_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYPRICEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCommodityPriceResult.h b/ga/include/alibabacloud/ga/model/DescribeCommodityPriceResult.h new file mode 100644 index 000000000..1ead32d5a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCommodityPriceResult.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYPRICERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCommodityPriceResult : public ServiceResult + { + public: + struct OrderDetailsItem + { + struct ModuleDetailsItem + { + double originalPrice; + std::string moduleCode; + std::string moduleName; + double discountPrice; + double tradePrice; + }; + struct PromDetailsItem + { + std::string promotionName; + std::string promotionId; + double finalPromFee; + std::string optionCode; + std::string promType; + }; + double originalPrice; + double discountPrice; + std::vector promDetails; + std::string commodityCode; + long quantity; + std::vector ruleIds; + std::vector moduleDetails; + double tradePrice; + std::string commodityName; + }; + struct RuleDetailsItem + { + std::string ruleId; + std::string ruleName; + }; + struct PromotionDetails + { + std::string promotionName; + std::string promotionOptionNo; + double canPromFee; + bool selected; + std::string optionCode; + }; + + + DescribeCommodityPriceResult(); + explicit DescribeCommodityPriceResult(const std::string &payload); + ~DescribeCommodityPriceResult(); + double getOriginalPrice()const; + std::vector getPromotions()const; + std::vector getOrderDetails()const; + std::string getCurrency()const; + double getDiscountPrice()const; + double getTradePrice()const; + std::vector getRuleDetails()const; + + protected: + void parse(const std::string &payload); + private: + double originalPrice_; + std::vector promotions_; + std::vector orderDetails_; + std::string currency_; + double discountPrice_; + double tradePrice_; + std::vector ruleDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYPRICERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeCommodityRequest.h b/ga/include/alibabacloud/ga/model/DescribeCommodityRequest.h new file mode 100644 index 000000000..44fabba37 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCommodityRequest.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_GA_MODEL_DESCRIBECOMMODITYREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCommodityRequest : public RpcServiceRequest { +public: + DescribeCommodityRequest(); + ~DescribeCommodityRequest(); + std::string getCommodityCode() const; + void setCommodityCode(const std::string &commodityCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string commodityCode_; + std::string regionId_; + std::string orderType_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCommodityResult.h b/ga/include/alibabacloud/ga/model/DescribeCommodityResult.h new file mode 100644 index 000000000..a73c51dd9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCommodityResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCommodityResult : public ServiceResult + { + public: + struct ComponentsItem + { + struct PropertiesItem + { + struct PropertyValueListItem + { + std::string value; + std::string text; + long orderIndex; + std::string tips; + }; + std::string code; + std::vector propertyValueList; + std::string name; + }; + std::string componentCode; + std::string componentName; + std::vector properties; + }; + + + DescribeCommodityResult(); + explicit DescribeCommodityResult(const std::string &payload); + ~DescribeCommodityResult(); + std::vector getComponents()const; + std::string getCommodityCode()const; + std::string getCommodityName()const; + + protected: + void parse(const std::string &payload); + private: + std::vector components_; + std::string commodityCode_; + std::string commodityName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECOMMODITYRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.h new file mode 100644 index 000000000..fe8cea602 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.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_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndPointTrafficPolicyRequest : public RpcServiceRequest { +public: + DescribeCustomRoutingEndPointTrafficPolicyRequest(); + ~DescribeCustomRoutingEndPointTrafficPolicyRequest(); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string endpointId_; + std::string policyId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyResult.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyResult.h new file mode 100644 index 000000000..e8faf8c21 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndPointTrafficPolicyResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndPointTrafficPolicyResult : public ServiceResult + { + public: + struct PortRangesItem + { + int fromPort; + int toPort; + }; + + + DescribeCustomRoutingEndPointTrafficPolicyResult(); + explicit DescribeCustomRoutingEndPointTrafficPolicyResult(const std::string &payload); + ~DescribeCustomRoutingEndPointTrafficPolicyResult(); + std::string getEndpointGroupId()const; + std::string getEndpoint()const; + std::string getAddress()const; + std::string getState()const; + std::vector getPortRanges()const; + std::string getEndpointId()const; + std::string getAcceleratorId()const; + std::string getPolicyId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + std::string endpoint_; + std::string address_; + std::string state_; + std::vector portRanges_; + std::string endpointId_; + std::string acceleratorId_; + std::string policyId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTTRAFFICPOLICYRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.h new file mode 100644 index 000000000..1f501810f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.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_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointGroupDestinationsRequest : public RpcServiceRequest { +public: + DescribeCustomRoutingEndpointGroupDestinationsRequest(); + ~DescribeCustomRoutingEndpointGroupDestinationsRequest(); + std::string getDestinationId() const; + void setDestinationId(const std::string &destinationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string destinationId_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsResult.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsResult.h new file mode 100644 index 000000000..693b0f6b9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupDestinationsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointGroupDestinationsResult : public ServiceResult + { + public: + + + DescribeCustomRoutingEndpointGroupDestinationsResult(); + explicit DescribeCustomRoutingEndpointGroupDestinationsResult(const std::string &payload); + ~DescribeCustomRoutingEndpointGroupDestinationsResult(); + std::vector getProtocols()const; + std::string getEndpointGroupId()const; + int getFromPort()const; + int getToPort()const; + std::string getState()const; + std::string getAcceleratorId()const; + std::string getDestinationId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector protocols_; + std::string endpointGroupId_; + int fromPort_; + int toPort_; + std::string state_; + std::string acceleratorId_; + std::string destinationId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupRequest.h new file mode 100644 index 000000000..35735940d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointGroupRequest : public RpcServiceRequest { +public: + DescribeCustomRoutingEndpointGroupRequest(); + ~DescribeCustomRoutingEndpointGroupRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupResult.h new file mode 100644 index 000000000..7ffbb37ff --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointGroupResult.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_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointGroupResult : public ServiceResult + { + public: + + + DescribeCustomRoutingEndpointGroupResult(); + explicit DescribeCustomRoutingEndpointGroupResult(const std::string &payload); + ~DescribeCustomRoutingEndpointGroupResult(); + std::string getEndpointGroupId()const; + std::string getDescription()const; + std::string getSlsRegion()const; + std::string getSlsLogStoreName()const; + std::string getName()const; + std::vector getEndpointGroupIpList()const; + bool getEnableAccessLog()const; + std::string getEndpointGroupRegion()const; + std::vector getEndpointGroupUnconfirmedIpList()const; + std::string getSlsProjectName()const; + std::string getState()const; + std::string getAccessLogSwitch()const; + std::string getAcceleratorId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + std::string description_; + std::string slsRegion_; + std::string slsLogStoreName_; + std::string name_; + std::vector endpointGroupIpList_; + bool enableAccessLog_; + std::string endpointGroupRegion_; + std::vector endpointGroupUnconfirmedIpList_; + std::string slsProjectName_; + std::string state_; + std::string accessLogSwitch_; + std::string acceleratorId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointRequest.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointRequest.h new file mode 100644 index 000000000..6640f566c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointRequest.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_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointRequest : public RpcServiceRequest { +public: + DescribeCustomRoutingEndpointRequest(); + ~DescribeCustomRoutingEndpointRequest(); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getEndpointGroup() const; + void setEndpointGroup(const std::string &endpointGroup); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string endpointId_; + std::string endpointGroup_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointResult.h b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointResult.h new file mode 100644 index 000000000..ba1e64762 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeCustomRoutingEndpointResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeCustomRoutingEndpointResult : public ServiceResult + { + public: + + + DescribeCustomRoutingEndpointResult(); + explicit DescribeCustomRoutingEndpointResult(const std::string &payload); + ~DescribeCustomRoutingEndpointResult(); + std::string getType()const; + std::string getEndpointGroupId()const; + std::string getEndpoint()const; + std::string getState()const; + std::string getEndpointId()const; + std::string getTrafficToEndpointPolicy()const; + std::string getAcceleratorId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string type_; + std::string endpointGroupId_; + std::string endpoint_; + std::string state_; + std::string endpointId_; + std::string trafficToEndpointPolicy_; + std::string acceleratorId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBECUSTOMROUTINGENDPOINTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h index e6ba4a78d..4809a841d 100644 --- a/ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeEndpointGroupRequest : public RpcServiceRequest - { - - public: - DescribeEndpointGroupRequest(); - ~DescribeEndpointGroupRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - - private: - std::string regionId_; - std::string endpointGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeEndpointGroupRequest : public RpcServiceRequest { +public: + DescribeEndpointGroupRequest(); + ~DescribeEndpointGroupRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h index 92645721b..1cba3f6e5 100644 --- a/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h +++ b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h @@ -32,77 +32,88 @@ namespace AlibabaCloud class ALIBABACLOUD_GA_EXPORT DescribeEndpointGroupResult : public ServiceResult { public: + struct EndpointConfigurationsItem + { + std::string probeProtocol; + bool enableProxyProtocol; + std::string type; + bool enableClientIPPreservation; + std::string endpoint; + int probePort; + int weight; + }; struct PortOverridesItem { int listenerPort; int endpointPort; }; - struct EndpointConfigurationsItem + struct TagsItem { - bool enableProxyProtocol; - std::string probeProtocol; - std::string type; - std::string endpoint; - bool enableClientIPPreservation; - int probePort; - int weight; + std::string value; + std::string key; }; DescribeEndpointGroupResult(); explicit DescribeEndpointGroupResult(const std::string &payload); ~DescribeEndpointGroupResult(); - int getHealthCheckIntervalSeconds()const; std::vector getForwardingRuleIds()const; int getTrafficPercentage()const; - std::string getDescription()const; std::string getEndpointGroupId()const; - std::string getSlsRegion()const; + std::string getDescription()const; std::string getHealthCheckPath()const; - int getThresholdCount()const; - std::string getSlsLogStoreName()const; std::string getEndpointRequestProtocol()const; std::string getName()const; std::vector getPortOverrides()const; - bool getEnableAccessLog()const; - int getTotalCount()const; std::string getEndpointGroupRegion()const; std::string getSlsProjectName()const; - std::string getState()const; - std::string getAccessLogSwitch()const; std::string getHealthCheckProtocol()const; - int getHealthCheckPort()const; + std::string getAccessLogSwitch()const; std::vector getEndpointConfigurations()const; - std::string getAcceleratorId()const; + std::vector getTags()const; std::string getEndpointGroupType()const; + int getHealthCheckIntervalSeconds()const; + std::string getSlsRegion()const; + int getThresholdCount()const; + bool getHealthCheckEnabled()const; + std::string getSlsLogStoreName()const; + std::vector getEndpointGroupIpList()const; + bool getEnableAccessLog()const; + std::vector getEndpointGroupUnconfirmedIpList()const; + std::string getState()const; + int getHealthCheckPort()const; + std::string getAcceleratorId()const; std::string getListenerId()const; protected: void parse(const std::string &payload); private: - int healthCheckIntervalSeconds_; std::vector forwardingRuleIds_; int trafficPercentage_; - std::string description_; std::string endpointGroupId_; - std::string slsRegion_; + std::string description_; std::string healthCheckPath_; - int thresholdCount_; - std::string slsLogStoreName_; std::string endpointRequestProtocol_; std::string name_; std::vector portOverrides_; - bool enableAccessLog_; - int totalCount_; std::string endpointGroupRegion_; std::string slsProjectName_; - std::string state_; - std::string accessLogSwitch_; std::string healthCheckProtocol_; - int healthCheckPort_; + std::string accessLogSwitch_; std::vector endpointConfigurations_; - std::string acceleratorId_; + std::vector tags_; std::string endpointGroupType_; + int healthCheckIntervalSeconds_; + std::string slsRegion_; + int thresholdCount_; + bool healthCheckEnabled_; + std::string slsLogStoreName_; + std::vector endpointGroupIpList_; + bool enableAccessLog_; + std::vector endpointGroupUnconfirmedIpList_; + std::string state_; + int healthCheckPort_; + std::string acceleratorId_; std::string listenerId_; }; diff --git a/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h b/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h index 9763d4227..df49e9084 100644 --- a/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeIpSetRequest : public RpcServiceRequest - { - - public: - DescribeIpSetRequest(); - ~DescribeIpSetRequest(); - - std::string getIpSetId()const; - void setIpSetId(const std::string& ipSetId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string ipSetId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeIpSetRequest : public RpcServiceRequest { +public: + DescribeIpSetRequest(); + ~DescribeIpSetRequest(); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h b/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h index ed02023ea..29ba84379 100644 --- a/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h +++ b/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getIpSetId()const; std::string getIpVersion()const; std::string getState()const; + std::string getIspType()const; int getBandwidth()const; std::vector getIpAddressList()const; std::string getAccelerateRegionId()const; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string ipSetId_; std::string ipVersion_; std::string state_; + std::string ispType_; int bandwidth_; std::vector ipAddressList_; std::string accelerateRegionId_; diff --git a/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h b/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h index 9986293e2..45c65c05e 100644 --- a/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeListenerRequest : public RpcServiceRequest - { - - public: - DescribeListenerRequest(); - ~DescribeListenerRequest(); - - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string listenerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeListenerRequest : public RpcServiceRequest { +public: + DescribeListenerRequest(); + ~DescribeListenerRequest(); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string listenerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DescribeListenerResult.h b/ga/include/alibabacloud/ga/model/DescribeListenerResult.h index f18d3effa..f09b0dfeb 100644 --- a/ga/include/alibabacloud/ga/model/DescribeListenerResult.h +++ b/ga/include/alibabacloud/ga/model/DescribeListenerResult.h @@ -32,16 +32,24 @@ namespace AlibabaCloud class ALIBABACLOUD_GA_EXPORT DescribeListenerResult : public ServiceResult { public: - struct BackendPort + struct XForwardedForConfig { - std::string fromPort; - std::string toPort; + bool xForwardedForGaApEnabled; + bool xForwardedForProtoEnabled; + bool xForwardedForPortEnabled; + bool xRealIpEnabled; + bool xForwardedForGaIdEnabled; }; struct PortRangesItem { int fromPort; int toPort; }; + struct BackendPort + { + std::string fromPort; + std::string toPort; + }; struct Certificate { std::string type; @@ -58,37 +66,43 @@ namespace AlibabaCloud explicit DescribeListenerResult(const std::string &payload); ~DescribeListenerResult(); std::string getDescription()const; - std::vector getBackendPorts()const; std::vector getPortRanges()const; - bool getProxyProtocol()const; + std::vector getBackendPorts()const; std::string getCreateTime()const; + bool getProxyProtocol()const; std::vector getCertificates()const; std::vector getRelatedAcls()const; std::string getName()const; + std::string getSecurityPolicyId()const; + std::string getType()const; std::string getState()const; + XForwardedForConfig getXForwardedForConfig()const; std::string getAclType()const; std::string getProtocol()const; std::string getAcceleratorId()const; - std::string getClientAffinity()const; std::string getListenerId()const; + std::string getClientAffinity()const; protected: void parse(const std::string &payload); private: std::string description_; - std::vector backendPorts_; std::vector portRanges_; - bool proxyProtocol_; + std::vector backendPorts_; std::string createTime_; + bool proxyProtocol_; std::vector certificates_; std::vector relatedAcls_; std::string name_; + std::string securityPolicyId_; + std::string type_; std::string state_; + XForwardedForConfig xForwardedForConfig_; std::string aclType_; std::string protocol_; std::string acceleratorId_; - std::string clientAffinity_; std::string listenerId_; + std::string clientAffinity_; }; } diff --git a/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h b/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h index bee78c8c2..48a5cea89 100644 --- a/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h +++ b/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h @@ -1,48 +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_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h index 9368efec9..ab74957f4 100644 --- a/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DetachDdosFromAcceleratorRequest : public RpcServiceRequest - { - - public: - DetachDdosFromAcceleratorRequest(); - ~DetachDdosFromAcceleratorRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DetachDdosFromAcceleratorRequest : public RpcServiceRequest { +public: + DetachDdosFromAcceleratorRequest(); + ~DetachDdosFromAcceleratorRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h index 690e9481c..7a5f96abb 100644 --- a/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h @@ -1,60 +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_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DetachLogStoreFromEndpointGroupRequest : public RpcServiceRequest - { - - public: - DetachLogStoreFromEndpointGroupRequest(); - ~DetachLogStoreFromEndpointGroupRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::vector getEndpointGroupIds()const; - void setEndpointGroupIds(const std::vector& endpointGroupIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string clientToken_; - std::string listenerId_; - std::vector endpointGroupIds_; - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DetachLogStoreFromEndpointGroupRequest : public RpcServiceRequest { +public: + DetachLogStoreFromEndpointGroupRequest(); + ~DetachLogStoreFromEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::vector getEndpointGroupIds() const; + void setEndpointGroupIds(const std::vector &endpointGroupIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string listenerId_; + std::vector endpointGroupIds_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DetectApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/DetectApplicationMonitorRequest.h new file mode 100644 index 000000000..365d227c7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetectApplicationMonitorRequest.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_GA_MODEL_DETECTAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DETECTAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DetectApplicationMonitorRequest : public RpcServiceRequest { +public: + DetectApplicationMonitorRequest(); + ~DetectApplicationMonitorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string regionId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DETECTAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DetectApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/DetectApplicationMonitorResult.h new file mode 100644 index 000000000..e06773e45 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetectApplicationMonitorResult.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_GA_MODEL_DETECTAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DETECTAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DetectApplicationMonitorResult : public ServiceResult + { + public: + + + DetectApplicationMonitorResult(); + explicit DetectApplicationMonitorResult(const std::string &payload); + ~DetectApplicationMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DETECTAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DisableApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/DisableApplicationMonitorRequest.h new file mode 100644 index 000000000..e742c4e91 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DisableApplicationMonitorRequest.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_GA_MODEL_DISABLEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DISABLEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DisableApplicationMonitorRequest : public RpcServiceRequest { +public: + DisableApplicationMonitorRequest(); + ~DisableApplicationMonitorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string regionId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DISABLEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DisableApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/DisableApplicationMonitorResult.h new file mode 100644 index 000000000..c94c213e7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DisableApplicationMonitorResult.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_GA_MODEL_DISABLEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DISABLEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DisableApplicationMonitorResult : public ServiceResult + { + public: + + + DisableApplicationMonitorResult(); + explicit DisableApplicationMonitorResult(const std::string &payload); + ~DisableApplicationMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DISABLEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h b/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h index 439bb06fd..add2f60b2 100644 --- a/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h @@ -1,60 +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_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT DissociateAclsFromListenerRequest : public RpcServiceRequest - { - - public: - DissociateAclsFromListenerRequest(); - ~DissociateAclsFromListenerRequest(); - - bool getDryRun()const; - void setDryRun(bool dryRun); - 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); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - bool dryRun_; - std::string clientToken_; - std::vector aclIds_; - std::string listenerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DissociateAclsFromListenerRequest : public RpcServiceRequest { +public: + DissociateAclsFromListenerRequest(); + ~DissociateAclsFromListenerRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + 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); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector aclIds_; + std::string listenerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerRequest.h b/ga/include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerRequest.h new file mode 100644 index 000000000..b5910521e --- /dev/null +++ b/ga/include/alibabacloud/ga/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_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT DissociateAdditionalCertificatesFromListenerRequest : public RpcServiceRequest { +public: + DissociateAdditionalCertificatesFromListenerRequest(); + ~DissociateAdditionalCertificatesFromListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getDomains() const; + void setDomains(const std::vector &domains); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::vector domains_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerResult.h b/ga/include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerResult.h new file mode 100644 index 000000000..6f73f5582 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DissociateAdditionalCertificatesFromListenerResult.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_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DissociateAdditionalCertificatesFromListenerResult : public ServiceResult + { + public: + + + DissociateAdditionalCertificatesFromListenerResult(); + explicit DissociateAdditionalCertificatesFromListenerResult(const std::string &payload); + ~DissociateAdditionalCertificatesFromListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DISSOCIATEADDITIONALCERTIFICATESFROMLISTENERRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/EnableApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/EnableApplicationMonitorRequest.h new file mode 100644 index 000000000..54e8b10c2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/EnableApplicationMonitorRequest.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_GA_MODEL_ENABLEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_ENABLEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT EnableApplicationMonitorRequest : public RpcServiceRequest { +public: + EnableApplicationMonitorRequest(); + ~EnableApplicationMonitorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clientToken_; + std::string regionId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_ENABLEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/EnableApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/EnableApplicationMonitorResult.h new file mode 100644 index 000000000..1941c134c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/EnableApplicationMonitorResult.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_GA_MODEL_ENABLEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ENABLEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT EnableApplicationMonitorResult : public ServiceResult + { + public: + + + EnableApplicationMonitorResult(); + explicit EnableApplicationMonitorResult(const std::string &payload); + ~EnableApplicationMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ENABLEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetAclRequest.h b/ga/include/alibabacloud/ga/model/GetAclRequest.h index 1b4381a57..538d62723 100644 --- a/ga/include/alibabacloud/ga/model/GetAclRequest.h +++ b/ga/include/alibabacloud/ga/model/GetAclRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT GetAclRequest : public RpcServiceRequest - { - - public: - GetAclRequest(); - ~GetAclRequest(); - - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string aclId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetAclRequest : public RpcServiceRequest { +public: + GetAclRequest(); + ~GetAclRequest(); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string aclId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETACLREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetAclResult.h b/ga/include/alibabacloud/ga/model/GetAclResult.h index eb43db8c7..e82567144 100644 --- a/ga/include/alibabacloud/ga/model/GetAclResult.h +++ b/ga/include/alibabacloud/ga/model/GetAclResult.h @@ -43,6 +43,11 @@ namespace AlibabaCloud std::string acceleratorId; std::string listenerId; }; + struct TagsItem + { + std::string value; + std::string key; + }; GetAclResult(); @@ -50,9 +55,11 @@ namespace AlibabaCloud ~GetAclResult(); std::vector getAclEntries()const; std::string getAclStatus()const; - std::string getAddressIPVersion()const; + std::string getResourceGroupId()const; std::string getAclId()const; + std::string getAddressIPVersion()const; std::vector getRelatedListeners()const; + std::vector getTags()const; std::string getAclName()const; protected: @@ -60,9 +67,11 @@ namespace AlibabaCloud private: std::vector aclEntries_; std::string aclStatus_; - std::string addressIPVersion_; + std::string resourceGroupId_; std::string aclId_; + std::string addressIPVersion_; std::vector relatedListeners_; + std::vector tags_; std::string aclName_; }; diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationRequest.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationRequest.h new file mode 100644 index 000000000..1f140d0ef --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationRequest.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_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpEndpointRelationRequest : public RpcServiceRequest { +public: + GetBasicAccelerateIpEndpointRelationRequest(); + ~GetBasicAccelerateIpEndpointRelationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string accelerateIpId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationResult.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationResult.h new file mode 100644 index 000000000..bdef75bdf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpEndpointRelationResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpEndpointRelationResult : public ServiceResult + { + public: + + + GetBasicAccelerateIpEndpointRelationResult(); + explicit GetBasicAccelerateIpEndpointRelationResult(const std::string &payload); + ~GetBasicAccelerateIpEndpointRelationResult(); + std::string getEndpointName()const; + std::string getEndpointZoneId()const; + std::string getAccelerateIpId()const; + std::string getState()const; + std::string getEndpointId()const; + std::string getEndpointType()const; + std::string getEndpointSubAddressType()const; + std::string getEndpointSubAddress()const; + std::string getIpAddress()const; + std::string getAcceleratorId()const; + std::string getEndpointAddress()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointName_; + std::string endpointZoneId_; + std::string accelerateIpId_; + std::string state_; + std::string endpointId_; + std::string endpointType_; + std::string endpointSubAddressType_; + std::string endpointSubAddress_; + std::string ipAddress_; + std::string acceleratorId_; + std::string endpointAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPENDPOINTRELATIONRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountRequest.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountRequest.h new file mode 100644 index 000000000..cfbdfc28f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountRequest.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_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpIdleCountRequest : public RpcServiceRequest { +public: + GetBasicAccelerateIpIdleCountRequest(); + ~GetBasicAccelerateIpIdleCountRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountResult.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountResult.h new file mode 100644 index 000000000..af8e6772b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpIdleCountResult.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_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpIdleCountResult : public ServiceResult + { + public: + + + GetBasicAccelerateIpIdleCountResult(); + explicit GetBasicAccelerateIpIdleCountResult(const std::string &payload); + ~GetBasicAccelerateIpIdleCountResult(); + long getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPIDLECOUNTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpRequest.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpRequest.h new file mode 100644 index 000000000..e458d5f01 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpRequest.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_GA_MODEL_GETBASICACCELERATEIPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpRequest : public RpcServiceRequest { +public: + GetBasicAccelerateIpRequest(); + ~GetBasicAccelerateIpRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string accelerateIpId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpResult.h b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpResult.h new file mode 100644 index 000000000..70cd26c16 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAccelerateIpResult.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_GA_MODEL_GETBASICACCELERATEIPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicAccelerateIpResult : public ServiceResult + { + public: + + + GetBasicAccelerateIpResult(); + explicit GetBasicAccelerateIpResult(const std::string &payload); + ~GetBasicAccelerateIpResult(); + std::string getIpSetId()const; + std::string getAccelerateIpId()const; + std::string getAccelerateIpAddress()const; + std::string getState()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipSetId_; + std::string accelerateIpId_; + std::string accelerateIpAddress_; + std::string state_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATEIPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/GetBasicAcceleratorRequest.h new file mode 100644 index 000000000..e708d1e90 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAcceleratorRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETBASICACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicAcceleratorRequest : public RpcServiceRequest { +public: + GetBasicAcceleratorRequest(); + ~GetBasicAcceleratorRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicAcceleratorResult.h b/ga/include/alibabacloud/ga/model/GetBasicAcceleratorResult.h new file mode 100644 index 000000000..d71c8b16a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicAcceleratorResult.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_GA_MODEL_GETBASICACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicAcceleratorResult : public ServiceResult + { + public: + struct CrossDomainBandwidthPackage + { + std::string instanceId; + int bandwidth; + }; + struct BasicBandwidthPackage + { + std::string bandwidthType; + std::string instanceId; + int bandwidth; + }; + struct TagsItem + { + std::string value; + std::string key; + }; + + + GetBasicAcceleratorResult(); + explicit GetBasicAcceleratorResult(const std::string &payload); + ~GetBasicAcceleratorResult(); + std::string getDescription()const; + std::string getResourceGroupId()const; + std::string getInstanceChargeType()const; + long getCreateTime()const; + CrossDomainBandwidthPackage getCrossDomainBandwidthPackage()const; + std::string getName()const; + std::string getBandwidthBillingType()const; + BasicBandwidthPackage getBasicBandwidthPackage()const; + std::string getState()const; + long getExpiredTime()const; + std::string getBasicIpSetId()const; + std::string getCenId()const; + std::string getCrossPrivateState()const; + std::string getRegionId()const; + std::string getBasicEndpointGroupId()const; + std::string getAcceleratorId()const; + std::vector getTags()const; + bool getCrossBorderStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string resourceGroupId_; + std::string instanceChargeType_; + long createTime_; + CrossDomainBandwidthPackage crossDomainBandwidthPackage_; + std::string name_; + std::string bandwidthBillingType_; + BasicBandwidthPackage basicBandwidthPackage_; + std::string state_; + long expiredTime_; + std::string basicIpSetId_; + std::string cenId_; + std::string crossPrivateState_; + std::string regionId_; + std::string basicEndpointGroupId_; + std::string acceleratorId_; + std::vector tags_; + bool crossBorderStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupRequest.h new file mode 100644 index 000000000..3411889e5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupRequest.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_GA_MODEL_GETBASICENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicEndpointGroupRequest : public RpcServiceRequest { +public: + GetBasicEndpointGroupRequest(); + ~GetBasicEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupResult.h new file mode 100644 index 000000000..e88559181 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicEndpointGroupResult.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_GA_MODEL_GETBASICENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicEndpointGroupResult : public ServiceResult + { + public: + + + GetBasicEndpointGroupResult(); + explicit GetBasicEndpointGroupResult(const std::string &payload); + ~GetBasicEndpointGroupResult(); + std::string getEndpointGroupRegion()const; + std::string getEndpointGroupId()const; + std::string getDescription()const; + std::string getState()const; + std::string getEndpointType()const; + std::string getEndpointSubAddress()const; + std::string getAcceleratorId()const; + std::string getName()const; + std::string getEndpointAddress()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupRegion_; + std::string endpointGroupId_; + std::string description_; + std::string state_; + std::string endpointType_; + std::string endpointSubAddress_; + std::string acceleratorId_; + std::string name_; + std::string endpointAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicEndpointRequest.h b/ga/include/alibabacloud/ga/model/GetBasicEndpointRequest.h new file mode 100644 index 000000000..e24eae2c0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicEndpointRequest.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_GA_MODEL_GETBASICENDPOINTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicEndpointRequest : public RpcServiceRequest { +public: + GetBasicEndpointRequest(); + ~GetBasicEndpointRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicEndpointResult.h b/ga/include/alibabacloud/ga/model/GetBasicEndpointResult.h new file mode 100644 index 000000000..80b75238c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicEndpointResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicEndpointResult : public ServiceResult + { + public: + + + GetBasicEndpointResult(); + explicit GetBasicEndpointResult(const std::string &payload); + ~GetBasicEndpointResult(); + std::string getEndPointId()const; + std::string getEndpointGroupId()const; + std::string getEndpointZoneId()const; + std::string getState()const; + std::string getEndpointType()const; + std::string getEndpointSubAddressType()const; + std::string getEndpointSubAddress()const; + std::string getAcceleratorId()const; + std::string getName()const; + std::string getEndpointAddress()const; + + protected: + void parse(const std::string &payload); + private: + std::string endPointId_; + std::string endpointGroupId_; + std::string endpointZoneId_; + std::string state_; + std::string endpointType_; + std::string endpointSubAddressType_; + std::string endpointSubAddress_; + std::string acceleratorId_; + std::string name_; + std::string endpointAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICENDPOINTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetBasicIpSetRequest.h b/ga/include/alibabacloud/ga/model/GetBasicIpSetRequest.h new file mode 100644 index 000000000..aa92d2fae --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicIpSetRequest.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_GA_MODEL_GETBASICIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetBasicIpSetRequest : public RpcServiceRequest { +public: + GetBasicIpSetRequest(); + ~GetBasicIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetBasicIpSetResult.h b/ga/include/alibabacloud/ga/model/GetBasicIpSetResult.h new file mode 100644 index 000000000..1e60fd6d4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetBasicIpSetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETBASICIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETBASICIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetBasicIpSetResult : public ServiceResult + { + public: + + + GetBasicIpSetResult(); + explicit GetBasicIpSetResult(const std::string &payload); + ~GetBasicIpSetResult(); + std::string getIpSetId()const; + std::string getIpVersion()const; + std::string getState()const; + std::string getIspType()const; + long getBandwidth()const; + std::string getAccelerateRegionId()const; + std::string getIpAddress()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipSetId_; + std::string ipVersion_; + std::string state_; + std::string ispType_; + long bandwidth_; + std::string accelerateRegionId_; + std::string ipAddress_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETBASICIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetHealthStatusRequest.h b/ga/include/alibabacloud/ga/model/GetHealthStatusRequest.h new file mode 100644 index 000000000..f4e8ae220 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetHealthStatusRequest.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_GA_MODEL_GETHEALTHSTATUSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETHEALTHSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetHealthStatusRequest : public RpcServiceRequest { +public: + GetHealthStatusRequest(); + ~GetHealthStatusRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETHEALTHSTATUSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetHealthStatusResult.h b/ga/include/alibabacloud/ga/model/GetHealthStatusResult.h new file mode 100644 index 000000000..cb1644deb --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetHealthStatusResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETHEALTHSTATUSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETHEALTHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetHealthStatusResult : public ServiceResult + { + public: + struct EndpointGroupHealthStatuses + { + struct EndpointHealthStatuses + { + std::string type; + std::string address; + std::string endpointId; + long port; + std::string healthStatus; + std::string healthDetail; + }; + std::vector endpoints; + std::vector forwardingRuleIds; + std::string endpointGroupId; + std::string healthStatus; + std::string endpointGroupType; + }; + + + GetHealthStatusResult(); + explicit GetHealthStatusResult(const std::string &payload); + ~GetHealthStatusResult(); + std::string getHealthStatus()const; + std::vector getEndpointGroups()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string healthStatus_; + std::vector endpointGroups_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETHEALTHSTATUSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetInvalidDomainCountRequest.h b/ga/include/alibabacloud/ga/model/GetInvalidDomainCountRequest.h new file mode 100644 index 000000000..003b48c60 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetInvalidDomainCountRequest.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_GA_MODEL_GETINVALIDDOMAINCOUNTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETINVALIDDOMAINCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetInvalidDomainCountRequest : public RpcServiceRequest { +public: + GetInvalidDomainCountRequest(); + ~GetInvalidDomainCountRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETINVALIDDOMAINCOUNTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetInvalidDomainCountResult.h b/ga/include/alibabacloud/ga/model/GetInvalidDomainCountResult.h new file mode 100644 index 000000000..a17450386 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetInvalidDomainCountResult.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_GA_MODEL_GETINVALIDDOMAINCOUNTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETINVALIDDOMAINCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetInvalidDomainCountResult : public ServiceResult + { + public: + + + GetInvalidDomainCountResult(); + explicit GetInvalidDomainCountResult(const std::string &payload); + ~GetInvalidDomainCountResult(); + std::string getInvalidDomainCount()const; + + protected: + void parse(const std::string &payload); + private: + std::string invalidDomainCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETINVALIDDOMAINCOUNTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitRequest.h b/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitRequest.h new file mode 100644 index 000000000..cfbbcef91 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_GETIPSETSBANDWIDTHLIMITREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETIPSETSBANDWIDTHLIMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetIpsetsBandwidthLimitRequest : public RpcServiceRequest { +public: + GetIpsetsBandwidthLimitRequest(); + ~GetIpsetsBandwidthLimitRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETIPSETSBANDWIDTHLIMITREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitResult.h b/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitResult.h new file mode 100644 index 000000000..71cc09120 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetIpsetsBandwidthLimitResult.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_GA_MODEL_GETIPSETSBANDWIDTHLIMITRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETIPSETSBANDWIDTHLIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetIpsetsBandwidthLimitResult : public ServiceResult + { + public: + + + GetIpsetsBandwidthLimitResult(); + explicit GetIpsetsBandwidthLimitResult(const std::string &payload); + ~GetIpsetsBandwidthLimitResult(); + std::string getBandwidthAllocationType()const; + long getBandwidthLimit()const; + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthAllocationType_; + long bandwidthLimit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETIPSETSBANDWIDTHLIMITRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/GetSpareIpRequest.h b/ga/include/alibabacloud/ga/model/GetSpareIpRequest.h new file mode 100644 index 000000000..6340e2d9f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetSpareIpRequest.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_GA_MODEL_GETSPAREIPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_GETSPAREIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT GetSpareIpRequest : public RpcServiceRequest { +public: + GetSpareIpRequest(); + ~GetSpareIpRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpareIp() const; + void setSpareIp(const std::string &spareIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::string spareIp_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_GETSPAREIPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/GetSpareIpResult.h b/ga/include/alibabacloud/ga/model/GetSpareIpResult.h new file mode 100644 index 000000000..0cdf7d2f9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetSpareIpResult.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_GA_MODEL_GETSPAREIPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETSPAREIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetSpareIpResult : public ServiceResult + { + public: + + + GetSpareIpResult(); + explicit GetSpareIpResult(const std::string &payload); + ~GetSpareIpResult(); + std::string getState()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETSPAREIPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.h b/ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.h index b622e8a7e..211890aff 100644 --- a/ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.h +++ b/ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.h @@ -1,48 +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_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListAccelerateAreasRequest : public RpcServiceRequest - { - - public: - ListAccelerateAreasRequest(); - ~ListAccelerateAreasRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListAccelerateAreasRequest : public RpcServiceRequest { +public: + ListAccelerateAreasRequest(); + ~ListAccelerateAreasRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h b/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h index b6d421e35..b9d6bf836 100644 --- a/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h @@ -1,57 +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_GA_MODEL_LISTACCELERATORSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTACCELERATORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListAcceleratorsRequest : public RpcServiceRequest - { - - public: - ListAcceleratorsRequest(); - ~ListAcceleratorsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTACCELERATORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTACCELERATORSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACCELERATORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListAcceleratorsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListAcceleratorsRequest(); + ~ListAcceleratorsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getState() const; + void setState(const std::string &state); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string acceleratorId_; + std::string state_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTACCELERATORSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h b/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h index 02c46c88b..14fefc46c 100644 --- a/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h +++ b/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h @@ -45,23 +45,39 @@ namespace AlibabaCloud std::string instanceId; int bandwidth; }; + struct IpSetConfig + { + std::string accessMode; + }; + struct TagsItem + { + std::string value; + std::string key; + }; + std::string upgradableStatus; std::string ddosId; std::string dnsName; std::string description; + std::string resourceGroupId; std::string instanceChargeType; long createTime; CrossDomainBandwidthPackage crossDomainBandwidthPackage; + IpSetConfig ipSetConfig; std::string secondDnsName; std::string name; + std::string crossBorderMode; + std::string bandwidthBillingType; std::string type; BasicBandwidthPackage basicBandwidthPackage; std::string state; - long expiredTime; int bandwidth; + long expiredTime; std::string cenId; std::string regionId; std::string spec; std::string acceleratorId; + std::vector tags; + bool crossBorderStatus; }; diff --git a/ga/include/alibabacloud/ga/model/ListAclsRequest.h b/ga/include/alibabacloud/ga/model/ListAclsRequest.h index ee87938f0..8c63d5fcc 100644 --- a/ga/include/alibabacloud/ga/model/ListAclsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListAclsRequest.h @@ -1,63 +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_GA_MODEL_LISTACLSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTACLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListAclsRequest : public RpcServiceRequest - { - - public: - ListAclsRequest(); - ~ListAclsRequest(); - - std::string getAclName()const; - void setAclName(const std::string& aclName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - Array getAclIds()const; - void setAclIds(const Array& aclIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string aclName_; - std::string clientToken_; - Array aclIds_; - std::string regionId_; - std::string nextToken_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTACLSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTACLSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListAclsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListAclsRequest(); + ~ListAclsRequest(); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getAclIds() const; + void setAclIds(const std::vector &aclIds); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string aclName_; + std::string clientToken_; + std::vector aclIds_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTACLSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListAclsResult.h b/ga/include/alibabacloud/ga/model/ListAclsResult.h index 3d2df03da..55e6798b8 100644 --- a/ga/include/alibabacloud/ga/model/ListAclsResult.h +++ b/ga/include/alibabacloud/ga/model/ListAclsResult.h @@ -34,9 +34,16 @@ namespace AlibabaCloud public: struct GaAcls { + struct TagsItem + { + std::string value; + std::string key; + }; std::string aclStatus; - std::string addressIPVersion; + std::string resourceGroupId; std::string aclId; + std::string addressIPVersion; + std::vector tags; std::string aclName; }; diff --git a/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultRequest.h b/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultRequest.h new file mode 100644 index 000000000..74e600f78 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultRequest.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_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListApplicationMonitorDetectResultRequest : public RpcServiceRequest { +public: + ListApplicationMonitorDetectResultRequest(); + ~ListApplicationMonitorDetectResultRequest(); + long getEndTime() const; + void setEndTime(long endTime); + long getBeginTime() const; + void setBeginTime(long beginTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + long endTime_; + long beginTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string taskId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultResult.h b/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultResult.h new file mode 100644 index 000000000..3a221225e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListApplicationMonitorDetectResultResult.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_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListApplicationMonitorDetectResultResult : public ServiceResult + { + public: + struct ApplicationMonitorDetectResult + { + std::string taskId; + std::string content; + std::string port; + std::string diagStatus; + std::string detectTime; + std::string protocol; + std::string acceleratorId; + std::string statusCode; + std::string detail; + std::string listenerId; + }; + + + ListApplicationMonitorDetectResultResult(); + explicit ListApplicationMonitorDetectResultResult(const std::string &payload); + ~ListApplicationMonitorDetectResultResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getApplicationMonitorDetectResultList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector applicationMonitorDetectResultList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORDETECTRESULTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/ListApplicationMonitorRequest.h new file mode 100644 index 000000000..d8b16e6ad --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListApplicationMonitorRequest.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_GA_MODEL_LISTAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListApplicationMonitorRequest : public RpcServiceRequest { +public: + ListApplicationMonitorRequest(); + ~ListApplicationMonitorRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSearchValue() const; + void setSearchValue(const std::string &searchValue); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string searchValue_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/ListApplicationMonitorResult.h new file mode 100644 index 000000000..cd5f3ea26 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListApplicationMonitorResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListApplicationMonitorResult : public ServiceResult + { + public: + struct ApplicationMonitor + { + int silenceTime; + int detectThreshold; + std::string taskId; + std::string address; + bool detectEnable; + std::string taskName; + std::string optionsJson; + std::string state; + std::string acceleratorId; + int detectTimes; + std::string listenerId; + }; + + + ListApplicationMonitorResult(); + explicit ListApplicationMonitorResult(const std::string &payload); + ~ListApplicationMonitorResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getApplicationMonitors()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector applicationMonitors_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h b/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h index 9efdc5ebe..6e9403ba3 100644 --- a/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h +++ b/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListAvailableAccelerateAreasRequest : public RpcServiceRequest - { - - public: - ListAvailableAccelerateAreasRequest(); - ~ListAvailableAccelerateAreasRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListAvailableAccelerateAreasRequest : public RpcServiceRequest { +public: + ListAvailableAccelerateAreasRequest(); + ~ListAvailableAccelerateAreasRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h index 28b7f012a..ab9f37cf5 100644 --- a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListAvailableBusiRegionsRequest : public RpcServiceRequest - { - - public: - ListAvailableBusiRegionsRequest(); - ~ListAvailableBusiRegionsRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string regionId_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListAvailableBusiRegionsRequest : public RpcServiceRequest { +public: + ListAvailableBusiRegionsRequest(); + ~ListAvailableBusiRegionsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h index 53a65155e..f9a2dc75d 100644 --- a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h +++ b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct RegionsItem { + bool pop; std::string regionId; std::string localName; }; diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h index d5ac094a8..bdf6c226f 100644 --- a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h +++ b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h @@ -1,63 +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_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListBandwidthPackagesRequest : public RpcServiceRequest - { - - public: - ListBandwidthPackagesRequest(); - ~ListBandwidthPackagesRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); - - private: - std::string bandwidthPackageId_; - std::string type_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string state_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBandwidthPackagesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListBandwidthPackagesRequest(); + ~ListBandwidthPackagesRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getState() const; + void setState(const std::string &state); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::string bandwidthPackageId_; + std::string type_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string state_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h index bc96439ca..58a510e2f 100644 --- a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h +++ b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h @@ -34,21 +34,28 @@ namespace AlibabaCloud public: struct BandwidthPackage { + struct TagsItem + { + std::string value; + std::string key; + }; std::string cbnGeographicRegionIdB; - std::string description; std::string cbnGeographicRegionIdA; + std::string description; + std::string resourceGroupId; std::string createTime; std::string name; std::string bandwidthType; std::string type; std::vector accelerators; - std::string chargeType; std::string state; - std::string expiredTime; + std::string chargeType; int bandwidth; + std::string expiredTime; std::string bandwidthPackageId; int ratio; std::string regionId; + std::vector tags; std::string billingType; }; diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h b/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h index cf65ef799..2826d0d5d 100644 --- a/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h +++ b/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h @@ -1,54 +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_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListBandwidthackagesRequest : public RpcServiceRequest - { - - public: - ListBandwidthackagesRequest(); - ~ListBandwidthackagesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string regionId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBandwidthackagesRequest : public RpcServiceRequest { +public: + ListBandwidthackagesRequest(); + ~ListBandwidthackagesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h b/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h index 69c8f439d..b9527b620 100644 --- a/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h +++ b/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h @@ -34,15 +34,22 @@ namespace AlibabaCloud public: struct BandwidthPackage { + struct TagsItem + { + std::string value; + std::string key; + }; std::string description; + std::string resourceGroupId; std::vector accelerators; - std::string chargeType; std::string state; - std::string createTime; - std::string expiredTime; + std::string chargeType; int bandwidth; + std::string expiredTime; + std::string createTime; std::string bandwidthPackageId; std::string regionId; + std::vector tags; std::string name; }; diff --git a/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsRequest.h b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsRequest.h new file mode 100644 index 000000000..9c19c954a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsRequest.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_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBasicAccelerateIpEndpointRelationsRequest : public RpcServiceRequest { +public: + ListBasicAccelerateIpEndpointRelationsRequest(); + ~ListBasicAccelerateIpEndpointRelationsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string accelerateIpId_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsResult.h b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsResult.h new file mode 100644 index 000000000..b759df659 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpEndpointRelationsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBasicAccelerateIpEndpointRelationsResult : public ServiceResult + { + public: + struct AccelerateIpEndpointRelationsItem + { + std::string accelerateIpId; + std::string endpointName; + std::string endpointZoneId; + std::string state; + std::string endpointId; + std::string endpointType; + std::string endpointSubAddressType; + std::string endpointSubAddress; + std::string ipAddress; + std::string acceleratorId; + std::string endpointAddress; + }; + + + ListBasicAccelerateIpEndpointRelationsResult(); + explicit ListBasicAccelerateIpEndpointRelationsResult(const std::string &payload); + ~ListBasicAccelerateIpEndpointRelationsResult(); + std::string getTotalCount()const; + std::string getNextToken()const; + std::string getMaxResults()const; + std::vector getAccelerateIpEndpointRelations()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string nextToken_; + std::string maxResults_; + std::vector accelerateIpEndpointRelations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPENDPOINTRELATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsRequest.h b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsRequest.h new file mode 100644 index 000000000..d2dd0f0a3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsRequest.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_GA_MODEL_LISTBASICACCELERATEIPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBasicAccelerateIpsRequest : public RpcServiceRequest { +public: + ListBasicAccelerateIpsRequest(); + ~ListBasicAccelerateIpsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getAccelerateIpAddress() const; + void setAccelerateIpAddress(const std::string &accelerateIpAddress); + std::string getAccelerateIpId() const; + void setAccelerateIpId(const std::string &accelerateIpId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string clientToken_; + std::string ipSetId_; + std::string accelerateIpAddress_; + std::string accelerateIpId_; + std::string regionId_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsResult.h b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsResult.h new file mode 100644 index 000000000..9b4275f1e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAccelerateIpsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBasicAccelerateIpsResult : public ServiceResult + { + public: + struct AccelerateIpsItem + { + std::string ipSetId; + std::string accelerateIpId; + std::string accelerateIpAddress; + std::string state; + std::string acceleratorId; + }; + + + ListBasicAccelerateIpsResult(); + explicit ListBasicAccelerateIpsResult(const std::string &payload); + ~ListBasicAccelerateIpsResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getAccelerateIps()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector accelerateIps_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATEIPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsRequest.h b/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsRequest.h new file mode 100644 index 000000000..89975badc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsRequest.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_GA_MODEL_LISTBASICACCELERATORSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBasicAcceleratorsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListBasicAcceleratorsRequest(); + ~ListBasicAcceleratorsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getState() const; + void setState(const std::string &state); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string acceleratorId_; + std::string state_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATORSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsResult.h b/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsResult.h new file mode 100644 index 000000000..0112c262f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicAcceleratorsResult.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_GA_MODEL_LISTBASICACCELERATORSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBasicAcceleratorsResult : public ServiceResult + { + public: + struct AcceleratorsItem + { + struct BasicBandwidthPackage + { + std::string bandwidthType; + std::string instanceId; + int bandwidth; + }; + struct CrossDomainBandwidthPackage + { + std::string instanceId; + int bandwidth; + }; + struct TagsItem + { + std::string value; + std::string key; + }; + std::string description; + std::string resourceGroupId; + std::string instanceChargeType; + long createTime; + CrossDomainBandwidthPackage crossDomainBandwidthPackage; + std::string name; + std::string bandwidthBillingType; + std::string type; + BasicBandwidthPackage basicBandwidthPackage; + std::string state; + long expiredTime; + std::string basicIpSetId; + std::string regionId; + std::string basicEndpointGroupId; + std::string acceleratorId; + std::vector tags; + bool crossBorderStatus; + }; + + + ListBasicAcceleratorsResult(); + explicit ListBasicAcceleratorsResult(const std::string &payload); + ~ListBasicAcceleratorsResult(); + int getTotalCount()const; + std::vector getAccelerators()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector accelerators_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICACCELERATORSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBasicEndpointsRequest.h b/ga/include/alibabacloud/ga/model/ListBasicEndpointsRequest.h new file mode 100644 index 000000000..908e9bace --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicEndpointsRequest.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_GA_MODEL_LISTBASICENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBasicEndpointsRequest : public RpcServiceRequest { +public: + ListBasicEndpointsRequest(); + ~ListBasicEndpointsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string regionId_; + std::string endpointType_; + std::string nextToken_; + std::string name_; + int maxResults_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListBasicEndpointsResult.h b/ga/include/alibabacloud/ga/model/ListBasicEndpointsResult.h new file mode 100644 index 000000000..b3072962b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBasicEndpointsResult.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_GA_MODEL_LISTBASICENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBASICENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBasicEndpointsResult : public ServiceResult + { + public: + struct EndpointsItem + { + std::string endpointGroupId; + std::string endpointZoneId; + std::string state; + std::string endpointId; + std::string endpointType; + std::string endpointSubAddressType; + std::string endpointSubAddress; + std::string acceleratorId; + std::string name; + std::string endpointAddress; + }; + + + ListBasicEndpointsResult(); + explicit ListBasicEndpointsResult(const std::string &payload); + ~ListBasicEndpointsResult(); + std::vector getEndpoints()const; + std::string getTotalCount()const; + std::string getNextToken()const; + std::string getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpoints_; + std::string totalCount_; + std::string nextToken_; + std::string maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBASICENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.h b/ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.h index 94608a09e..830bc00a8 100644 --- a/ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.h @@ -1,48 +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_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListBusiRegionsRequest : public RpcServiceRequest - { - - public: - ListBusiRegionsRequest(); - ~ListBusiRegionsRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListBusiRegionsRequest : public RpcServiceRequest { +public: + ListBusiRegionsRequest(); + ~ListBusiRegionsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCommonAreasRequest.h b/ga/include/alibabacloud/ga/model/ListCommonAreasRequest.h new file mode 100644 index 000000000..05ae72233 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCommonAreasRequest.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_GA_MODEL_LISTCOMMONAREASREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCOMMONAREASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCommonAreasRequest : public RpcServiceRequest { +public: + ListCommonAreasRequest(); + ~ListCommonAreasRequest(); + bool getIsEpg() const; + void setIsEpg(bool isEpg); + bool getIsIpSet() const; + void setIsIpSet(bool isIpSet); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + +private: + bool isEpg_; + bool isIpSet_; + std::string ipVersion_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCOMMONAREASREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCommonAreasResult.h b/ga/include/alibabacloud/ga/model/ListCommonAreasResult.h new file mode 100644 index 000000000..2a9324e65 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCommonAreasResult.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_GA_MODEL_LISTCOMMONAREASRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCOMMONAREASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCommonAreasResult : public ServiceResult + { + public: + struct AreasItem + { + struct RegionListItem + { + std::string regionId; + std::string localName; + }; + std::string areaId; + std::vector regionList; + std::string localName; + }; + + + ListCommonAreasResult(); + explicit ListCommonAreasResult(const std::string &payload); + ~ListCommonAreasResult(); + std::vector getAreas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector areas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCOMMONAREASRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsRequest.h new file mode 100644 index 000000000..ac886ed41 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointGroupDestinationsRequest : public RpcServiceRequest { +public: + ListCustomRoutingEndpointGroupDestinationsRequest(); + ~ListCustomRoutingEndpointGroupDestinationsRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getFromPort() const; + void setFromPort(int fromPort); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getProtocols() const; + void setProtocols(const std::vector &protocols); + int getToPort() const; + void setToPort(int toPort); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string pageNumber_; + std::string listenerId_; + std::string regionId_; + int fromPort_; + std::string pageSize_; + std::string acceleratorId_; + std::vector protocols_; + int toPort_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsResult.h new file mode 100644 index 000000000..85ebdccdc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupDestinationsResult.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_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointGroupDestinationsResult : public ServiceResult + { + public: + struct Endpoints + { + std::vector protocols; + std::string endpointGroupId; + int fromPort; + int toPort; + std::string acceleratorId; + std::string destinationId; + std::string listenerId; + }; + + + ListCustomRoutingEndpointGroupDestinationsResult(); + explicit ListCustomRoutingEndpointGroupDestinationsResult(const std::string &payload); + ~ListCustomRoutingEndpointGroupDestinationsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDestinations()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector destinations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsRequest.h new file mode 100644 index 000000000..f770e0a78 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsRequest.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_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointGroupsRequest : public RpcServiceRequest { +public: + ListCustomRoutingEndpointGroupsRequest(); + ~ListCustomRoutingEndpointGroupsRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string pageNumber_; + std::string listenerId_; + std::string regionId_; + std::string pageSize_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsResult.h new file mode 100644 index 000000000..0974b1c37 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointGroupsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointGroupsResult : public ServiceResult + { + public: + struct EndpointGroupsItem + { + std::vector endpointGroupIpList; + std::string endpointGroupRegion; + std::string endpointGroupId; + std::string description; + std::vector endpointGroupUnconfirmedIpList; + std::string state; + std::string acceleratorId; + std::string listenerId; + std::string name; + }; + + + ListCustomRoutingEndpointGroupsResult(); + explicit ListCustomRoutingEndpointGroupsResult(const std::string &payload); + ~ListCustomRoutingEndpointGroupsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getEndpointGroups()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector endpointGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesRequest.h new file mode 100644 index 000000000..5302a0596 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesRequest.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_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointTrafficPoliciesRequest : public RpcServiceRequest { +public: + ListCustomRoutingEndpointTrafficPoliciesRequest(); + ~ListCustomRoutingEndpointTrafficPoliciesRequest(); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string address_; + std::string endpointId_; + std::string pageNumber_; + std::string listenerId_; + std::string regionId_; + std::string pageSize_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesResult.h new file mode 100644 index 000000000..a550fe004 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointTrafficPoliciesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointTrafficPoliciesResult : public ServiceResult + { + public: + struct PoliciesItem + { + struct PortRangesItem + { + int fromPort; + int toPort; + }; + std::string endpointGroupId; + std::string address; + std::vector portRanges; + std::string endpointId; + std::string acceleratorId; + std::string policyId; + std::string listenerId; + }; + + + ListCustomRoutingEndpointTrafficPoliciesResult(); + explicit ListCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload); + ~ListCustomRoutingEndpointTrafficPoliciesResult(); + int getTotalCount()const; + std::vector getPolicies()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector policies_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsRequest.h new file mode 100644 index 000000000..2408b5b31 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsRequest.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_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointsRequest : public RpcServiceRequest { +public: + ListCustomRoutingEndpointsRequest(); + ~ListCustomRoutingEndpointsRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string pageNumber_; + std::string listenerId_; + std::string regionId_; + std::string pageSize_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsResult.h new file mode 100644 index 000000000..8b02e1994 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingEndpointsResult.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_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingEndpointsResult : public ServiceResult + { + public: + struct EndpointsItem + { + std::string type; + std::string endpointGroupId; + std::string endpoint; + std::string endpointId; + std::string trafficToEndpointPolicy; + std::string acceleratorId; + std::string listenerId; + }; + + + ListCustomRoutingEndpointsResult(); + explicit ListCustomRoutingEndpointsResult(const std::string &payload); + ~ListCustomRoutingEndpointsResult(); + std::vector getEndpoints()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpoints_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationRequest.h new file mode 100644 index 000000000..d4e647689 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationRequest.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_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingPortMappingsByDestinationRequest : public RpcServiceRequest { +public: + ListCustomRoutingPortMappingsByDestinationRequest(); + ~ListCustomRoutingPortMappingsByDestinationRequest(); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getDestinationAddress() const; + void setDestinationAddress(const std::string &destinationAddress); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + +private: + std::string endpointId_; + std::string destinationAddress_; + std::string pageNumber_; + std::string regionId_; + std::string pageSize_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationResult.h new file mode 100644 index 000000000..40abfadcd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsByDestinationResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingPortMappingsByDestinationResult : public ServiceResult + { + public: + struct PortMappingsItem + { + struct DestinationSocketAddress + { + int port; + std::string ipAddress; + }; + std::string endpointGroupRegion; + std::vector protocols; + std::string endpointGroupId; + DestinationSocketAddress destinationSocketAddress; + std::string endpointId; + std::string vswitch; + int acceleratorPort; + std::string acceleratorId; + std::string destinationTrafficState; + std::string listenerId; + }; + + + ListCustomRoutingPortMappingsByDestinationResult(); + explicit ListCustomRoutingPortMappingsByDestinationResult(const std::string &payload); + ~ListCustomRoutingPortMappingsByDestinationResult(); + int getTotalCount()const; + std::vector getPortMappings()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector portMappings_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSBYDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsRequest.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsRequest.h new file mode 100644 index 000000000..05691058d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsRequest.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_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListCustomRoutingPortMappingsRequest : public RpcServiceRequest { +public: + ListCustomRoutingPortMappingsRequest(); + ~ListCustomRoutingPortMappingsRequest(); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string pageNumber_; + std::string listenerId_; + std::string regionId_; + std::string pageSize_; + std::string acceleratorId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsResult.h b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsResult.h new file mode 100644 index 000000000..e93276b9b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListCustomRoutingPortMappingsResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListCustomRoutingPortMappingsResult : public ServiceResult + { + public: + struct PortMappingsItem + { + struct DestinationSocketAddress + { + int port; + std::string ipAddress; + }; + std::string endpointGroupRegion; + std::vector protocols; + std::string endpointGroupId; + DestinationSocketAddress destinationSocketAddress; + std::string endpointId; + std::string vswitch; + int acceleratorPort; + std::string acceleratorId; + std::string destinationTrafficState; + std::string listenerId; + }; + + + ListCustomRoutingPortMappingsResult(); + explicit ListCustomRoutingPortMappingsResult(const std::string &payload); + ~ListCustomRoutingPortMappingsResult(); + int getTotalCount()const; + std::vector getPortMappings()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector portMappings_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTCUSTOMROUTINGPORTMAPPINGSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListDomainsRequest.h b/ga/include/alibabacloud/ga/model/ListDomainsRequest.h new file mode 100644 index 000000000..fc0f718f1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListDomainsRequest.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_GA_MODEL_LISTDOMAINSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTDOMAINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListDomainsRequest : public RpcServiceRequest { +public: + ListDomainsRequest(); + ~ListDomainsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::string getState() const; + void setState(const std::string &state); + +private: + int pageNumber_; + std::string regionId_; + std::string domain_; + int pageSize_; + std::string acceleratorId_; + std::string state_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTDOMAINSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListDomainsResult.h b/ga/include/alibabacloud/ga/model/ListDomainsResult.h new file mode 100644 index 000000000..087dca1d5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListDomainsResult.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_GA_MODEL_LISTDOMAINSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTDOMAINSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListDomainsResult : public ServiceResult + { + public: + struct DomainsItem + { + struct AcceleratorsItem + { + std::string acceleratorId; + std::string name; + }; + std::vector accelerators; + std::string state; + std::string domain; + }; + + + ListDomainsResult(); + explicit ListDomainsResult(const std::string &payload); + ~ListDomainsResult(); + std::vector getDomains()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector domains_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTDOMAINSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.h index 95b45a6df..0a0f56cec 100644 --- a/ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.h @@ -1,69 +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_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListEndpointGroupsRequest : public RpcServiceRequest - { - - public: - ListEndpointGroupsRequest(); - ~ListEndpointGroupsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEndpointGroupType()const; - void setEndpointGroupType(const std::string& endpointGroupType); - std::string getAccessLogSwitch()const; - void setAccessLogSwitch(const std::string& accessLogSwitch); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - - private: - int pageNumber_; - std::string listenerId_; - std::string regionId_; - std::string endpointGroupType_; - std::string accessLogSwitch_; - int pageSize_; - std::string acceleratorId_; - std::string endpointGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListEndpointGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListEndpointGroupsRequest(); + ~ListEndpointGroupsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupType() const; + void setEndpointGroupType(const std::string &endpointGroupType); + std::string getAccessLogSwitch() const; + void setAccessLogSwitch(const std::string &accessLogSwitch); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + int pageNumber_; + std::string listenerId_; + std::string regionId_; + std::string endpointGroupType_; + std::string accessLogSwitch_; + int pageSize_; + std::string acceleratorId_; + std::vector tag_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h index 617472f63..6bfb58f0a 100644 --- a/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h +++ b/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h @@ -34,38 +34,47 @@ namespace AlibabaCloud public: struct EndpointGroupsItem { + struct EndpointConfigurationsItem + { + std::string probeProtocol; + bool enableProxyProtocol; + std::string type; + bool enableClientIPPreservation; + std::string endpoint; + std::string endpointId; + int probePort; + int weight; + }; struct PortOverridesItem { int listenerPort; int endpointPort; }; - struct EndpointConfigurationsItem + struct TagsItem { - bool enableProxyProtocol; - std::string probeProtocol; - std::string type; - std::string endpoint; - bool enableClientIPPreservation; - int probePort; - int weight; + std::string value; + std::string key; }; int healthCheckIntervalSeconds; int trafficPercentage; std::vector forwardingRuleIds; - std::string description; std::string endpointGroupId; + std::string description; std::string healthCheckPath; int thresholdCount; + bool healthCheckEnabled; std::string endpointRequestProtocol; std::string name; std::vector portOverrides; std::vector endpointGroupIpList; std::string endpointGroupRegion; + std::vector endpointGroupUnconfirmedIpList; std::string state; std::string healthCheckProtocol; int healthCheckPort; std::vector endpointConfigurations; std::string acceleratorId; + std::vector tags; std::string endpointGroupType; std::string listenerId; }; diff --git a/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h b/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h index fe82f34a0..715fa8650 100644 --- a/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h +++ b/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h @@ -1,66 +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_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListForwardingRulesRequest : public RpcServiceRequest - { - - public: - ListForwardingRulesRequest(); - ~ListForwardingRulesRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getForwardingRuleId()const; - void setForwardingRuleId(const std::string& forwardingRuleId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - std::string clientToken_; - std::string listenerId_; - std::string forwardingRuleId_; - std::string regionId_; - std::string nextToken_; - int maxResults_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListForwardingRulesRequest : public RpcServiceRequest { +public: + ListForwardingRulesRequest(); + ~ListForwardingRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getForwardingRuleId() const; + void setForwardingRuleId(const std::string &forwardingRuleId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string listenerId_; + std::string forwardingRuleId_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h b/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h index 90b44eda9..b3524190f 100644 --- a/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h +++ b/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h @@ -34,20 +34,6 @@ namespace AlibabaCloud public: struct ForwardingRulesItem { - struct RuleActionsItem - { - struct ForwardGroupConfig - { - struct ServerGroupTuplesItem - { - std::string endpointGroupId; - }; - std::vector serverGroupTuples; - }; - std::string ruleActionType; - int order; - ForwardGroupConfig forwardGroupConfig; - }; struct RuleConditionsItem { struct PathConfig @@ -61,12 +47,29 @@ namespace AlibabaCloud PathConfig pathConfig; HostConfig hostConfig; std::string ruleConditionType; + std::string ruleConditionValue; + }; + struct RuleActionsItem + { + struct ForwardGroupConfig + { + struct ServerGroupTuplesItem + { + std::string endpointGroupId; + }; + std::vector serverGroupTuples; + }; + int order; + std::string ruleActionType; + std::string ruleActionValue; + ForwardGroupConfig forwardGroupConfig; }; std::vector ruleActions; - std::string forwardingRuleName; int priority; + std::string forwardingRuleName; std::vector ruleConditions; std::string forwardingRuleId; + std::string forwardingRuleDirection; std::string forwardingRuleStatus; std::string listenerId; }; diff --git a/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h b/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h index 0aef1834d..8d01f39fe 100644 --- a/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h +++ b/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h @@ -1,57 +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_GA_MODEL_LISTIPSETSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTIPSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListIpSetsRequest : public RpcServiceRequest - { - - public: - ListIpSetsRequest(); - ~ListIpSetsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTIPSETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTIPSETSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTIPSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListIpSetsRequest : public RpcServiceRequest { +public: + ListIpSetsRequest(); + ~ListIpSetsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTIPSETSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListIpSetsResult.h b/ga/include/alibabacloud/ga/model/ListIpSetsResult.h index 696f5bcc0..88393f40b 100644 --- a/ga/include/alibabacloud/ga/model/ListIpSetsResult.h +++ b/ga/include/alibabacloud/ga/model/ListIpSetsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string ipSetId; std::string ipVersion; + std::string ispType; std::string state; int bandwidth; std::vector ipAddressList; diff --git a/ga/include/alibabacloud/ga/model/ListIspTypesRequest.h b/ga/include/alibabacloud/ga/model/ListIspTypesRequest.h new file mode 100644 index 000000000..b9be3cd24 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListIspTypesRequest.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_GA_MODEL_LISTISPTYPESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTISPTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListIspTypesRequest : public RpcServiceRequest { +public: + ListIspTypesRequest(); + ~ListIspTypesRequest(); + std::string getAcceleratorType() const; + void setAcceleratorType(const std::string &acceleratorType); + std::string getBusinessRegionId() const; + void setBusinessRegionId(const std::string &businessRegionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string acceleratorType_; + std::string businessRegionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTISPTYPESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListIspTypesResult.h b/ga/include/alibabacloud/ga/model/ListIspTypesResult.h new file mode 100644 index 000000000..e5154a42a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListIspTypesResult.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_GA_MODEL_LISTISPTYPESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTISPTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListIspTypesResult : public ServiceResult + { + public: + + + ListIspTypesResult(); + explicit ListIspTypesResult(const std::string &payload); + ~ListIspTypesResult(); + std::vector getIspTypeList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ispTypeList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTISPTYPESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListListenerCertificatesRequest.h b/ga/include/alibabacloud/ga/model/ListListenerCertificatesRequest.h new file mode 100644 index 000000000..08b06613f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListListenerCertificatesRequest.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_GA_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListListenerCertificatesRequest : public RpcServiceRequest { +public: + ListListenerCertificatesRequest(); + ~ListListenerCertificatesRequest(); + std::string getRole() const; + void setRole(const std::string &role); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string role_; + std::string listenerId_; + std::string regionId_; + std::string nextToken_; + int maxResults_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListListenerCertificatesResult.h b/ga/include/alibabacloud/ga/model/ListListenerCertificatesResult.h new file mode 100644 index 000000000..55dc57979 --- /dev/null +++ b/ga/include/alibabacloud/ga/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_GA_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListListenerCertificatesResult : public ServiceResult + { + public: + struct CertificatesItem + { + bool isDefault; + std::string certificateId; + std::string state; + std::string domain; + }; + + + 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_GA_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListListenersRequest.h b/ga/include/alibabacloud/ga/model/ListListenersRequest.h index 91bd4de00..8abef0eec 100644 --- a/ga/include/alibabacloud/ga/model/ListListenersRequest.h +++ b/ga/include/alibabacloud/ga/model/ListListenersRequest.h @@ -1,57 +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_GA_MODEL_LISTLISTENERSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_LISTLISTENERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ListListenersRequest : public RpcServiceRequest - { - - public: - ListListenersRequest(); - ~ListListenersRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_LISTLISTENERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTLISTENERSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTLISTENERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListListenersRequest : public RpcServiceRequest { +public: + ListListenersRequest(); + ~ListListenersRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTLISTENERSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListListenersResult.h b/ga/include/alibabacloud/ga/model/ListListenersResult.h index 43397be2f..bc254c2fd 100644 --- a/ga/include/alibabacloud/ga/model/ListListenersResult.h +++ b/ga/include/alibabacloud/ga/model/ListListenersResult.h @@ -34,33 +34,44 @@ namespace AlibabaCloud public: struct ListenersItem { - struct PortRangesItem + struct XForwardedForConfig { - int fromPort; - int toPort; - }; - struct BackendPort - { - std::string fromPort; - std::string toPort; + bool xForwardedForGaApEnabled; + bool xForwardedForProtoEnabled; + bool xRealIpEnabled; + bool xForwardedForPortEnabled; + bool xForwardedForGaIdEnabled; }; struct Certificate { std::string type; std::string id; }; + struct BackendPort + { + std::string fromPort; + std::string toPort; + }; + struct PortRangesItem + { + int fromPort; + int toPort; + }; std::string description; - std::string state; - std::vector portRanges; std::vector backendPorts; - bool proxyProtocol; + std::vector portRanges; long createTime; + bool proxyProtocol; std::vector certificates; + std::string name; + std::string securityPolicyId; + std::string type; + std::string state; + XForwardedForConfig xForwardedForConfig; std::string protocol; std::string acceleratorId; - std::string name; - std::string clientAffinity; std::string listenerId; + std::string clientAffinity; }; diff --git a/ga/include/alibabacloud/ga/model/ListSpareIpsRequest.h b/ga/include/alibabacloud/ga/model/ListSpareIpsRequest.h new file mode 100644 index 000000000..0ebecdb8a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListSpareIpsRequest.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_GA_MODEL_LISTSPAREIPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTSPAREIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListSpareIpsRequest : public RpcServiceRequest { +public: + ListSpareIpsRequest(); + ~ListSpareIpsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTSPAREIPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListSpareIpsResult.h b/ga/include/alibabacloud/ga/model/ListSpareIpsResult.h new file mode 100644 index 000000000..3f64b5e74 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListSpareIpsResult.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_GA_MODEL_LISTSPAREIPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTSPAREIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListSpareIpsResult : public ServiceResult + { + public: + struct SpareIpsItem + { + std::string state; + std::string spareIp; + }; + + + ListSpareIpsResult(); + explicit ListSpareIpsResult(const std::string &payload); + ~ListSpareIpsResult(); + std::vector getSpareIps()const; + + protected: + void parse(const std::string &payload); + private: + std::vector spareIps_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTSPAREIPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesRequest.h b/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesRequest.h new file mode 100644 index 000000000..7083e8c5c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesRequest.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_GA_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListSystemSecurityPoliciesRequest : public RpcServiceRequest { +public: + ListSystemSecurityPoliciesRequest(); + ~ListSystemSecurityPoliciesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTSYSTEMSECURITYPOLICIESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesResult.h b/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesResult.h new file mode 100644 index 000000000..21c0d05e2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListSystemSecurityPoliciesResult.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_GA_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListSystemSecurityPoliciesResult : public ServiceResult + { + public: + struct SecurityPoliciesItem + { + std::vector ciphers; + std::string securityPolicyId; + std::vector tlsVersions; + }; + + + ListSystemSecurityPoliciesResult(); + explicit ListSystemSecurityPoliciesResult(const std::string &payload); + ~ListSystemSecurityPoliciesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getSecurityPolicies()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector securityPolicies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTSYSTEMSECURITYPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListTagResourcesRequest.h b/ga/include/alibabacloud/ga/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..82034ac8c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListTagResourcesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string clientToken_; + std::string resourceType_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ListTagResourcesResult.h b/ga/include/alibabacloud/ga/model/ListTagResourcesResult.h new file mode 100644 index 000000000..56442c3bf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListTagResourcesResult.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_GA_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_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; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusRequest.h b/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusRequest.h new file mode 100644 index 000000000..130830f9c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusRequest.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_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT QueryCrossBorderApprovalStatusRequest : public RpcServiceRequest { +public: + QueryCrossBorderApprovalStatusRequest(); + ~QueryCrossBorderApprovalStatusRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusResult.h b/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusResult.h new file mode 100644 index 000000000..e17f7ab27 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/QueryCrossBorderApprovalStatusResult.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_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT QueryCrossBorderApprovalStatusResult : public ServiceResult + { + public: + + + QueryCrossBorderApprovalStatusResult(); + explicit QueryCrossBorderApprovalStatusResult(const std::string &payload); + ~QueryCrossBorderApprovalStatusResult(); + std::string getApprovalStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string approvalStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_QUERYCROSSBORDERAPPROVALSTATUSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h b/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h index e0b74c274..78b01758c 100644 --- a/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h +++ b/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h @@ -1,65 +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_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT RemoveEntriesFromAclRequest : public RpcServiceRequest - { - public: - struct AclEntries - { - std::string entry; - }; - - public: - RemoveEntriesFromAclRequest(); - ~RemoveEntriesFromAclRequest(); - - std::string getAclId()const; - void setAclId(const std::string& aclId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getAclEntries()const; - void setAclEntries(const std::vector& aclEntries); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string aclId_; - bool dryRun_; - std::string clientToken_; - std::vector aclEntries_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT RemoveEntriesFromAclRequest : public RpcServiceRequest { +public: + struct AclEntries { + std::string entry; + }; + RemoveEntriesFromAclRequest(); + ~RemoveEntriesFromAclRequest(); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getAclEntries() const; + void setAclEntries(const std::vector &aclEntries); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string aclId_; + bool dryRun_; + std::string clientToken_; + std::vector aclEntries_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h index 36edd19c3..454fe3b31 100644 --- a/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h +++ b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h @@ -1,54 +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_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT ReplaceBandwidthPackageRequest : public RpcServiceRequest - { - - public: - ReplaceBandwidthPackageRequest(); - ~ReplaceBandwidthPackageRequest(); - - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTargetBandwidthPackageId()const; - void setTargetBandwidthPackageId(const std::string& targetBandwidthPackageId); - - private: - std::string bandwidthPackageId_; - std::string regionId_; - std::string targetBandwidthPackageId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT ReplaceBandwidthPackageRequest : public RpcServiceRequest { +public: + ReplaceBandwidthPackageRequest(); + ~ReplaceBandwidthPackageRequest(); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTargetBandwidthPackageId() const; + void setTargetBandwidthPackageId(const std::string &targetBandwidthPackageId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string bandwidthPackageId_; + std::string regionId_; + std::string targetBandwidthPackageId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/TagResourcesRequest.h b/ga/include/alibabacloud/ga/model/TagResourcesRequest.h new file mode 100644 index 000000000..960b9bde0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/TagResourcesRequest.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_GA_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string clientToken_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/TagResourcesResult.h b/ga/include/alibabacloud/ga/model/TagResourcesResult.h new file mode 100644 index 000000000..ea47f44ea --- /dev/null +++ b/ga/include/alibabacloud/ga/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_GA_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UntagResourcesRequest.h b/ga/include/alibabacloud/ga/model/UntagResourcesRequest.h new file mode 100644 index 000000000..c4559df8b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UntagResourcesRequest.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_GA_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string clientToken_; + std::string resourceType_; + std::string regionId_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UntagResourcesResult.h b/ga/include/alibabacloud/ga/model/UntagResourcesResult.h new file mode 100644 index 000000000..db6ef37e7 --- /dev/null +++ b/ga/include/alibabacloud/ga/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_GA_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeRequest.h new file mode 100644 index 000000000..b6a473920 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeRequest.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_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorAutoRenewAttributeRequest : public RpcServiceRequest { +public: + UpdateAcceleratorAutoRenewAttributeRequest(); + ~UpdateAcceleratorAutoRenewAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + int autoRenewDuration_; + bool autoRenew_; + std::string regionId_; + std::string renewalStatus_; + std::string name_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeResult.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeResult.h new file mode 100644 index 000000000..34f2792c3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorAutoRenewAttributeResult.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_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorAutoRenewAttributeResult : public ServiceResult + { + public: + + + UpdateAcceleratorAutoRenewAttributeResult(); + explicit UpdateAcceleratorAutoRenewAttributeResult(const std::string &payload); + ~UpdateAcceleratorAutoRenewAttributeResult(); + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmRequest.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmRequest.h new file mode 100644 index 000000000..d5759abc7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCONFIRMREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCONFIRMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorConfirmRequest : public RpcServiceRequest { +public: + UpdateAcceleratorConfirmRequest(); + ~UpdateAcceleratorConfirmRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCONFIRMREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmResult.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmResult.h new file mode 100644 index 000000000..5cceec653 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorConfirmResult.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_GA_MODEL_UPDATEACCELERATORCONFIRMRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorConfirmResult : public ServiceResult + { + public: + + + UpdateAcceleratorConfirmResult(); + explicit UpdateAcceleratorConfirmResult(const std::string &payload); + ~UpdateAcceleratorConfirmResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCONFIRMRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeRequest.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeRequest.h new file mode 100644 index 000000000..d8839bc69 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeRequest.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_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorCrossBorderModeRequest : public RpcServiceRequest { +public: + UpdateAcceleratorCrossBorderModeRequest(); + ~UpdateAcceleratorCrossBorderModeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCrossBorderMode() const; + void setCrossBorderMode(const std::string &crossBorderMode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string crossBorderMode_; + std::string regionId_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeResult.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeResult.h new file mode 100644 index 000000000..60cb0a4e4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorCrossBorderModeResult.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_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorCrossBorderModeResult : public ServiceResult + { + public: + + + UpdateAcceleratorCrossBorderModeResult(); + explicit UpdateAcceleratorCrossBorderModeResult(const std::string &payload); + ~UpdateAcceleratorCrossBorderModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORCROSSBORDERMODERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.h index 35c1c39fa..7b6fb0e34 100644 --- a/ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorRequest : public RpcServiceRequest - { - - public: - UpdateAcceleratorRequest(); - ~UpdateAcceleratorRequest(); - - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getPromotionOptionNo()const; - void setPromotionOptionNo(const std::string& promotionOptionNo); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - bool getAutoUseCoupon()const; - void setAutoUseCoupon(bool autoUseCoupon); - std::string getSpec()const; - void setSpec(const std::string& spec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getName()const; - void setName(const std::string& name); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - - private: - bool autoPay_; - std::string promotionOptionNo_; - std::string clientToken_; - std::string description_; - bool autoUseCoupon_; - std::string spec_; - std::string regionId_; - std::string name_; - std::string acceleratorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorRequest : public RpcServiceRequest { +public: + UpdateAcceleratorRequest(); + ~UpdateAcceleratorRequest(); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getAutoUseCoupon() const; + void setAutoUseCoupon(bool autoUseCoupon); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool autoPay_; + std::string promotionOptionNo_; + std::string clientToken_; + std::string description_; + bool autoUseCoupon_; + std::string spec_; + std::string regionId_; + std::string name_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h index cdb14116d..b9d22cf87 100644 --- a/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h @@ -1,60 +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_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateAclAttributeRequest : public RpcServiceRequest - { - - public: - UpdateAclAttributeRequest(); - ~UpdateAclAttributeRequest(); - - std::string getAclId()const; - void setAclId(const std::string& aclId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getAclName()const; - void setAclName(const std::string& aclName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string aclId_; - bool dryRun_; - std::string aclName_; - std::string clientToken_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAclAttributeRequest : public RpcServiceRequest { +public: + UpdateAclAttributeRequest(); + ~UpdateAclAttributeRequest(); + std::string getAclId() const; + void setAclId(const std::string &aclId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string aclId_; + bool dryRun_; + std::string aclName_; + std::string clientToken_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerRequest.h b/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerRequest.h new file mode 100644 index 000000000..cf036026e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerRequest.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_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateAdditionalCertificateWithListenerRequest : public RpcServiceRequest { +public: + UpdateAdditionalCertificateWithListenerRequest(); + ~UpdateAdditionalCertificateWithListenerRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + bool dryRun_; + std::string clientToken_; + std::string certificateId_; + std::string listenerId_; + std::string regionId_; + std::string domain_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerResult.h b/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerResult.h new file mode 100644 index 000000000..24d54d4bd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAdditionalCertificateWithListenerResult.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_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAdditionalCertificateWithListenerResult : public ServiceResult + { + public: + + + UpdateAdditionalCertificateWithListenerResult(); + explicit UpdateAdditionalCertificateWithListenerResult(const std::string &payload); + ~UpdateAdditionalCertificateWithListenerResult(); + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEADDITIONALCERTIFICATEWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorRequest.h b/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorRequest.h new file mode 100644 index 000000000..21013ada9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEAPPLICATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEAPPLICATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateApplicationMonitorRequest : public RpcServiceRequest { +public: + UpdateApplicationMonitorRequest(); + ~UpdateApplicationMonitorRequest(); + bool getDetectEnable() const; + void setDetectEnable(bool detectEnable); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getSilenceTime() const; + void setSilenceTime(int silenceTime); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getAddress() const; + void setAddress(const std::string &address); + int getDetectThreshold() const; + void setDetectThreshold(int detectThreshold); + std::string getOptionsJson() const; + void setOptionsJson(const std::string &optionsJson); + int getDetectTimes() const; + void setDetectTimes(int detectTimes); + +private: + bool detectEnable_; + std::string clientToken_; + std::string taskName_; + std::string listenerId_; + std::string regionId_; + int silenceTime_; + std::string taskId_; + std::string address_; + int detectThreshold_; + std::string optionsJson_; + int detectTimes_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEAPPLICATIONMONITORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorResult.h b/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorResult.h new file mode 100644 index 000000000..063a710b4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateApplicationMonitorResult.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_GA_MODEL_UPDATEAPPLICATIONMONITORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEAPPLICATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateApplicationMonitorResult : public ServiceResult + { + public: + + + UpdateApplicationMonitorResult(); + explicit UpdateApplicationMonitorResult(const std::string &payload); + ~UpdateApplicationMonitorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEAPPLICATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.h new file mode 100644 index 000000000..8fea79bdf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.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_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBandwidthPackagaAutoRenewAttributeRequest : public RpcServiceRequest { +public: + UpdateBandwidthPackagaAutoRenewAttributeRequest(); + ~UpdateBandwidthPackagaAutoRenewAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getAutoRenewDuration() const; + void setAutoRenewDuration(int autoRenewDuration); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string clientToken_; + int autoRenewDuration_; + std::string instanceId_; + bool autoRenew_; + std::string regionId_; + std::string renewalStatus_; + std::string name_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeResult.h b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeResult.h new file mode 100644 index 000000000..c41879f67 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackagaAutoRenewAttributeResult.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_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBandwidthPackagaAutoRenewAttributeResult : public ServiceResult + { + public: + + + UpdateBandwidthPackagaAutoRenewAttributeResult(); + explicit UpdateBandwidthPackagaAutoRenewAttributeResult(const std::string &payload); + ~UpdateBandwidthPackagaAutoRenewAttributeResult(); + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGAAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h index af528eb77..eab946595 100644 --- a/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateBandwidthPackageRequest : public RpcServiceRequest - { - - public: - UpdateBandwidthPackageRequest(); - ~UpdateBandwidthPackageRequest(); - - std::string getBandwidthType()const; - void setBandwidthType(const std::string& bandwidthType); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getPromotionOptionNo()const; - void setPromotionOptionNo(const std::string& promotionOptionNo); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getDescription()const; - void setDescription(const std::string& description); - bool getAutoUseCoupon()const; - void setAutoUseCoupon(bool autoUseCoupon); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string bandwidthType_; - std::string bandwidthPackageId_; - bool autoPay_; - std::string promotionOptionNo_; - int bandwidth_; - std::string description_; - bool autoUseCoupon_; - std::string regionId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBandwidthPackageRequest : public RpcServiceRequest { +public: + UpdateBandwidthPackageRequest(); + ~UpdateBandwidthPackageRequest(); + std::string getBandwidthType() const; + void setBandwidthType(const std::string &bandwidthType); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getAutoUseCoupon() const; + void setAutoUseCoupon(bool autoUseCoupon); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string bandwidthType_; + std::string bandwidthPackageId_; + bool autoPay_; + std::string promotionOptionNo_; + int bandwidth_; + std::string description_; + bool autoUseCoupon_; + std::string regionId_; + std::string name_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorRequest.h new file mode 100644 index 000000000..3c629380b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorRequest.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_GA_MODEL_UPDATEBASICACCELERATORREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICACCELERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBasicAcceleratorRequest : public RpcServiceRequest { +public: + UpdateBasicAcceleratorRequest(); + ~UpdateBasicAcceleratorRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + +private: + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string name_; + std::string acceleratorId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICACCELERATORREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorResult.h b/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorResult.h new file mode 100644 index 000000000..8db2d8322 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicAcceleratorResult.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_GA_MODEL_UPDATEBASICACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBasicAcceleratorResult : public ServiceResult + { + public: + + + UpdateBasicAcceleratorResult(); + explicit UpdateBasicAcceleratorResult(const std::string &payload); + ~UpdateBasicAcceleratorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupRequest.h new file mode 100644 index 000000000..044191536 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupRequest.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_GA_MODEL_UPDATEBASICENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBasicEndpointGroupRequest : public RpcServiceRequest { +public: + UpdateBasicEndpointGroupRequest(); + ~UpdateBasicEndpointGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEndpointAddress() const; + void setEndpointAddress(const std::string &endpointAddress); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getName() const; + void setName(const std::string &name); + std::string getEndpointSubAddress() const; + void setEndpointSubAddress(const std::string &endpointSubAddress); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string description_; + std::string endpointAddress_; + std::string regionId_; + std::string endpointType_; + std::string name_; + std::string endpointSubAddress_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupResult.h new file mode 100644 index 000000000..904cd6221 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointGroupResult.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_GA_MODEL_UPDATEBASICENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBasicEndpointGroupResult : public ServiceResult + { + public: + + + UpdateBasicEndpointGroupResult(); + explicit UpdateBasicEndpointGroupResult(const std::string &payload); + ~UpdateBasicEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicEndpointRequest.h b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointRequest.h new file mode 100644 index 000000000..bee3c0abc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointRequest.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_GA_MODEL_UPDATEBASICENDPOINTREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBasicEndpointRequest : public RpcServiceRequest { +public: + UpdateBasicEndpointRequest(); + ~UpdateBasicEndpointRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string endpointId_; + std::string regionId_; + std::string name_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicEndpointResult.h b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointResult.h new file mode 100644 index 000000000..3ea2ee3e1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicEndpointResult.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_GA_MODEL_UPDATEBASICENDPOINTRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBasicEndpointResult : public ServiceResult + { + public: + + + UpdateBasicEndpointResult(); + explicit UpdateBasicEndpointResult(const std::string &payload); + ~UpdateBasicEndpointResult(); + std::string getEndpointGroupId()const; + std::string getEndpointId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + std::string endpointId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICENDPOINTRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicIpSetRequest.h b/ga/include/alibabacloud/ga/model/UpdateBasicIpSetRequest.h new file mode 100644 index 000000000..e1ed94cf0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicIpSetRequest.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_GA_MODEL_UPDATEBASICIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateBasicIpSetRequest : public RpcServiceRequest { +public: + UpdateBasicIpSetRequest(); + ~UpdateBasicIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + int bandwidth_; + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateBasicIpSetResult.h b/ga/include/alibabacloud/ga/model/UpdateBasicIpSetResult.h new file mode 100644 index 000000000..7ee0a03ef --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBasicIpSetResult.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_GA_MODEL_UPDATEBASICIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBASICIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBasicIpSetResult : public ServiceResult + { + public: + + + UpdateBasicIpSetResult(); + explicit UpdateBasicIpSetResult(const std::string &payload); + ~UpdateBasicIpSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBASICIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeRequest.h new file mode 100644 index 000000000..894f208ad --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeRequest.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointGroupAttributeRequest : public RpcServiceRequest { +public: + UpdateCustomRoutingEndpointGroupAttributeRequest(); + ~UpdateCustomRoutingEndpointGroupAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string name_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeResult.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeResult.h new file mode 100644 index 000000000..bb58038dd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupAttributeResult.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointGroupAttributeResult : public ServiceResult + { + public: + + + UpdateCustomRoutingEndpointGroupAttributeResult(); + explicit UpdateCustomRoutingEndpointGroupAttributeResult(const std::string &payload); + ~UpdateCustomRoutingEndpointGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.h new file mode 100644 index 000000000..1ba34b9a9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointGroupDestinationsRequest : public RpcServiceRequest { +public: + struct DestinationConfigurations { + int fromPort; + int toPort; + std::string destinationId; + }; + UpdateCustomRoutingEndpointGroupDestinationsRequest(); + ~UpdateCustomRoutingEndpointGroupDestinationsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getDestinationConfigurations() const; + void setDestinationConfigurations(const std::vector &destinationConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector destinationConfigurations_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsResult.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsResult.h new file mode 100644 index 000000000..00ca9b61d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointGroupDestinationsResult.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointGroupDestinationsResult : public ServiceResult + { + public: + + + UpdateCustomRoutingEndpointGroupDestinationsResult(); + explicit UpdateCustomRoutingEndpointGroupDestinationsResult(const std::string &payload); + ~UpdateCustomRoutingEndpointGroupDestinationsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTGROUPDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.h new file mode 100644 index 000000000..ddc7a371f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointTrafficPoliciesRequest : public RpcServiceRequest { +public: + struct PolicyConfigurations { + std::string policyId; + std::string address; + struct PortRanges { + int fromPort; + int toPort; + }; + std::vector portRanges; + }; + UpdateCustomRoutingEndpointTrafficPoliciesRequest(); + ~UpdateCustomRoutingEndpointTrafficPoliciesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::vector getPolicyConfigurations() const; + void setPolicyConfigurations(const std::vector &policyConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + std::string endpointId_; + std::vector policyConfigurations_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.h new file mode 100644 index 000000000..4ce3928e4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointTrafficPoliciesResult : public ServiceResult + { + public: + + + UpdateCustomRoutingEndpointTrafficPoliciesResult(); + explicit UpdateCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload); + ~UpdateCustomRoutingEndpointTrafficPoliciesResult(); + std::vector getPolicyIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector policyIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTTRAFFICPOLICIESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsRequest.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsRequest.h new file mode 100644 index 000000000..5c3377d37 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsRequest.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointsRequest : public RpcServiceRequest { +public: + struct EndpointConfigurations { + std::string trafficToEndpointPolicy; + std::string endpointId; + struct PolicyConfigurations { + std::string address; + struct PortRanges { + std::string fromPort; + std::string toPort; + }; + std::vector portRanges; + }; + std::vector policyConfigurations; + }; + UpdateCustomRoutingEndpointsRequest(); + ~UpdateCustomRoutingEndpointsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointConfigurations() const; + void setEndpointConfigurations(const std::vector &endpointConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::vector endpointConfigurations_; + std::string regionId_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsResult.h b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsResult.h new file mode 100644 index 000000000..e2978b3e5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateCustomRoutingEndpointsResult.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_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateCustomRoutingEndpointsResult : public ServiceResult + { + public: + + + UpdateCustomRoutingEndpointsResult(); + explicit UpdateCustomRoutingEndpointsResult(const std::string &payload); + ~UpdateCustomRoutingEndpointsResult(); + std::vector getEndpointIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpointIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATECUSTOMROUTINGENDPOINTSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateDomainRequest.h b/ga/include/alibabacloud/ga/model/UpdateDomainRequest.h new file mode 100644 index 000000000..54d51f2de --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateDomainRequest.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_GA_MODEL_UPDATEDOMAINREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEDOMAINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateDomainRequest : public RpcServiceRequest { +public: + UpdateDomainRequest(); + ~UpdateDomainRequest(); + std::string getTargetDomain() const; + void setTargetDomain(const std::string &targetDomain); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::string targetDomain_; + std::string regionId_; + std::string domain_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEDOMAINREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateDomainResult.h b/ga/include/alibabacloud/ga/model/UpdateDomainResult.h new file mode 100644 index 000000000..936c10e91 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateDomainResult.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_GA_MODEL_UPDATEDOMAINRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateDomainResult : public ServiceResult + { + public: + + + UpdateDomainResult(); + explicit UpdateDomainResult(const std::string &payload); + ~UpdateDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEDOMAINRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateDomainStateRequest.h b/ga/include/alibabacloud/ga/model/UpdateDomainStateRequest.h new file mode 100644 index 000000000..b882f2770 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateDomainStateRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEDOMAINSTATEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEDOMAINSTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateDomainStateRequest : public RpcServiceRequest { +public: + UpdateDomainStateRequest(); + ~UpdateDomainStateRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::string regionId_; + std::string domain_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEDOMAINSTATEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateDomainStateResult.h b/ga/include/alibabacloud/ga/model/UpdateDomainStateResult.h new file mode 100644 index 000000000..337c9a110 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateDomainStateResult.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_GA_MODEL_UPDATEDOMAINSTATERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEDOMAINSTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateDomainStateResult : public ServiceResult + { + public: + + + UpdateDomainStateResult(); + explicit UpdateDomainStateResult(const std::string &payload); + ~UpdateDomainStateResult(); + std::string getState()const; + std::string getDomain()const; + + protected: + void parse(const std::string &payload); + private: + std::string state_; + std::string domain_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEDOMAINSTATERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h index fce5e374c..25fd82974 100644 --- a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h @@ -1,60 +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_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupAttributeRequest : public RpcServiceRequest - { - - public: - UpdateEndpointGroupAttributeRequest(); - ~UpdateEndpointGroupAttributeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getName()const; - void setName(const std::string& name); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - - private: - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string name_; - std::string endpointGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupAttributeRequest : public RpcServiceRequest { +public: + UpdateEndpointGroupAttributeRequest(); + ~UpdateEndpointGroupAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getName() const; + void setName(const std::string &name); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + +private: + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string name_; + std::string endpointGroupId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTEREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h index b029a4db6..65c852cf5 100644 --- a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h @@ -1,104 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupRequest : public RpcServiceRequest - { - public: - struct PortOverrides - { - int listenerPort; - int endpointPort; - }; - struct EndpointConfigurations - { - std::string type; - bool enableClientIPPreservation; - int weight; - bool enableProxyProtocol; - std::string endpoint; - }; - - public: - UpdateEndpointGroupRequest(); - ~UpdateEndpointGroupRequest(); - - std::vector getPortOverrides()const; - void setPortOverrides(const std::vector& portOverrides); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getHealthCheckIntervalSeconds()const; - void setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getHealthCheckProtocol()const; - void setHealthCheckProtocol(const std::string& healthCheckProtocol); - std::string getEndpointRequestProtocol()const; - void setEndpointRequestProtocol(const std::string& endpointRequestProtocol); - std::string getHealthCheckPath()const; - void setHealthCheckPath(const std::string& healthCheckPath); - std::vector getEndpointConfigurations()const; - void setEndpointConfigurations(const std::vector& endpointConfigurations); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEndpointGroupId()const; - void setEndpointGroupId(const std::string& endpointGroupId); - int getTrafficPercentage()const; - void setTrafficPercentage(int trafficPercentage); - int getHealthCheckPort()const; - void setHealthCheckPort(int healthCheckPort); - int getThresholdCount()const; - void setThresholdCount(int thresholdCount); - std::string getEndpointGroupRegion()const; - void setEndpointGroupRegion(const std::string& endpointGroupRegion); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector portOverrides_; - std::string clientToken_; - int healthCheckIntervalSeconds_; - std::string description_; - std::string healthCheckProtocol_; - std::string endpointRequestProtocol_; - std::string healthCheckPath_; - std::vector endpointConfigurations_; - std::string regionId_; - std::string endpointGroupId_; - int trafficPercentage_; - int healthCheckPort_; - int thresholdCount_; - std::string endpointGroupRegion_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupRequest : public RpcServiceRequest { +public: + struct PortOverrides { + int listenerPort; + int endpointPort; + }; + struct EndpointConfigurations { + std::string type; + bool enableClientIPPreservation; + int weight; + bool enableProxyProtocol; + std::string endpoint; + }; + UpdateEndpointGroupRequest(); + ~UpdateEndpointGroupRequest(); + std::vector getPortOverrides() const; + void setPortOverrides(const std::vector &portOverrides); + bool getHealthCheckEnabled() const; + void setHealthCheckEnabled(bool healthCheckEnabled); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getHealthCheckIntervalSeconds() const; + void setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getHealthCheckProtocol() const; + void setHealthCheckProtocol(const std::string &healthCheckProtocol); + std::string getEndpointRequestProtocol() const; + void setEndpointRequestProtocol(const std::string &endpointRequestProtocol); + std::string getHealthCheckPath() const; + void setHealthCheckPath(const std::string &healthCheckPath); + std::vector getEndpointConfigurations() const; + void setEndpointConfigurations(const std::vector &endpointConfigurations); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEndpointGroupId() const; + void setEndpointGroupId(const std::string &endpointGroupId); + int getTrafficPercentage() const; + void setTrafficPercentage(int trafficPercentage); + int getHealthCheckPort() const; + void setHealthCheckPort(int healthCheckPort); + int getThresholdCount() const; + void setThresholdCount(int thresholdCount); + std::string getEndpointGroupRegion() const; + void setEndpointGroupRegion(const std::string &endpointGroupRegion); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector portOverrides_; + bool healthCheckEnabled_; + std::string clientToken_; + int healthCheckIntervalSeconds_; + std::string description_; + std::string healthCheckProtocol_; + std::string endpointRequestProtocol_; + std::string healthCheckPath_; + std::vector endpointConfigurations_; + std::string regionId_; + std::string endpointGroupId_; + int trafficPercentage_; + int healthCheckPort_; + int thresholdCount_; + std::string endpointGroupRegion_; + std::string name_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsRequest.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsRequest.h new file mode 100644 index 000000000..595354948 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupsRequest : public RpcServiceRequest { +public: + struct EndpointGroupConfigurations { + std::string endpointGroupName; + std::string endpointGroupDescription; + long trafficPercentage; + bool healthCheckEnabled; + long healthCheckIntervalSeconds; + std::string healthCheckPath; + long healthCheckPort; + std::string healthCheckProtocol; + long thresholdCount; + struct EndpointConfigurations { + std::string type; + long weight; + std::string endpoint; + }; + std::vector endpointConfigurations; + std::string endpointRequestProtocol; + struct PortOverrides { + long listenerPort; + long endpointPort; + }; + std::vector portOverrides; + bool enableClientIPPreservationToa; + bool enableClientIPPreservationProxyProtocol; + std::string endpointGroupId; + }; + UpdateEndpointGroupsRequest(); + ~UpdateEndpointGroupsRequest(); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getEndpointGroupConfigurations() const; + void setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + bool dryRun_; + std::string clientToken_; + std::vector endpointGroupConfigurations_; + std::string listenerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsResult.h new file mode 100644 index 000000000..10b98fe21 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupsResult.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_GA_MODEL_UPDATEENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupsResult : public ServiceResult + { + public: + + + UpdateEndpointGroupsResult(); + explicit UpdateEndpointGroupsResult(const std::string &payload); + ~UpdateEndpointGroupsResult(); + std::vector getEndpointGroupIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endpointGroupIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h b/ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h index 94d1877b3..537588ed2 100644 --- a/ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h @@ -1,60 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateForwardingRulesRequest : public RpcServiceRequest - { - - public: - UpdateForwardingRulesRequest(); - ~UpdateForwardingRulesRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAcceleratorId()const; - void setAcceleratorId(const std::string& acceleratorId); - Array getForwardingRules()const; - void setForwardingRules(const Array& forwardingRules); - - private: - std::string clientToken_; - std::string listenerId_; - std::string regionId_; - std::string acceleratorId_; - Array forwardingRules_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateForwardingRulesRequest : public RpcServiceRequest { +public: + struct ForwardingRules { + int priority; + struct RuleConditionsItem { + std::string ruleConditionType; + std::string ruleConditionValue; + struct PathConfig { + std::string string; + std::vector values; + }; + PathConfig pathConfig; + struct HostConfig { + std::string string; + std::vector values; + }; + HostConfig hostConfig; + }; + RuleConditionsItem ruleConditionsItem; + std::vector ruleConditions; + struct RuleActionsItem { + int order; + std::string ruleActionType; + std::string ruleActionValue; + struct ForwardGroupConfig { + struct ServerGroupTuplesItem { + std::string endpointGroupId; + }; + ServerGroupTuplesItem serverGroupTuplesItem; + std::vector serverGroupTuples; + }; + ForwardGroupConfig forwardGroupConfig; + }; + RuleActionsItem ruleActionsItem; + std::vector ruleActions; + std::string forwardingRuleId; + std::string forwardingRuleName; + std::string ruleDirection; + }; + UpdateForwardingRulesRequest(); + ~UpdateForwardingRulesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAcceleratorId() const; + void setAcceleratorId(const std::string &acceleratorId); + std::vector getForwardingRules() const; + void setForwardingRules(const std::vector &forwardingRules); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + std::string acceleratorId_; + std::vector forwardingRules_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h b/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h index 6dc966f0f..7fa17cec6 100644 --- a/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h @@ -1,57 +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_GA_MODEL_UPDATEIPSETREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateIpSetRequest : public RpcServiceRequest - { - - public: - UpdateIpSetRequest(); - ~UpdateIpSetRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getIpSetId()const; - void setIpSetId(const std::string& ipSetId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::string clientToken_; - int bandwidth_; - std::string ipSetId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEIPSETREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateIpSetRequest : public RpcServiceRequest { +public: + UpdateIpSetRequest(); + ~UpdateIpSetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getIpSetId() const; + void setIpSetId(const std::string &ipSetId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clientToken_; + int bandwidth_; + std::string ipSetId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h b/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h index 99c0768a9..b5034cf7e 100644 --- a/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h @@ -1,57 +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_GA_MODEL_UPDATEIPSETSREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateIpSetsRequest : public RpcServiceRequest - { - public: - struct IpSets - { - int bandwidth; - std::string ipSetId; - }; - - public: - UpdateIpSetsRequest(); - ~UpdateIpSetsRequest(); - - std::vector getIpSets()const; - void setIpSets(const std::vector& ipSets); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - std::vector ipSets_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATEIPSETSREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateIpSetsRequest : public RpcServiceRequest { +public: + struct IpSets { + int bandwidth; + std::string ipSetId; + }; + UpdateIpSetsRequest(); + ~UpdateIpSetsRequest(); + std::vector getIpSets() const; + void setIpSets(const std::vector &ipSets); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::vector ipSets_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETSREQUEST_H_ diff --git a/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h b/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h index dd72c4488..7d83d0876 100644 --- a/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h +++ b/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h @@ -1,93 +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. - */ - -#ifndef ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ -#define ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ga - { - namespace Model - { - class ALIBABACLOUD_GA_EXPORT UpdateListenerRequest : public RpcServiceRequest - { - public: - struct BackendPorts - { - int fromPort; - int toPort; - }; - struct PortRanges - { - int fromPort; - int toPort; - }; - struct Certificates - { - std::string id; - }; - - public: - UpdateListenerRequest(); - ~UpdateListenerRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::vector getBackendPorts()const; - void setBackendPorts(const std::vector& backendPorts); - std::string getListenerId()const; - void setListenerId(const std::string& listenerId); - std::string getProtocol()const; - void setProtocol(const std::string& protocol); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getProxyProtocol()const; - void setProxyProtocol(const std::string& proxyProtocol); - std::vector getPortRanges()const; - void setPortRanges(const std::vector& portRanges); - std::vector getCertificates()const; - void setCertificates(const std::vector& certificates); - std::string getName()const; - void setName(const std::string& name); - std::string getClientAffinity()const; - void setClientAffinity(const std::string& clientAffinity); - - private: - std::string clientToken_; - std::string description_; - std::vector backendPorts_; - std::string listenerId_; - std::string protocol_; - std::string regionId_; - std::string proxyProtocol_; - std::vector portRanges_; - std::vector certificates_; - std::string name_; - std::string clientAffinity_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ga { +namespace Model { +class ALIBABACLOUD_GA_EXPORT UpdateListenerRequest : public RpcServiceRequest { +public: + struct BackendPorts { + int fromPort; + int toPort; + }; + struct XForwardedForConfig { + bool xForwardedForGaIdEnabled; + bool xForwardedForProtoEnabled; + bool xForwardedForPortEnabled; + bool xRealIpEnabled; + bool xForwardedForGaApEnabled; + }; + struct PortRanges { + int fromPort; + int toPort; + }; + struct Certificates { + std::string id; + }; + UpdateListenerRequest(); + ~UpdateListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::vector getBackendPorts() const; + void setBackendPorts(const std::vector &backendPorts); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + XForwardedForConfig getXForwardedForConfig() const; + void setXForwardedForConfig(const XForwardedForConfig &xForwardedForConfig); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + std::string getProxyProtocol() const; + void setProxyProtocol(const std::string &proxyProtocol); + std::vector getPortRanges() const; + void setPortRanges(const std::vector &portRanges); + std::vector getCertificates() const; + void setCertificates(const std::vector &certificates); + std::string getName() const; + void setName(const std::string &name); + std::string getClientAffinity() const; + void setClientAffinity(const std::string &clientAffinity); + +private: + std::string clientToken_; + std::string description_; + std::vector backendPorts_; + std::string listenerId_; + std::string protocol_; + std::string regionId_; + XForwardedForConfig xForwardedForConfig_; + std::string securityPolicyId_; + std::string proxyProtocol_; + std::vector portRanges_; + std::vector certificates_; + std::string name_; + std::string clientAffinity_; +}; +} // namespace Model +} // namespace Ga +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GA_MODEL_UPDATELISTENERREQUEST_H_ diff --git a/ga/src/GaClient.cc b/ga/src/GaClient.cc index 22e8b550a..42e0e0e9c 100644 --- a/ga/src/GaClient.cc +++ b/ga/src/GaClient.cc @@ -123,6 +123,42 @@ GaClient::AssociateAclsWithListenerOutcomeCallable GaClient::associateAclsWithLi return task->get_future(); } +GaClient::AssociateAdditionalCertificatesWithListenerOutcome GaClient::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 GaClient::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)); +} + +GaClient::AssociateAdditionalCertificatesWithListenerOutcomeCallable GaClient::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(); +} + GaClient::AttachDdosToAcceleratorOutcome GaClient::attachDdosToAccelerator(const AttachDdosToAcceleratorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +303,42 @@ GaClient::BandwidthPackageRemoveAcceleratorOutcomeCallable GaClient::bandwidthPa return task->get_future(); } +GaClient::ChangeResourceGroupOutcome GaClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result())); + else + return ChangeResourceGroupOutcome(outcome.error()); +} + +void GaClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ChangeResourceGroupOutcomeCallable GaClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::ConfigEndpointProbeOutcome GaClient::configEndpointProbe(const ConfigEndpointProbeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +447,42 @@ GaClient::CreateAclOutcomeCallable GaClient::createAclCallable(const CreateAclRe return task->get_future(); } +GaClient::CreateApplicationMonitorOutcome GaClient::createApplicationMonitor(const CreateApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationMonitorOutcome(CreateApplicationMonitorResult(outcome.result())); + else + return CreateApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::createApplicationMonitorAsync(const CreateApplicationMonitorRequest& request, const CreateApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateApplicationMonitorOutcomeCallable GaClient::createApplicationMonitorCallable(const CreateApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::CreateBandwidthPackageOutcome GaClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +519,474 @@ GaClient::CreateBandwidthPackageOutcomeCallable GaClient::createBandwidthPackage return task->get_future(); } +GaClient::CreateBasicAccelerateIpOutcome GaClient::createBasicAccelerateIp(const CreateBasicAccelerateIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicAccelerateIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicAccelerateIpOutcome(CreateBasicAccelerateIpResult(outcome.result())); + else + return CreateBasicAccelerateIpOutcome(outcome.error()); +} + +void GaClient::createBasicAccelerateIpAsync(const CreateBasicAccelerateIpRequest& request, const CreateBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicAccelerateIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicAccelerateIpOutcomeCallable GaClient::createBasicAccelerateIpCallable(const CreateBasicAccelerateIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicAccelerateIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicAccelerateIpEndpointRelationOutcome GaClient::createBasicAccelerateIpEndpointRelation(const CreateBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicAccelerateIpEndpointRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicAccelerateIpEndpointRelationOutcome(CreateBasicAccelerateIpEndpointRelationResult(outcome.result())); + else + return CreateBasicAccelerateIpEndpointRelationOutcome(outcome.error()); +} + +void GaClient::createBasicAccelerateIpEndpointRelationAsync(const CreateBasicAccelerateIpEndpointRelationRequest& request, const CreateBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicAccelerateIpEndpointRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicAccelerateIpEndpointRelationOutcomeCallable GaClient::createBasicAccelerateIpEndpointRelationCallable(const CreateBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicAccelerateIpEndpointRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicAccelerateIpEndpointRelationsOutcome GaClient::createBasicAccelerateIpEndpointRelations(const CreateBasicAccelerateIpEndpointRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicAccelerateIpEndpointRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicAccelerateIpEndpointRelationsOutcome(CreateBasicAccelerateIpEndpointRelationsResult(outcome.result())); + else + return CreateBasicAccelerateIpEndpointRelationsOutcome(outcome.error()); +} + +void GaClient::createBasicAccelerateIpEndpointRelationsAsync(const CreateBasicAccelerateIpEndpointRelationsRequest& request, const CreateBasicAccelerateIpEndpointRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicAccelerateIpEndpointRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicAccelerateIpEndpointRelationsOutcomeCallable GaClient::createBasicAccelerateIpEndpointRelationsCallable(const CreateBasicAccelerateIpEndpointRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicAccelerateIpEndpointRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicAcceleratorOutcome GaClient::createBasicAccelerator(const CreateBasicAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicAcceleratorOutcome(CreateBasicAcceleratorResult(outcome.result())); + else + return CreateBasicAcceleratorOutcome(outcome.error()); +} + +void GaClient::createBasicAcceleratorAsync(const CreateBasicAcceleratorRequest& request, const CreateBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicAcceleratorOutcomeCallable GaClient::createBasicAcceleratorCallable(const CreateBasicAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicEndpointOutcome GaClient::createBasicEndpoint(const CreateBasicEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicEndpointOutcome(CreateBasicEndpointResult(outcome.result())); + else + return CreateBasicEndpointOutcome(outcome.error()); +} + +void GaClient::createBasicEndpointAsync(const CreateBasicEndpointRequest& request, const CreateBasicEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicEndpointOutcomeCallable GaClient::createBasicEndpointCallable(const CreateBasicEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicEndpointGroupOutcome GaClient::createBasicEndpointGroup(const CreateBasicEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicEndpointGroupOutcome(CreateBasicEndpointGroupResult(outcome.result())); + else + return CreateBasicEndpointGroupOutcome(outcome.error()); +} + +void GaClient::createBasicEndpointGroupAsync(const CreateBasicEndpointGroupRequest& request, const CreateBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicEndpointGroupOutcomeCallable GaClient::createBasicEndpointGroupCallable(const CreateBasicEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicEndpointsOutcome GaClient::createBasicEndpoints(const CreateBasicEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicEndpointsOutcome(CreateBasicEndpointsResult(outcome.result())); + else + return CreateBasicEndpointsOutcome(outcome.error()); +} + +void GaClient::createBasicEndpointsAsync(const CreateBasicEndpointsRequest& request, const CreateBasicEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicEndpointsOutcomeCallable GaClient::createBasicEndpointsCallable(const CreateBasicEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBasicIpSetOutcome GaClient::createBasicIpSet(const CreateBasicIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBasicIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBasicIpSetOutcome(CreateBasicIpSetResult(outcome.result())); + else + return CreateBasicIpSetOutcome(outcome.error()); +} + +void GaClient::createBasicIpSetAsync(const CreateBasicIpSetRequest& request, const CreateBasicIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBasicIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBasicIpSetOutcomeCallable GaClient::createBasicIpSetCallable(const CreateBasicIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBasicIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateCustomRoutingEndpointGroupDestinationsOutcome GaClient::createCustomRoutingEndpointGroupDestinations(const CreateCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomRoutingEndpointGroupDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomRoutingEndpointGroupDestinationsOutcome(CreateCustomRoutingEndpointGroupDestinationsResult(outcome.result())); + else + return CreateCustomRoutingEndpointGroupDestinationsOutcome(outcome.error()); +} + +void GaClient::createCustomRoutingEndpointGroupDestinationsAsync(const CreateCustomRoutingEndpointGroupDestinationsRequest& request, const CreateCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomRoutingEndpointGroupDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateCustomRoutingEndpointGroupDestinationsOutcomeCallable GaClient::createCustomRoutingEndpointGroupDestinationsCallable(const CreateCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomRoutingEndpointGroupDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateCustomRoutingEndpointGroupsOutcome GaClient::createCustomRoutingEndpointGroups(const CreateCustomRoutingEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomRoutingEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomRoutingEndpointGroupsOutcome(CreateCustomRoutingEndpointGroupsResult(outcome.result())); + else + return CreateCustomRoutingEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::createCustomRoutingEndpointGroupsAsync(const CreateCustomRoutingEndpointGroupsRequest& request, const CreateCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomRoutingEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateCustomRoutingEndpointGroupsOutcomeCallable GaClient::createCustomRoutingEndpointGroupsCallable(const CreateCustomRoutingEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomRoutingEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateCustomRoutingEndpointTrafficPoliciesOutcome GaClient::createCustomRoutingEndpointTrafficPolicies(const CreateCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomRoutingEndpointTrafficPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomRoutingEndpointTrafficPoliciesOutcome(CreateCustomRoutingEndpointTrafficPoliciesResult(outcome.result())); + else + return CreateCustomRoutingEndpointTrafficPoliciesOutcome(outcome.error()); +} + +void GaClient::createCustomRoutingEndpointTrafficPoliciesAsync(const CreateCustomRoutingEndpointTrafficPoliciesRequest& request, const CreateCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomRoutingEndpointTrafficPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateCustomRoutingEndpointTrafficPoliciesOutcomeCallable GaClient::createCustomRoutingEndpointTrafficPoliciesCallable(const CreateCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomRoutingEndpointTrafficPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateCustomRoutingEndpointsOutcome GaClient::createCustomRoutingEndpoints(const CreateCustomRoutingEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCustomRoutingEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCustomRoutingEndpointsOutcome(CreateCustomRoutingEndpointsResult(outcome.result())); + else + return CreateCustomRoutingEndpointsOutcome(outcome.error()); +} + +void GaClient::createCustomRoutingEndpointsAsync(const CreateCustomRoutingEndpointsRequest& request, const CreateCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCustomRoutingEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateCustomRoutingEndpointsOutcomeCallable GaClient::createCustomRoutingEndpointsCallable(const CreateCustomRoutingEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCustomRoutingEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateDomainOutcome GaClient::createDomain(const CreateDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDomainOutcome(CreateDomainResult(outcome.result())); + else + return CreateDomainOutcome(outcome.error()); +} + +void GaClient::createDomainAsync(const CreateDomainRequest& request, const CreateDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateDomainOutcomeCallable GaClient::createDomainCallable(const CreateDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::CreateEndpointGroupOutcome GaClient::createEndpointGroup(const CreateEndpointGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +1023,42 @@ GaClient::CreateEndpointGroupOutcomeCallable GaClient::createEndpointGroupCallab return task->get_future(); } +GaClient::CreateEndpointGroupsOutcome GaClient::createEndpointGroups(const CreateEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEndpointGroupsOutcome(CreateEndpointGroupsResult(outcome.result())); + else + return CreateEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::createEndpointGroupsAsync(const CreateEndpointGroupsRequest& request, const CreateEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateEndpointGroupsOutcomeCallable GaClient::createEndpointGroupsCallable(const CreateEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::CreateForwardingRulesOutcome GaClient::createForwardingRules(const CreateForwardingRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +1167,42 @@ GaClient::CreateListenerOutcomeCallable GaClient::createListenerCallable(const C return task->get_future(); } +GaClient::CreateSpareIpsOutcome GaClient::createSpareIps(const CreateSpareIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSpareIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSpareIpsOutcome(CreateSpareIpsResult(outcome.result())); + else + return CreateSpareIpsOutcome(outcome.error()); +} + +void GaClient::createSpareIpsAsync(const CreateSpareIpsRequest& request, const CreateSpareIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSpareIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateSpareIpsOutcomeCallable GaClient::createSpareIpsCallable(const CreateSpareIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSpareIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DeleteAcceleratorOutcome GaClient::deleteAccelerator(const DeleteAcceleratorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +1275,42 @@ GaClient::DeleteAclOutcomeCallable GaClient::deleteAclCallable(const DeleteAclRe return task->get_future(); } +GaClient::DeleteApplicationMonitorOutcome GaClient::deleteApplicationMonitor(const DeleteApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationMonitorOutcome(DeleteApplicationMonitorResult(outcome.result())); + else + return DeleteApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::deleteApplicationMonitorAsync(const DeleteApplicationMonitorRequest& request, const DeleteApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteApplicationMonitorOutcomeCallable GaClient::deleteApplicationMonitorCallable(const DeleteApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DeleteBandwidthPackageOutcome GaClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +1347,402 @@ GaClient::DeleteBandwidthPackageOutcomeCallable GaClient::deleteBandwidthPackage return task->get_future(); } +GaClient::DeleteBasicAccelerateIpOutcome GaClient::deleteBasicAccelerateIp(const DeleteBasicAccelerateIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicAccelerateIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicAccelerateIpOutcome(DeleteBasicAccelerateIpResult(outcome.result())); + else + return DeleteBasicAccelerateIpOutcome(outcome.error()); +} + +void GaClient::deleteBasicAccelerateIpAsync(const DeleteBasicAccelerateIpRequest& request, const DeleteBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicAccelerateIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicAccelerateIpOutcomeCallable GaClient::deleteBasicAccelerateIpCallable(const DeleteBasicAccelerateIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicAccelerateIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBasicAccelerateIpEndpointRelationOutcome GaClient::deleteBasicAccelerateIpEndpointRelation(const DeleteBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicAccelerateIpEndpointRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicAccelerateIpEndpointRelationOutcome(DeleteBasicAccelerateIpEndpointRelationResult(outcome.result())); + else + return DeleteBasicAccelerateIpEndpointRelationOutcome(outcome.error()); +} + +void GaClient::deleteBasicAccelerateIpEndpointRelationAsync(const DeleteBasicAccelerateIpEndpointRelationRequest& request, const DeleteBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicAccelerateIpEndpointRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicAccelerateIpEndpointRelationOutcomeCallable GaClient::deleteBasicAccelerateIpEndpointRelationCallable(const DeleteBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicAccelerateIpEndpointRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBasicAcceleratorOutcome GaClient::deleteBasicAccelerator(const DeleteBasicAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicAcceleratorOutcome(DeleteBasicAcceleratorResult(outcome.result())); + else + return DeleteBasicAcceleratorOutcome(outcome.error()); +} + +void GaClient::deleteBasicAcceleratorAsync(const DeleteBasicAcceleratorRequest& request, const DeleteBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicAcceleratorOutcomeCallable GaClient::deleteBasicAcceleratorCallable(const DeleteBasicAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBasicEndpointOutcome GaClient::deleteBasicEndpoint(const DeleteBasicEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicEndpointOutcome(DeleteBasicEndpointResult(outcome.result())); + else + return DeleteBasicEndpointOutcome(outcome.error()); +} + +void GaClient::deleteBasicEndpointAsync(const DeleteBasicEndpointRequest& request, const DeleteBasicEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicEndpointOutcomeCallable GaClient::deleteBasicEndpointCallable(const DeleteBasicEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBasicEndpointGroupOutcome GaClient::deleteBasicEndpointGroup(const DeleteBasicEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicEndpointGroupOutcome(DeleteBasicEndpointGroupResult(outcome.result())); + else + return DeleteBasicEndpointGroupOutcome(outcome.error()); +} + +void GaClient::deleteBasicEndpointGroupAsync(const DeleteBasicEndpointGroupRequest& request, const DeleteBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicEndpointGroupOutcomeCallable GaClient::deleteBasicEndpointGroupCallable(const DeleteBasicEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBasicIpSetOutcome GaClient::deleteBasicIpSet(const DeleteBasicIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBasicIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBasicIpSetOutcome(DeleteBasicIpSetResult(outcome.result())); + else + return DeleteBasicIpSetOutcome(outcome.error()); +} + +void GaClient::deleteBasicIpSetAsync(const DeleteBasicIpSetRequest& request, const DeleteBasicIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBasicIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBasicIpSetOutcomeCallable GaClient::deleteBasicIpSetCallable(const DeleteBasicIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBasicIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteCustomRoutingEndpointGroupDestinationsOutcome GaClient::deleteCustomRoutingEndpointGroupDestinations(const DeleteCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomRoutingEndpointGroupDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomRoutingEndpointGroupDestinationsOutcome(DeleteCustomRoutingEndpointGroupDestinationsResult(outcome.result())); + else + return DeleteCustomRoutingEndpointGroupDestinationsOutcome(outcome.error()); +} + +void GaClient::deleteCustomRoutingEndpointGroupDestinationsAsync(const DeleteCustomRoutingEndpointGroupDestinationsRequest& request, const DeleteCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomRoutingEndpointGroupDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteCustomRoutingEndpointGroupDestinationsOutcomeCallable GaClient::deleteCustomRoutingEndpointGroupDestinationsCallable(const DeleteCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomRoutingEndpointGroupDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteCustomRoutingEndpointGroupsOutcome GaClient::deleteCustomRoutingEndpointGroups(const DeleteCustomRoutingEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomRoutingEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomRoutingEndpointGroupsOutcome(DeleteCustomRoutingEndpointGroupsResult(outcome.result())); + else + return DeleteCustomRoutingEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::deleteCustomRoutingEndpointGroupsAsync(const DeleteCustomRoutingEndpointGroupsRequest& request, const DeleteCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomRoutingEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteCustomRoutingEndpointGroupsOutcomeCallable GaClient::deleteCustomRoutingEndpointGroupsCallable(const DeleteCustomRoutingEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomRoutingEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteCustomRoutingEndpointTrafficPoliciesOutcome GaClient::deleteCustomRoutingEndpointTrafficPolicies(const DeleteCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomRoutingEndpointTrafficPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomRoutingEndpointTrafficPoliciesOutcome(DeleteCustomRoutingEndpointTrafficPoliciesResult(outcome.result())); + else + return DeleteCustomRoutingEndpointTrafficPoliciesOutcome(outcome.error()); +} + +void GaClient::deleteCustomRoutingEndpointTrafficPoliciesAsync(const DeleteCustomRoutingEndpointTrafficPoliciesRequest& request, const DeleteCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomRoutingEndpointTrafficPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteCustomRoutingEndpointTrafficPoliciesOutcomeCallable GaClient::deleteCustomRoutingEndpointTrafficPoliciesCallable(const DeleteCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomRoutingEndpointTrafficPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteCustomRoutingEndpointsOutcome GaClient::deleteCustomRoutingEndpoints(const DeleteCustomRoutingEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCustomRoutingEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCustomRoutingEndpointsOutcome(DeleteCustomRoutingEndpointsResult(outcome.result())); + else + return DeleteCustomRoutingEndpointsOutcome(outcome.error()); +} + +void GaClient::deleteCustomRoutingEndpointsAsync(const DeleteCustomRoutingEndpointsRequest& request, const DeleteCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCustomRoutingEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteCustomRoutingEndpointsOutcomeCallable GaClient::deleteCustomRoutingEndpointsCallable(const DeleteCustomRoutingEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCustomRoutingEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteDomainAcceleratorRelationOutcome GaClient::deleteDomainAcceleratorRelation(const DeleteDomainAcceleratorRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainAcceleratorRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainAcceleratorRelationOutcome(DeleteDomainAcceleratorRelationResult(outcome.result())); + else + return DeleteDomainAcceleratorRelationOutcome(outcome.error()); +} + +void GaClient::deleteDomainAcceleratorRelationAsync(const DeleteDomainAcceleratorRelationRequest& request, const DeleteDomainAcceleratorRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomainAcceleratorRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteDomainAcceleratorRelationOutcomeCallable GaClient::deleteDomainAcceleratorRelationCallable(const DeleteDomainAcceleratorRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomainAcceleratorRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DeleteEndpointGroupOutcome GaClient::deleteEndpointGroup(const DeleteEndpointGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +1779,42 @@ GaClient::DeleteEndpointGroupOutcomeCallable GaClient::deleteEndpointGroupCallab return task->get_future(); } +GaClient::DeleteEndpointGroupsOutcome GaClient::deleteEndpointGroups(const DeleteEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEndpointGroupsOutcome(DeleteEndpointGroupsResult(outcome.result())); + else + return DeleteEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::deleteEndpointGroupsAsync(const DeleteEndpointGroupsRequest& request, const DeleteEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteEndpointGroupsOutcomeCallable GaClient::deleteEndpointGroupsCallable(const DeleteEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DeleteForwardingRulesOutcome GaClient::deleteForwardingRules(const DeleteForwardingRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1959,42 @@ GaClient::DeleteListenerOutcomeCallable GaClient::deleteListenerCallable(const D return task->get_future(); } +GaClient::DeleteSpareIpsOutcome GaClient::deleteSpareIps(const DeleteSpareIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSpareIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSpareIpsOutcome(DeleteSpareIpsResult(outcome.result())); + else + return DeleteSpareIpsOutcome(outcome.error()); +} + +void GaClient::deleteSpareIpsAsync(const DeleteSpareIpsRequest& request, const DeleteSpareIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSpareIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteSpareIpsOutcomeCallable GaClient::deleteSpareIpsCallable(const DeleteSpareIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSpareIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DescribeAcceleratorOutcome GaClient::describeAccelerator(const DescribeAcceleratorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +2031,78 @@ GaClient::DescribeAcceleratorOutcomeCallable GaClient::describeAcceleratorCallab return task->get_future(); } +GaClient::DescribeAcceleratorAutoRenewAttributeOutcome GaClient::describeAcceleratorAutoRenewAttribute(const DescribeAcceleratorAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAcceleratorAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAcceleratorAutoRenewAttributeOutcome(DescribeAcceleratorAutoRenewAttributeResult(outcome.result())); + else + return DescribeAcceleratorAutoRenewAttributeOutcome(outcome.error()); +} + +void GaClient::describeAcceleratorAutoRenewAttributeAsync(const DescribeAcceleratorAutoRenewAttributeRequest& request, const DescribeAcceleratorAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAcceleratorAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeAcceleratorAutoRenewAttributeOutcomeCallable GaClient::describeAcceleratorAutoRenewAttributeCallable(const DescribeAcceleratorAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAcceleratorAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeApplicationMonitorOutcome GaClient::describeApplicationMonitor(const DescribeApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationMonitorOutcome(DescribeApplicationMonitorResult(outcome.result())); + else + return DescribeApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::describeApplicationMonitorAsync(const DescribeApplicationMonitorRequest& request, const DescribeApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeApplicationMonitorOutcomeCallable GaClient::describeApplicationMonitorCallable(const DescribeApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DescribeBandwidthPackageOutcome GaClient::describeBandwidthPackage(const DescribeBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +2139,258 @@ GaClient::DescribeBandwidthPackageOutcomeCallable GaClient::describeBandwidthPac return task->get_future(); } +GaClient::DescribeBandwidthPackageAutoRenewAttributeOutcome GaClient::describeBandwidthPackageAutoRenewAttribute(const DescribeBandwidthPackageAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwidthPackageAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwidthPackageAutoRenewAttributeOutcome(DescribeBandwidthPackageAutoRenewAttributeResult(outcome.result())); + else + return DescribeBandwidthPackageAutoRenewAttributeOutcome(outcome.error()); +} + +void GaClient::describeBandwidthPackageAutoRenewAttributeAsync(const DescribeBandwidthPackageAutoRenewAttributeRequest& request, const DescribeBandwidthPackageAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwidthPackageAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeBandwidthPackageAutoRenewAttributeOutcomeCallable GaClient::describeBandwidthPackageAutoRenewAttributeCallable(const DescribeBandwidthPackageAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwidthPackageAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCommodityOutcome GaClient::describeCommodity(const DescribeCommodityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCommodityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCommodityOutcome(DescribeCommodityResult(outcome.result())); + else + return DescribeCommodityOutcome(outcome.error()); +} + +void GaClient::describeCommodityAsync(const DescribeCommodityRequest& request, const DescribeCommodityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCommodity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCommodityOutcomeCallable GaClient::describeCommodityCallable(const DescribeCommodityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCommodity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCommodityPriceOutcome GaClient::describeCommodityPrice(const DescribeCommodityPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCommodityPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCommodityPriceOutcome(DescribeCommodityPriceResult(outcome.result())); + else + return DescribeCommodityPriceOutcome(outcome.error()); +} + +void GaClient::describeCommodityPriceAsync(const DescribeCommodityPriceRequest& request, const DescribeCommodityPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCommodityPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCommodityPriceOutcomeCallable GaClient::describeCommodityPriceCallable(const DescribeCommodityPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCommodityPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCustomRoutingEndPointTrafficPolicyOutcome GaClient::describeCustomRoutingEndPointTrafficPolicy(const DescribeCustomRoutingEndPointTrafficPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomRoutingEndPointTrafficPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomRoutingEndPointTrafficPolicyOutcome(DescribeCustomRoutingEndPointTrafficPolicyResult(outcome.result())); + else + return DescribeCustomRoutingEndPointTrafficPolicyOutcome(outcome.error()); +} + +void GaClient::describeCustomRoutingEndPointTrafficPolicyAsync(const DescribeCustomRoutingEndPointTrafficPolicyRequest& request, const DescribeCustomRoutingEndPointTrafficPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomRoutingEndPointTrafficPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCustomRoutingEndPointTrafficPolicyOutcomeCallable GaClient::describeCustomRoutingEndPointTrafficPolicyCallable(const DescribeCustomRoutingEndPointTrafficPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomRoutingEndPointTrafficPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCustomRoutingEndpointOutcome GaClient::describeCustomRoutingEndpoint(const DescribeCustomRoutingEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomRoutingEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomRoutingEndpointOutcome(DescribeCustomRoutingEndpointResult(outcome.result())); + else + return DescribeCustomRoutingEndpointOutcome(outcome.error()); +} + +void GaClient::describeCustomRoutingEndpointAsync(const DescribeCustomRoutingEndpointRequest& request, const DescribeCustomRoutingEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomRoutingEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCustomRoutingEndpointOutcomeCallable GaClient::describeCustomRoutingEndpointCallable(const DescribeCustomRoutingEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomRoutingEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCustomRoutingEndpointGroupOutcome GaClient::describeCustomRoutingEndpointGroup(const DescribeCustomRoutingEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomRoutingEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomRoutingEndpointGroupOutcome(DescribeCustomRoutingEndpointGroupResult(outcome.result())); + else + return DescribeCustomRoutingEndpointGroupOutcome(outcome.error()); +} + +void GaClient::describeCustomRoutingEndpointGroupAsync(const DescribeCustomRoutingEndpointGroupRequest& request, const DescribeCustomRoutingEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomRoutingEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCustomRoutingEndpointGroupOutcomeCallable GaClient::describeCustomRoutingEndpointGroupCallable(const DescribeCustomRoutingEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomRoutingEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeCustomRoutingEndpointGroupDestinationsOutcome GaClient::describeCustomRoutingEndpointGroupDestinations(const DescribeCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomRoutingEndpointGroupDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomRoutingEndpointGroupDestinationsOutcome(DescribeCustomRoutingEndpointGroupDestinationsResult(outcome.result())); + else + return DescribeCustomRoutingEndpointGroupDestinationsOutcome(outcome.error()); +} + +void GaClient::describeCustomRoutingEndpointGroupDestinationsAsync(const DescribeCustomRoutingEndpointGroupDestinationsRequest& request, const DescribeCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomRoutingEndpointGroupDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeCustomRoutingEndpointGroupDestinationsOutcomeCallable GaClient::describeCustomRoutingEndpointGroupDestinationsCallable(const DescribeCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomRoutingEndpointGroupDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DescribeEndpointGroupOutcome GaClient::describeEndpointGroup(const DescribeEndpointGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +2607,78 @@ GaClient::DetachLogStoreFromEndpointGroupOutcomeCallable GaClient::detachLogStor return task->get_future(); } +GaClient::DetectApplicationMonitorOutcome GaClient::detectApplicationMonitor(const DetectApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectApplicationMonitorOutcome(DetectApplicationMonitorResult(outcome.result())); + else + return DetectApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::detectApplicationMonitorAsync(const DetectApplicationMonitorRequest& request, const DetectApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DetectApplicationMonitorOutcomeCallable GaClient::detectApplicationMonitorCallable(const DetectApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DisableApplicationMonitorOutcome GaClient::disableApplicationMonitor(const DisableApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableApplicationMonitorOutcome(DisableApplicationMonitorResult(outcome.result())); + else + return DisableApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::disableApplicationMonitorAsync(const DisableApplicationMonitorRequest& request, const DisableApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DisableApplicationMonitorOutcomeCallable GaClient::disableApplicationMonitorCallable(const DisableApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::DissociateAclsFromListenerOutcome GaClient::dissociateAclsFromListener(const DissociateAclsFromListenerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +2715,78 @@ GaClient::DissociateAclsFromListenerOutcomeCallable GaClient::dissociateAclsFrom return task->get_future(); } +GaClient::DissociateAdditionalCertificatesFromListenerOutcome GaClient::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 GaClient::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)); +} + +GaClient::DissociateAdditionalCertificatesFromListenerOutcomeCallable GaClient::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(); +} + +GaClient::EnableApplicationMonitorOutcome GaClient::enableApplicationMonitor(const EnableApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableApplicationMonitorOutcome(EnableApplicationMonitorResult(outcome.result())); + else + return EnableApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::enableApplicationMonitorAsync(const EnableApplicationMonitorRequest& request, const EnableApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::EnableApplicationMonitorOutcomeCallable GaClient::enableApplicationMonitorCallable(const EnableApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::GetAclOutcome GaClient::getAcl(const GetAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +2823,402 @@ GaClient::GetAclOutcomeCallable GaClient::getAclCallable(const GetAclRequest &re return task->get_future(); } +GaClient::GetBasicAccelerateIpOutcome GaClient::getBasicAccelerateIp(const GetBasicAccelerateIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicAccelerateIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicAccelerateIpOutcome(GetBasicAccelerateIpResult(outcome.result())); + else + return GetBasicAccelerateIpOutcome(outcome.error()); +} + +void GaClient::getBasicAccelerateIpAsync(const GetBasicAccelerateIpRequest& request, const GetBasicAccelerateIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicAccelerateIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicAccelerateIpOutcomeCallable GaClient::getBasicAccelerateIpCallable(const GetBasicAccelerateIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicAccelerateIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicAccelerateIpEndpointRelationOutcome GaClient::getBasicAccelerateIpEndpointRelation(const GetBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicAccelerateIpEndpointRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicAccelerateIpEndpointRelationOutcome(GetBasicAccelerateIpEndpointRelationResult(outcome.result())); + else + return GetBasicAccelerateIpEndpointRelationOutcome(outcome.error()); +} + +void GaClient::getBasicAccelerateIpEndpointRelationAsync(const GetBasicAccelerateIpEndpointRelationRequest& request, const GetBasicAccelerateIpEndpointRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicAccelerateIpEndpointRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicAccelerateIpEndpointRelationOutcomeCallable GaClient::getBasicAccelerateIpEndpointRelationCallable(const GetBasicAccelerateIpEndpointRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicAccelerateIpEndpointRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicAccelerateIpIdleCountOutcome GaClient::getBasicAccelerateIpIdleCount(const GetBasicAccelerateIpIdleCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicAccelerateIpIdleCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicAccelerateIpIdleCountOutcome(GetBasicAccelerateIpIdleCountResult(outcome.result())); + else + return GetBasicAccelerateIpIdleCountOutcome(outcome.error()); +} + +void GaClient::getBasicAccelerateIpIdleCountAsync(const GetBasicAccelerateIpIdleCountRequest& request, const GetBasicAccelerateIpIdleCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicAccelerateIpIdleCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicAccelerateIpIdleCountOutcomeCallable GaClient::getBasicAccelerateIpIdleCountCallable(const GetBasicAccelerateIpIdleCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicAccelerateIpIdleCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicAcceleratorOutcome GaClient::getBasicAccelerator(const GetBasicAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicAcceleratorOutcome(GetBasicAcceleratorResult(outcome.result())); + else + return GetBasicAcceleratorOutcome(outcome.error()); +} + +void GaClient::getBasicAcceleratorAsync(const GetBasicAcceleratorRequest& request, const GetBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicAcceleratorOutcomeCallable GaClient::getBasicAcceleratorCallable(const GetBasicAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicEndpointOutcome GaClient::getBasicEndpoint(const GetBasicEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicEndpointOutcome(GetBasicEndpointResult(outcome.result())); + else + return GetBasicEndpointOutcome(outcome.error()); +} + +void GaClient::getBasicEndpointAsync(const GetBasicEndpointRequest& request, const GetBasicEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicEndpointOutcomeCallable GaClient::getBasicEndpointCallable(const GetBasicEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicEndpointGroupOutcome GaClient::getBasicEndpointGroup(const GetBasicEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicEndpointGroupOutcome(GetBasicEndpointGroupResult(outcome.result())); + else + return GetBasicEndpointGroupOutcome(outcome.error()); +} + +void GaClient::getBasicEndpointGroupAsync(const GetBasicEndpointGroupRequest& request, const GetBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicEndpointGroupOutcomeCallable GaClient::getBasicEndpointGroupCallable(const GetBasicEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetBasicIpSetOutcome GaClient::getBasicIpSet(const GetBasicIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBasicIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBasicIpSetOutcome(GetBasicIpSetResult(outcome.result())); + else + return GetBasicIpSetOutcome(outcome.error()); +} + +void GaClient::getBasicIpSetAsync(const GetBasicIpSetRequest& request, const GetBasicIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBasicIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetBasicIpSetOutcomeCallable GaClient::getBasicIpSetCallable(const GetBasicIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBasicIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetHealthStatusOutcome GaClient::getHealthStatus(const GetHealthStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHealthStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHealthStatusOutcome(GetHealthStatusResult(outcome.result())); + else + return GetHealthStatusOutcome(outcome.error()); +} + +void GaClient::getHealthStatusAsync(const GetHealthStatusRequest& request, const GetHealthStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHealthStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetHealthStatusOutcomeCallable GaClient::getHealthStatusCallable(const GetHealthStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHealthStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetInvalidDomainCountOutcome GaClient::getInvalidDomainCount(const GetInvalidDomainCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInvalidDomainCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInvalidDomainCountOutcome(GetInvalidDomainCountResult(outcome.result())); + else + return GetInvalidDomainCountOutcome(outcome.error()); +} + +void GaClient::getInvalidDomainCountAsync(const GetInvalidDomainCountRequest& request, const GetInvalidDomainCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInvalidDomainCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetInvalidDomainCountOutcomeCallable GaClient::getInvalidDomainCountCallable(const GetInvalidDomainCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInvalidDomainCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetIpsetsBandwidthLimitOutcome GaClient::getIpsetsBandwidthLimit(const GetIpsetsBandwidthLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetIpsetsBandwidthLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetIpsetsBandwidthLimitOutcome(GetIpsetsBandwidthLimitResult(outcome.result())); + else + return GetIpsetsBandwidthLimitOutcome(outcome.error()); +} + +void GaClient::getIpsetsBandwidthLimitAsync(const GetIpsetsBandwidthLimitRequest& request, const GetIpsetsBandwidthLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getIpsetsBandwidthLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetIpsetsBandwidthLimitOutcomeCallable GaClient::getIpsetsBandwidthLimitCallable(const GetIpsetsBandwidthLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getIpsetsBandwidthLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetSpareIpOutcome GaClient::getSpareIp(const GetSpareIpRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSpareIpOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSpareIpOutcome(GetSpareIpResult(outcome.result())); + else + return GetSpareIpOutcome(outcome.error()); +} + +void GaClient::getSpareIpAsync(const GetSpareIpRequest& request, const GetSpareIpAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSpareIp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetSpareIpOutcomeCallable GaClient::getSpareIpCallable(const GetSpareIpRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSpareIp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::ListAccelerateAreasOutcome GaClient::listAccelerateAreas(const ListAccelerateAreasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +3327,78 @@ GaClient::ListAclsOutcomeCallable GaClient::listAclsCallable(const ListAclsReque return task->get_future(); } +GaClient::ListApplicationMonitorOutcome GaClient::listApplicationMonitor(const ListApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationMonitorOutcome(ListApplicationMonitorResult(outcome.result())); + else + return ListApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::listApplicationMonitorAsync(const ListApplicationMonitorRequest& request, const ListApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListApplicationMonitorOutcomeCallable GaClient::listApplicationMonitorCallable(const ListApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListApplicationMonitorDetectResultOutcome GaClient::listApplicationMonitorDetectResult(const ListApplicationMonitorDetectResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationMonitorDetectResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationMonitorDetectResultOutcome(ListApplicationMonitorDetectResultResult(outcome.result())); + else + return ListApplicationMonitorDetectResultOutcome(outcome.error()); +} + +void GaClient::listApplicationMonitorDetectResultAsync(const ListApplicationMonitorDetectResultRequest& request, const ListApplicationMonitorDetectResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplicationMonitorDetectResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListApplicationMonitorDetectResultOutcomeCallable GaClient::listApplicationMonitorDetectResultCallable(const ListApplicationMonitorDetectResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplicationMonitorDetectResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::ListAvailableAccelerateAreasOutcome GaClient::listAvailableAccelerateAreas(const ListAvailableAccelerateAreasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +3543,150 @@ GaClient::ListBandwidthackagesOutcomeCallable GaClient::listBandwidthackagesCall return task->get_future(); } +GaClient::ListBasicAccelerateIpEndpointRelationsOutcome GaClient::listBasicAccelerateIpEndpointRelations(const ListBasicAccelerateIpEndpointRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicAccelerateIpEndpointRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicAccelerateIpEndpointRelationsOutcome(ListBasicAccelerateIpEndpointRelationsResult(outcome.result())); + else + return ListBasicAccelerateIpEndpointRelationsOutcome(outcome.error()); +} + +void GaClient::listBasicAccelerateIpEndpointRelationsAsync(const ListBasicAccelerateIpEndpointRelationsRequest& request, const ListBasicAccelerateIpEndpointRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicAccelerateIpEndpointRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBasicAccelerateIpEndpointRelationsOutcomeCallable GaClient::listBasicAccelerateIpEndpointRelationsCallable(const ListBasicAccelerateIpEndpointRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicAccelerateIpEndpointRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBasicAccelerateIpsOutcome GaClient::listBasicAccelerateIps(const ListBasicAccelerateIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicAccelerateIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicAccelerateIpsOutcome(ListBasicAccelerateIpsResult(outcome.result())); + else + return ListBasicAccelerateIpsOutcome(outcome.error()); +} + +void GaClient::listBasicAccelerateIpsAsync(const ListBasicAccelerateIpsRequest& request, const ListBasicAccelerateIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicAccelerateIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBasicAccelerateIpsOutcomeCallable GaClient::listBasicAccelerateIpsCallable(const ListBasicAccelerateIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicAccelerateIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBasicAcceleratorsOutcome GaClient::listBasicAccelerators(const ListBasicAcceleratorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicAcceleratorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicAcceleratorsOutcome(ListBasicAcceleratorsResult(outcome.result())); + else + return ListBasicAcceleratorsOutcome(outcome.error()); +} + +void GaClient::listBasicAcceleratorsAsync(const ListBasicAcceleratorsRequest& request, const ListBasicAcceleratorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicAccelerators(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBasicAcceleratorsOutcomeCallable GaClient::listBasicAcceleratorsCallable(const ListBasicAcceleratorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicAccelerators(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBasicEndpointsOutcome GaClient::listBasicEndpoints(const ListBasicEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBasicEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBasicEndpointsOutcome(ListBasicEndpointsResult(outcome.result())); + else + return ListBasicEndpointsOutcome(outcome.error()); +} + +void GaClient::listBasicEndpointsAsync(const ListBasicEndpointsRequest& request, const ListBasicEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBasicEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBasicEndpointsOutcomeCallable GaClient::listBasicEndpointsCallable(const ListBasicEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBasicEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::ListBusiRegionsOutcome GaClient::listBusiRegions(const ListBusiRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +3723,294 @@ GaClient::ListBusiRegionsOutcomeCallable GaClient::listBusiRegionsCallable(const return task->get_future(); } +GaClient::ListCommonAreasOutcome GaClient::listCommonAreas(const ListCommonAreasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCommonAreasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCommonAreasOutcome(ListCommonAreasResult(outcome.result())); + else + return ListCommonAreasOutcome(outcome.error()); +} + +void GaClient::listCommonAreasAsync(const ListCommonAreasRequest& request, const ListCommonAreasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCommonAreas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCommonAreasOutcomeCallable GaClient::listCommonAreasCallable(const ListCommonAreasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCommonAreas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingEndpointGroupDestinationsOutcome GaClient::listCustomRoutingEndpointGroupDestinations(const ListCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingEndpointGroupDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingEndpointGroupDestinationsOutcome(ListCustomRoutingEndpointGroupDestinationsResult(outcome.result())); + else + return ListCustomRoutingEndpointGroupDestinationsOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingEndpointGroupDestinationsAsync(const ListCustomRoutingEndpointGroupDestinationsRequest& request, const ListCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingEndpointGroupDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingEndpointGroupDestinationsOutcomeCallable GaClient::listCustomRoutingEndpointGroupDestinationsCallable(const ListCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingEndpointGroupDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingEndpointGroupsOutcome GaClient::listCustomRoutingEndpointGroups(const ListCustomRoutingEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingEndpointGroupsOutcome(ListCustomRoutingEndpointGroupsResult(outcome.result())); + else + return ListCustomRoutingEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingEndpointGroupsAsync(const ListCustomRoutingEndpointGroupsRequest& request, const ListCustomRoutingEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingEndpointGroupsOutcomeCallable GaClient::listCustomRoutingEndpointGroupsCallable(const ListCustomRoutingEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingEndpointTrafficPoliciesOutcome GaClient::listCustomRoutingEndpointTrafficPolicies(const ListCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingEndpointTrafficPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingEndpointTrafficPoliciesOutcome(ListCustomRoutingEndpointTrafficPoliciesResult(outcome.result())); + else + return ListCustomRoutingEndpointTrafficPoliciesOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingEndpointTrafficPoliciesAsync(const ListCustomRoutingEndpointTrafficPoliciesRequest& request, const ListCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingEndpointTrafficPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingEndpointTrafficPoliciesOutcomeCallable GaClient::listCustomRoutingEndpointTrafficPoliciesCallable(const ListCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingEndpointTrafficPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingEndpointsOutcome GaClient::listCustomRoutingEndpoints(const ListCustomRoutingEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingEndpointsOutcome(ListCustomRoutingEndpointsResult(outcome.result())); + else + return ListCustomRoutingEndpointsOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingEndpointsAsync(const ListCustomRoutingEndpointsRequest& request, const ListCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingEndpointsOutcomeCallable GaClient::listCustomRoutingEndpointsCallable(const ListCustomRoutingEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingPortMappingsOutcome GaClient::listCustomRoutingPortMappings(const ListCustomRoutingPortMappingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingPortMappingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingPortMappingsOutcome(ListCustomRoutingPortMappingsResult(outcome.result())); + else + return ListCustomRoutingPortMappingsOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingPortMappingsAsync(const ListCustomRoutingPortMappingsRequest& request, const ListCustomRoutingPortMappingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingPortMappings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingPortMappingsOutcomeCallable GaClient::listCustomRoutingPortMappingsCallable(const ListCustomRoutingPortMappingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingPortMappings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListCustomRoutingPortMappingsByDestinationOutcome GaClient::listCustomRoutingPortMappingsByDestination(const ListCustomRoutingPortMappingsByDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomRoutingPortMappingsByDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomRoutingPortMappingsByDestinationOutcome(ListCustomRoutingPortMappingsByDestinationResult(outcome.result())); + else + return ListCustomRoutingPortMappingsByDestinationOutcome(outcome.error()); +} + +void GaClient::listCustomRoutingPortMappingsByDestinationAsync(const ListCustomRoutingPortMappingsByDestinationRequest& request, const ListCustomRoutingPortMappingsByDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomRoutingPortMappingsByDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListCustomRoutingPortMappingsByDestinationOutcomeCallable GaClient::listCustomRoutingPortMappingsByDestinationCallable(const ListCustomRoutingPortMappingsByDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomRoutingPortMappingsByDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListDomainsOutcome GaClient::listDomains(const ListDomainsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDomainsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDomainsOutcome(ListDomainsResult(outcome.result())); + else + return ListDomainsOutcome(outcome.error()); +} + +void GaClient::listDomainsAsync(const ListDomainsRequest& request, const ListDomainsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDomains(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListDomainsOutcomeCallable GaClient::listDomainsCallable(const ListDomainsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDomains(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::ListEndpointGroupsOutcome GaClient::listEndpointGroups(const ListEndpointGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,6 +4119,78 @@ GaClient::ListIpSetsOutcomeCallable GaClient::listIpSetsCallable(const ListIpSet return task->get_future(); } +GaClient::ListIspTypesOutcome GaClient::listIspTypes(const ListIspTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIspTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIspTypesOutcome(ListIspTypesResult(outcome.result())); + else + return ListIspTypesOutcome(outcome.error()); +} + +void GaClient::listIspTypesAsync(const ListIspTypesRequest& request, const ListIspTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIspTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListIspTypesOutcomeCallable GaClient::listIspTypesCallable(const ListIspTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIspTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListListenerCertificatesOutcome GaClient::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 GaClient::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)); +} + +GaClient::ListListenerCertificatesOutcomeCallable GaClient::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(); +} + GaClient::ListListenersOutcome GaClient::listListeners(const ListListenersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +4227,150 @@ GaClient::ListListenersOutcomeCallable GaClient::listListenersCallable(const Lis return task->get_future(); } +GaClient::ListSpareIpsOutcome GaClient::listSpareIps(const ListSpareIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSpareIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSpareIpsOutcome(ListSpareIpsResult(outcome.result())); + else + return ListSpareIpsOutcome(outcome.error()); +} + +void GaClient::listSpareIpsAsync(const ListSpareIpsRequest& request, const ListSpareIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSpareIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListSpareIpsOutcomeCallable GaClient::listSpareIpsCallable(const ListSpareIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSpareIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListSystemSecurityPoliciesOutcome GaClient::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 GaClient::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)); +} + +GaClient::ListSystemSecurityPoliciesOutcomeCallable GaClient::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(); +} + +GaClient::ListTagResourcesOutcome GaClient::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 GaClient::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)); +} + +GaClient::ListTagResourcesOutcomeCallable GaClient::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(); +} + +GaClient::QueryCrossBorderApprovalStatusOutcome GaClient::queryCrossBorderApprovalStatus(const QueryCrossBorderApprovalStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCrossBorderApprovalStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCrossBorderApprovalStatusOutcome(QueryCrossBorderApprovalStatusResult(outcome.result())); + else + return QueryCrossBorderApprovalStatusOutcome(outcome.error()); +} + +void GaClient::queryCrossBorderApprovalStatusAsync(const QueryCrossBorderApprovalStatusRequest& request, const QueryCrossBorderApprovalStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCrossBorderApprovalStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::QueryCrossBorderApprovalStatusOutcomeCallable GaClient::queryCrossBorderApprovalStatusCallable(const QueryCrossBorderApprovalStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCrossBorderApprovalStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::RemoveEntriesFromAclOutcome GaClient::removeEntriesFromAcl(const RemoveEntriesFromAclRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +4443,78 @@ GaClient::ReplaceBandwidthPackageOutcomeCallable GaClient::replaceBandwidthPacka return task->get_future(); } +GaClient::TagResourcesOutcome GaClient::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 GaClient::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)); +} + +GaClient::TagResourcesOutcomeCallable GaClient::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(); +} + +GaClient::UntagResourcesOutcome GaClient::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 GaClient::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)); +} + +GaClient::UntagResourcesOutcomeCallable GaClient::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(); +} + GaClient::UpdateAcceleratorOutcome GaClient::updateAccelerator(const UpdateAcceleratorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +4551,114 @@ GaClient::UpdateAcceleratorOutcomeCallable GaClient::updateAcceleratorCallable(c return task->get_future(); } +GaClient::UpdateAcceleratorAutoRenewAttributeOutcome GaClient::updateAcceleratorAutoRenewAttribute(const UpdateAcceleratorAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAcceleratorAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAcceleratorAutoRenewAttributeOutcome(UpdateAcceleratorAutoRenewAttributeResult(outcome.result())); + else + return UpdateAcceleratorAutoRenewAttributeOutcome(outcome.error()); +} + +void GaClient::updateAcceleratorAutoRenewAttributeAsync(const UpdateAcceleratorAutoRenewAttributeRequest& request, const UpdateAcceleratorAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAcceleratorAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAcceleratorAutoRenewAttributeOutcomeCallable GaClient::updateAcceleratorAutoRenewAttributeCallable(const UpdateAcceleratorAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAcceleratorAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateAcceleratorConfirmOutcome GaClient::updateAcceleratorConfirm(const UpdateAcceleratorConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAcceleratorConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAcceleratorConfirmOutcome(UpdateAcceleratorConfirmResult(outcome.result())); + else + return UpdateAcceleratorConfirmOutcome(outcome.error()); +} + +void GaClient::updateAcceleratorConfirmAsync(const UpdateAcceleratorConfirmRequest& request, const UpdateAcceleratorConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAcceleratorConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAcceleratorConfirmOutcomeCallable GaClient::updateAcceleratorConfirmCallable(const UpdateAcceleratorConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAcceleratorConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateAcceleratorCrossBorderModeOutcome GaClient::updateAcceleratorCrossBorderMode(const UpdateAcceleratorCrossBorderModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAcceleratorCrossBorderModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAcceleratorCrossBorderModeOutcome(UpdateAcceleratorCrossBorderModeResult(outcome.result())); + else + return UpdateAcceleratorCrossBorderModeOutcome(outcome.error()); +} + +void GaClient::updateAcceleratorCrossBorderModeAsync(const UpdateAcceleratorCrossBorderModeRequest& request, const UpdateAcceleratorCrossBorderModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAcceleratorCrossBorderMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAcceleratorCrossBorderModeOutcomeCallable GaClient::updateAcceleratorCrossBorderModeCallable(const UpdateAcceleratorCrossBorderModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAcceleratorCrossBorderMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::UpdateAclAttributeOutcome GaClient::updateAclAttribute(const UpdateAclAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +4695,114 @@ GaClient::UpdateAclAttributeOutcomeCallable GaClient::updateAclAttributeCallable return task->get_future(); } +GaClient::UpdateAdditionalCertificateWithListenerOutcome GaClient::updateAdditionalCertificateWithListener(const UpdateAdditionalCertificateWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAdditionalCertificateWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAdditionalCertificateWithListenerOutcome(UpdateAdditionalCertificateWithListenerResult(outcome.result())); + else + return UpdateAdditionalCertificateWithListenerOutcome(outcome.error()); +} + +void GaClient::updateAdditionalCertificateWithListenerAsync(const UpdateAdditionalCertificateWithListenerRequest& request, const UpdateAdditionalCertificateWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAdditionalCertificateWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAdditionalCertificateWithListenerOutcomeCallable GaClient::updateAdditionalCertificateWithListenerCallable(const UpdateAdditionalCertificateWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAdditionalCertificateWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateApplicationMonitorOutcome GaClient::updateApplicationMonitor(const UpdateApplicationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApplicationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApplicationMonitorOutcome(UpdateApplicationMonitorResult(outcome.result())); + else + return UpdateApplicationMonitorOutcome(outcome.error()); +} + +void GaClient::updateApplicationMonitorAsync(const UpdateApplicationMonitorRequest& request, const UpdateApplicationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApplicationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateApplicationMonitorOutcomeCallable GaClient::updateApplicationMonitorCallable(const UpdateApplicationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApplicationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateBandwidthPackagaAutoRenewAttributeOutcome GaClient::updateBandwidthPackagaAutoRenewAttribute(const UpdateBandwidthPackagaAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBandwidthPackagaAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBandwidthPackagaAutoRenewAttributeOutcome(UpdateBandwidthPackagaAutoRenewAttributeResult(outcome.result())); + else + return UpdateBandwidthPackagaAutoRenewAttributeOutcome(outcome.error()); +} + +void GaClient::updateBandwidthPackagaAutoRenewAttributeAsync(const UpdateBandwidthPackagaAutoRenewAttributeRequest& request, const UpdateBandwidthPackagaAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBandwidthPackagaAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBandwidthPackagaAutoRenewAttributeOutcomeCallable GaClient::updateBandwidthPackagaAutoRenewAttributeCallable(const UpdateBandwidthPackagaAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBandwidthPackagaAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::UpdateBandwidthPackageOutcome GaClient::updateBandwidthPackage(const UpdateBandwidthPackageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,6 +4839,366 @@ GaClient::UpdateBandwidthPackageOutcomeCallable GaClient::updateBandwidthPackage return task->get_future(); } +GaClient::UpdateBasicAcceleratorOutcome GaClient::updateBasicAccelerator(const UpdateBasicAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBasicAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBasicAcceleratorOutcome(UpdateBasicAcceleratorResult(outcome.result())); + else + return UpdateBasicAcceleratorOutcome(outcome.error()); +} + +void GaClient::updateBasicAcceleratorAsync(const UpdateBasicAcceleratorRequest& request, const UpdateBasicAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBasicAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBasicAcceleratorOutcomeCallable GaClient::updateBasicAcceleratorCallable(const UpdateBasicAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBasicAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateBasicEndpointOutcome GaClient::updateBasicEndpoint(const UpdateBasicEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBasicEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBasicEndpointOutcome(UpdateBasicEndpointResult(outcome.result())); + else + return UpdateBasicEndpointOutcome(outcome.error()); +} + +void GaClient::updateBasicEndpointAsync(const UpdateBasicEndpointRequest& request, const UpdateBasicEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBasicEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBasicEndpointOutcomeCallable GaClient::updateBasicEndpointCallable(const UpdateBasicEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBasicEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateBasicEndpointGroupOutcome GaClient::updateBasicEndpointGroup(const UpdateBasicEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBasicEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBasicEndpointGroupOutcome(UpdateBasicEndpointGroupResult(outcome.result())); + else + return UpdateBasicEndpointGroupOutcome(outcome.error()); +} + +void GaClient::updateBasicEndpointGroupAsync(const UpdateBasicEndpointGroupRequest& request, const UpdateBasicEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBasicEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBasicEndpointGroupOutcomeCallable GaClient::updateBasicEndpointGroupCallable(const UpdateBasicEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBasicEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateBasicIpSetOutcome GaClient::updateBasicIpSet(const UpdateBasicIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBasicIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBasicIpSetOutcome(UpdateBasicIpSetResult(outcome.result())); + else + return UpdateBasicIpSetOutcome(outcome.error()); +} + +void GaClient::updateBasicIpSetAsync(const UpdateBasicIpSetRequest& request, const UpdateBasicIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBasicIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBasicIpSetOutcomeCallable GaClient::updateBasicIpSetCallable(const UpdateBasicIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBasicIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateCustomRoutingEndpointGroupAttributeOutcome GaClient::updateCustomRoutingEndpointGroupAttribute(const UpdateCustomRoutingEndpointGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomRoutingEndpointGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomRoutingEndpointGroupAttributeOutcome(UpdateCustomRoutingEndpointGroupAttributeResult(outcome.result())); + else + return UpdateCustomRoutingEndpointGroupAttributeOutcome(outcome.error()); +} + +void GaClient::updateCustomRoutingEndpointGroupAttributeAsync(const UpdateCustomRoutingEndpointGroupAttributeRequest& request, const UpdateCustomRoutingEndpointGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomRoutingEndpointGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateCustomRoutingEndpointGroupAttributeOutcomeCallable GaClient::updateCustomRoutingEndpointGroupAttributeCallable(const UpdateCustomRoutingEndpointGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomRoutingEndpointGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateCustomRoutingEndpointGroupDestinationsOutcome GaClient::updateCustomRoutingEndpointGroupDestinations(const UpdateCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomRoutingEndpointGroupDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomRoutingEndpointGroupDestinationsOutcome(UpdateCustomRoutingEndpointGroupDestinationsResult(outcome.result())); + else + return UpdateCustomRoutingEndpointGroupDestinationsOutcome(outcome.error()); +} + +void GaClient::updateCustomRoutingEndpointGroupDestinationsAsync(const UpdateCustomRoutingEndpointGroupDestinationsRequest& request, const UpdateCustomRoutingEndpointGroupDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomRoutingEndpointGroupDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateCustomRoutingEndpointGroupDestinationsOutcomeCallable GaClient::updateCustomRoutingEndpointGroupDestinationsCallable(const UpdateCustomRoutingEndpointGroupDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomRoutingEndpointGroupDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateCustomRoutingEndpointTrafficPoliciesOutcome GaClient::updateCustomRoutingEndpointTrafficPolicies(const UpdateCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomRoutingEndpointTrafficPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomRoutingEndpointTrafficPoliciesOutcome(UpdateCustomRoutingEndpointTrafficPoliciesResult(outcome.result())); + else + return UpdateCustomRoutingEndpointTrafficPoliciesOutcome(outcome.error()); +} + +void GaClient::updateCustomRoutingEndpointTrafficPoliciesAsync(const UpdateCustomRoutingEndpointTrafficPoliciesRequest& request, const UpdateCustomRoutingEndpointTrafficPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomRoutingEndpointTrafficPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateCustomRoutingEndpointTrafficPoliciesOutcomeCallable GaClient::updateCustomRoutingEndpointTrafficPoliciesCallable(const UpdateCustomRoutingEndpointTrafficPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomRoutingEndpointTrafficPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateCustomRoutingEndpointsOutcome GaClient::updateCustomRoutingEndpoints(const UpdateCustomRoutingEndpointsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCustomRoutingEndpointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCustomRoutingEndpointsOutcome(UpdateCustomRoutingEndpointsResult(outcome.result())); + else + return UpdateCustomRoutingEndpointsOutcome(outcome.error()); +} + +void GaClient::updateCustomRoutingEndpointsAsync(const UpdateCustomRoutingEndpointsRequest& request, const UpdateCustomRoutingEndpointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCustomRoutingEndpoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateCustomRoutingEndpointsOutcomeCallable GaClient::updateCustomRoutingEndpointsCallable(const UpdateCustomRoutingEndpointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCustomRoutingEndpoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateDomainOutcome GaClient::updateDomain(const UpdateDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDomainOutcome(UpdateDomainResult(outcome.result())); + else + return UpdateDomainOutcome(outcome.error()); +} + +void GaClient::updateDomainAsync(const UpdateDomainRequest& request, const UpdateDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateDomainOutcomeCallable GaClient::updateDomainCallable(const UpdateDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateDomainStateOutcome GaClient::updateDomainState(const UpdateDomainStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDomainStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDomainStateOutcome(UpdateDomainStateResult(outcome.result())); + else + return UpdateDomainStateOutcome(outcome.error()); +} + +void GaClient::updateDomainStateAsync(const UpdateDomainStateRequest& request, const UpdateDomainStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDomainState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateDomainStateOutcomeCallable GaClient::updateDomainStateCallable(const UpdateDomainStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDomainState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::UpdateEndpointGroupOutcome GaClient::updateEndpointGroup(const UpdateEndpointGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +5271,42 @@ GaClient::UpdateEndpointGroupAttributeOutcomeCallable GaClient::updateEndpointGr return task->get_future(); } +GaClient::UpdateEndpointGroupsOutcome GaClient::updateEndpointGroups(const UpdateEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEndpointGroupsOutcome(UpdateEndpointGroupsResult(outcome.result())); + else + return UpdateEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::updateEndpointGroupsAsync(const UpdateEndpointGroupsRequest& request, const UpdateEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateEndpointGroupsOutcomeCallable GaClient::updateEndpointGroupsCallable(const UpdateEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GaClient::UpdateForwardingRulesOutcome GaClient::updateForwardingRules(const UpdateForwardingRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ga/src/model/AddEntriesToAclRequest.cc b/ga/src/model/AddEntriesToAclRequest.cc index dce47a697..ae97f8123 100644 --- a/ga/src/model/AddEntriesToAclRequest.cc +++ b/ga/src/model/AddEntriesToAclRequest.cc @@ -1,89 +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::Ga::Model::AddEntriesToAclRequest; - -AddEntriesToAclRequest::AddEntriesToAclRequest() : - RpcServiceRequest("ga", "2019-11-20", "AddEntriesToAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -AddEntriesToAclRequest::~AddEntriesToAclRequest() -{} - -std::string AddEntriesToAclRequest::getAclId()const -{ - return aclId_; + */ + +#include + +using AlibabaCloud::Ga::Model::AddEntriesToAclRequest; + +AddEntriesToAclRequest::AddEntriesToAclRequest() + : RpcServiceRequest("ga", "2019-11-20", "AddEntriesToAcl") { + setMethod(HttpRequest::Method::Post); } -void AddEntriesToAclRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +AddEntriesToAclRequest::~AddEntriesToAclRequest() {} + +std::string AddEntriesToAclRequest::getAclId() const { + return aclId_; } -bool AddEntriesToAclRequest::getDryRun()const -{ - return dryRun_; +void AddEntriesToAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void AddEntriesToAclRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool AddEntriesToAclRequest::getDryRun() const { + return dryRun_; } -std::string AddEntriesToAclRequest::getClientToken()const -{ - return clientToken_; +void AddEntriesToAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AddEntriesToAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddEntriesToAclRequest::getClientToken() const { + return clientToken_; } -std::vector AddEntriesToAclRequest::getAclEntries()const -{ - return aclEntries_; +void AddEntriesToAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddEntriesToAclRequest::setAclEntries(const std::vector& aclEntries) -{ - aclEntries_ = aclEntries; - for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) { - auto aclEntriesObj = aclEntries.at(dep1); - std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1); - setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); - setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription); - } +std::vector AddEntriesToAclRequest::getAclEntries() const { + return aclEntries_; } -std::string AddEntriesToAclRequest::getRegionId()const -{ - return regionId_; +void AddEntriesToAclRequest::setAclEntries(const std::vector &aclEntries) { + aclEntries_ = aclEntries; + for(int dep1 = 0; dep1 != aclEntries.size(); dep1++) { + auto aclEntriesObj = aclEntries.at(dep1); + std::string aclEntriesObjStr = std::string("AclEntries") + "." + std::to_string(dep1 + 1); + setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); + setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription); + } } -void AddEntriesToAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddEntriesToAclRequest::getRegionId() const { + return regionId_; +} + +void AddEntriesToAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/AssociateAclsWithListenerRequest.cc b/ga/src/model/AssociateAclsWithListenerRequest.cc index 81a6fa4cb..c98c9e7e0 100644 --- a/ga/src/model/AssociateAclsWithListenerRequest.cc +++ b/ga/src/model/AssociateAclsWithListenerRequest.cc @@ -1,97 +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 - -using AlibabaCloud::Ga::Model::AssociateAclsWithListenerRequest; - -AssociateAclsWithListenerRequest::AssociateAclsWithListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "AssociateAclsWithListener") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateAclsWithListenerRequest::~AssociateAclsWithListenerRequest() -{} - -bool AssociateAclsWithListenerRequest::getDryRun()const -{ - return dryRun_; + */ + +#include + +using AlibabaCloud::Ga::Model::AssociateAclsWithListenerRequest; + +AssociateAclsWithListenerRequest::AssociateAclsWithListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "AssociateAclsWithListener") { + setMethod(HttpRequest::Method::Post); } -void AssociateAclsWithListenerRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +AssociateAclsWithListenerRequest::~AssociateAclsWithListenerRequest() {} + +bool AssociateAclsWithListenerRequest::getDryRun() const { + return dryRun_; } -std::string AssociateAclsWithListenerRequest::getClientToken()const -{ - return clientToken_; +void AssociateAclsWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void AssociateAclsWithListenerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateAclsWithListenerRequest::getClientToken() const { + return clientToken_; } -std::vector AssociateAclsWithListenerRequest::getAclIds()const -{ - return aclIds_; +void AssociateAclsWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateAclsWithListenerRequest::setAclIds(const std::vector& aclIds) -{ - aclIds_ = aclIds; - for(int dep1 = 0; dep1!= aclIds.size(); dep1++) { - setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1)); - } +std::vector AssociateAclsWithListenerRequest::getAclIds() const { + return aclIds_; } -std::string AssociateAclsWithListenerRequest::getAclType()const -{ - return aclType_; +void AssociateAclsWithListenerRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; } -void AssociateAclsWithListenerRequest::setAclType(const std::string& aclType) -{ - aclType_ = aclType; - setParameter("AclType", aclType); +std::string AssociateAclsWithListenerRequest::getAclType() const { + return aclType_; } -std::string AssociateAclsWithListenerRequest::getListenerId()const -{ - return listenerId_; +void AssociateAclsWithListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); } -void AssociateAclsWithListenerRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string AssociateAclsWithListenerRequest::getListenerId() const { + return listenerId_; } -std::string AssociateAclsWithListenerRequest::getRegionId()const -{ - return regionId_; +void AssociateAclsWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void AssociateAclsWithListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateAclsWithListenerRequest::getRegionId() const { + return regionId_; +} + +void AssociateAclsWithListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc b/ga/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc new file mode 100644 index 000000000..08ca8be07 --- /dev/null +++ b/ga/src/model/AssociateAdditionalCertificatesWithListenerRequest.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::Ga::Model::AssociateAdditionalCertificatesWithListenerRequest; + +AssociateAdditionalCertificatesWithListenerRequest::AssociateAdditionalCertificatesWithListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "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); +} + +std::vector AssociateAdditionalCertificatesWithListenerRequest::getCertificates() const { + return certificates_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + auto certificatesObj = certificates.at(dep1); + std::string certificatesObjStr = std::string("Certificates") + "." + std::to_string(dep1 + 1); + setParameter(certificatesObjStr + ".Id", certificatesObj.id); + setParameter(certificatesObjStr + ".Domain", certificatesObj.domain); + } +} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getRegionId() const { + return regionId_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/AssociateAdditionalCertificatesWithListenerResult.cc b/ga/src/model/AssociateAdditionalCertificatesWithListenerResult.cc new file mode 100644 index 000000000..91d94ee6d --- /dev/null +++ b/ga/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::Ga; +using namespace AlibabaCloud::Ga::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["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/AttachDdosToAcceleratorRequest.cc b/ga/src/model/AttachDdosToAcceleratorRequest.cc index 004fdefaf..dc3e8c095 100644 --- a/ga/src/model/AttachDdosToAcceleratorRequest.cc +++ b/ga/src/model/AttachDdosToAcceleratorRequest.cc @@ -1,73 +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::Ga::Model::AttachDdosToAcceleratorRequest; - -AttachDdosToAcceleratorRequest::AttachDdosToAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "AttachDdosToAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachDdosToAcceleratorRequest::~AttachDdosToAcceleratorRequest() -{} - -std::string AttachDdosToAcceleratorRequest::getDdosId()const -{ - return ddosId_; + */ + +#include + +using AlibabaCloud::Ga::Model::AttachDdosToAcceleratorRequest; + +AttachDdosToAcceleratorRequest::AttachDdosToAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "AttachDdosToAccelerator") { + setMethod(HttpRequest::Method::Post); } -void AttachDdosToAcceleratorRequest::setDdosId(const std::string& ddosId) -{ - ddosId_ = ddosId; - setParameter("DdosId", ddosId); +AttachDdosToAcceleratorRequest::~AttachDdosToAcceleratorRequest() {} + +std::string AttachDdosToAcceleratorRequest::getDdosId() const { + return ddosId_; } -std::string AttachDdosToAcceleratorRequest::getRegionId()const -{ - return regionId_; +void AttachDdosToAcceleratorRequest::setDdosId(const std::string &ddosId) { + ddosId_ = ddosId; + setParameter(std::string("DdosId"), ddosId); } -void AttachDdosToAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachDdosToAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string AttachDdosToAcceleratorRequest::getDdosRegionId()const -{ - return ddosRegionId_; +void AttachDdosToAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachDdosToAcceleratorRequest::setDdosRegionId(const std::string& ddosRegionId) -{ - ddosRegionId_ = ddosRegionId; - setParameter("DdosRegionId", ddosRegionId); +std::string AttachDdosToAcceleratorRequest::getDdosRegionId() const { + return ddosRegionId_; } -std::string AttachDdosToAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void AttachDdosToAcceleratorRequest::setDdosRegionId(const std::string &ddosRegionId) { + ddosRegionId_ = ddosRegionId; + setParameter(std::string("DdosRegionId"), ddosRegionId); } -void AttachDdosToAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string AttachDdosToAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void AttachDdosToAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc b/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc index 71ee3dd82..b52d4257a 100644 --- a/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc +++ b/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::AttachLogStoreToEndpointGroupRequest; - -AttachLogStoreToEndpointGroupRequest::AttachLogStoreToEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "AttachLogStoreToEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachLogStoreToEndpointGroupRequest::~AttachLogStoreToEndpointGroupRequest() -{} - -std::string AttachLogStoreToEndpointGroupRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::AttachLogStoreToEndpointGroupRequest; + +AttachLogStoreToEndpointGroupRequest::AttachLogStoreToEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "AttachLogStoreToEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void AttachLogStoreToEndpointGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +AttachLogStoreToEndpointGroupRequest::~AttachLogStoreToEndpointGroupRequest() {} + +std::string AttachLogStoreToEndpointGroupRequest::getClientToken() const { + return clientToken_; } -std::string AttachLogStoreToEndpointGroupRequest::getSlsLogStoreName()const -{ - return slsLogStoreName_; +void AttachLogStoreToEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AttachLogStoreToEndpointGroupRequest::setSlsLogStoreName(const std::string& slsLogStoreName) -{ - slsLogStoreName_ = slsLogStoreName; - setParameter("SlsLogStoreName", slsLogStoreName); +std::string AttachLogStoreToEndpointGroupRequest::getSlsLogStoreName() const { + return slsLogStoreName_; } -std::string AttachLogStoreToEndpointGroupRequest::getListenerId()const -{ - return listenerId_; +void AttachLogStoreToEndpointGroupRequest::setSlsLogStoreName(const std::string &slsLogStoreName) { + slsLogStoreName_ = slsLogStoreName; + setParameter(std::string("SlsLogStoreName"), slsLogStoreName); } -void AttachLogStoreToEndpointGroupRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string AttachLogStoreToEndpointGroupRequest::getListenerId() const { + return listenerId_; } -std::vector AttachLogStoreToEndpointGroupRequest::getEndpointGroupIds()const -{ - return endpointGroupIds_; +void AttachLogStoreToEndpointGroupRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void AttachLogStoreToEndpointGroupRequest::setEndpointGroupIds(const std::vector& endpointGroupIds) -{ - endpointGroupIds_ = endpointGroupIds; - for(int dep1 = 0; dep1!= endpointGroupIds.size(); dep1++) { - setParameter("EndpointGroupIds."+ std::to_string(dep1), endpointGroupIds.at(dep1)); - } +std::vector AttachLogStoreToEndpointGroupRequest::getEndpointGroupIds() const { + return endpointGroupIds_; } -std::string AttachLogStoreToEndpointGroupRequest::getRegionId()const -{ - return regionId_; +void AttachLogStoreToEndpointGroupRequest::setEndpointGroupIds(const std::vector &endpointGroupIds) { + endpointGroupIds_ = endpointGroupIds; } -void AttachLogStoreToEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachLogStoreToEndpointGroupRequest::getRegionId() const { + return regionId_; } -std::string AttachLogStoreToEndpointGroupRequest::getSlsProjectName()const -{ - return slsProjectName_; +void AttachLogStoreToEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachLogStoreToEndpointGroupRequest::setSlsProjectName(const std::string& slsProjectName) -{ - slsProjectName_ = slsProjectName; - setParameter("SlsProjectName", slsProjectName); +std::string AttachLogStoreToEndpointGroupRequest::getSlsProjectName() const { + return slsProjectName_; } -std::string AttachLogStoreToEndpointGroupRequest::getSlsRegionId()const -{ - return slsRegionId_; +void AttachLogStoreToEndpointGroupRequest::setSlsProjectName(const std::string &slsProjectName) { + slsProjectName_ = slsProjectName; + setParameter(std::string("SlsProjectName"), slsProjectName); } -void AttachLogStoreToEndpointGroupRequest::setSlsRegionId(const std::string& slsRegionId) -{ - slsRegionId_ = slsRegionId; - setParameter("SlsRegionId", slsRegionId); +std::string AttachLogStoreToEndpointGroupRequest::getSlsRegionId() const { + return slsRegionId_; } -std::string AttachLogStoreToEndpointGroupRequest::getAcceleratorId()const -{ - return acceleratorId_; +void AttachLogStoreToEndpointGroupRequest::setSlsRegionId(const std::string &slsRegionId) { + slsRegionId_ = slsRegionId; + setParameter(std::string("SlsRegionId"), slsRegionId); } -void AttachLogStoreToEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string AttachLogStoreToEndpointGroupRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void AttachLogStoreToEndpointGroupRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/BandwidthPackageAddAcceleratorRequest.cc b/ga/src/model/BandwidthPackageAddAcceleratorRequest.cc index f9f055caa..42520da93 100644 --- a/ga/src/model/BandwidthPackageAddAcceleratorRequest.cc +++ b/ga/src/model/BandwidthPackageAddAcceleratorRequest.cc @@ -1,62 +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::Ga::Model::BandwidthPackageAddAcceleratorRequest; - -BandwidthPackageAddAcceleratorRequest::BandwidthPackageAddAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageAddAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -BandwidthPackageAddAcceleratorRequest::~BandwidthPackageAddAcceleratorRequest() -{} - -std::string BandwidthPackageAddAcceleratorRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::BandwidthPackageAddAcceleratorRequest; + +BandwidthPackageAddAcceleratorRequest::BandwidthPackageAddAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageAddAccelerator") { + setMethod(HttpRequest::Method::Post); } -void BandwidthPackageAddAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +BandwidthPackageAddAcceleratorRequest::~BandwidthPackageAddAcceleratorRequest() {} + +std::string BandwidthPackageAddAcceleratorRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string BandwidthPackageAddAcceleratorRequest::getRegionId()const -{ - return regionId_; +void BandwidthPackageAddAcceleratorRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void BandwidthPackageAddAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string BandwidthPackageAddAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string BandwidthPackageAddAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void BandwidthPackageAddAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void BandwidthPackageAddAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string BandwidthPackageAddAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void BandwidthPackageAddAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc b/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc index eec24c8c4..0d78d4ed5 100644 --- a/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc +++ b/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc @@ -1,62 +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::Ga::Model::BandwidthPackageRemoveAcceleratorRequest; - -BandwidthPackageRemoveAcceleratorRequest::BandwidthPackageRemoveAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageRemoveAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -BandwidthPackageRemoveAcceleratorRequest::~BandwidthPackageRemoveAcceleratorRequest() -{} - -std::string BandwidthPackageRemoveAcceleratorRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::BandwidthPackageRemoveAcceleratorRequest; + +BandwidthPackageRemoveAcceleratorRequest::BandwidthPackageRemoveAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageRemoveAccelerator") { + setMethod(HttpRequest::Method::Post); } -void BandwidthPackageRemoveAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +BandwidthPackageRemoveAcceleratorRequest::~BandwidthPackageRemoveAcceleratorRequest() {} + +std::string BandwidthPackageRemoveAcceleratorRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string BandwidthPackageRemoveAcceleratorRequest::getRegionId()const -{ - return regionId_; +void BandwidthPackageRemoveAcceleratorRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void BandwidthPackageRemoveAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string BandwidthPackageRemoveAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string BandwidthPackageRemoveAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void BandwidthPackageRemoveAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void BandwidthPackageRemoveAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string BandwidthPackageRemoveAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void BandwidthPackageRemoveAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ChangeResourceGroupRequest.cc b/ga/src/model/ChangeResourceGroupRequest.cc new file mode 100644 index 000000000..8679d671b --- /dev/null +++ b/ga/src/model/ChangeResourceGroupRequest.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::Ga::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "ChangeResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {} + +std::string ChangeResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ChangeResourceGroupRequest::getClientToken() const { + return clientToken_; +} + +void ChangeResourceGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ChangeResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ChangeResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + +std::string ChangeResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void ChangeResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/ChangeResourceGroupResult.cc b/ga/src/model/ChangeResourceGroupResult.cc new file mode 100644 index 000000000..dbac7ac9b --- /dev/null +++ b/ga/src/model/ChangeResourceGroupResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ChangeResourceGroupResult::ChangeResourceGroupResult() : + ServiceResult() +{} + +ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResourceGroupResult::~ChangeResourceGroupResult() +{} + +void ChangeResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/ConfigEndpointProbeRequest.cc b/ga/src/model/ConfigEndpointProbeRequest.cc index c27363ee7..b216044f6 100644 --- a/ga/src/model/ConfigEndpointProbeRequest.cc +++ b/ga/src/model/ConfigEndpointProbeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::ConfigEndpointProbeRequest; - -ConfigEndpointProbeRequest::ConfigEndpointProbeRequest() : - RpcServiceRequest("ga", "2019-11-20", "ConfigEndpointProbe") -{ - setMethod(HttpRequest::Method::Post); -} - -ConfigEndpointProbeRequest::~ConfigEndpointProbeRequest() -{} - -std::string ConfigEndpointProbeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::ConfigEndpointProbeRequest; + +ConfigEndpointProbeRequest::ConfigEndpointProbeRequest() + : RpcServiceRequest("ga", "2019-11-20", "ConfigEndpointProbe") { + setMethod(HttpRequest::Method::Post); } -void ConfigEndpointProbeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ConfigEndpointProbeRequest::~ConfigEndpointProbeRequest() {} + +std::string ConfigEndpointProbeRequest::getClientToken() const { + return clientToken_; } -std::string ConfigEndpointProbeRequest::getEndpoint()const -{ - return endpoint_; +void ConfigEndpointProbeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ConfigEndpointProbeRequest::setEndpoint(const std::string& endpoint) -{ - endpoint_ = endpoint; - setParameter("Endpoint", endpoint); +std::string ConfigEndpointProbeRequest::getEndpoint() const { + return endpoint_; } -std::string ConfigEndpointProbeRequest::getRegionId()const -{ - return regionId_; +void ConfigEndpointProbeRequest::setEndpoint(const std::string &endpoint) { + endpoint_ = endpoint; + setParameter(std::string("Endpoint"), endpoint); } -void ConfigEndpointProbeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConfigEndpointProbeRequest::getRegionId() const { + return regionId_; } -std::string ConfigEndpointProbeRequest::getEndpointType()const -{ - return endpointType_; +void ConfigEndpointProbeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ConfigEndpointProbeRequest::setEndpointType(const std::string& endpointType) -{ - endpointType_ = endpointType; - setParameter("EndpointType", endpointType); +std::string ConfigEndpointProbeRequest::getEndpointType() const { + return endpointType_; } -std::string ConfigEndpointProbeRequest::getEnable()const -{ - return enable_; +void ConfigEndpointProbeRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); } -void ConfigEndpointProbeRequest::setEnable(const std::string& enable) -{ - enable_ = enable; - setParameter("Enable", enable); +std::string ConfigEndpointProbeRequest::getEnable() const { + return enable_; } -std::string ConfigEndpointProbeRequest::getProbeProtocol()const -{ - return probeProtocol_; +void ConfigEndpointProbeRequest::setEnable(const std::string &enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable); } -void ConfigEndpointProbeRequest::setProbeProtocol(const std::string& probeProtocol) -{ - probeProtocol_ = probeProtocol; - setParameter("ProbeProtocol", probeProtocol); +std::string ConfigEndpointProbeRequest::getProbeProtocol() const { + return probeProtocol_; } -std::string ConfigEndpointProbeRequest::getProbePort()const -{ - return probePort_; +void ConfigEndpointProbeRequest::setProbeProtocol(const std::string &probeProtocol) { + probeProtocol_ = probeProtocol; + setParameter(std::string("ProbeProtocol"), probeProtocol); } -void ConfigEndpointProbeRequest::setProbePort(const std::string& probePort) -{ - probePort_ = probePort; - setParameter("ProbePort", probePort); +std::string ConfigEndpointProbeRequest::getProbePort() const { + return probePort_; } -std::string ConfigEndpointProbeRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void ConfigEndpointProbeRequest::setProbePort(const std::string &probePort) { + probePort_ = probePort; + setParameter(std::string("ProbePort"), probePort); } -void ConfigEndpointProbeRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::string ConfigEndpointProbeRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ConfigEndpointProbeRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } diff --git a/ga/src/model/CreateAcceleratorRequest.cc b/ga/src/model/CreateAcceleratorRequest.cc index bdeea9404..0ad99a786 100644 --- a/ga/src/model/CreateAcceleratorRequest.cc +++ b/ga/src/model/CreateAcceleratorRequest.cc @@ -1,128 +1,200 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::CreateAcceleratorRequest; - -CreateAcceleratorRequest::CreateAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAcceleratorRequest::~CreateAcceleratorRequest() -{} - -bool CreateAcceleratorRequest::getAutoPay()const -{ - return autoPay_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateAcceleratorRequest; + +CreateAcceleratorRequest::CreateAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateAccelerator") { + setMethod(HttpRequest::Method::Post); } -void CreateAcceleratorRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +CreateAcceleratorRequest::~CreateAcceleratorRequest() {} + +std::string CreateAcceleratorRequest::getClientToken() const { + return clientToken_; } -std::string CreateAcceleratorRequest::getPromotionOptionNo()const -{ - return promotionOptionNo_; +void CreateAcceleratorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo) -{ - promotionOptionNo_ = promotionOptionNo; - setParameter("PromotionOptionNo", promotionOptionNo); +std::vector CreateAcceleratorRequest::getSystemTag() const { + return systemTag_; } -std::string CreateAcceleratorRequest::getClientToken()const -{ - return clientToken_; +void CreateAcceleratorRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } } -void CreateAcceleratorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateAcceleratorRequest::IpSetConfig CreateAcceleratorRequest::getIpSetConfig() const { + return ipSetConfig_; } -std::string CreateAcceleratorRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void CreateAcceleratorRequest::setIpSetConfig(const CreateAcceleratorRequest::IpSetConfig &ipSetConfig) { + ipSetConfig_ = ipSetConfig; + setParameter(std::string("IpSetConfig") + ".AccessMode", ipSetConfig.accessMode); } -void CreateAcceleratorRequest::setAutoUseCoupon(const std::string& autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon); +std::string CreateAcceleratorRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string CreateAcceleratorRequest::getSpec()const -{ - return spec_; +void CreateAcceleratorRequest::setAutoUseCoupon(const std::string &autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon); } -void CreateAcceleratorRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +int CreateAcceleratorRequest::getAutoRenewDuration() const { + return autoRenewDuration_; } -int CreateAcceleratorRequest::getDuration()const -{ - return duration_; +void CreateAcceleratorRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); } -void CreateAcceleratorRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +std::string CreateAcceleratorRequest::getSpec() const { + return spec_; } -std::string CreateAcceleratorRequest::getRegionId()const -{ - return regionId_; +void CreateAcceleratorRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +int CreateAcceleratorRequest::getDuration() const { + return duration_; } -std::string CreateAcceleratorRequest::getName()const -{ - return name_; +void CreateAcceleratorRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void CreateAcceleratorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateAcceleratorRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateAcceleratorRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateAcceleratorRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateAcceleratorRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateAcceleratorRequest::getRegionId() const { + return regionId_; +} + +void CreateAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateAcceleratorRequest::getTag() const { + return tag_; +} + +void CreateAcceleratorRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string CreateAcceleratorRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void CreateAcceleratorRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +bool CreateAcceleratorRequest::getAutoPay() const { + return autoPay_; +} + +void CreateAcceleratorRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + +bool CreateAcceleratorRequest::getDryRun() const { + return dryRun_; +} + +void CreateAcceleratorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateAcceleratorRequest::getPromotionOptionNo() const { + return promotionOptionNo_; +} + +void CreateAcceleratorRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); +} + +std::string CreateAcceleratorRequest::getBandwidthBillingType() const { + return bandwidthBillingType_; +} + +void CreateAcceleratorRequest::setBandwidthBillingType(const std::string &bandwidthBillingType) { + bandwidthBillingType_ = bandwidthBillingType; + setParameter(std::string("BandwidthBillingType"), bandwidthBillingType); +} + +bool CreateAcceleratorRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateAcceleratorRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateAcceleratorRequest::getName() const { + return name_; +} + +void CreateAcceleratorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateAcceleratorRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateAcceleratorRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/ga/src/model/CreateAclRequest.cc b/ga/src/model/CreateAclRequest.cc index 230b49063..826e9ecaf 100644 --- a/ga/src/model/CreateAclRequest.cc +++ b/ga/src/model/CreateAclRequest.cc @@ -1,100 +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::Ga::Model::CreateAclRequest; - -CreateAclRequest::CreateAclRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAclRequest::~CreateAclRequest() -{} - -bool CreateAclRequest::getDryRun()const -{ - return dryRun_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateAclRequest; + +CreateAclRequest::CreateAclRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateAcl") { + setMethod(HttpRequest::Method::Post); } -void CreateAclRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +CreateAclRequest::~CreateAclRequest() {} + +bool CreateAclRequest::getDryRun() const { + return dryRun_; } -std::string CreateAclRequest::getAclName()const -{ - return aclName_; +void CreateAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateAclRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +std::string CreateAclRequest::getAclName() const { + return aclName_; } -std::string CreateAclRequest::getClientToken()const -{ - return clientToken_; +void CreateAclRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void CreateAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateAclRequest::getClientToken() const { + return clientToken_; } -std::vector CreateAclRequest::getAclEntries()const -{ - return aclEntries_; +void CreateAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateAclRequest::setAclEntries(const std::vector& aclEntries) -{ - aclEntries_ = aclEntries; - for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) { - auto aclEntriesObj = aclEntries.at(dep1); - std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1); - setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); - setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription); - } +std::vector CreateAclRequest::getSystemTag() const { + return systemTag_; } -std::string CreateAclRequest::getAddressIPVersion()const -{ - return addressIPVersion_; +void CreateAclRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } } -void CreateAclRequest::setAddressIPVersion(const std::string& addressIPVersion) -{ - addressIPVersion_ = addressIPVersion; - setParameter("AddressIPVersion", addressIPVersion); +std::vector CreateAclRequest::getAclEntries() const { + return aclEntries_; } -std::string CreateAclRequest::getRegionId()const -{ - return regionId_; +void CreateAclRequest::setAclEntries(const std::vector &aclEntries) { + aclEntries_ = aclEntries; + for(int dep1 = 0; dep1 != aclEntries.size(); dep1++) { + auto aclEntriesObj = aclEntries.at(dep1); + std::string aclEntriesObjStr = std::string("AclEntries") + "." + std::to_string(dep1 + 1); + setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); + setParameter(aclEntriesObjStr + ".EntryDescription", aclEntriesObj.entryDescription); + } } -void CreateAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +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); +} + +std::string CreateAclRequest::getRegionId() const { + return regionId_; +} + +void CreateAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateAclRequest::getTag() const { + return tag_; +} + +void CreateAclRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } diff --git a/ga/src/model/CreateApplicationMonitorRequest.cc b/ga/src/model/CreateApplicationMonitorRequest.cc new file mode 100644 index 000000000..3aac65517 --- /dev/null +++ b/ga/src/model/CreateApplicationMonitorRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::CreateApplicationMonitorRequest; + +CreateApplicationMonitorRequest::CreateApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationMonitorRequest::~CreateApplicationMonitorRequest() {} + +std::string CreateApplicationMonitorRequest::getAddress() const { + return address_; +} + +void CreateApplicationMonitorRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +bool CreateApplicationMonitorRequest::getDetectEnable() const { + return detectEnable_; +} + +void CreateApplicationMonitorRequest::setDetectEnable(bool detectEnable) { + detectEnable_ = detectEnable; + setParameter(std::string("DetectEnable"), detectEnable ? "true" : "false"); +} + +std::string CreateApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void CreateApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateApplicationMonitorRequest::getTaskName() const { + return taskName_; +} + +void CreateApplicationMonitorRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); +} + +int CreateApplicationMonitorRequest::getDetectThreshold() const { + return detectThreshold_; +} + +void CreateApplicationMonitorRequest::setDetectThreshold(int detectThreshold) { + detectThreshold_ = detectThreshold; + setParameter(std::string("DetectThreshold"), std::to_string(detectThreshold)); +} + +std::string CreateApplicationMonitorRequest::getListenerId() const { + return listenerId_; +} + +void CreateApplicationMonitorRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string CreateApplicationMonitorRequest::getOptionsJson() const { + return optionsJson_; +} + +void CreateApplicationMonitorRequest::setOptionsJson(const std::string &optionsJson) { + optionsJson_ = optionsJson; + setParameter(std::string("OptionsJson"), optionsJson); +} + +int CreateApplicationMonitorRequest::getDetectTimes() const { + return detectTimes_; +} + +void CreateApplicationMonitorRequest::setDetectTimes(int detectTimes) { + detectTimes_ = detectTimes; + setParameter(std::string("DetectTimes"), std::to_string(detectTimes)); +} + +std::string CreateApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void CreateApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateApplicationMonitorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateApplicationMonitorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +int CreateApplicationMonitorRequest::getSilenceTime() const { + return silenceTime_; +} + +void CreateApplicationMonitorRequest::setSilenceTime(int silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); +} + diff --git a/ga/src/model/CreateApplicationMonitorResult.cc b/ga/src/model/CreateApplicationMonitorResult.cc new file mode 100644 index 000000000..7c5259518 --- /dev/null +++ b/ga/src/model/CreateApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateApplicationMonitorResult::CreateApplicationMonitorResult() : + ServiceResult() +{} + +CreateApplicationMonitorResult::CreateApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationMonitorResult::~CreateApplicationMonitorResult() +{} + +void CreateApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateApplicationMonitorResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ga/src/model/CreateBandwidthPackageRequest.cc b/ga/src/model/CreateBandwidthPackageRequest.cc index 02bb04eff..c9fd383a1 100644 --- a/ga/src/model/CreateBandwidthPackageRequest.cc +++ b/ga/src/model/CreateBandwidthPackageRequest.cc @@ -1,194 +1,218 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::CreateBandwidthPackageRequest; - -CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest() -{} - -std::string CreateBandwidthPackageRequest::getBandwidthType()const -{ - return bandwidthType_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateBandwidthPackageRequest; + +CreateBandwidthPackageRequest::CreateBandwidthPackageRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void CreateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType) -{ - bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); +CreateBandwidthPackageRequest::~CreateBandwidthPackageRequest() {} + +std::string CreateBandwidthPackageRequest::getBandwidthType() const { + return bandwidthType_; } -std::string CreateBandwidthPackageRequest::getClientToken()const -{ - return clientToken_; +void CreateBandwidthPackageRequest::setBandwidthType(const std::string &bandwidthType) { + bandwidthType_ = bandwidthType; + setParameter(std::string("BandwidthType"), bandwidthType); } -void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateBandwidthPackageRequest::getClientToken() const { + return clientToken_; } -std::string CreateBandwidthPackageRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void CreateBandwidthPackageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateBandwidthPackageRequest::setAutoUseCoupon(const std::string& autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon); +std::vector CreateBandwidthPackageRequest::getSystemTag() const { + return systemTag_; } -std::string CreateBandwidthPackageRequest::getType()const -{ - return type_; +void CreateBandwidthPackageRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } } -void CreateBandwidthPackageRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreateBandwidthPackageRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string CreateBandwidthPackageRequest::getDuration()const -{ - return duration_; +void CreateBandwidthPackageRequest::setAutoUseCoupon(const std::string &autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon); } -void CreateBandwidthPackageRequest::setDuration(const std::string& duration) -{ - duration_ = duration; - setParameter("Duration", duration); +std::string CreateBandwidthPackageRequest::getType() const { + return type_; } -std::string CreateBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void CreateBandwidthPackageRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +int CreateBandwidthPackageRequest::getAutoRenewDuration() const { + return autoRenewDuration_; } -bool CreateBandwidthPackageRequest::getAutoPay()const -{ - return autoPay_; +void CreateBandwidthPackageRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); } -void CreateBandwidthPackageRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +std::string CreateBandwidthPackageRequest::getDuration() const { + return duration_; } -std::string CreateBandwidthPackageRequest::getPromotionOptionNo()const -{ - return promotionOptionNo_; +void CreateBandwidthPackageRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); } -void CreateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo) -{ - promotionOptionNo_ = promotionOptionNo; - setParameter("PromotionOptionNo", promotionOptionNo); +std::string CreateBandwidthPackageRequest::getResourceGroupId() const { + return resourceGroupId_; } -int CreateBandwidthPackageRequest::getBandwidth()const -{ - return bandwidth_; +void CreateBandwidthPackageRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateBandwidthPackageRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +std::string CreateBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdB()const -{ - return cbnGeographicRegionIdB_; +void CreateBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateBandwidthPackageRequest::setCbnGeographicRegionIdB(const std::string& cbnGeographicRegionIdB) -{ - cbnGeographicRegionIdB_ = cbnGeographicRegionIdB; - setParameter("CbnGeographicRegionIdB", cbnGeographicRegionIdB); +std::vector CreateBandwidthPackageRequest::getTag() const { + return tag_; } -std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdA()const -{ - return cbnGeographicRegionIdA_; +void CreateBandwidthPackageRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateBandwidthPackageRequest::setCbnGeographicRegionIdA(const std::string& cbnGeographicRegionIdA) -{ - cbnGeographicRegionIdA_ = cbnGeographicRegionIdA; - setParameter("CbnGeographicRegionIdA", cbnGeographicRegionIdA); +bool CreateBandwidthPackageRequest::getAutoPay() const { + return autoPay_; } -std::string CreateBandwidthPackageRequest::getBillingType()const -{ - return billingType_; +void CreateBandwidthPackageRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateBandwidthPackageRequest::setBillingType(const std::string& billingType) -{ - billingType_ = billingType; - setParameter("BillingType", billingType); +std::string CreateBandwidthPackageRequest::getPromotionOptionNo() const { + return promotionOptionNo_; } -std::string CreateBandwidthPackageRequest::getChargeType()const -{ - return chargeType_; +void CreateBandwidthPackageRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); } -void CreateBandwidthPackageRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +int CreateBandwidthPackageRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateBandwidthPackageRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateBandwidthPackageRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdB() const { + return cbnGeographicRegionIdB_; } -int CreateBandwidthPackageRequest::getRatio()const -{ - return ratio_; +void CreateBandwidthPackageRequest::setCbnGeographicRegionIdB(const std::string &cbnGeographicRegionIdB) { + cbnGeographicRegionIdB_ = cbnGeographicRegionIdB; + setParameter(std::string("CbnGeographicRegionIdB"), cbnGeographicRegionIdB); } -void CreateBandwidthPackageRequest::setRatio(int ratio) -{ - ratio_ = ratio; - setParameter("Ratio", std::to_string(ratio)); +std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdA() const { + return cbnGeographicRegionIdA_; +} + +void CreateBandwidthPackageRequest::setCbnGeographicRegionIdA(const std::string &cbnGeographicRegionIdA) { + cbnGeographicRegionIdA_ = cbnGeographicRegionIdA; + setParameter(std::string("CbnGeographicRegionIdA"), cbnGeographicRegionIdA); +} + +bool CreateBandwidthPackageRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateBandwidthPackageRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateBandwidthPackageRequest::getBillingType() const { + return billingType_; +} + +void CreateBandwidthPackageRequest::setBillingType(const std::string &billingType) { + billingType_ = billingType; + setParameter(std::string("BillingType"), billingType); +} + +std::string CreateBandwidthPackageRequest::getChargeType() const { + return chargeType_; +} + +void CreateBandwidthPackageRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + +std::string CreateBandwidthPackageRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateBandwidthPackageRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + +int CreateBandwidthPackageRequest::getRatio() const { + return ratio_; +} + +void CreateBandwidthPackageRequest::setRatio(int ratio) { + ratio_ = ratio; + setParameter(std::string("Ratio"), std::to_string(ratio)); } diff --git a/ga/src/model/CreateBasicAccelerateIpEndpointRelationRequest.cc b/ga/src/model/CreateBasicAccelerateIpEndpointRelationRequest.cc new file mode 100644 index 000000000..5fda231f6 --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpEndpointRelationRequest.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::Ga::Model::CreateBasicAccelerateIpEndpointRelationRequest; + +CreateBasicAccelerateIpEndpointRelationRequest::CreateBasicAccelerateIpEndpointRelationRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicAccelerateIpEndpointRelation") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicAccelerateIpEndpointRelationRequest::~CreateBasicAccelerateIpEndpointRelationRequest() {} + +std::string CreateBasicAccelerateIpEndpointRelationRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicAccelerateIpEndpointRelationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicAccelerateIpEndpointRelationRequest::getEndpointId() const { + return endpointId_; +} + +void CreateBasicAccelerateIpEndpointRelationRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string CreateBasicAccelerateIpEndpointRelationRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void CreateBasicAccelerateIpEndpointRelationRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string CreateBasicAccelerateIpEndpointRelationRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicAccelerateIpEndpointRelationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicAccelerateIpEndpointRelationRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicAccelerateIpEndpointRelationRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateBasicAccelerateIpEndpointRelationResult.cc b/ga/src/model/CreateBasicAccelerateIpEndpointRelationResult.cc new file mode 100644 index 000000000..c3bba4d29 --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpEndpointRelationResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicAccelerateIpEndpointRelationResult::CreateBasicAccelerateIpEndpointRelationResult() : + ServiceResult() +{} + +CreateBasicAccelerateIpEndpointRelationResult::CreateBasicAccelerateIpEndpointRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicAccelerateIpEndpointRelationResult::~CreateBasicAccelerateIpEndpointRelationResult() +{} + +void CreateBasicAccelerateIpEndpointRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string CreateBasicAccelerateIpEndpointRelationResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + +std::string CreateBasicAccelerateIpEndpointRelationResult::getState()const +{ + return state_; +} + +std::string CreateBasicAccelerateIpEndpointRelationResult::getEndpointId()const +{ + return endpointId_; +} + +std::string CreateBasicAccelerateIpEndpointRelationResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateBasicAccelerateIpEndpointRelationsRequest.cc b/ga/src/model/CreateBasicAccelerateIpEndpointRelationsRequest.cc new file mode 100644 index 000000000..5d15d18b0 --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpEndpointRelationsRequest.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::Ga::Model::CreateBasicAccelerateIpEndpointRelationsRequest; + +CreateBasicAccelerateIpEndpointRelationsRequest::CreateBasicAccelerateIpEndpointRelationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicAccelerateIpEndpointRelations") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicAccelerateIpEndpointRelationsRequest::~CreateBasicAccelerateIpEndpointRelationsRequest() {} + +std::string CreateBasicAccelerateIpEndpointRelationsRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicAccelerateIpEndpointRelationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicAccelerateIpEndpointRelationsRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicAccelerateIpEndpointRelationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicAccelerateIpEndpointRelationsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicAccelerateIpEndpointRelationsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::vector CreateBasicAccelerateIpEndpointRelationsRequest::getAccelerateIpEndpointRelations() const { + return accelerateIpEndpointRelations_; +} + +void CreateBasicAccelerateIpEndpointRelationsRequest::setAccelerateIpEndpointRelations(const std::vector &accelerateIpEndpointRelations) { + accelerateIpEndpointRelations_ = accelerateIpEndpointRelations; + for(int dep1 = 0; dep1 != accelerateIpEndpointRelations.size(); dep1++) { + setParameter(std::string("AccelerateIpEndpointRelations") + "." + std::to_string(dep1 + 1) + ".AccelerateIpId", accelerateIpEndpointRelations[dep1].accelerateIpId); + setParameter(std::string("AccelerateIpEndpointRelations") + "." + std::to_string(dep1 + 1) + ".EndpointId", accelerateIpEndpointRelations[dep1].endpointId); + } +} + diff --git a/ga/src/model/CreateBasicAccelerateIpEndpointRelationsResult.cc b/ga/src/model/CreateBasicAccelerateIpEndpointRelationsResult.cc new file mode 100644 index 000000000..bf755db04 --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpEndpointRelationsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicAccelerateIpEndpointRelationsResult::CreateBasicAccelerateIpEndpointRelationsResult() : + ServiceResult() +{} + +CreateBasicAccelerateIpEndpointRelationsResult::CreateBasicAccelerateIpEndpointRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicAccelerateIpEndpointRelationsResult::~CreateBasicAccelerateIpEndpointRelationsResult() +{} + +void CreateBasicAccelerateIpEndpointRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string CreateBasicAccelerateIpEndpointRelationsResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateBasicAccelerateIpRequest.cc b/ga/src/model/CreateBasicAccelerateIpRequest.cc new file mode 100644 index 000000000..f8f00bf1c --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpRequest.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::Ga::Model::CreateBasicAccelerateIpRequest; + +CreateBasicAccelerateIpRequest::CreateBasicAccelerateIpRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicAccelerateIp") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicAccelerateIpRequest::~CreateBasicAccelerateIpRequest() {} + +std::string CreateBasicAccelerateIpRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicAccelerateIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicAccelerateIpRequest::getIpSetId() const { + return ipSetId_; +} + +void CreateBasicAccelerateIpRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string CreateBasicAccelerateIpRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicAccelerateIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicAccelerateIpRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicAccelerateIpRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateBasicAccelerateIpResult.cc b/ga/src/model/CreateBasicAccelerateIpResult.cc new file mode 100644 index 000000000..d71b53f2f --- /dev/null +++ b/ga/src/model/CreateBasicAccelerateIpResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicAccelerateIpResult::CreateBasicAccelerateIpResult() : + ServiceResult() +{} + +CreateBasicAccelerateIpResult::CreateBasicAccelerateIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicAccelerateIpResult::~CreateBasicAccelerateIpResult() +{} + +void CreateBasicAccelerateIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["IpSetId"].isNull()) + ipSetId_ = value["IpSetId"].asString(); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + if(!value["AccelerateIpAddress"].isNull()) + accelerateIpAddress_ = value["AccelerateIpAddress"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string CreateBasicAccelerateIpResult::getIpSetId()const +{ + return ipSetId_; +} + +std::string CreateBasicAccelerateIpResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + +std::string CreateBasicAccelerateIpResult::getAccelerateIpAddress()const +{ + return accelerateIpAddress_; +} + +std::string CreateBasicAccelerateIpResult::getState()const +{ + return state_; +} + +std::string CreateBasicAccelerateIpResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateBasicAcceleratorRequest.cc b/ga/src/model/CreateBasicAcceleratorRequest.cc new file mode 100644 index 000000000..8f36c1b2f --- /dev/null +++ b/ga/src/model/CreateBasicAcceleratorRequest.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateBasicAcceleratorRequest; + +CreateBasicAcceleratorRequest::CreateBasicAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicAccelerator") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicAcceleratorRequest::~CreateBasicAcceleratorRequest() {} + +std::string CreateBasicAcceleratorRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicAcceleratorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateBasicAcceleratorRequest::getSystemTag() const { + return systemTag_; +} + +void CreateBasicAcceleratorRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } +} + +std::string CreateBasicAcceleratorRequest::getAutoUseCoupon() const { + return autoUseCoupon_; +} + +void CreateBasicAcceleratorRequest::setAutoUseCoupon(const std::string &autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon); +} + +int CreateBasicAcceleratorRequest::getAutoRenewDuration() const { + return autoRenewDuration_; +} + +void CreateBasicAcceleratorRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); +} + +int CreateBasicAcceleratorRequest::getDuration() const { + return duration_; +} + +void CreateBasicAcceleratorRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); +} + +std::string CreateBasicAcceleratorRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateBasicAcceleratorRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateBasicAcceleratorRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateBasicAcceleratorRequest::getTag() const { + return tag_; +} + +void CreateBasicAcceleratorRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +bool CreateBasicAcceleratorRequest::getAutoPay() const { + return autoPay_; +} + +void CreateBasicAcceleratorRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + +bool CreateBasicAcceleratorRequest::getDryRun() const { + return dryRun_; +} + +void CreateBasicAcceleratorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateBasicAcceleratorRequest::getPromotionOptionNo() const { + return promotionOptionNo_; +} + +void CreateBasicAcceleratorRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); +} + +std::string CreateBasicAcceleratorRequest::getBandwidthBillingType() const { + return bandwidthBillingType_; +} + +void CreateBasicAcceleratorRequest::setBandwidthBillingType(const std::string &bandwidthBillingType) { + bandwidthBillingType_ = bandwidthBillingType; + setParameter(std::string("BandwidthBillingType"), bandwidthBillingType); +} + +bool CreateBasicAcceleratorRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateBasicAcceleratorRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateBasicAcceleratorRequest::getChargeType() const { + return chargeType_; +} + +void CreateBasicAcceleratorRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + +std::string CreateBasicAcceleratorRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateBasicAcceleratorRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + diff --git a/ga/src/model/CreateBasicAcceleratorResult.cc b/ga/src/model/CreateBasicAcceleratorResult.cc new file mode 100644 index 000000000..1507fed4e --- /dev/null +++ b/ga/src/model/CreateBasicAcceleratorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicAcceleratorResult::CreateBasicAcceleratorResult() : + ServiceResult() +{} + +CreateBasicAcceleratorResult::CreateBasicAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicAcceleratorResult::~CreateBasicAcceleratorResult() +{} + +void CreateBasicAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string CreateBasicAcceleratorResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateBasicAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateBasicEndpointGroupRequest.cc b/ga/src/model/CreateBasicEndpointGroupRequest.cc new file mode 100644 index 000000000..ad713956a --- /dev/null +++ b/ga/src/model/CreateBasicEndpointGroupRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateBasicEndpointGroupRequest; + +CreateBasicEndpointGroupRequest::CreateBasicEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicEndpointGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicEndpointGroupRequest::~CreateBasicEndpointGroupRequest() {} + +std::string CreateBasicEndpointGroupRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicEndpointGroupRequest::getDescription() const { + return description_; +} + +void CreateBasicEndpointGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateBasicEndpointGroupRequest::getEndpointAddress() const { + return endpointAddress_; +} + +void CreateBasicEndpointGroupRequest::setEndpointAddress(const std::string &endpointAddress) { + endpointAddress_ = endpointAddress; + setParameter(std::string("EndpointAddress"), endpointAddress); +} + +std::string CreateBasicEndpointGroupRequest::getEndpointGroupRegion() const { + return endpointGroupRegion_; +} + +void CreateBasicEndpointGroupRequest::setEndpointGroupRegion(const std::string &endpointGroupRegion) { + endpointGroupRegion_ = endpointGroupRegion; + setParameter(std::string("EndpointGroupRegion"), endpointGroupRegion); +} + +std::string CreateBasicEndpointGroupRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicEndpointGroupRequest::getEndpointType() const { + return endpointType_; +} + +void CreateBasicEndpointGroupRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); +} + +std::string CreateBasicEndpointGroupRequest::getName() const { + return name_; +} + +void CreateBasicEndpointGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateBasicEndpointGroupRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicEndpointGroupRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string CreateBasicEndpointGroupRequest::getEndpointSubAddress() const { + return endpointSubAddress_; +} + +void CreateBasicEndpointGroupRequest::setEndpointSubAddress(const std::string &endpointSubAddress) { + endpointSubAddress_ = endpointSubAddress; + setParameter(std::string("EndpointSubAddress"), endpointSubAddress); +} + diff --git a/ga/src/model/CreateBasicEndpointGroupResult.cc b/ga/src/model/CreateBasicEndpointGroupResult.cc new file mode 100644 index 000000000..c6cd0199b --- /dev/null +++ b/ga/src/model/CreateBasicEndpointGroupResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicEndpointGroupResult::CreateBasicEndpointGroupResult() : + ServiceResult() +{} + +CreateBasicEndpointGroupResult::CreateBasicEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicEndpointGroupResult::~CreateBasicEndpointGroupResult() +{} + +void CreateBasicEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + +} + +std::string CreateBasicEndpointGroupResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + diff --git a/ga/src/model/CreateBasicEndpointRequest.cc b/ga/src/model/CreateBasicEndpointRequest.cc new file mode 100644 index 000000000..d2530f198 --- /dev/null +++ b/ga/src/model/CreateBasicEndpointRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateBasicEndpointRequest; + +CreateBasicEndpointRequest::CreateBasicEndpointRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicEndpointRequest::~CreateBasicEndpointRequest() {} + +std::string CreateBasicEndpointRequest::getEndpointZoneId() const { + return endpointZoneId_; +} + +void CreateBasicEndpointRequest::setEndpointZoneId(const std::string &endpointZoneId) { + endpointZoneId_ = endpointZoneId; + setParameter(std::string("EndpointZoneId"), endpointZoneId); +} + +std::string CreateBasicEndpointRequest::getEndpointSubAddressType() const { + return endpointSubAddressType_; +} + +void CreateBasicEndpointRequest::setEndpointSubAddressType(const std::string &endpointSubAddressType) { + endpointSubAddressType_ = endpointSubAddressType; + setParameter(std::string("EndpointSubAddressType"), endpointSubAddressType); +} + +std::string CreateBasicEndpointRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicEndpointRequest::getEndpointAddress() const { + return endpointAddress_; +} + +void CreateBasicEndpointRequest::setEndpointAddress(const std::string &endpointAddress) { + endpointAddress_ = endpointAddress; + setParameter(std::string("EndpointAddress"), endpointAddress); +} + +std::string CreateBasicEndpointRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicEndpointRequest::getEndpointType() const { + return endpointType_; +} + +void CreateBasicEndpointRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); +} + +std::string CreateBasicEndpointRequest::getName() const { + return name_; +} + +void CreateBasicEndpointRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateBasicEndpointRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicEndpointRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string CreateBasicEndpointRequest::getEndpointSubAddress() const { + return endpointSubAddress_; +} + +void CreateBasicEndpointRequest::setEndpointSubAddress(const std::string &endpointSubAddress) { + endpointSubAddress_ = endpointSubAddress; + setParameter(std::string("EndpointSubAddress"), endpointSubAddress); +} + +std::string CreateBasicEndpointRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void CreateBasicEndpointRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/CreateBasicEndpointResult.cc b/ga/src/model/CreateBasicEndpointResult.cc new file mode 100644 index 000000000..0eeb8efb1 --- /dev/null +++ b/ga/src/model/CreateBasicEndpointResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicEndpointResult::CreateBasicEndpointResult() : + ServiceResult() +{} + +CreateBasicEndpointResult::CreateBasicEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicEndpointResult::~CreateBasicEndpointResult() +{} + +void CreateBasicEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + +} + +std::string CreateBasicEndpointResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string CreateBasicEndpointResult::getEndpointId()const +{ + return endpointId_; +} + diff --git a/ga/src/model/CreateBasicEndpointsRequest.cc b/ga/src/model/CreateBasicEndpointsRequest.cc new file mode 100644 index 000000000..f6187b859 --- /dev/null +++ b/ga/src/model/CreateBasicEndpointsRequest.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateBasicEndpointsRequest; + +CreateBasicEndpointsRequest::CreateBasicEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicEndpointsRequest::~CreateBasicEndpointsRequest() {} + +std::vector CreateBasicEndpointsRequest::getEndpoints() const { + return endpoints_; +} + +void CreateBasicEndpointsRequest::setEndpoints(const std::vector &endpoints) { + endpoints_ = endpoints; + for(int dep1 = 0; dep1 != endpoints.size(); dep1++) { + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".Name", endpoints[dep1].name); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointType", endpoints[dep1].endpointType); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointAddress", endpoints[dep1].endpointAddress); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointSubAddress", endpoints[dep1].endpointSubAddress); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointSubAddressType", endpoints[dep1].endpointSubAddressType); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointZoneId", endpoints[dep1].endpointZoneId); + } +} + +std::string CreateBasicEndpointsRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicEndpointsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateBasicEndpointsRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicEndpointsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicEndpointsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string CreateBasicEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void CreateBasicEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/CreateBasicEndpointsResult.cc b/ga/src/model/CreateBasicEndpointsResult.cc new file mode 100644 index 000000000..78ba1f46a --- /dev/null +++ b/ga/src/model/CreateBasicEndpointsResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicEndpointsResult::CreateBasicEndpointsResult() : + ServiceResult() +{} + +CreateBasicEndpointsResult::CreateBasicEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicEndpointsResult::~CreateBasicEndpointsResult() +{} + +void CreateBasicEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointsNode = value["Endpoints"]["endpointsItem"]; + for (auto valueEndpointsendpointsItem : allEndpointsNode) + { + EndpointsItem endpointsObject; + if(!valueEndpointsendpointsItem["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointsendpointsItem["EndpointId"].asString(); + if(!valueEndpointsendpointsItem["EndpointType"].isNull()) + endpointsObject.endpointType = valueEndpointsendpointsItem["EndpointType"].asString(); + if(!valueEndpointsendpointsItem["EndpointAddress"].isNull()) + endpointsObject.endpointAddress = valueEndpointsendpointsItem["EndpointAddress"].asString(); + if(!valueEndpointsendpointsItem["EndpointSubAddress"].isNull()) + endpointsObject.endpointSubAddress = valueEndpointsendpointsItem["EndpointSubAddress"].asString(); + endpoints_.push_back(endpointsObject); + } + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + +} + +std::vector CreateBasicEndpointsResult::getEndpoints()const +{ + return endpoints_; +} + +std::string CreateBasicEndpointsResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + diff --git a/ga/src/model/CreateBasicIpSetRequest.cc b/ga/src/model/CreateBasicIpSetRequest.cc new file mode 100644 index 000000000..2570f0b99 --- /dev/null +++ b/ga/src/model/CreateBasicIpSetRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::CreateBasicIpSetRequest; + +CreateBasicIpSetRequest::CreateBasicIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateBasicIpSet") { + setMethod(HttpRequest::Method::Post); +} + +CreateBasicIpSetRequest::~CreateBasicIpSetRequest() {} + +std::string CreateBasicIpSetRequest::getClientToken() const { + return clientToken_; +} + +void CreateBasicIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +long CreateBasicIpSetRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateBasicIpSetRequest::setBandwidth(long bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string CreateBasicIpSetRequest::getIspType() const { + return ispType_; +} + +void CreateBasicIpSetRequest::setIspType(const std::string &ispType) { + ispType_ = ispType; + setParameter(std::string("IspType"), ispType); +} + +std::string CreateBasicIpSetRequest::getAccelerateRegionId() const { + return accelerateRegionId_; +} + +void CreateBasicIpSetRequest::setAccelerateRegionId(const std::string &accelerateRegionId) { + accelerateRegionId_ = accelerateRegionId; + setParameter(std::string("AccelerateRegionId"), accelerateRegionId); +} + +std::string CreateBasicIpSetRequest::getRegionId() const { + return regionId_; +} + +void CreateBasicIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateBasicIpSetRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateBasicIpSetRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateBasicIpSetResult.cc b/ga/src/model/CreateBasicIpSetResult.cc new file mode 100644 index 000000000..3912423c6 --- /dev/null +++ b/ga/src/model/CreateBasicIpSetResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateBasicIpSetResult::CreateBasicIpSetResult() : + ServiceResult() +{} + +CreateBasicIpSetResult::CreateBasicIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBasicIpSetResult::~CreateBasicIpSetResult() +{} + +void CreateBasicIpSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["IpSetId"].isNull()) + ipSetId_ = value["IpSetId"].asString(); + +} + +std::string CreateBasicIpSetResult::getIpSetId()const +{ + return ipSetId_; +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsRequest.cc b/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsRequest.cc new file mode 100644 index 000000000..c295d75e7 --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsRequest.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::Ga::Model::CreateCustomRoutingEndpointGroupDestinationsRequest; + +CreateCustomRoutingEndpointGroupDestinationsRequest::CreateCustomRoutingEndpointGroupDestinationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateCustomRoutingEndpointGroupDestinations") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomRoutingEndpointGroupDestinationsRequest::~CreateCustomRoutingEndpointGroupDestinationsRequest() {} + +bool CreateCustomRoutingEndpointGroupDestinationsRequest::getDryRun() const { + return dryRun_; +} + +void CreateCustomRoutingEndpointGroupDestinationsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateCustomRoutingEndpointGroupDestinationsRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomRoutingEndpointGroupDestinationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateCustomRoutingEndpointGroupDestinationsRequest::getDestinationConfigurations() const { + return destinationConfigurations_; +} + +void CreateCustomRoutingEndpointGroupDestinationsRequest::setDestinationConfigurations(const std::vector &destinationConfigurations) { + destinationConfigurations_ = destinationConfigurations; + for(int dep1 = 0; dep1 != destinationConfigurations.size(); dep1++) { + auto destinationConfigurationsObj = destinationConfigurations.at(dep1); + std::string destinationConfigurationsObjStr = std::string("DestinationConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(destinationConfigurationsObjStr + ".FromPort", std::to_string(destinationConfigurationsObj.fromPort)); + setParameter(destinationConfigurationsObjStr + ".ToPort", std::to_string(destinationConfigurationsObj.toPort)); + } +} + +std::string CreateCustomRoutingEndpointGroupDestinationsRequest::getRegionId() const { + return regionId_; +} + +void CreateCustomRoutingEndpointGroupDestinationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCustomRoutingEndpointGroupDestinationsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void CreateCustomRoutingEndpointGroupDestinationsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsResult.cc b/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsResult.cc new file mode 100644 index 000000000..49aa63a4d --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointGroupDestinationsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateCustomRoutingEndpointGroupDestinationsResult::CreateCustomRoutingEndpointGroupDestinationsResult() : + ServiceResult() +{} + +CreateCustomRoutingEndpointGroupDestinationsResult::CreateCustomRoutingEndpointGroupDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomRoutingEndpointGroupDestinationsResult::~CreateCustomRoutingEndpointGroupDestinationsResult() +{} + +void CreateCustomRoutingEndpointGroupDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDestinationIds = value["DestinationIds"]["destinationIds"]; + for (const auto &item : allDestinationIds) + destinationIds_.push_back(item.asString()); + +} + +std::vector CreateCustomRoutingEndpointGroupDestinationsResult::getDestinationIds()const +{ + return destinationIds_; +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointGroupsRequest.cc b/ga/src/model/CreateCustomRoutingEndpointGroupsRequest.cc new file mode 100644 index 000000000..649282ea4 --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointGroupsRequest.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateCustomRoutingEndpointGroupsRequest; + +CreateCustomRoutingEndpointGroupsRequest::CreateCustomRoutingEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateCustomRoutingEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomRoutingEndpointGroupsRequest::~CreateCustomRoutingEndpointGroupsRequest() {} + +bool CreateCustomRoutingEndpointGroupsRequest::getDryRun() const { + return dryRun_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateCustomRoutingEndpointGroupsRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateCustomRoutingEndpointGroupsRequest::getEndpointGroupConfigurations() const { + return endpointGroupConfigurations_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations) { + endpointGroupConfigurations_ = endpointGroupConfigurations; + for(int dep1 = 0; dep1 != endpointGroupConfigurations.size(); dep1++) { + auto endpointGroupConfigurationsObj = endpointGroupConfigurations.at(dep1); + std::string endpointGroupConfigurationsObjStr = std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupRegion", endpointGroupConfigurationsObj.endpointGroupRegion); + setParameter(endpointGroupConfigurationsObjStr + ".Name", endpointGroupConfigurationsObj.name); + setParameter(endpointGroupConfigurationsObjStr + ".Description", endpointGroupConfigurationsObj.description); + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.destinationConfigurations.size(); dep2++) { + auto destinationConfigurationsObj = endpointGroupConfigurationsObj.destinationConfigurations.at(dep2); + std::string destinationConfigurationsObjStr = endpointGroupConfigurationsObjStr + ".DestinationConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(destinationConfigurationsObjStr + ".FromPort", std::to_string(destinationConfigurationsObj.fromPort)); + setParameter(destinationConfigurationsObjStr + ".ToPort", std::to_string(destinationConfigurationsObj.toPort)); + } + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.endpointConfigurations.size(); dep2++) { + auto endpointConfigurationsObj = endpointGroupConfigurationsObj.endpointConfigurations.at(dep2); + std::string endpointConfigurationsObjStr = endpointGroupConfigurationsObjStr + ".EndpointConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + setParameter(endpointConfigurationsObjStr + ".TrafficToEndpointPolicy", endpointConfigurationsObj.trafficToEndpointPolicy); + for(int dep3 = 0; dep3 != endpointConfigurationsObj.policyConfigurations.size(); dep3++) { + auto policyConfigurationsObj = endpointConfigurationsObj.policyConfigurations.at(dep3); + std::string policyConfigurationsObjStr = endpointConfigurationsObjStr + ".PolicyConfigurations" + "." + std::to_string(dep3 + 1); + setParameter(policyConfigurationsObjStr + ".Address", policyConfigurationsObj.address); + for(int dep4 = 0; dep4 != policyConfigurationsObj.portRanges.size(); dep4++) { + auto portRangesObj = policyConfigurationsObj.portRanges.at(dep4); + std::string portRangesObjStr = policyConfigurationsObjStr + ".PortRanges" + "." + std::to_string(dep4 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } + } + } + } +} + +std::string CreateCustomRoutingEndpointGroupsRequest::getListenerId() const { + return listenerId_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string CreateCustomRoutingEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCustomRoutingEndpointGroupsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateCustomRoutingEndpointGroupsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointGroupsResult.cc b/ga/src/model/CreateCustomRoutingEndpointGroupsResult.cc new file mode 100644 index 000000000..b9eeca138 --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointGroupsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateCustomRoutingEndpointGroupsResult::CreateCustomRoutingEndpointGroupsResult() : + ServiceResult() +{} + +CreateCustomRoutingEndpointGroupsResult::CreateCustomRoutingEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomRoutingEndpointGroupsResult::~CreateCustomRoutingEndpointGroupsResult() +{} + +void CreateCustomRoutingEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupIds = value["EndpointGroupIds"]["endpointGroupIds"]; + for (const auto &item : allEndpointGroupIds) + endpointGroupIds_.push_back(item.asString()); + +} + +std::vector CreateCustomRoutingEndpointGroupsResult::getEndpointGroupIds()const +{ + return endpointGroupIds_; +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.cc b/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.cc new file mode 100644 index 000000000..68188712b --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesRequest.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::Ga::Model::CreateCustomRoutingEndpointTrafficPoliciesRequest; + +CreateCustomRoutingEndpointTrafficPoliciesRequest::CreateCustomRoutingEndpointTrafficPoliciesRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateCustomRoutingEndpointTrafficPolicies") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomRoutingEndpointTrafficPoliciesRequest::~CreateCustomRoutingEndpointTrafficPoliciesRequest() {} + +std::string CreateCustomRoutingEndpointTrafficPoliciesRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomRoutingEndpointTrafficPoliciesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateCustomRoutingEndpointTrafficPoliciesRequest::getEndpointId() const { + return endpointId_; +} + +void CreateCustomRoutingEndpointTrafficPoliciesRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::vector CreateCustomRoutingEndpointTrafficPoliciesRequest::getPolicyConfigurations() const { + return policyConfigurations_; +} + +void CreateCustomRoutingEndpointTrafficPoliciesRequest::setPolicyConfigurations(const std::vector &policyConfigurations) { + policyConfigurations_ = policyConfigurations; + for(int dep1 = 0; dep1 != policyConfigurations.size(); dep1++) { + auto policyConfigurationsObj = policyConfigurations.at(dep1); + std::string policyConfigurationsObjStr = std::string("PolicyConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(policyConfigurationsObjStr + ".Address", policyConfigurationsObj.address); + for(int dep2 = 0; dep2 != policyConfigurationsObj.portRanges.size(); dep2++) { + auto portRangesObj = policyConfigurationsObj.portRanges.at(dep2); + std::string portRangesObjStr = policyConfigurationsObjStr + ".PortRanges" + "." + std::to_string(dep2 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } + } +} + +std::string CreateCustomRoutingEndpointTrafficPoliciesRequest::getRegionId() const { + return regionId_; +} + +void CreateCustomRoutingEndpointTrafficPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesResult.cc b/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesResult.cc new file mode 100644 index 000000000..cc2adee53 --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointTrafficPoliciesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateCustomRoutingEndpointTrafficPoliciesResult::CreateCustomRoutingEndpointTrafficPoliciesResult() : + ServiceResult() +{} + +CreateCustomRoutingEndpointTrafficPoliciesResult::CreateCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomRoutingEndpointTrafficPoliciesResult::~CreateCustomRoutingEndpointTrafficPoliciesResult() +{} + +void CreateCustomRoutingEndpointTrafficPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPolicyIds = value["PolicyIds"]["policyIds"]; + for (const auto &item : allPolicyIds) + policyIds_.push_back(item.asString()); + +} + +std::vector CreateCustomRoutingEndpointTrafficPoliciesResult::getPolicyIds()const +{ + return policyIds_; +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointsRequest.cc b/ga/src/model/CreateCustomRoutingEndpointsRequest.cc new file mode 100644 index 000000000..7a12837df --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointsRequest.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 + +using AlibabaCloud::Ga::Model::CreateCustomRoutingEndpointsRequest; + +CreateCustomRoutingEndpointsRequest::CreateCustomRoutingEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateCustomRoutingEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomRoutingEndpointsRequest::~CreateCustomRoutingEndpointsRequest() {} + +std::string CreateCustomRoutingEndpointsRequest::getClientToken() const { + return clientToken_; +} + +void CreateCustomRoutingEndpointsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateCustomRoutingEndpointsRequest::getEndpointConfigurations() const { + return endpointConfigurations_; +} + +void CreateCustomRoutingEndpointsRequest::setEndpointConfigurations(const std::vector &endpointConfigurations) { + endpointConfigurations_ = endpointConfigurations; + for(int dep1 = 0; dep1 != endpointConfigurations.size(); dep1++) { + auto endpointConfigurationsObj = endpointConfigurations.at(dep1); + std::string endpointConfigurationsObjStr = std::string("EndpointConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + setParameter(endpointConfigurationsObjStr + ".TrafficToEndpointPolicy", endpointConfigurationsObj.trafficToEndpointPolicy); + for(int dep2 = 0; dep2 != endpointConfigurationsObj.policyConfigurations.size(); dep2++) { + auto policyConfigurationsObj = endpointConfigurationsObj.policyConfigurations.at(dep2); + std::string policyConfigurationsObjStr = endpointConfigurationsObjStr + ".PolicyConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(policyConfigurationsObjStr + ".Address", policyConfigurationsObj.address); + for(int dep3 = 0; dep3 != policyConfigurationsObj.portRanges.size(); dep3++) { + auto portRangesObj = policyConfigurationsObj.portRanges.at(dep3); + std::string portRangesObjStr = policyConfigurationsObjStr + ".PortRanges" + "." + std::to_string(dep3 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } + } + } +} + +std::string CreateCustomRoutingEndpointsRequest::getRegionId() const { + return regionId_; +} + +void CreateCustomRoutingEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCustomRoutingEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void CreateCustomRoutingEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/CreateCustomRoutingEndpointsResult.cc b/ga/src/model/CreateCustomRoutingEndpointsResult.cc new file mode 100644 index 000000000..d75b3fa29 --- /dev/null +++ b/ga/src/model/CreateCustomRoutingEndpointsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateCustomRoutingEndpointsResult::CreateCustomRoutingEndpointsResult() : + ServiceResult() +{} + +CreateCustomRoutingEndpointsResult::CreateCustomRoutingEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomRoutingEndpointsResult::~CreateCustomRoutingEndpointsResult() +{} + +void CreateCustomRoutingEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointIds = value["EndpointIds"]["endpointIds"]; + for (const auto &item : allEndpointIds) + endpointIds_.push_back(item.asString()); + +} + +std::vector CreateCustomRoutingEndpointsResult::getEndpointIds()const +{ + return endpointIds_; +} + diff --git a/ga/src/model/CreateDomainRequest.cc b/ga/src/model/CreateDomainRequest.cc new file mode 100644 index 000000000..9240a3aff --- /dev/null +++ b/ga/src/model/CreateDomainRequest.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::Ga::Model::CreateDomainRequest; + +CreateDomainRequest::CreateDomainRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateDomain") { + setMethod(HttpRequest::Method::Post); +} + +CreateDomainRequest::~CreateDomainRequest() {} + +std::vector CreateDomainRequest::getAcceleratorIds() const { + return acceleratorIds_; +} + +void CreateDomainRequest::setAcceleratorIds(const std::vector &acceleratorIds) { + acceleratorIds_ = acceleratorIds; +} + +std::string CreateDomainRequest::getRegionId() const { + return regionId_; +} + +void CreateDomainRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateDomainRequest::getDomain() const { + return domain_; +} + +void CreateDomainRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/ga/src/model/CreateDomainResult.cc b/ga/src/model/CreateDomainResult.cc new file mode 100644 index 000000000..2d895961a --- /dev/null +++ b/ga/src/model/CreateDomainResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateDomainResult::CreateDomainResult() : + ServiceResult() +{} + +CreateDomainResult::CreateDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDomainResult::~CreateDomainResult() +{} + +void CreateDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/CreateEndpointGroupRequest.cc b/ga/src/model/CreateEndpointGroupRequest.cc index 2b01cf87b..6b56a82d7 100644 --- a/ga/src/model/CreateEndpointGroupRequest.cc +++ b/ga/src/model/CreateEndpointGroupRequest.cc @@ -1,229 +1,231 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::CreateEndpointGroupRequest; - -CreateEndpointGroupRequest::CreateEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateEndpointGroupRequest::~CreateEndpointGroupRequest() -{} - -std::vector CreateEndpointGroupRequest::getPortOverrides()const -{ - return portOverrides_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateEndpointGroupRequest; + +CreateEndpointGroupRequest::CreateEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateEndpointGroupRequest::setPortOverrides(const std::vector& portOverrides) -{ - portOverrides_ = portOverrides; - for(int dep1 = 0; dep1!= portOverrides.size(); dep1++) { - auto portOverridesObj = portOverrides.at(dep1); - std::string portOverridesObjStr = "PortOverrides." + std::to_string(dep1 + 1); - setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); - setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); - } +CreateEndpointGroupRequest::~CreateEndpointGroupRequest() {} + +std::vector CreateEndpointGroupRequest::getPortOverrides() const { + return portOverrides_; } -std::string CreateEndpointGroupRequest::getClientToken()const -{ - return clientToken_; +void CreateEndpointGroupRequest::setPortOverrides(const std::vector &portOverrides) { + portOverrides_ = portOverrides; + for(int dep1 = 0; dep1 != portOverrides.size(); dep1++) { + auto portOverridesObj = portOverrides.at(dep1); + std::string portOverridesObjStr = std::string("PortOverrides") + "." + std::to_string(dep1 + 1); + setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); + setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); + } } -void CreateEndpointGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +bool CreateEndpointGroupRequest::getHealthCheckEnabled() const { + return healthCheckEnabled_; } -int CreateEndpointGroupRequest::getHealthCheckIntervalSeconds()const -{ - return healthCheckIntervalSeconds_; +void CreateEndpointGroupRequest::setHealthCheckEnabled(bool healthCheckEnabled) { + healthCheckEnabled_ = healthCheckEnabled; + setParameter(std::string("HealthCheckEnabled"), healthCheckEnabled ? "true" : "false"); } -void CreateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) -{ - healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; - setParameter("HealthCheckIntervalSeconds", std::to_string(healthCheckIntervalSeconds)); +std::string CreateEndpointGroupRequest::getClientToken() const { + return clientToken_; } -std::string CreateEndpointGroupRequest::getDescription()const -{ - return description_; +void CreateEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateEndpointGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::vector CreateEndpointGroupRequest::getSystemTag() const { + return systemTag_; } -std::string CreateEndpointGroupRequest::getHealthCheckProtocol()const -{ - return healthCheckProtocol_; +void CreateEndpointGroupRequest::setSystemTag(const std::vector &systemTag) { + systemTag_ = systemTag; + for(int dep1 = 0; dep1 != systemTag.size(); dep1++) { + auto systemTagObj = systemTag.at(dep1); + std::string systemTagObjStr = std::string("SystemTag") + "." + std::to_string(dep1 + 1); + setParameter(systemTagObjStr + ".Key", systemTagObj.key); + setParameter(systemTagObjStr + ".Value", systemTagObj.value); + setParameter(systemTagObjStr + ".Scope", systemTagObj.scope); + } } -void CreateEndpointGroupRequest::setHealthCheckProtocol(const std::string& healthCheckProtocol) -{ - healthCheckProtocol_ = healthCheckProtocol; - setParameter("HealthCheckProtocol", healthCheckProtocol); +int CreateEndpointGroupRequest::getHealthCheckIntervalSeconds() const { + return healthCheckIntervalSeconds_; } -std::string CreateEndpointGroupRequest::getEndpointRequestProtocol()const -{ - return endpointRequestProtocol_; +void CreateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) { + healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; + setParameter(std::string("HealthCheckIntervalSeconds"), std::to_string(healthCheckIntervalSeconds)); } -void CreateEndpointGroupRequest::setEndpointRequestProtocol(const std::string& endpointRequestProtocol) -{ - endpointRequestProtocol_ = endpointRequestProtocol; - setParameter("EndpointRequestProtocol", endpointRequestProtocol); +std::string CreateEndpointGroupRequest::getDescription() const { + return description_; } -std::string CreateEndpointGroupRequest::getListenerId()const -{ - return listenerId_; +void CreateEndpointGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateEndpointGroupRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string CreateEndpointGroupRequest::getHealthCheckProtocol() const { + return healthCheckProtocol_; } -std::string CreateEndpointGroupRequest::getHealthCheckPath()const -{ - return healthCheckPath_; +void CreateEndpointGroupRequest::setHealthCheckProtocol(const std::string &healthCheckProtocol) { + healthCheckProtocol_ = healthCheckProtocol; + setParameter(std::string("HealthCheckProtocol"), healthCheckProtocol); } -void CreateEndpointGroupRequest::setHealthCheckPath(const std::string& healthCheckPath) -{ - healthCheckPath_ = healthCheckPath; - setParameter("HealthCheckPath", healthCheckPath); +std::string CreateEndpointGroupRequest::getEndpointRequestProtocol() const { + return endpointRequestProtocol_; } -std::vector CreateEndpointGroupRequest::getEndpointConfigurations()const -{ - return endpointConfigurations_; +void CreateEndpointGroupRequest::setEndpointRequestProtocol(const std::string &endpointRequestProtocol) { + endpointRequestProtocol_ = endpointRequestProtocol; + setParameter(std::string("EndpointRequestProtocol"), endpointRequestProtocol); } -void CreateEndpointGroupRequest::setEndpointConfigurations(const std::vector& endpointConfigurations) -{ - endpointConfigurations_ = endpointConfigurations; - for(int dep1 = 0; dep1!= endpointConfigurations.size(); dep1++) { - auto endpointConfigurationsObj = endpointConfigurations.at(dep1); - std::string endpointConfigurationsObjStr = "EndpointConfigurations." + std::to_string(dep1 + 1); - setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); - setParameter(endpointConfigurationsObjStr + ".EnableClientIPPreservation", endpointConfigurationsObj.enableClientIPPreservation ? "true" : "false"); - setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); - setParameter(endpointConfigurationsObjStr + ".EnableProxyProtocol", endpointConfigurationsObj.enableProxyProtocol ? "true" : "false"); - setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); - } +std::string CreateEndpointGroupRequest::getListenerId() const { + return listenerId_; } -std::string CreateEndpointGroupRequest::getRegionId()const -{ - return regionId_; +void CreateEndpointGroupRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void CreateEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateEndpointGroupRequest::getHealthCheckPath() const { + return healthCheckPath_; } -std::string CreateEndpointGroupRequest::getEndpointGroupType()const -{ - return endpointGroupType_; +void CreateEndpointGroupRequest::setHealthCheckPath(const std::string &healthCheckPath) { + healthCheckPath_ = healthCheckPath; + setParameter(std::string("HealthCheckPath"), healthCheckPath); } -void CreateEndpointGroupRequest::setEndpointGroupType(const std::string& endpointGroupType) -{ - endpointGroupType_ = endpointGroupType; - setParameter("EndpointGroupType", endpointGroupType); +std::vector CreateEndpointGroupRequest::getEndpointConfigurations() const { + return endpointConfigurations_; } -std::string CreateEndpointGroupRequest::getAcceleratorId()const -{ - return acceleratorId_; +void CreateEndpointGroupRequest::setEndpointConfigurations(const std::vector &endpointConfigurations) { + endpointConfigurations_ = endpointConfigurations; + for(int dep1 = 0; dep1 != endpointConfigurations.size(); dep1++) { + auto endpointConfigurationsObj = endpointConfigurations.at(dep1); + std::string endpointConfigurationsObjStr = std::string("EndpointConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".EnableClientIPPreservation", endpointConfigurationsObj.enableClientIPPreservation ? "true" : "false"); + setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); + setParameter(endpointConfigurationsObjStr + ".EnableProxyProtocol", endpointConfigurationsObj.enableProxyProtocol ? "true" : "false"); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + } } -void CreateEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string CreateEndpointGroupRequest::getRegionId() const { + return regionId_; } -int CreateEndpointGroupRequest::getTrafficPercentage()const -{ - return trafficPercentage_; +void CreateEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) -{ - trafficPercentage_ = trafficPercentage; - setParameter("TrafficPercentage", std::to_string(trafficPercentage)); +std::string CreateEndpointGroupRequest::getEndpointGroupType() const { + return endpointGroupType_; } -int CreateEndpointGroupRequest::getHealthCheckPort()const -{ - return healthCheckPort_; +void CreateEndpointGroupRequest::setEndpointGroupType(const std::string &endpointGroupType) { + endpointGroupType_ = endpointGroupType; + setParameter(std::string("EndpointGroupType"), endpointGroupType); } -void CreateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) -{ - healthCheckPort_ = healthCheckPort; - setParameter("HealthCheckPort", std::to_string(healthCheckPort)); +std::string CreateEndpointGroupRequest::getAcceleratorId() const { + return acceleratorId_; } -int CreateEndpointGroupRequest::getThresholdCount()const -{ - return thresholdCount_; +void CreateEndpointGroupRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void CreateEndpointGroupRequest::setThresholdCount(int thresholdCount) -{ - thresholdCount_ = thresholdCount; - setParameter("ThresholdCount", std::to_string(thresholdCount)); +std::vector CreateEndpointGroupRequest::getTag() const { + return tag_; } -std::string CreateEndpointGroupRequest::getEndpointGroupRegion()const -{ - return endpointGroupRegion_; +void CreateEndpointGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateEndpointGroupRequest::setEndpointGroupRegion(const std::string& endpointGroupRegion) -{ - endpointGroupRegion_ = endpointGroupRegion; - setParameter("EndpointGroupRegion", endpointGroupRegion); +int CreateEndpointGroupRequest::getTrafficPercentage() const { + return trafficPercentage_; } -std::string CreateEndpointGroupRequest::getName()const -{ - return name_; +void CreateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) { + trafficPercentage_ = trafficPercentage; + setParameter(std::string("TrafficPercentage"), std::to_string(trafficPercentage)); } -void CreateEndpointGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +int CreateEndpointGroupRequest::getHealthCheckPort() const { + return healthCheckPort_; +} + +void CreateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) { + healthCheckPort_ = healthCheckPort; + setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort)); +} + +int CreateEndpointGroupRequest::getThresholdCount() const { + return thresholdCount_; +} + +void CreateEndpointGroupRequest::setThresholdCount(int thresholdCount) { + thresholdCount_ = thresholdCount; + setParameter(std::string("ThresholdCount"), std::to_string(thresholdCount)); +} + +std::string CreateEndpointGroupRequest::getEndpointGroupRegion() const { + return endpointGroupRegion_; +} + +void CreateEndpointGroupRequest::setEndpointGroupRegion(const std::string &endpointGroupRegion) { + endpointGroupRegion_ = endpointGroupRegion; + setParameter(std::string("EndpointGroupRegion"), endpointGroupRegion); +} + +std::string CreateEndpointGroupRequest::getName() const { + return name_; +} + +void CreateEndpointGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ga/src/model/CreateEndpointGroupsRequest.cc b/ga/src/model/CreateEndpointGroupsRequest.cc new file mode 100644 index 000000000..83777dad6 --- /dev/null +++ b/ga/src/model/CreateEndpointGroupsRequest.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::CreateEndpointGroupsRequest; + +CreateEndpointGroupsRequest::CreateEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +CreateEndpointGroupsRequest::~CreateEndpointGroupsRequest() {} + +bool CreateEndpointGroupsRequest::getDryRun() const { + return dryRun_; +} + +void CreateEndpointGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateEndpointGroupsRequest::getClientToken() const { + return clientToken_; +} + +void CreateEndpointGroupsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateEndpointGroupsRequest::getEndpointGroupConfigurations() const { + return endpointGroupConfigurations_; +} + +void CreateEndpointGroupsRequest::setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations) { + endpointGroupConfigurations_ = endpointGroupConfigurations; + for(int dep1 = 0; dep1 != endpointGroupConfigurations.size(); dep1++) { + auto endpointGroupConfigurationsObj = endpointGroupConfigurations.at(dep1); + std::string endpointGroupConfigurationsObjStr = std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupName", endpointGroupConfigurationsObj.endpointGroupName); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupDescription", endpointGroupConfigurationsObj.endpointGroupDescription); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupRegion", endpointGroupConfigurationsObj.endpointGroupRegion); + setParameter(endpointGroupConfigurationsObjStr + ".TrafficPercentage", std::to_string(endpointGroupConfigurationsObj.trafficPercentage)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckEnabled", endpointGroupConfigurationsObj.healthCheckEnabled ? "true" : "false"); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckIntervalSeconds", std::to_string(endpointGroupConfigurationsObj.healthCheckIntervalSeconds)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckPath", endpointGroupConfigurationsObj.healthCheckPath); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckPort", std::to_string(endpointGroupConfigurationsObj.healthCheckPort)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckProtocol", endpointGroupConfigurationsObj.healthCheckProtocol); + setParameter(endpointGroupConfigurationsObjStr + ".ThresholdCount", std::to_string(endpointGroupConfigurationsObj.thresholdCount)); + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.endpointConfigurations.size(); dep2++) { + auto endpointConfigurationsObj = endpointGroupConfigurationsObj.endpointConfigurations.at(dep2); + std::string endpointConfigurationsObjStr = endpointGroupConfigurationsObjStr + ".EndpointConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + } + setParameter(endpointGroupConfigurationsObjStr + ".EndpointRequestProtocol", endpointGroupConfigurationsObj.endpointRequestProtocol); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupType", endpointGroupConfigurationsObj.endpointGroupType); + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.portOverrides.size(); dep2++) { + auto portOverridesObj = endpointGroupConfigurationsObj.portOverrides.at(dep2); + std::string portOverridesObjStr = endpointGroupConfigurationsObjStr + ".PortOverrides" + "." + std::to_string(dep2 + 1); + setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); + setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); + } + setParameter(endpointGroupConfigurationsObjStr + ".EnableClientIPPreservationToa", endpointGroupConfigurationsObj.enableClientIPPreservationToa ? "true" : "false"); + setParameter(endpointGroupConfigurationsObjStr + ".EnableClientIPPreservationProxyProtocol", endpointGroupConfigurationsObj.enableClientIPPreservationProxyProtocol ? "true" : "false"); + } +} + +std::string CreateEndpointGroupsRequest::getListenerId() const { + return listenerId_; +} + +void CreateEndpointGroupsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string CreateEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void CreateEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateEndpointGroupsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateEndpointGroupsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateEndpointGroupsResult.cc b/ga/src/model/CreateEndpointGroupsResult.cc new file mode 100644 index 000000000..a934a8f94 --- /dev/null +++ b/ga/src/model/CreateEndpointGroupsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateEndpointGroupsResult::CreateEndpointGroupsResult() : + ServiceResult() +{} + +CreateEndpointGroupsResult::CreateEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEndpointGroupsResult::~CreateEndpointGroupsResult() +{} + +void CreateEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupIds = value["EndpointGroupIds"]["endpointGroupIds"]; + for (const auto &item : allEndpointGroupIds) + endpointGroupIds_.push_back(item.asString()); + +} + +std::vector CreateEndpointGroupsResult::getEndpointGroupIds()const +{ + return endpointGroupIds_; +} + diff --git a/ga/src/model/CreateForwardingRulesRequest.cc b/ga/src/model/CreateForwardingRulesRequest.cc index 2bbc8cbe9..3cc5bfb2f 100644 --- a/ga/src/model/CreateForwardingRulesRequest.cc +++ b/ga/src/model/CreateForwardingRulesRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Ga::Model::CreateForwardingRulesRequest; - -CreateForwardingRulesRequest::CreateForwardingRulesRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateForwardingRules") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateForwardingRulesRequest::~CreateForwardingRulesRequest() -{} - -std::string CreateForwardingRulesRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateForwardingRulesRequest; + +CreateForwardingRulesRequest::CreateForwardingRulesRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateForwardingRules") { + setMethod(HttpRequest::Method::Post); } -void CreateForwardingRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateForwardingRulesRequest::~CreateForwardingRulesRequest() {} + +std::string CreateForwardingRulesRequest::getClientToken() const { + return clientToken_; } -std::string CreateForwardingRulesRequest::getListenerId()const -{ - return listenerId_; +void CreateForwardingRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateForwardingRulesRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string CreateForwardingRulesRequest::getListenerId() const { + return listenerId_; } -std::string CreateForwardingRulesRequest::getRegionId()const -{ - return regionId_; +void CreateForwardingRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void CreateForwardingRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateForwardingRulesRequest::getRegionId() const { + return regionId_; } -std::string CreateForwardingRulesRequest::getAcceleratorId()const -{ - return acceleratorId_; +void CreateForwardingRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string CreateForwardingRulesRequest::getAcceleratorId() const { + return acceleratorId_; } -Array CreateForwardingRulesRequest::getForwardingRules()const -{ - return forwardingRules_; +void CreateForwardingRulesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void CreateForwardingRulesRequest::setForwardingRules(const Array& forwardingRules) -{ - forwardingRules_ = forwardingRules; - setParameter("ForwardingRules", std::to_string(forwardingRules)); +std::vector CreateForwardingRulesRequest::getForwardingRules() const { + return forwardingRules_; +} + +void CreateForwardingRulesRequest::setForwardingRules(const std::vector &forwardingRules) { + forwardingRules_ = forwardingRules; + for(int dep1 = 0; dep1 != forwardingRules.size(); dep1++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(forwardingRules[dep1].priority)); + for(int dep2 = 0; dep2 != forwardingRules[dep1].ruleConditions.size(); dep2++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".RuleConditionType", forwardingRules[dep1].ruleConditions[dep2].ruleConditionType); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".RuleConditionValue", forwardingRules[dep1].ruleConditions[dep2].ruleConditionValue); + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), forwardingRules[dep1].ruleConditions[dep2].pathConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), forwardingRules[dep1].ruleConditions[dep2].hostConfig.values[dep3]); + } + } + for(int dep2 = 0; dep2 != forwardingRules[dep1].ruleActions.size(); dep2++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(forwardingRules[dep1].ruleActions[dep2].order)); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RuleActionType", forwardingRules[dep1].ruleActions[dep2].ruleActionType); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RuleActionValue", forwardingRules[dep1].ruleActions[dep2].ruleActionValue); + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".EndpointGroupId", forwardingRules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].endpointGroupId); + } + } + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".ForwardingRuleName", forwardingRules[dep1].forwardingRuleName); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleDirection", forwardingRules[dep1].ruleDirection); + } } diff --git a/ga/src/model/CreateIpSetsRequest.cc b/ga/src/model/CreateIpSetsRequest.cc index 23412f64e..cf31ed5e8 100644 --- a/ga/src/model/CreateIpSetsRequest.cc +++ b/ga/src/model/CreateIpSetsRequest.cc @@ -1,79 +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::Ga::Model::CreateIpSetsRequest; - -CreateIpSetsRequest::CreateIpSetsRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateIpSets") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIpSetsRequest::~CreateIpSetsRequest() -{} - -std::string CreateIpSetsRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateIpSetsRequest; + +CreateIpSetsRequest::CreateIpSetsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateIpSets") { + setMethod(HttpRequest::Method::Post); } -void CreateIpSetsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateIpSetsRequest::~CreateIpSetsRequest() {} + +std::string CreateIpSetsRequest::getClientToken() const { + return clientToken_; } -std::string CreateIpSetsRequest::getRegionId()const -{ - return regionId_; +void CreateIpSetsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateIpSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateIpSetsRequest::getRegionId() const { + return regionId_; } -std::string CreateIpSetsRequest::getAcceleratorId()const -{ - return acceleratorId_; +void CreateIpSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateIpSetsRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string CreateIpSetsRequest::getAcceleratorId() const { + return acceleratorId_; } -std::vector CreateIpSetsRequest::getAccelerateRegion()const -{ - return accelerateRegion_; +void CreateIpSetsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void CreateIpSetsRequest::setAccelerateRegion(const std::vector& accelerateRegion) -{ - accelerateRegion_ = accelerateRegion; - for(int dep1 = 0; dep1!= accelerateRegion.size(); dep1++) { - auto accelerateRegionObj = accelerateRegion.at(dep1); - std::string accelerateRegionObjStr = "AccelerateRegion." + std::to_string(dep1 + 1); - setParameter(accelerateRegionObjStr + ".AccelerateRegionId", accelerateRegionObj.accelerateRegionId); - setParameter(accelerateRegionObjStr + ".IpVersion", accelerateRegionObj.ipVersion); - setParameter(accelerateRegionObjStr + ".Bandwidth", std::to_string(accelerateRegionObj.bandwidth)); - } +std::vector CreateIpSetsRequest::getAccelerateRegion() const { + return accelerateRegion_; +} + +void CreateIpSetsRequest::setAccelerateRegion(const std::vector &accelerateRegion) { + accelerateRegion_ = accelerateRegion; + for(int dep1 = 0; dep1 != accelerateRegion.size(); dep1++) { + auto accelerateRegionObj = accelerateRegion.at(dep1); + std::string accelerateRegionObjStr = std::string("AccelerateRegion") + "." + std::to_string(dep1 + 1); + setParameter(accelerateRegionObjStr + ".AccelerateRegionId", accelerateRegionObj.accelerateRegionId); + setParameter(accelerateRegionObjStr + ".IpVersion", accelerateRegionObj.ipVersion); + setParameter(accelerateRegionObjStr + ".Bandwidth", std::to_string(accelerateRegionObj.bandwidth)); + setParameter(accelerateRegionObjStr + ".IspType", accelerateRegionObj.ispType); + } } diff --git a/ga/src/model/CreateIpSetsResult.cc b/ga/src/model/CreateIpSetsResult.cc index 66066fb16..e56e46cb0 100644 --- a/ga/src/model/CreateIpSetsResult.cc +++ b/ga/src/model/CreateIpSetsResult.cc @@ -43,12 +43,14 @@ void CreateIpSetsResult::parse(const std::string &payload) for (auto valueIpSetsGaIpSet : allIpSetsNode) { GaIpSet ipSetsObject; - if(!valueIpSetsGaIpSet["IpSetId"].isNull()) - ipSetsObject.ipSetId = valueIpSetsGaIpSet["IpSetId"].asString(); - if(!valueIpSetsGaIpSet["Bandwidth"].isNull()) - ipSetsObject.bandwidth = std::stoi(valueIpSetsGaIpSet["Bandwidth"].asString()); if(!valueIpSetsGaIpSet["AccelerateRegionId"].isNull()) ipSetsObject.accelerateRegionId = valueIpSetsGaIpSet["AccelerateRegionId"].asString(); + if(!valueIpSetsGaIpSet["Bandwidth"].isNull()) + ipSetsObject.bandwidth = std::stoi(valueIpSetsGaIpSet["Bandwidth"].asString()); + if(!valueIpSetsGaIpSet["IpSetId"].isNull()) + ipSetsObject.ipSetId = valueIpSetsGaIpSet["IpSetId"].asString(); + if(!valueIpSetsGaIpSet["IspType"].isNull()) + ipSetsObject.ispType = valueIpSetsGaIpSet["IspType"].asString(); auto allIpList = value["IpList"]["IpList"]; for (auto value : allIpList) ipSetsObject.ipList.push_back(value.asString()); diff --git a/ga/src/model/CreateListenerRequest.cc b/ga/src/model/CreateListenerRequest.cc index f6d14ddc8..bf8defa5c 100644 --- a/ga/src/model/CreateListenerRequest.cc +++ b/ga/src/model/CreateListenerRequest.cc @@ -1,164 +1,236 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::CreateListenerRequest; - -CreateListenerRequest::CreateListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "CreateListener") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateListenerRequest::~CreateListenerRequest() -{} - -std::string CreateListenerRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::CreateListenerRequest; + +CreateListenerRequest::CreateListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateListener") { + setMethod(HttpRequest::Method::Post); } -void CreateListenerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateListenerRequest::~CreateListenerRequest() {} + +std::string CreateListenerRequest::getClientToken() const { + return clientToken_; } -std::string CreateListenerRequest::getDescription()const -{ - return description_; +void CreateListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateListenerRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateListenerRequest::getDescription() const { + return description_; } -std::vector CreateListenerRequest::getBackendPorts()const -{ - return backendPorts_; +void CreateListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateListenerRequest::setBackendPorts(const std::vector& backendPorts) -{ - backendPorts_ = backendPorts; - for(int dep1 = 0; dep1!= backendPorts.size(); dep1++) { - auto backendPortsObj = backendPorts.at(dep1); - std::string backendPortsObjStr = "BackendPorts." + std::to_string(dep1 + 1); - setParameter(backendPortsObjStr + ".FromPort", std::to_string(backendPortsObj.fromPort)); - setParameter(backendPortsObjStr + ".ToPort", std::to_string(backendPortsObj.toPort)); - } +std::vector CreateListenerRequest::getCustomRoutingEndpointGroupConfigurations() const { + return customRoutingEndpointGroupConfigurations_; } -std::string CreateListenerRequest::getProtocol()const -{ - return protocol_; +void CreateListenerRequest::setCustomRoutingEndpointGroupConfigurations(const std::vector &customRoutingEndpointGroupConfigurations) { + customRoutingEndpointGroupConfigurations_ = customRoutingEndpointGroupConfigurations; + for(int dep1 = 0; dep1 != customRoutingEndpointGroupConfigurations.size(); dep1++) { + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointGroupRegion", customRoutingEndpointGroupConfigurations[dep1].endpointGroupRegion); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".Name", customRoutingEndpointGroupConfigurations[dep1].name); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".Description", customRoutingEndpointGroupConfigurations[dep1].description); + for(int dep2 = 0; dep2 != customRoutingEndpointGroupConfigurations[dep1].destinationConfigurations.size(); dep2++) { + for(int dep3 = 0; dep3 != customRoutingEndpointGroupConfigurations[dep1].destinationConfigurations[dep2].protocols.size(); dep3++) { + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".DestinationConfigurations." + std::to_string(dep2 + 1) + ".Protocols." + std::to_string(dep3 + 1), customRoutingEndpointGroupConfigurations[dep1].destinationConfigurations[dep2].protocols[dep3]); + } + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".DestinationConfigurations." + std::to_string(dep2 + 1) + ".FromPort", std::to_string(customRoutingEndpointGroupConfigurations[dep1].destinationConfigurations[dep2].fromPort)); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".DestinationConfigurations." + std::to_string(dep2 + 1) + ".ToPort", std::to_string(customRoutingEndpointGroupConfigurations[dep1].destinationConfigurations[dep2].toPort)); + } + for(int dep2 = 0; dep2 != customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations.size(); dep2++) { + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".Type", customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].type); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".Endpoint", customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].endpoint); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".TrafficToEndpointPolicy", customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].trafficToEndpointPolicy); + for(int dep3 = 0; dep3 != customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].policyConfigurations.size(); dep3++) { + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".PolicyConfigurations." + std::to_string(dep3 + 1) + ".Address", customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].policyConfigurations[dep3].address); + for(int dep4 = 0; dep4 != customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].policyConfigurations[dep3].portRanges.size(); dep4++) { + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".PolicyConfigurations." + std::to_string(dep3 + 1) + ".PortRanges." + std::to_string(dep4 + 1) + ".FromPort", std::to_string(customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].policyConfigurations[dep3].portRanges[dep4].fromPort)); + setParameter(std::string("CustomRoutingEndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".PolicyConfigurations." + std::to_string(dep3 + 1) + ".PortRanges." + std::to_string(dep4 + 1) + ".ToPort", std::to_string(customRoutingEndpointGroupConfigurations[dep1].endpointConfigurations[dep2].policyConfigurations[dep3].portRanges[dep4].toPort)); + } + } + } + } } -void CreateListenerRequest::setProtocol(const std::string& protocol) -{ - protocol_ = protocol; - setParameter("Protocol", protocol); +std::string CreateListenerRequest::getType() const { + return type_; } -std::string CreateListenerRequest::getRegionId()const -{ - return regionId_; +void CreateListenerRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::vector CreateListenerRequest::getBackendPorts() const { + return backendPorts_; } -std::string CreateListenerRequest::getAcceleratorId()const -{ - return acceleratorId_; +void CreateListenerRequest::setBackendPorts(const std::vector &backendPorts) { + backendPorts_ = backendPorts; + for(int dep1 = 0; dep1 != backendPorts.size(); dep1++) { + auto backendPortsObj = backendPorts.at(dep1); + std::string backendPortsObjStr = std::string("BackendPorts") + "." + std::to_string(dep1 + 1); + setParameter(backendPortsObjStr + ".FromPort", std::to_string(backendPortsObj.fromPort)); + setParameter(backendPortsObjStr + ".ToPort", std::to_string(backendPortsObj.toPort)); + } } -void CreateListenerRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string CreateListenerRequest::getProtocol() const { + return protocol_; } -bool CreateListenerRequest::getProxyProtocol()const -{ - return proxyProtocol_; +void CreateListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); } -void CreateListenerRequest::setProxyProtocol(bool proxyProtocol) -{ - proxyProtocol_ = proxyProtocol; - setParameter("ProxyProtocol", proxyProtocol ? "true" : "false"); +std::string CreateListenerRequest::getRegionId() const { + return regionId_; } -std::vector CreateListenerRequest::getPortRanges()const -{ - return portRanges_; +void CreateListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateListenerRequest::setPortRanges(const std::vector& portRanges) -{ - portRanges_ = portRanges; - for(int dep1 = 0; dep1!= portRanges.size(); dep1++) { - auto portRangesObj = portRanges.at(dep1); - std::string portRangesObjStr = "PortRanges." + std::to_string(dep1 + 1); - setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); - setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); - } +std::string CreateListenerRequest::getAcceleratorId() const { + return acceleratorId_; } -std::vector CreateListenerRequest::getCertificates()const -{ - return certificates_; +void CreateListenerRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void CreateListenerRequest::setCertificates(const std::vector& certificates) -{ - certificates_ = certificates; - for(int dep1 = 0; dep1!= certificates.size(); dep1++) { - auto certificatesObj = certificates.at(dep1); - std::string certificatesObjStr = "Certificates." + std::to_string(dep1 + 1); - setParameter(certificatesObjStr + ".Id", certificatesObj.id); - } +std::vector CreateListenerRequest::getEndpointGroupConfigurations() const { + return endpointGroupConfigurations_; } -std::string CreateListenerRequest::getName()const -{ - return name_; +void CreateListenerRequest::setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations) { + endpointGroupConfigurations_ = endpointGroupConfigurations; + for(int dep1 = 0; dep1 != endpointGroupConfigurations.size(); dep1++) { + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointGroupName", endpointGroupConfigurations[dep1].endpointGroupName); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointGroupDescription", endpointGroupConfigurations[dep1].endpointGroupDescription); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointGroupRegion", endpointGroupConfigurations[dep1].endpointGroupRegion); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".TrafficPercentage", std::to_string(endpointGroupConfigurations[dep1].trafficPercentage)); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".HealthCheckEnabled", endpointGroupConfigurations[dep1].healthCheckEnabled ? "true" : "false"); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".HealthCheckIntervalSeconds", std::to_string(endpointGroupConfigurations[dep1].healthCheckIntervalSeconds)); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".HealthCheckPath", endpointGroupConfigurations[dep1].healthCheckPath); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".HealthCheckPort", std::to_string(endpointGroupConfigurations[dep1].healthCheckPort)); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".HealthCheckProtocol", endpointGroupConfigurations[dep1].healthCheckProtocol); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".ThresholdCount", std::to_string(endpointGroupConfigurations[dep1].thresholdCount)); + for(int dep2 = 0; dep2 != endpointGroupConfigurations[dep1].endpointConfigurations.size(); dep2++) { + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".Type", endpointGroupConfigurations[dep1].endpointConfigurations[dep2].type); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".Weight", std::to_string(endpointGroupConfigurations[dep1].endpointConfigurations[dep2].weight)); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointConfigurations." + std::to_string(dep2 + 1) + ".Endpoint", endpointGroupConfigurations[dep1].endpointConfigurations[dep2].endpoint); + } + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointRequestProtocol", endpointGroupConfigurations[dep1].endpointRequestProtocol); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EndpointGroupType", endpointGroupConfigurations[dep1].endpointGroupType); + for(int dep2 = 0; dep2 != endpointGroupConfigurations[dep1].portOverrides.size(); dep2++) { + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".PortOverrides." + std::to_string(dep2 + 1) + ".ListenerPort", std::to_string(endpointGroupConfigurations[dep1].portOverrides[dep2].listenerPort)); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".PortOverrides." + std::to_string(dep2 + 1) + ".EndpointPort", std::to_string(endpointGroupConfigurations[dep1].portOverrides[dep2].endpointPort)); + } + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EnableClientIPPreservationToa", endpointGroupConfigurations[dep1].enableClientIPPreservationToa ? "true" : "false"); + setParameter(std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1) + ".EnableClientIPPreservationProxyProtocol", endpointGroupConfigurations[dep1].enableClientIPPreservationProxyProtocol ? "true" : "false"); + } } -void CreateListenerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +CreateListenerRequest::XForwardedForConfig CreateListenerRequest::getXForwardedForConfig() const { + return xForwardedForConfig_; } -std::string CreateListenerRequest::getClientAffinity()const -{ - return clientAffinity_; +void CreateListenerRequest::setXForwardedForConfig(const CreateListenerRequest::XForwardedForConfig &xForwardedForConfig) { + xForwardedForConfig_ = xForwardedForConfig; + setParameter(std::string("XForwardedForConfig") + ".XForwardedForGaIdEnabled", xForwardedForConfig.xForwardedForGaIdEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForGaApEnabled", xForwardedForConfig.xForwardedForGaApEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForPortEnabled", xForwardedForConfig.xForwardedForPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XRealIpEnabled", xForwardedForConfig.xRealIpEnabled ? "true" : "false"); } -void CreateListenerRequest::setClientAffinity(const std::string& clientAffinity) -{ - clientAffinity_ = clientAffinity; - setParameter("ClientAffinity", clientAffinity); +std::string CreateListenerRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void CreateListenerRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + +bool CreateListenerRequest::getProxyProtocol() const { + return proxyProtocol_; +} + +void CreateListenerRequest::setProxyProtocol(bool proxyProtocol) { + proxyProtocol_ = proxyProtocol; + setParameter(std::string("ProxyProtocol"), proxyProtocol ? "true" : "false"); +} + +std::vector CreateListenerRequest::getPortRanges() const { + return portRanges_; +} + +void CreateListenerRequest::setPortRanges(const std::vector &portRanges) { + portRanges_ = portRanges; + for(int dep1 = 0; dep1 != portRanges.size(); dep1++) { + auto portRangesObj = portRanges.at(dep1); + std::string portRangesObjStr = std::string("PortRanges") + "." + std::to_string(dep1 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } +} + +std::vector CreateListenerRequest::getCertificates() const { + return certificates_; +} + +void CreateListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + auto certificatesObj = certificates.at(dep1); + std::string certificatesObjStr = std::string("Certificates") + "." + std::to_string(dep1 + 1); + setParameter(certificatesObjStr + ".Id", certificatesObj.id); + } +} + +std::string CreateListenerRequest::getName() const { + return name_; +} + +void CreateListenerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateListenerRequest::getClientAffinity() const { + return clientAffinity_; +} + +void CreateListenerRequest::setClientAffinity(const std::string &clientAffinity) { + clientAffinity_ = clientAffinity; + setParameter(std::string("ClientAffinity"), clientAffinity); } diff --git a/ga/src/model/CreateSpareIpsRequest.cc b/ga/src/model/CreateSpareIpsRequest.cc new file mode 100644 index 000000000..f9a1a6f10 --- /dev/null +++ b/ga/src/model/CreateSpareIpsRequest.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 + +using AlibabaCloud::Ga::Model::CreateSpareIpsRequest; + +CreateSpareIpsRequest::CreateSpareIpsRequest() + : RpcServiceRequest("ga", "2019-11-20", "CreateSpareIps") { + setMethod(HttpRequest::Method::Post); +} + +CreateSpareIpsRequest::~CreateSpareIpsRequest() {} + +bool CreateSpareIpsRequest::getDryRun() const { + return dryRun_; +} + +void CreateSpareIpsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateSpareIpsRequest::getClientToken() const { + return clientToken_; +} + +void CreateSpareIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector CreateSpareIpsRequest::getSpareIps() const { + return spareIps_; +} + +void CreateSpareIpsRequest::setSpareIps(const std::vector &spareIps) { + spareIps_ = spareIps; +} + +std::string CreateSpareIpsRequest::getRegionId() const { + return regionId_; +} + +void CreateSpareIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateSpareIpsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void CreateSpareIpsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/CreateSpareIpsResult.cc b/ga/src/model/CreateSpareIpsResult.cc new file mode 100644 index 000000000..b9908bfee --- /dev/null +++ b/ga/src/model/CreateSpareIpsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateSpareIpsResult::CreateSpareIpsResult() : + ServiceResult() +{} + +CreateSpareIpsResult::CreateSpareIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSpareIpsResult::~CreateSpareIpsResult() +{} + +void CreateSpareIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteAcceleratorRequest.cc b/ga/src/model/DeleteAcceleratorRequest.cc index 67838105e..97067534d 100644 --- a/ga/src/model/DeleteAcceleratorRequest.cc +++ b/ga/src/model/DeleteAcceleratorRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DeleteAcceleratorRequest; - -DeleteAcceleratorRequest::DeleteAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAcceleratorRequest::~DeleteAcceleratorRequest() -{} - -std::string DeleteAcceleratorRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteAcceleratorRequest; + +DeleteAcceleratorRequest::DeleteAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteAccelerator") { + setMethod(HttpRequest::Method::Post); } -void DeleteAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DeleteAcceleratorRequest::~DeleteAcceleratorRequest() {} + +std::string DeleteAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string DeleteAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DeleteAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DeleteAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DeleteAclRequest.cc b/ga/src/model/DeleteAclRequest.cc index 59694ceaa..fd28abe63 100644 --- a/ga/src/model/DeleteAclRequest.cc +++ b/ga/src/model/DeleteAclRequest.cc @@ -1,73 +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::Ga::Model::DeleteAclRequest; - -DeleteAclRequest::DeleteAclRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAclRequest::~DeleteAclRequest() -{} - -std::string DeleteAclRequest::getAclId()const -{ - return aclId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteAclRequest; + +DeleteAclRequest::DeleteAclRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteAcl") { + setMethod(HttpRequest::Method::Post); } -void DeleteAclRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +DeleteAclRequest::~DeleteAclRequest() {} + +std::string DeleteAclRequest::getAclId() const { + return aclId_; } -bool DeleteAclRequest::getDryRun()const -{ - return dryRun_; +void DeleteAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DeleteAclRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteAclRequest::getDryRun() const { + return dryRun_; } -std::string DeleteAclRequest::getClientToken()const -{ - return clientToken_; +void DeleteAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteAclRequest::getClientToken() const { + return clientToken_; } -std::string DeleteAclRequest::getRegionId()const -{ - return regionId_; +void DeleteAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteAclRequest::getRegionId() const { + return regionId_; +} + +void DeleteAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DeleteApplicationMonitorRequest.cc b/ga/src/model/DeleteApplicationMonitorRequest.cc new file mode 100644 index 000000000..2f90fa6b9 --- /dev/null +++ b/ga/src/model/DeleteApplicationMonitorRequest.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::Ga::Model::DeleteApplicationMonitorRequest; + +DeleteApplicationMonitorRequest::DeleteApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApplicationMonitorRequest::~DeleteApplicationMonitorRequest() {} + +std::string DeleteApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void DeleteApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void DeleteApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void DeleteApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/DeleteApplicationMonitorResult.cc b/ga/src/model/DeleteApplicationMonitorResult.cc new file mode 100644 index 000000000..6a289dca9 --- /dev/null +++ b/ga/src/model/DeleteApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteApplicationMonitorResult::DeleteApplicationMonitorResult() : + ServiceResult() +{} + +DeleteApplicationMonitorResult::DeleteApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationMonitorResult::~DeleteApplicationMonitorResult() +{} + +void DeleteApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteBandwidthPackageRequest.cc b/ga/src/model/DeleteBandwidthPackageRequest.cc index d8a248cbb..6f888cd24 100644 --- a/ga/src/model/DeleteBandwidthPackageRequest.cc +++ b/ga/src/model/DeleteBandwidthPackageRequest.cc @@ -1,62 +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::Ga::Model::DeleteBandwidthPackageRequest; - -DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() -{} - -std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteBandwidthPackageRequest; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() {} + +std::string DeleteBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DeleteBandwidthPackageRequest::getClientToken()const -{ - return clientToken_; +void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DeleteBandwidthPackageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteBandwidthPackageRequest::getClientToken() const { + return clientToken_; } -std::string DeleteBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void DeleteBandwidthPackageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteBandwidthPackageRequest::getRegionId() const { + return regionId_; +} + +void DeleteBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DeleteBasicAccelerateIpEndpointRelationRequest.cc b/ga/src/model/DeleteBasicAccelerateIpEndpointRelationRequest.cc new file mode 100644 index 000000000..6d2013eea --- /dev/null +++ b/ga/src/model/DeleteBasicAccelerateIpEndpointRelationRequest.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::Ga::Model::DeleteBasicAccelerateIpEndpointRelationRequest; + +DeleteBasicAccelerateIpEndpointRelationRequest::DeleteBasicAccelerateIpEndpointRelationRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicAccelerateIpEndpointRelation") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicAccelerateIpEndpointRelationRequest::~DeleteBasicAccelerateIpEndpointRelationRequest() {} + +std::string DeleteBasicAccelerateIpEndpointRelationRequest::getClientToken() const { + return clientToken_; +} + +void DeleteBasicAccelerateIpEndpointRelationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteBasicAccelerateIpEndpointRelationRequest::getEndpointId() const { + return endpointId_; +} + +void DeleteBasicAccelerateIpEndpointRelationRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DeleteBasicAccelerateIpEndpointRelationRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void DeleteBasicAccelerateIpEndpointRelationRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string DeleteBasicAccelerateIpEndpointRelationRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicAccelerateIpEndpointRelationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteBasicAccelerateIpEndpointRelationRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteBasicAccelerateIpEndpointRelationRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DeleteBasicAccelerateIpEndpointRelationResult.cc b/ga/src/model/DeleteBasicAccelerateIpEndpointRelationResult.cc new file mode 100644 index 000000000..75dd04654 --- /dev/null +++ b/ga/src/model/DeleteBasicAccelerateIpEndpointRelationResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicAccelerateIpEndpointRelationResult::DeleteBasicAccelerateIpEndpointRelationResult() : + ServiceResult() +{} + +DeleteBasicAccelerateIpEndpointRelationResult::DeleteBasicAccelerateIpEndpointRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicAccelerateIpEndpointRelationResult::~DeleteBasicAccelerateIpEndpointRelationResult() +{} + +void DeleteBasicAccelerateIpEndpointRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string DeleteBasicAccelerateIpEndpointRelationResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + +std::string DeleteBasicAccelerateIpEndpointRelationResult::getState()const +{ + return state_; +} + +std::string DeleteBasicAccelerateIpEndpointRelationResult::getEndpointId()const +{ + return endpointId_; +} + +std::string DeleteBasicAccelerateIpEndpointRelationResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/DeleteBasicAccelerateIpRequest.cc b/ga/src/model/DeleteBasicAccelerateIpRequest.cc new file mode 100644 index 000000000..134a949bc --- /dev/null +++ b/ga/src/model/DeleteBasicAccelerateIpRequest.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::Ga::Model::DeleteBasicAccelerateIpRequest; + +DeleteBasicAccelerateIpRequest::DeleteBasicAccelerateIpRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicAccelerateIp") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicAccelerateIpRequest::~DeleteBasicAccelerateIpRequest() {} + +std::string DeleteBasicAccelerateIpRequest::getClientToken() const { + return clientToken_; +} + +void DeleteBasicAccelerateIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteBasicAccelerateIpRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void DeleteBasicAccelerateIpRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string DeleteBasicAccelerateIpRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicAccelerateIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DeleteBasicAccelerateIpResult.cc b/ga/src/model/DeleteBasicAccelerateIpResult.cc new file mode 100644 index 000000000..5c5c9d789 --- /dev/null +++ b/ga/src/model/DeleteBasicAccelerateIpResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicAccelerateIpResult::DeleteBasicAccelerateIpResult() : + ServiceResult() +{} + +DeleteBasicAccelerateIpResult::DeleteBasicAccelerateIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicAccelerateIpResult::~DeleteBasicAccelerateIpResult() +{} + +void DeleteBasicAccelerateIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + +} + +std::string DeleteBasicAccelerateIpResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + diff --git a/ga/src/model/DeleteBasicAcceleratorRequest.cc b/ga/src/model/DeleteBasicAcceleratorRequest.cc new file mode 100644 index 000000000..2b6765c1b --- /dev/null +++ b/ga/src/model/DeleteBasicAcceleratorRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteBasicAcceleratorRequest; + +DeleteBasicAcceleratorRequest::DeleteBasicAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicAccelerator") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicAcceleratorRequest::~DeleteBasicAcceleratorRequest() {} + +std::string DeleteBasicAcceleratorRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteBasicAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteBasicAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DeleteBasicAcceleratorResult.cc b/ga/src/model/DeleteBasicAcceleratorResult.cc new file mode 100644 index 000000000..02fc58f04 --- /dev/null +++ b/ga/src/model/DeleteBasicAcceleratorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicAcceleratorResult::DeleteBasicAcceleratorResult() : + ServiceResult() +{} + +DeleteBasicAcceleratorResult::DeleteBasicAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicAcceleratorResult::~DeleteBasicAcceleratorResult() +{} + +void DeleteBasicAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string DeleteBasicAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/DeleteBasicEndpointGroupRequest.cc b/ga/src/model/DeleteBasicEndpointGroupRequest.cc new file mode 100644 index 000000000..0f634adde --- /dev/null +++ b/ga/src/model/DeleteBasicEndpointGroupRequest.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::Ga::Model::DeleteBasicEndpointGroupRequest; + +DeleteBasicEndpointGroupRequest::DeleteBasicEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicEndpointGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicEndpointGroupRequest::~DeleteBasicEndpointGroupRequest() {} + +std::string DeleteBasicEndpointGroupRequest::getClientToken() const { + return clientToken_; +} + +void DeleteBasicEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteBasicEndpointGroupRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteBasicEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DeleteBasicEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DeleteBasicEndpointGroupResult.cc b/ga/src/model/DeleteBasicEndpointGroupResult.cc new file mode 100644 index 000000000..9dab58e21 --- /dev/null +++ b/ga/src/model/DeleteBasicEndpointGroupResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicEndpointGroupResult::DeleteBasicEndpointGroupResult() : + ServiceResult() +{} + +DeleteBasicEndpointGroupResult::DeleteBasicEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicEndpointGroupResult::~DeleteBasicEndpointGroupResult() +{} + +void DeleteBasicEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteBasicEndpointRequest.cc b/ga/src/model/DeleteBasicEndpointRequest.cc new file mode 100644 index 000000000..c95811acc --- /dev/null +++ b/ga/src/model/DeleteBasicEndpointRequest.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::Ga::Model::DeleteBasicEndpointRequest; + +DeleteBasicEndpointRequest::DeleteBasicEndpointRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicEndpointRequest::~DeleteBasicEndpointRequest() {} + +std::string DeleteBasicEndpointRequest::getClientToken() const { + return clientToken_; +} + +void DeleteBasicEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteBasicEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void DeleteBasicEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DeleteBasicEndpointRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteBasicEndpointRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DeleteBasicEndpointRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DeleteBasicEndpointResult.cc b/ga/src/model/DeleteBasicEndpointResult.cc new file mode 100644 index 000000000..7fa6ac734 --- /dev/null +++ b/ga/src/model/DeleteBasicEndpointResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicEndpointResult::DeleteBasicEndpointResult() : + ServiceResult() +{} + +DeleteBasicEndpointResult::DeleteBasicEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicEndpointResult::~DeleteBasicEndpointResult() +{} + +void DeleteBasicEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + +} + +std::string DeleteBasicEndpointResult::getEndpointId()const +{ + return endpointId_; +} + diff --git a/ga/src/model/DeleteBasicIpSetRequest.cc b/ga/src/model/DeleteBasicIpSetRequest.cc new file mode 100644 index 000000000..06f5fea34 --- /dev/null +++ b/ga/src/model/DeleteBasicIpSetRequest.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::Ga::Model::DeleteBasicIpSetRequest; + +DeleteBasicIpSetRequest::DeleteBasicIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteBasicIpSet") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBasicIpSetRequest::~DeleteBasicIpSetRequest() {} + +std::string DeleteBasicIpSetRequest::getClientToken() const { + return clientToken_; +} + +void DeleteBasicIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteBasicIpSetRequest::getIpSetId() const { + return ipSetId_; +} + +void DeleteBasicIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string DeleteBasicIpSetRequest::getRegionId() const { + return regionId_; +} + +void DeleteBasicIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DeleteBasicIpSetResult.cc b/ga/src/model/DeleteBasicIpSetResult.cc new file mode 100644 index 000000000..77ebeac6b --- /dev/null +++ b/ga/src/model/DeleteBasicIpSetResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteBasicIpSetResult::DeleteBasicIpSetResult() : + ServiceResult() +{} + +DeleteBasicIpSetResult::DeleteBasicIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBasicIpSetResult::~DeleteBasicIpSetResult() +{} + +void DeleteBasicIpSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.cc b/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.cc new file mode 100644 index 000000000..e53a1974d --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsRequest.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 + +using AlibabaCloud::Ga::Model::DeleteCustomRoutingEndpointGroupDestinationsRequest; + +DeleteCustomRoutingEndpointGroupDestinationsRequest::DeleteCustomRoutingEndpointGroupDestinationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteCustomRoutingEndpointGroupDestinations") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomRoutingEndpointGroupDestinationsRequest::~DeleteCustomRoutingEndpointGroupDestinationsRequest() {} + +std::vector DeleteCustomRoutingEndpointGroupDestinationsRequest::getDestinationIds() const { + return destinationIds_; +} + +void DeleteCustomRoutingEndpointGroupDestinationsRequest::setDestinationIds(const std::vector &destinationIds) { + destinationIds_ = destinationIds; +} + +bool DeleteCustomRoutingEndpointGroupDestinationsRequest::getDryRun() const { + return dryRun_; +} + +void DeleteCustomRoutingEndpointGroupDestinationsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteCustomRoutingEndpointGroupDestinationsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCustomRoutingEndpointGroupDestinationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteCustomRoutingEndpointGroupDestinationsRequest::getRegionId() const { + return regionId_; +} + +void DeleteCustomRoutingEndpointGroupDestinationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCustomRoutingEndpointGroupDestinationsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DeleteCustomRoutingEndpointGroupDestinationsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsResult.cc b/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsResult.cc new file mode 100644 index 000000000..0b429a8aa --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointGroupDestinationsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteCustomRoutingEndpointGroupDestinationsResult::DeleteCustomRoutingEndpointGroupDestinationsResult() : + ServiceResult() +{} + +DeleteCustomRoutingEndpointGroupDestinationsResult::DeleteCustomRoutingEndpointGroupDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomRoutingEndpointGroupDestinationsResult::~DeleteCustomRoutingEndpointGroupDestinationsResult() +{} + +void DeleteCustomRoutingEndpointGroupDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointGroupsRequest.cc b/ga/src/model/DeleteCustomRoutingEndpointGroupsRequest.cc new file mode 100644 index 000000000..4e5acc26b --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointGroupsRequest.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 + +using AlibabaCloud::Ga::Model::DeleteCustomRoutingEndpointGroupsRequest; + +DeleteCustomRoutingEndpointGroupsRequest::DeleteCustomRoutingEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteCustomRoutingEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomRoutingEndpointGroupsRequest::~DeleteCustomRoutingEndpointGroupsRequest() {} + +bool DeleteCustomRoutingEndpointGroupsRequest::getDryRun() const { + return dryRun_; +} + +void DeleteCustomRoutingEndpointGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteCustomRoutingEndpointGroupsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCustomRoutingEndpointGroupsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DeleteCustomRoutingEndpointGroupsRequest::getEndpointGroupIds() const { + return endpointGroupIds_; +} + +void DeleteCustomRoutingEndpointGroupsRequest::setEndpointGroupIds(const std::vector &endpointGroupIds) { + endpointGroupIds_ = endpointGroupIds; +} + +std::string DeleteCustomRoutingEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void DeleteCustomRoutingEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCustomRoutingEndpointGroupsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteCustomRoutingEndpointGroupsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointGroupsResult.cc b/ga/src/model/DeleteCustomRoutingEndpointGroupsResult.cc new file mode 100644 index 000000000..8de46706e --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointGroupsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteCustomRoutingEndpointGroupsResult::DeleteCustomRoutingEndpointGroupsResult() : + ServiceResult() +{} + +DeleteCustomRoutingEndpointGroupsResult::DeleteCustomRoutingEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomRoutingEndpointGroupsResult::~DeleteCustomRoutingEndpointGroupsResult() +{} + +void DeleteCustomRoutingEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.cc b/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.cc new file mode 100644 index 000000000..8de8db816 --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteCustomRoutingEndpointTrafficPoliciesRequest; + +DeleteCustomRoutingEndpointTrafficPoliciesRequest::DeleteCustomRoutingEndpointTrafficPoliciesRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteCustomRoutingEndpointTrafficPolicies") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomRoutingEndpointTrafficPoliciesRequest::~DeleteCustomRoutingEndpointTrafficPoliciesRequest() {} + +std::string DeleteCustomRoutingEndpointTrafficPoliciesRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCustomRoutingEndpointTrafficPoliciesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteCustomRoutingEndpointTrafficPoliciesRequest::getEndpointId() const { + return endpointId_; +} + +void DeleteCustomRoutingEndpointTrafficPoliciesRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::vector DeleteCustomRoutingEndpointTrafficPoliciesRequest::getPolicyIds() const { + return policyIds_; +} + +void DeleteCustomRoutingEndpointTrafficPoliciesRequest::setPolicyIds(const std::vector &policyIds) { + policyIds_ = policyIds; +} + +std::string DeleteCustomRoutingEndpointTrafficPoliciesRequest::getRegionId() const { + return regionId_; +} + +void DeleteCustomRoutingEndpointTrafficPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.cc b/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.cc new file mode 100644 index 000000000..6c1d4700e --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointTrafficPoliciesResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteCustomRoutingEndpointTrafficPoliciesResult::DeleteCustomRoutingEndpointTrafficPoliciesResult() : + ServiceResult() +{} + +DeleteCustomRoutingEndpointTrafficPoliciesResult::DeleteCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomRoutingEndpointTrafficPoliciesResult::~DeleteCustomRoutingEndpointTrafficPoliciesResult() +{} + +void DeleteCustomRoutingEndpointTrafficPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointsRequest.cc b/ga/src/model/DeleteCustomRoutingEndpointsRequest.cc new file mode 100644 index 000000000..78f926314 --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteCustomRoutingEndpointsRequest; + +DeleteCustomRoutingEndpointsRequest::DeleteCustomRoutingEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteCustomRoutingEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCustomRoutingEndpointsRequest::~DeleteCustomRoutingEndpointsRequest() {} + +std::string DeleteCustomRoutingEndpointsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteCustomRoutingEndpointsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DeleteCustomRoutingEndpointsRequest::getEndpointIds() const { + return endpointIds_; +} + +void DeleteCustomRoutingEndpointsRequest::setEndpointIds(const std::vector &endpointIds) { + endpointIds_ = endpointIds; +} + +std::string DeleteCustomRoutingEndpointsRequest::getRegionId() const { + return regionId_; +} + +void DeleteCustomRoutingEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCustomRoutingEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DeleteCustomRoutingEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DeleteCustomRoutingEndpointsResult.cc b/ga/src/model/DeleteCustomRoutingEndpointsResult.cc new file mode 100644 index 000000000..d3e5d463a --- /dev/null +++ b/ga/src/model/DeleteCustomRoutingEndpointsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteCustomRoutingEndpointsResult::DeleteCustomRoutingEndpointsResult() : + ServiceResult() +{} + +DeleteCustomRoutingEndpointsResult::DeleteCustomRoutingEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCustomRoutingEndpointsResult::~DeleteCustomRoutingEndpointsResult() +{} + +void DeleteCustomRoutingEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteDomainAcceleratorRelationRequest.cc b/ga/src/model/DeleteDomainAcceleratorRelationRequest.cc new file mode 100644 index 000000000..67a742f21 --- /dev/null +++ b/ga/src/model/DeleteDomainAcceleratorRelationRequest.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::Ga::Model::DeleteDomainAcceleratorRelationRequest; + +DeleteDomainAcceleratorRelationRequest::DeleteDomainAcceleratorRelationRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteDomainAcceleratorRelation") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDomainAcceleratorRelationRequest::~DeleteDomainAcceleratorRelationRequest() {} + +std::vector DeleteDomainAcceleratorRelationRequest::getAcceleratorIds() const { + return acceleratorIds_; +} + +void DeleteDomainAcceleratorRelationRequest::setAcceleratorIds(const std::vector &acceleratorIds) { + acceleratorIds_ = acceleratorIds; +} + +std::string DeleteDomainAcceleratorRelationRequest::getRegionId() const { + return regionId_; +} + +void DeleteDomainAcceleratorRelationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteDomainAcceleratorRelationRequest::getDomain() const { + return domain_; +} + +void DeleteDomainAcceleratorRelationRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/ga/src/model/DeleteDomainAcceleratorRelationResult.cc b/ga/src/model/DeleteDomainAcceleratorRelationResult.cc new file mode 100644 index 000000000..3c35b365e --- /dev/null +++ b/ga/src/model/DeleteDomainAcceleratorRelationResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteDomainAcceleratorRelationResult::DeleteDomainAcceleratorRelationResult() : + ServiceResult() +{} + +DeleteDomainAcceleratorRelationResult::DeleteDomainAcceleratorRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDomainAcceleratorRelationResult::~DeleteDomainAcceleratorRelationResult() +{} + +void DeleteDomainAcceleratorRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteEndpointGroupRequest.cc b/ga/src/model/DeleteEndpointGroupRequest.cc index 584967be7..19b547263 100644 --- a/ga/src/model/DeleteEndpointGroupRequest.cc +++ b/ga/src/model/DeleteEndpointGroupRequest.cc @@ -1,73 +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::Ga::Model::DeleteEndpointGroupRequest; - -DeleteEndpointGroupRequest::DeleteEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteEndpointGroupRequest::~DeleteEndpointGroupRequest() -{} - -std::string DeleteEndpointGroupRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteEndpointGroupRequest; + +DeleteEndpointGroupRequest::DeleteEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteEndpointGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DeleteEndpointGroupRequest::~DeleteEndpointGroupRequest() {} + +std::string DeleteEndpointGroupRequest::getClientToken() const { + return clientToken_; } -std::string DeleteEndpointGroupRequest::getRegionId()const -{ - return regionId_; +void DeleteEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteEndpointGroupRequest::getRegionId() const { + return regionId_; } -std::string DeleteEndpointGroupRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DeleteEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DeleteEndpointGroupRequest::getAcceleratorId() const { + return acceleratorId_; } -std::string DeleteEndpointGroupRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void DeleteEndpointGroupRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void DeleteEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::string DeleteEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DeleteEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } diff --git a/ga/src/model/DeleteEndpointGroupsRequest.cc b/ga/src/model/DeleteEndpointGroupsRequest.cc new file mode 100644 index 000000000..1fffab83a --- /dev/null +++ b/ga/src/model/DeleteEndpointGroupsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteEndpointGroupsRequest; + +DeleteEndpointGroupsRequest::DeleteEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEndpointGroupsRequest::~DeleteEndpointGroupsRequest() {} + +bool DeleteEndpointGroupsRequest::getDryRun() const { + return dryRun_; +} + +void DeleteEndpointGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteEndpointGroupsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteEndpointGroupsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DeleteEndpointGroupsRequest::getEndpointGroupIds() const { + return endpointGroupIds_; +} + +void DeleteEndpointGroupsRequest::setEndpointGroupIds(const std::vector &endpointGroupIds) { + endpointGroupIds_ = endpointGroupIds; +} + +std::string DeleteEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void DeleteEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DeleteEndpointGroupsResult.cc b/ga/src/model/DeleteEndpointGroupsResult.cc new file mode 100644 index 000000000..c5668d447 --- /dev/null +++ b/ga/src/model/DeleteEndpointGroupsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteEndpointGroupsResult::DeleteEndpointGroupsResult() : + ServiceResult() +{} + +DeleteEndpointGroupsResult::DeleteEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEndpointGroupsResult::~DeleteEndpointGroupsResult() +{} + +void DeleteEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DeleteForwardingRulesRequest.cc b/ga/src/model/DeleteForwardingRulesRequest.cc index f1b7739e2..f6d61e654 100644 --- a/ga/src/model/DeleteForwardingRulesRequest.cc +++ b/ga/src/model/DeleteForwardingRulesRequest.cc @@ -1,84 +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::Ga::Model::DeleteForwardingRulesRequest; - -DeleteForwardingRulesRequest::DeleteForwardingRulesRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteForwardingRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteForwardingRulesRequest::~DeleteForwardingRulesRequest() -{} - -std::string DeleteForwardingRulesRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteForwardingRulesRequest; + +DeleteForwardingRulesRequest::DeleteForwardingRulesRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteForwardingRules") { + setMethod(HttpRequest::Method::Post); } -void DeleteForwardingRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DeleteForwardingRulesRequest::~DeleteForwardingRulesRequest() {} + +std::string DeleteForwardingRulesRequest::getClientToken() const { + return clientToken_; } -std::string DeleteForwardingRulesRequest::getListenerId()const -{ - return listenerId_; +void DeleteForwardingRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteForwardingRulesRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string DeleteForwardingRulesRequest::getListenerId() const { + return listenerId_; } -std::string DeleteForwardingRulesRequest::getRegionId()const -{ - return regionId_; +void DeleteForwardingRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void DeleteForwardingRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteForwardingRulesRequest::getRegionId() const { + return regionId_; } -std::string DeleteForwardingRulesRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DeleteForwardingRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DeleteForwardingRulesRequest::getAcceleratorId() const { + return acceleratorId_; } -Array DeleteForwardingRulesRequest::getForwardingRuleIds()const -{ - return forwardingRuleIds_; +void DeleteForwardingRulesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void DeleteForwardingRulesRequest::setForwardingRuleIds(const Array& forwardingRuleIds) -{ - forwardingRuleIds_ = forwardingRuleIds; - setParameter("ForwardingRuleIds", std::to_string(forwardingRuleIds)); +std::vector DeleteForwardingRulesRequest::getForwardingRuleIds() const { + return forwardingRuleIds_; +} + +void DeleteForwardingRulesRequest::setForwardingRuleIds(const std::vector &forwardingRuleIds) { + forwardingRuleIds_ = forwardingRuleIds; + for(int dep1 = 0; dep1 != forwardingRuleIds.size(); dep1++) { + setParameter(std::string("ForwardingRuleIds") + "." + std::to_string(dep1 + 1), forwardingRuleIds[dep1]); + } } diff --git a/ga/src/model/DeleteIpSetRequest.cc b/ga/src/model/DeleteIpSetRequest.cc index e14e8b331..3ca5ab618 100644 --- a/ga/src/model/DeleteIpSetRequest.cc +++ b/ga/src/model/DeleteIpSetRequest.cc @@ -1,73 +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::Ga::Model::DeleteIpSetRequest; - -DeleteIpSetRequest::DeleteIpSetRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteIpSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIpSetRequest::~DeleteIpSetRequest() -{} - -std::string DeleteIpSetRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteIpSetRequest; + +DeleteIpSetRequest::DeleteIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteIpSet") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DeleteIpSetRequest::~DeleteIpSetRequest() {} + +std::string DeleteIpSetRequest::getClientToken() const { + return clientToken_; } -std::string DeleteIpSetRequest::getIpSetId()const -{ - return ipSetId_; +void DeleteIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteIpSetRequest::setIpSetId(const std::string& ipSetId) -{ - ipSetId_ = ipSetId; - setParameter("IpSetId", ipSetId); +std::string DeleteIpSetRequest::getIpSetId() const { + return ipSetId_; } -std::string DeleteIpSetRequest::getRegionId()const -{ - return regionId_; +void DeleteIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); } -void DeleteIpSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpSetRequest::getRegionId() const { + return regionId_; } -std::string DeleteIpSetRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DeleteIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteIpSetRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DeleteIpSetRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteIpSetRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DeleteIpSetsRequest.cc b/ga/src/model/DeleteIpSetsRequest.cc index 5306a14dd..89dd28595 100644 --- a/ga/src/model/DeleteIpSetsRequest.cc +++ b/ga/src/model/DeleteIpSetsRequest.cc @@ -1,53 +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 - -using AlibabaCloud::Ga::Model::DeleteIpSetsRequest; - -DeleteIpSetsRequest::DeleteIpSetsRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteIpSets") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIpSetsRequest::~DeleteIpSetsRequest() -{} - -std::vector DeleteIpSetsRequest::getIpSetIds()const -{ - return ipSetIds_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteIpSetsRequest; + +DeleteIpSetsRequest::DeleteIpSetsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteIpSets") { + setMethod(HttpRequest::Method::Post); } -void DeleteIpSetsRequest::setIpSetIds(const std::vector& ipSetIds) -{ - ipSetIds_ = ipSetIds; - for(int dep1 = 0; dep1!= ipSetIds.size(); dep1++) { - setParameter("IpSetIds."+ std::to_string(dep1), ipSetIds.at(dep1)); - } +DeleteIpSetsRequest::~DeleteIpSetsRequest() {} + +std::vector DeleteIpSetsRequest::getIpSetIds() const { + return ipSetIds_; } -std::string DeleteIpSetsRequest::getRegionId()const -{ - return regionId_; +void DeleteIpSetsRequest::setIpSetIds(const std::vector &ipSetIds) { + ipSetIds_ = ipSetIds; } -void DeleteIpSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteIpSetsRequest::getRegionId() const { + return regionId_; +} + +void DeleteIpSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DeleteListenerRequest.cc b/ga/src/model/DeleteListenerRequest.cc index 17599d8ad..199372f00 100644 --- a/ga/src/model/DeleteListenerRequest.cc +++ b/ga/src/model/DeleteListenerRequest.cc @@ -1,73 +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::Ga::Model::DeleteListenerRequest; - -DeleteListenerRequest::DeleteListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "DeleteListener") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteListenerRequest::~DeleteListenerRequest() -{} - -std::string DeleteListenerRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteListenerRequest; + +DeleteListenerRequest::DeleteListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteListener") { + setMethod(HttpRequest::Method::Post); } -void DeleteListenerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DeleteListenerRequest::~DeleteListenerRequest() {} + +std::string DeleteListenerRequest::getClientToken() const { + return clientToken_; } -std::string DeleteListenerRequest::getListenerId()const -{ - return listenerId_; +void DeleteListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteListenerRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string DeleteListenerRequest::getListenerId() const { + return listenerId_; } -std::string DeleteListenerRequest::getRegionId()const -{ - return regionId_; +void DeleteListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void DeleteListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteListenerRequest::getRegionId() const { + return regionId_; } -std::string DeleteListenerRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DeleteListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteListenerRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DeleteListenerRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteListenerRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DeleteSpareIpsRequest.cc b/ga/src/model/DeleteSpareIpsRequest.cc new file mode 100644 index 000000000..48c1c55a7 --- /dev/null +++ b/ga/src/model/DeleteSpareIpsRequest.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 + +using AlibabaCloud::Ga::Model::DeleteSpareIpsRequest; + +DeleteSpareIpsRequest::DeleteSpareIpsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DeleteSpareIps") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSpareIpsRequest::~DeleteSpareIpsRequest() {} + +bool DeleteSpareIpsRequest::getDryRun() const { + return dryRun_; +} + +void DeleteSpareIpsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteSpareIpsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteSpareIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DeleteSpareIpsRequest::getSpareIps() const { + return spareIps_; +} + +void DeleteSpareIpsRequest::setSpareIps(const std::vector &spareIps) { + spareIps_ = spareIps; +} + +std::string DeleteSpareIpsRequest::getRegionId() const { + return regionId_; +} + +void DeleteSpareIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteSpareIpsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DeleteSpareIpsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DeleteSpareIpsResult.cc b/ga/src/model/DeleteSpareIpsResult.cc new file mode 100644 index 000000000..601e01e3f --- /dev/null +++ b/ga/src/model/DeleteSpareIpsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteSpareIpsResult::DeleteSpareIpsResult() : + ServiceResult() +{} + +DeleteSpareIpsResult::DeleteSpareIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSpareIpsResult::~DeleteSpareIpsResult() +{} + +void DeleteSpareIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DescribeAcceleratorAutoRenewAttributeRequest.cc b/ga/src/model/DescribeAcceleratorAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..2ce638387 --- /dev/null +++ b/ga/src/model/DescribeAcceleratorAutoRenewAttributeRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeAcceleratorAutoRenewAttributeRequest; + +DescribeAcceleratorAutoRenewAttributeRequest::DescribeAcceleratorAutoRenewAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeAcceleratorAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAcceleratorAutoRenewAttributeRequest::~DescribeAcceleratorAutoRenewAttributeRequest() {} + +std::string DescribeAcceleratorAutoRenewAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeAcceleratorAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAcceleratorAutoRenewAttributeRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DescribeAcceleratorAutoRenewAttributeRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DescribeAcceleratorAutoRenewAttributeResult.cc b/ga/src/model/DescribeAcceleratorAutoRenewAttributeResult.cc new file mode 100644 index 000000000..680c13785 --- /dev/null +++ b/ga/src/model/DescribeAcceleratorAutoRenewAttributeResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeAcceleratorAutoRenewAttributeResult::DescribeAcceleratorAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeAcceleratorAutoRenewAttributeResult::DescribeAcceleratorAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAcceleratorAutoRenewAttributeResult::~DescribeAcceleratorAutoRenewAttributeResult() +{} + +void DescribeAcceleratorAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["AutoRenew"].isNull()) + autoRenew_ = value["AutoRenew"].asString() == "true"; + if(!value["AutoRenewDuration"].isNull()) + autoRenewDuration_ = std::stoi(value["AutoRenewDuration"].asString()); + if(!value["RenewalStatus"].isNull()) + renewalStatus_ = value["RenewalStatus"].asString(); + +} + +bool DescribeAcceleratorAutoRenewAttributeResult::getAutoRenew()const +{ + return autoRenew_; +} + +std::string DescribeAcceleratorAutoRenewAttributeResult::getRenewalStatus()const +{ + return renewalStatus_; +} + +std::string DescribeAcceleratorAutoRenewAttributeResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +int DescribeAcceleratorAutoRenewAttributeResult::getAutoRenewDuration()const +{ + return autoRenewDuration_; +} + diff --git a/ga/src/model/DescribeAcceleratorRequest.cc b/ga/src/model/DescribeAcceleratorRequest.cc index 07e1902f9..52e3b070e 100644 --- a/ga/src/model/DescribeAcceleratorRequest.cc +++ b/ga/src/model/DescribeAcceleratorRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DescribeAcceleratorRequest; - -DescribeAcceleratorRequest::DescribeAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAcceleratorRequest::~DescribeAcceleratorRequest() -{} - -std::string DescribeAcceleratorRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeAcceleratorRequest; + +DescribeAcceleratorRequest::DescribeAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeAccelerator") { + setMethod(HttpRequest::Method::Post); } -void DescribeAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DescribeAcceleratorRequest::~DescribeAcceleratorRequest() {} + +std::string DescribeAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string DescribeAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DescribeAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DescribeAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DescribeAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DescribeAcceleratorResult.cc b/ga/src/model/DescribeAcceleratorResult.cc index f8bbd7fd1..a7e0a0ba8 100644 --- a/ga/src/model/DescribeAcceleratorResult.cc +++ b/ga/src/model/DescribeAcceleratorResult.cc @@ -39,18 +39,31 @@ void DescribeAcceleratorResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); + } + auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"]; + if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull()) + crossDomainBandwidthPackage_.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString()); + if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) + crossDomainBandwidthPackage_.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + if(!basicBandwidthPackageNode["Bandwidth"].isNull()) + basicBandwidthPackage_.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); if(!basicBandwidthPackageNode["BandwidthType"].isNull()) basicBandwidthPackage_.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString(); if(!basicBandwidthPackageNode["InstanceId"].isNull()) basicBandwidthPackage_.instanceId = basicBandwidthPackageNode["InstanceId"].asString(); - if(!basicBandwidthPackageNode["Bandwidth"].isNull()) - basicBandwidthPackage_.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); - auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"]; - if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) - crossDomainBandwidthPackage_.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); - if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull()) - crossDomainBandwidthPackage_.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString()); + auto ipSetConfigNode = value["IpSetConfig"]; + if(!ipSetConfigNode["AccessMode"].isNull()) + ipSetConfig_.accessMode = ipSetConfigNode["AccessMode"].asString(); if(!value["DdosId"].isNull()) ddosId_ = value["DdosId"].asString(); if(!value["DnsName"].isNull()) @@ -77,9 +90,26 @@ void DescribeAcceleratorResult::parse(const std::string &payload) spec_ = value["Spec"].asString(); if(!value["AcceleratorId"].isNull()) acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["BandwidthBillingType"].isNull()) + bandwidthBillingType_ = value["BandwidthBillingType"].asString(); + if(!value["CrossPrivateState"].isNull()) + crossPrivateState_ = value["CrossPrivateState"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["CrossBorderMode"].isNull()) + crossBorderMode_ = value["CrossBorderMode"].asString(); + if(!value["CrossBorderStatus"].isNull()) + crossBorderStatus_ = value["CrossBorderStatus"].asString() == "true"; + if(!value["UpgradableStatus"].isNull()) + upgradableStatus_ = value["UpgradableStatus"].asString(); } +std::string DescribeAcceleratorResult::getUpgradableStatus()const +{ + return upgradableStatus_; +} + std::string DescribeAcceleratorResult::getDdosId()const { return ddosId_; @@ -95,6 +125,11 @@ std::string DescribeAcceleratorResult::getDescription()const return description_; } +std::string DescribeAcceleratorResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string DescribeAcceleratorResult::getInstanceChargeType()const { return instanceChargeType_; @@ -110,6 +145,11 @@ DescribeAcceleratorResult::CrossDomainBandwidthPackage DescribeAcceleratorResult return crossDomainBandwidthPackage_; } +DescribeAcceleratorResult::IpSetConfig DescribeAcceleratorResult::getIpSetConfig()const +{ + return ipSetConfig_; +} + std::string DescribeAcceleratorResult::getSecondDnsName()const { return secondDnsName_; @@ -120,6 +160,16 @@ std::string DescribeAcceleratorResult::getName()const return name_; } +std::string DescribeAcceleratorResult::getCrossBorderMode()const +{ + return crossBorderMode_; +} + +std::string DescribeAcceleratorResult::getBandwidthBillingType()const +{ + return bandwidthBillingType_; +} + DescribeAcceleratorResult::BasicBandwidthPackage DescribeAcceleratorResult::getBasicBandwidthPackage()const { return basicBandwidthPackage_; @@ -140,6 +190,11 @@ std::string DescribeAcceleratorResult::getCenId()const return cenId_; } +std::string DescribeAcceleratorResult::getCrossPrivateState()const +{ + return crossPrivateState_; +} + std::string DescribeAcceleratorResult::getRegionId()const { return regionId_; @@ -155,3 +210,13 @@ std::string DescribeAcceleratorResult::getAcceleratorId()const return acceleratorId_; } +std::vector DescribeAcceleratorResult::getTags()const +{ + return tags_; +} + +bool DescribeAcceleratorResult::getCrossBorderStatus()const +{ + return crossBorderStatus_; +} + diff --git a/ga/src/model/DescribeApplicationMonitorRequest.cc b/ga/src/model/DescribeApplicationMonitorRequest.cc new file mode 100644 index 000000000..f9e4b16d4 --- /dev/null +++ b/ga/src/model/DescribeApplicationMonitorRequest.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::Ga::Model::DescribeApplicationMonitorRequest; + +DescribeApplicationMonitorRequest::DescribeApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationMonitorRequest::~DescribeApplicationMonitorRequest() {} + +std::string DescribeApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void DescribeApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void DescribeApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void DescribeApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/DescribeApplicationMonitorResult.cc b/ga/src/model/DescribeApplicationMonitorResult.cc new file mode 100644 index 000000000..1172a6527 --- /dev/null +++ b/ga/src/model/DescribeApplicationMonitorResult.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeApplicationMonitorResult::DescribeApplicationMonitorResult() : + ServiceResult() +{} + +DescribeApplicationMonitorResult::DescribeApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationMonitorResult::~DescribeApplicationMonitorResult() +{} + +void DescribeApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIspCityListNode = value["IspCityList"]["探测点列表"]; + for (auto valueIspCityList探测点列表 : allIspCityListNode) + { + 探测点列表 ispCityListObject; + if(!valueIspCityList探测点列表["Isp"].isNull()) + ispCityListObject.isp = valueIspCityList探测点列表["Isp"].asString(); + if(!valueIspCityList探测点列表["IspName"].isNull()) + ispCityListObject.ispName = valueIspCityList探测点列表["IspName"].asString(); + if(!valueIspCityList探测点列表["City"].isNull()) + ispCityListObject.city = valueIspCityList探测点列表["City"].asString(); + if(!valueIspCityList探测点列表["CityName"].isNull()) + ispCityListObject.cityName = valueIspCityList探测点列表["CityName"].asString(); + ispCityList_.push_back(ispCityListObject); + } + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TaskName"].isNull()) + taskName_ = value["TaskName"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["OptionsJson"].isNull()) + optionsJson_ = value["OptionsJson"].asString(); + if(!value["DetectEnable"].isNull()) + detectEnable_ = value["DetectEnable"].asString() == "true"; + if(!value["DetectThreshold"].isNull()) + detectThreshold_ = std::stoi(value["DetectThreshold"].asString()); + if(!value["DetectTimes"].isNull()) + detectTimes_ = std::stoi(value["DetectTimes"].asString()); + if(!value["SilenceTime"].isNull()) + silenceTime_ = std::stoi(value["SilenceTime"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +int DescribeApplicationMonitorResult::getSilenceTime()const +{ + return silenceTime_; +} + +int DescribeApplicationMonitorResult::getDetectThreshold()const +{ + return detectThreshold_; +} + +std::string DescribeApplicationMonitorResult::getTaskId()const +{ + return taskId_; +} + +std::string DescribeApplicationMonitorResult::getAddress()const +{ + return address_; +} + +bool DescribeApplicationMonitorResult::getDetectEnable()const +{ + return detectEnable_; +} + +std::string DescribeApplicationMonitorResult::getTaskName()const +{ + return taskName_; +} + +std::string DescribeApplicationMonitorResult::getOptionsJson()const +{ + return optionsJson_; +} + +std::string DescribeApplicationMonitorResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeApplicationMonitorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +int DescribeApplicationMonitorResult::getDetectTimes()const +{ + return detectTimes_; +} + +std::vector DescribeApplicationMonitorResult::getIspCityList()const +{ + return ispCityList_; +} + +std::string DescribeApplicationMonitorResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeRequest.cc b/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..cd9324575 --- /dev/null +++ b/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeBandwidthPackageAutoRenewAttributeRequest; + +DescribeBandwidthPackageAutoRenewAttributeRequest::DescribeBandwidthPackageAutoRenewAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeBandwidthPackageAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBandwidthPackageAutoRenewAttributeRequest::~DescribeBandwidthPackageAutoRenewAttributeRequest() {} + +std::string DescribeBandwidthPackageAutoRenewAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeBandwidthPackageAutoRenewAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeBandwidthPackageAutoRenewAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeBandwidthPackageAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeResult.cc b/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeResult.cc new file mode 100644 index 000000000..1cda7353c --- /dev/null +++ b/ga/src/model/DescribeBandwidthPackageAutoRenewAttributeResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeBandwidthPackageAutoRenewAttributeResult::DescribeBandwidthPackageAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeBandwidthPackageAutoRenewAttributeResult::DescribeBandwidthPackageAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackageAutoRenewAttributeResult::~DescribeBandwidthPackageAutoRenewAttributeResult() +{} + +void DescribeBandwidthPackageAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["AutoRenew"].isNull()) + autoRenew_ = value["AutoRenew"].asString() == "true"; + if(!value["AutoRenewDuration"].isNull()) + autoRenewDuration_ = std::stoi(value["AutoRenewDuration"].asString()); + if(!value["RenewalStatus"].isNull()) + renewalStatus_ = value["RenewalStatus"].asString(); + +} + +std::string DescribeBandwidthPackageAutoRenewAttributeResult::getInstanceId()const +{ + return instanceId_; +} + +bool DescribeBandwidthPackageAutoRenewAttributeResult::getAutoRenew()const +{ + return autoRenew_; +} + +std::string DescribeBandwidthPackageAutoRenewAttributeResult::getRenewalStatus()const +{ + return renewalStatus_; +} + +int DescribeBandwidthPackageAutoRenewAttributeResult::getAutoRenewDuration()const +{ + return autoRenewDuration_; +} + diff --git a/ga/src/model/DescribeBandwidthPackageRequest.cc b/ga/src/model/DescribeBandwidthPackageRequest.cc index 6ff103db8..100bcd445 100644 --- a/ga/src/model/DescribeBandwidthPackageRequest.cc +++ b/ga/src/model/DescribeBandwidthPackageRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DescribeBandwidthPackageRequest; - -DescribeBandwidthPackageRequest::DescribeBandwidthPackageRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBandwidthPackageRequest::~DescribeBandwidthPackageRequest() -{} - -std::string DescribeBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeBandwidthPackageRequest; + +DescribeBandwidthPackageRequest::DescribeBandwidthPackageRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void DescribeBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +DescribeBandwidthPackageRequest::~DescribeBandwidthPackageRequest() {} + +std::string DescribeBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DescribeBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void DescribeBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DescribeBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBandwidthPackageRequest::getRegionId() const { + return regionId_; +} + +void DescribeBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DescribeBandwidthPackageResult.cc b/ga/src/model/DescribeBandwidthPackageResult.cc index ed2b6adf8..71d1837a8 100644 --- a/ga/src/model/DescribeBandwidthPackageResult.cc +++ b/ga/src/model/DescribeBandwidthPackageResult.cc @@ -39,15 +39,25 @@ void DescribeBandwidthPackageResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); + } auto allAccelerators = value["Accelerators"]["Accelerator"]; for (const auto &item : allAccelerators) accelerators_.push_back(item.asString()); if(!value["CbnGeographicRegionIdB"].isNull()) cbnGeographicRegionIdB_ = value["CbnGeographicRegionIdB"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["CbnGeographicRegionIdA"].isNull()) cbnGeographicRegionIdA_ = value["CbnGeographicRegionIdA"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); if(!value["Name"].isNull()) @@ -56,22 +66,24 @@ void DescribeBandwidthPackageResult::parse(const std::string &payload) bandwidthType_ = value["BandwidthType"].asString(); if(!value["Type"].isNull()) type_ = value["Type"].asString(); - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); - if(!value["ExpiredTime"].isNull()) - expiredTime_ = value["ExpiredTime"].asString(); + if(!value["ChargeType"].isNull()) + chargeType_ = value["ChargeType"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = value["ExpiredTime"].asString(); if(!value["BandwidthPackageId"].isNull()) bandwidthPackageId_ = value["BandwidthPackageId"].asString(); - if(!value["Ratio"].isNull()) - ratio_ = std::stoi(value["Ratio"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); if(!value["BillingType"].isNull()) billingType_ = value["BillingType"].asString(); + if(!value["Ratio"].isNull()) + ratio_ = std::stoi(value["Ratio"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -80,14 +92,19 @@ std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdB()const return cbnGeographicRegionIdB_; } +std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdA()const +{ + return cbnGeographicRegionIdA_; +} + std::string DescribeBandwidthPackageResult::getDescription()const { return description_; } -std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdA()const +std::string DescribeBandwidthPackageResult::getResourceGroupId()const { - return cbnGeographicRegionIdA_; + return resourceGroupId_; } std::string DescribeBandwidthPackageResult::getCreateTime()const @@ -115,19 +132,14 @@ std::vector DescribeBandwidthPackageResult::getAccelerators()const return accelerators_; } -std::string DescribeBandwidthPackageResult::getChargeType()const -{ - return chargeType_; -} - std::string DescribeBandwidthPackageResult::getState()const { return state_; } -std::string DescribeBandwidthPackageResult::getExpiredTime()const +std::string DescribeBandwidthPackageResult::getChargeType()const { - return expiredTime_; + return chargeType_; } int DescribeBandwidthPackageResult::getBandwidth()const @@ -135,6 +147,11 @@ int DescribeBandwidthPackageResult::getBandwidth()const return bandwidth_; } +std::string DescribeBandwidthPackageResult::getExpiredTime()const +{ + return expiredTime_; +} + std::string DescribeBandwidthPackageResult::getBandwidthPackageId()const { return bandwidthPackageId_; @@ -150,6 +167,11 @@ std::string DescribeBandwidthPackageResult::getRegionId()const return regionId_; } +std::vector DescribeBandwidthPackageResult::getTags()const +{ + return tags_; +} + std::string DescribeBandwidthPackageResult::getBillingType()const { return billingType_; diff --git a/ga/src/model/DescribeCommodityPriceRequest.cc b/ga/src/model/DescribeCommodityPriceRequest.cc new file mode 100644 index 000000000..8fba9abd0 --- /dev/null +++ b/ga/src/model/DescribeCommodityPriceRequest.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::Ga::Model::DescribeCommodityPriceRequest; + +DescribeCommodityPriceRequest::DescribeCommodityPriceRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCommodityPrice") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCommodityPriceRequest::~DescribeCommodityPriceRequest() {} + +std::string DescribeCommodityPriceRequest::getPromotionOptionNo() const { + return promotionOptionNo_; +} + +void DescribeCommodityPriceRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); +} + +std::string DescribeCommodityPriceRequest::getRegionId() const { + return regionId_; +} + +void DescribeCommodityPriceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeCommodityPriceRequest::getOrders() const { + return orders_; +} + +void DescribeCommodityPriceRequest::setOrders(const std::vector &orders) { + orders_ = orders; + for(int dep1 = 0; dep1 != orders.size(); dep1++) { + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".CommodityCode", orders[dep1].commodityCode); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".OrderType", orders[dep1].orderType); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".ChargeType", orders[dep1].chargeType); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".PricingCycle", orders[dep1].pricingCycle); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".Duration", std::to_string(orders[dep1].duration)); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".Quantity", std::to_string(orders[dep1].quantity)); + for(int dep2 = 0; dep2 != orders[dep1].components.size(); dep2++) { + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".Components." + std::to_string(dep2 + 1) + ".ComponentCode", orders[dep1].components[dep2].componentCode); + for(int dep3 = 0; dep3 != orders[dep1].components[dep2].properties.size(); dep3++) { + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".Components." + std::to_string(dep2 + 1) + ".Properties." + std::to_string(dep3 + 1) + ".Code", orders[dep1].components[dep2].properties[dep3].code); + setParameter(std::string("Orders") + "." + std::to_string(dep1 + 1) + ".Components." + std::to_string(dep2 + 1) + ".Properties." + std::to_string(dep3 + 1) + ".Value", orders[dep1].components[dep2].properties[dep3].value); + } + } + } +} + diff --git a/ga/src/model/DescribeCommodityPriceResult.cc b/ga/src/model/DescribeCommodityPriceResult.cc new file mode 100644 index 000000000..765b2a788 --- /dev/null +++ b/ga/src/model/DescribeCommodityPriceResult.cc @@ -0,0 +1,166 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCommodityPriceResult::DescribeCommodityPriceResult() : + ServiceResult() +{} + +DescribeCommodityPriceResult::DescribeCommodityPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCommodityPriceResult::~DescribeCommodityPriceResult() +{} + +void DescribeCommodityPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOrderDetailsNode = value["OrderDetails"]["orderDetailsItem"]; + for (auto valueOrderDetailsorderDetailsItem : allOrderDetailsNode) + { + OrderDetailsItem orderDetailsObject; + if(!valueOrderDetailsorderDetailsItem["CommodityCode"].isNull()) + orderDetailsObject.commodityCode = valueOrderDetailsorderDetailsItem["CommodityCode"].asString(); + if(!valueOrderDetailsorderDetailsItem["CommodityName"].isNull()) + orderDetailsObject.commodityName = valueOrderDetailsorderDetailsItem["CommodityName"].asString(); + if(!valueOrderDetailsorderDetailsItem["OriginalPrice"].isNull()) + orderDetailsObject.originalPrice = valueOrderDetailsorderDetailsItem["OriginalPrice"].asString(); + if(!valueOrderDetailsorderDetailsItem["DiscountPrice"].isNull()) + orderDetailsObject.discountPrice = valueOrderDetailsorderDetailsItem["DiscountPrice"].asString(); + if(!valueOrderDetailsorderDetailsItem["TradePrice"].isNull()) + orderDetailsObject.tradePrice = valueOrderDetailsorderDetailsItem["TradePrice"].asString(); + if(!valueOrderDetailsorderDetailsItem["Quantity"].isNull()) + orderDetailsObject.quantity = std::stol(valueOrderDetailsorderDetailsItem["Quantity"].asString()); + auto allModuleDetailsNode = valueOrderDetailsorderDetailsItem["ModuleDetails"]["moduleDetailsItem"]; + for (auto valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem : allModuleDetailsNode) + { + OrderDetailsItem::ModuleDetailsItem moduleDetailsObject; + if(!valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["ModuleCode"].isNull()) + moduleDetailsObject.moduleCode = valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["ModuleCode"].asString(); + if(!valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["ModuleName"].isNull()) + moduleDetailsObject.moduleName = valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["ModuleName"].asString(); + if(!valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["OriginalPrice"].isNull()) + moduleDetailsObject.originalPrice = valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["OriginalPrice"].asString(); + if(!valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["DiscountPrice"].isNull()) + moduleDetailsObject.discountPrice = valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["DiscountPrice"].asString(); + if(!valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["TradePrice"].isNull()) + moduleDetailsObject.tradePrice = valueOrderDetailsorderDetailsItemModuleDetailsmoduleDetailsItem["TradePrice"].asString(); + orderDetailsObject.moduleDetails.push_back(moduleDetailsObject); + } + auto allPromDetailsNode = valueOrderDetailsorderDetailsItem["PromDetails"]["promDetailsItem"]; + for (auto valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem : allPromDetailsNode) + { + OrderDetailsItem::PromDetailsItem promDetailsObject; + if(!valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromotionId"].isNull()) + promDetailsObject.promotionId = valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromotionId"].asString(); + if(!valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromotionName"].isNull()) + promDetailsObject.promotionName = valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromotionName"].asString(); + if(!valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["FinalPromFee"].isNull()) + promDetailsObject.finalPromFee = valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["FinalPromFee"].asString(); + if(!valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromType"].isNull()) + promDetailsObject.promType = valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["PromType"].asString(); + if(!valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["OptionCode"].isNull()) + promDetailsObject.optionCode = valueOrderDetailsorderDetailsItemPromDetailspromDetailsItem["OptionCode"].asString(); + orderDetailsObject.promDetails.push_back(promDetailsObject); + } + auto allRuleIds = value["RuleIds"]["ruleIds"]; + for (auto value : allRuleIds) + orderDetailsObject.ruleIds.push_back(value.asString()); + orderDetails_.push_back(orderDetailsObject); + } + auto allRuleDetailsNode = value["RuleDetails"]["ruleDetailsItem"]; + for (auto valueRuleDetailsruleDetailsItem : allRuleDetailsNode) + { + RuleDetailsItem ruleDetailsObject; + if(!valueRuleDetailsruleDetailsItem["RuleId"].isNull()) + ruleDetailsObject.ruleId = valueRuleDetailsruleDetailsItem["RuleId"].asString(); + if(!valueRuleDetailsruleDetailsItem["RuleName"].isNull()) + ruleDetailsObject.ruleName = valueRuleDetailsruleDetailsItem["RuleName"].asString(); + ruleDetails_.push_back(ruleDetailsObject); + } + auto allPromotionsNode = value["Promotions"]["promotionDetails"]; + for (auto valuePromotionspromotionDetails : allPromotionsNode) + { + PromotionDetails promotionsObject; + if(!valuePromotionspromotionDetails["PromotionOptionNo"].isNull()) + promotionsObject.promotionOptionNo = valuePromotionspromotionDetails["PromotionOptionNo"].asString(); + if(!valuePromotionspromotionDetails["PromotionName"].isNull()) + promotionsObject.promotionName = valuePromotionspromotionDetails["PromotionName"].asString(); + if(!valuePromotionspromotionDetails["CanPromFee"].isNull()) + promotionsObject.canPromFee = valuePromotionspromotionDetails["CanPromFee"].asString(); + if(!valuePromotionspromotionDetails["Selected"].isNull()) + promotionsObject.selected = valuePromotionspromotionDetails["Selected"].asString() == "true"; + if(!valuePromotionspromotionDetails["OptionCode"].isNull()) + promotionsObject.optionCode = valuePromotionspromotionDetails["OptionCode"].asString(); + promotions_.push_back(promotionsObject); + } + if(!value["Currency"].isNull()) + currency_ = value["Currency"].asString(); + if(!value["OriginalPrice"].isNull()) + originalPrice_ = value["OriginalPrice"].asString(); + if(!value["DiscountPrice"].isNull()) + discountPrice_ = value["DiscountPrice"].asString(); + if(!value["TradePrice"].isNull()) + tradePrice_ = value["TradePrice"].asString(); + +} + +double DescribeCommodityPriceResult::getOriginalPrice()const +{ + return originalPrice_; +} + +std::vector DescribeCommodityPriceResult::getPromotions()const +{ + return promotions_; +} + +std::vector DescribeCommodityPriceResult::getOrderDetails()const +{ + return orderDetails_; +} + +std::string DescribeCommodityPriceResult::getCurrency()const +{ + return currency_; +} + +double DescribeCommodityPriceResult::getDiscountPrice()const +{ + return discountPrice_; +} + +double DescribeCommodityPriceResult::getTradePrice()const +{ + return tradePrice_; +} + +std::vector DescribeCommodityPriceResult::getRuleDetails()const +{ + return ruleDetails_; +} + diff --git a/ga/src/model/DescribeCommodityRequest.cc b/ga/src/model/DescribeCommodityRequest.cc new file mode 100644 index 000000000..922aa5e19 --- /dev/null +++ b/ga/src/model/DescribeCommodityRequest.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::Ga::Model::DescribeCommodityRequest; + +DescribeCommodityRequest::DescribeCommodityRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCommodity") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCommodityRequest::~DescribeCommodityRequest() {} + +std::string DescribeCommodityRequest::getCommodityCode() const { + return commodityCode_; +} + +void DescribeCommodityRequest::setCommodityCode(const std::string &commodityCode) { + commodityCode_ = commodityCode; + setParameter(std::string("CommodityCode"), commodityCode); +} + +std::string DescribeCommodityRequest::getRegionId() const { + return regionId_; +} + +void DescribeCommodityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeCommodityRequest::getOrderType() const { + return orderType_; +} + +void DescribeCommodityRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); +} + diff --git a/ga/src/model/DescribeCommodityResult.cc b/ga/src/model/DescribeCommodityResult.cc new file mode 100644 index 000000000..1a68b0c6d --- /dev/null +++ b/ga/src/model/DescribeCommodityResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCommodityResult::DescribeCommodityResult() : + ServiceResult() +{} + +DescribeCommodityResult::DescribeCommodityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCommodityResult::~DescribeCommodityResult() +{} + +void DescribeCommodityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allComponentsNode = value["Components"]["componentsItem"]; + for (auto valueComponentscomponentsItem : allComponentsNode) + { + ComponentsItem componentsObject; + if(!valueComponentscomponentsItem["ComponentCode"].isNull()) + componentsObject.componentCode = valueComponentscomponentsItem["ComponentCode"].asString(); + if(!valueComponentscomponentsItem["ComponentName"].isNull()) + componentsObject.componentName = valueComponentscomponentsItem["ComponentName"].asString(); + auto allPropertiesNode = valueComponentscomponentsItem["Properties"]["propertiesItem"]; + for (auto valueComponentscomponentsItemPropertiespropertiesItem : allPropertiesNode) + { + ComponentsItem::PropertiesItem propertiesObject; + if(!valueComponentscomponentsItemPropertiespropertiesItem["Code"].isNull()) + propertiesObject.code = valueComponentscomponentsItemPropertiespropertiesItem["Code"].asString(); + if(!valueComponentscomponentsItemPropertiespropertiesItem["Name"].isNull()) + propertiesObject.name = valueComponentscomponentsItemPropertiespropertiesItem["Name"].asString(); + auto allPropertyValueListNode = valueComponentscomponentsItemPropertiespropertiesItem["PropertyValueList"]["propertyValueListItem"]; + for (auto valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem : allPropertyValueListNode) + { + ComponentsItem::PropertiesItem::PropertyValueListItem propertyValueListObject; + if(!valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Text"].isNull()) + propertyValueListObject.text = valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Text"].asString(); + if(!valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Value"].isNull()) + propertyValueListObject.value = valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Value"].asString(); + if(!valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Tips"].isNull()) + propertyValueListObject.tips = valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["Tips"].asString(); + if(!valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["OrderIndex"].isNull()) + propertyValueListObject.orderIndex = std::stol(valueComponentscomponentsItemPropertiespropertiesItemPropertyValueListpropertyValueListItem["OrderIndex"].asString()); + propertiesObject.propertyValueList.push_back(propertyValueListObject); + } + componentsObject.properties.push_back(propertiesObject); + } + components_.push_back(componentsObject); + } + if(!value["CommodityCode"].isNull()) + commodityCode_ = value["CommodityCode"].asString(); + if(!value["CommodityName"].isNull()) + commodityName_ = value["CommodityName"].asString(); + +} + +std::vector DescribeCommodityResult::getComponents()const +{ + return components_; +} + +std::string DescribeCommodityResult::getCommodityCode()const +{ + return commodityCode_; +} + +std::string DescribeCommodityResult::getCommodityName()const +{ + return commodityName_; +} + diff --git a/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.cc b/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.cc new file mode 100644 index 000000000..396d4fc7f --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyRequest.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::Ga::Model::DescribeCustomRoutingEndPointTrafficPolicyRequest; + +DescribeCustomRoutingEndPointTrafficPolicyRequest::DescribeCustomRoutingEndPointTrafficPolicyRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCustomRoutingEndPointTrafficPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomRoutingEndPointTrafficPolicyRequest::~DescribeCustomRoutingEndPointTrafficPolicyRequest() {} + +std::string DescribeCustomRoutingEndPointTrafficPolicyRequest::getEndpointId() const { + return endpointId_; +} + +void DescribeCustomRoutingEndPointTrafficPolicyRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyRequest::getPolicyId() const { + return policyId_; +} + +void DescribeCustomRoutingEndPointTrafficPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyRequest::getRegionId() const { + return regionId_; +} + +void DescribeCustomRoutingEndPointTrafficPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyResult.cc b/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyResult.cc new file mode 100644 index 000000000..e4bda3811 --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndPointTrafficPolicyResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCustomRoutingEndPointTrafficPolicyResult::DescribeCustomRoutingEndPointTrafficPolicyResult() : + ServiceResult() +{} + +DescribeCustomRoutingEndPointTrafficPolicyResult::DescribeCustomRoutingEndPointTrafficPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomRoutingEndPointTrafficPolicyResult::~DescribeCustomRoutingEndPointTrafficPolicyResult() +{} + +void DescribeCustomRoutingEndPointTrafficPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPortRangesNode = value["PortRanges"]["portRangesItem"]; + for (auto valuePortRangesportRangesItem : allPortRangesNode) + { + PortRangesItem portRangesObject; + if(!valuePortRangesportRangesItem["FromPort"].isNull()) + portRangesObject.fromPort = std::stoi(valuePortRangesportRangesItem["FromPort"].asString()); + if(!valuePortRangesportRangesItem["ToPort"].isNull()) + portRangesObject.toPort = std::stoi(valuePortRangesportRangesItem["ToPort"].asString()); + portRanges_.push_back(portRangesObject); + } + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["PolicyId"].isNull()) + policyId_ = value["PolicyId"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getEndpoint()const +{ + return endpoint_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getAddress()const +{ + return address_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getState()const +{ + return state_; +} + +std::vector DescribeCustomRoutingEndPointTrafficPolicyResult::getPortRanges()const +{ + return portRanges_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getEndpointId()const +{ + return endpointId_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getPolicyId()const +{ + return policyId_; +} + +std::string DescribeCustomRoutingEndPointTrafficPolicyResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.cc b/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.cc new file mode 100644 index 000000000..2940cfb34 --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsRequest.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::Ga::Model::DescribeCustomRoutingEndpointGroupDestinationsRequest; + +DescribeCustomRoutingEndpointGroupDestinationsRequest::DescribeCustomRoutingEndpointGroupDestinationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCustomRoutingEndpointGroupDestinations") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomRoutingEndpointGroupDestinationsRequest::~DescribeCustomRoutingEndpointGroupDestinationsRequest() {} + +std::string DescribeCustomRoutingEndpointGroupDestinationsRequest::getDestinationId() const { + return destinationId_; +} + +void DescribeCustomRoutingEndpointGroupDestinationsRequest::setDestinationId(const std::string &destinationId) { + destinationId_ = destinationId; + setParameter(std::string("DestinationId"), destinationId); +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsRequest::getRegionId() const { + return regionId_; +} + +void DescribeCustomRoutingEndpointGroupDestinationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DescribeCustomRoutingEndpointGroupDestinationsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsResult.cc b/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsResult.cc new file mode 100644 index 000000000..26a0f636e --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointGroupDestinationsResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCustomRoutingEndpointGroupDestinationsResult::DescribeCustomRoutingEndpointGroupDestinationsResult() : + ServiceResult() +{} + +DescribeCustomRoutingEndpointGroupDestinationsResult::DescribeCustomRoutingEndpointGroupDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomRoutingEndpointGroupDestinationsResult::~DescribeCustomRoutingEndpointGroupDestinationsResult() +{} + +void DescribeCustomRoutingEndpointGroupDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProtocols = value["Protocols"]["protocols"]; + for (const auto &item : allProtocols) + protocols_.push_back(item.asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["DestinationId"].isNull()) + destinationId_ = value["DestinationId"].asString(); + if(!value["FromPort"].isNull()) + fromPort_ = std::stoi(value["FromPort"].asString()); + if(!value["ToPort"].isNull()) + toPort_ = std::stoi(value["ToPort"].asString()); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::vector DescribeCustomRoutingEndpointGroupDestinationsResult::getProtocols()const +{ + return protocols_; +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +int DescribeCustomRoutingEndpointGroupDestinationsResult::getFromPort()const +{ + return fromPort_; +} + +int DescribeCustomRoutingEndpointGroupDestinationsResult::getToPort()const +{ + return toPort_; +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsResult::getState()const +{ + return state_; +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsResult::getDestinationId()const +{ + return destinationId_; +} + +std::string DescribeCustomRoutingEndpointGroupDestinationsResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointGroupRequest.cc b/ga/src/model/DescribeCustomRoutingEndpointGroupRequest.cc new file mode 100644 index 000000000..f529a40f3 --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointGroupRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeCustomRoutingEndpointGroupRequest; + +DescribeCustomRoutingEndpointGroupRequest::DescribeCustomRoutingEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCustomRoutingEndpointGroup") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomRoutingEndpointGroupRequest::~DescribeCustomRoutingEndpointGroupRequest() {} + +std::string DescribeCustomRoutingEndpointGroupRequest::getRegionId() const { + return regionId_; +} + +void DescribeCustomRoutingEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeCustomRoutingEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DescribeCustomRoutingEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointGroupResult.cc b/ga/src/model/DescribeCustomRoutingEndpointGroupResult.cc new file mode 100644 index 000000000..7250ab9b9 --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointGroupResult.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCustomRoutingEndpointGroupResult::DescribeCustomRoutingEndpointGroupResult() : + ServiceResult() +{} + +DescribeCustomRoutingEndpointGroupResult::DescribeCustomRoutingEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomRoutingEndpointGroupResult::~DescribeCustomRoutingEndpointGroupResult() +{} + +void DescribeCustomRoutingEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupIpList = value["EndpointGroupIpList"]["EndpointGroupIpList"]; + for (const auto &item : allEndpointGroupIpList) + endpointGroupIpList_.push_back(item.asString()); + auto allEndpointGroupUnconfirmedIpList = value["EndpointGroupUnconfirmedIpList"]["endpointGroupUnconfirmedIpList"]; + for (const auto &item : allEndpointGroupUnconfirmedIpList) + endpointGroupUnconfirmedIpList_.push_back(item.asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["EndpointGroupRegion"].isNull()) + endpointGroupRegion_ = value["EndpointGroupRegion"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["SlsRegion"].isNull()) + slsRegion_ = value["SlsRegion"].asString(); + if(!value["SlsProjectName"].isNull()) + slsProjectName_ = value["SlsProjectName"].asString(); + if(!value["SlsLogStoreName"].isNull()) + slsLogStoreName_ = value["SlsLogStoreName"].asString(); + if(!value["AccessLogSwitch"].isNull()) + accessLogSwitch_ = value["AccessLogSwitch"].asString(); + if(!value["EnableAccessLog"].isNull()) + enableAccessLog_ = value["EnableAccessLog"].asString() == "true"; + +} + +std::string DescribeCustomRoutingEndpointGroupResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getDescription()const +{ + return description_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getSlsRegion()const +{ + return slsRegion_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getSlsLogStoreName()const +{ + return slsLogStoreName_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getName()const +{ + return name_; +} + +std::vector DescribeCustomRoutingEndpointGroupResult::getEndpointGroupIpList()const +{ + return endpointGroupIpList_; +} + +bool DescribeCustomRoutingEndpointGroupResult::getEnableAccessLog()const +{ + return enableAccessLog_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getEndpointGroupRegion()const +{ + return endpointGroupRegion_; +} + +std::vector DescribeCustomRoutingEndpointGroupResult::getEndpointGroupUnconfirmedIpList()const +{ + return endpointGroupUnconfirmedIpList_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getSlsProjectName()const +{ + return slsProjectName_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getState()const +{ + return state_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getAccessLogSwitch()const +{ + return accessLogSwitch_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string DescribeCustomRoutingEndpointGroupResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointRequest.cc b/ga/src/model/DescribeCustomRoutingEndpointRequest.cc new file mode 100644 index 000000000..a0901e5ca --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointRequest.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::Ga::Model::DescribeCustomRoutingEndpointRequest; + +DescribeCustomRoutingEndpointRequest::DescribeCustomRoutingEndpointRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeCustomRoutingEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomRoutingEndpointRequest::~DescribeCustomRoutingEndpointRequest() {} + +std::string DescribeCustomRoutingEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void DescribeCustomRoutingEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DescribeCustomRoutingEndpointRequest::getEndpointGroup() const { + return endpointGroup_; +} + +void DescribeCustomRoutingEndpointRequest::setEndpointGroup(const std::string &endpointGroup) { + endpointGroup_ = endpointGroup; + setParameter(std::string("EndpointGroup"), endpointGroup); +} + +std::string DescribeCustomRoutingEndpointRequest::getRegionId() const { + return regionId_; +} + +void DescribeCustomRoutingEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/DescribeCustomRoutingEndpointResult.cc b/ga/src/model/DescribeCustomRoutingEndpointResult.cc new file mode 100644 index 000000000..0fd564fd4 --- /dev/null +++ b/ga/src/model/DescribeCustomRoutingEndpointResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeCustomRoutingEndpointResult::DescribeCustomRoutingEndpointResult() : + ServiceResult() +{} + +DescribeCustomRoutingEndpointResult::DescribeCustomRoutingEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomRoutingEndpointResult::~DescribeCustomRoutingEndpointResult() +{} + +void DescribeCustomRoutingEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["TrafficToEndpointPolicy"].isNull()) + trafficToEndpointPolicy_ = value["TrafficToEndpointPolicy"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string DescribeCustomRoutingEndpointResult::getType()const +{ + return type_; +} + +std::string DescribeCustomRoutingEndpointResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string DescribeCustomRoutingEndpointResult::getEndpoint()const +{ + return endpoint_; +} + +std::string DescribeCustomRoutingEndpointResult::getState()const +{ + return state_; +} + +std::string DescribeCustomRoutingEndpointResult::getEndpointId()const +{ + return endpointId_; +} + +std::string DescribeCustomRoutingEndpointResult::getTrafficToEndpointPolicy()const +{ + return trafficToEndpointPolicy_; +} + +std::string DescribeCustomRoutingEndpointResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string DescribeCustomRoutingEndpointResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeEndpointGroupRequest.cc b/ga/src/model/DescribeEndpointGroupRequest.cc index 35e2e8555..211a2bd5d 100644 --- a/ga/src/model/DescribeEndpointGroupRequest.cc +++ b/ga/src/model/DescribeEndpointGroupRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DescribeEndpointGroupRequest; - -DescribeEndpointGroupRequest::DescribeEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEndpointGroupRequest::~DescribeEndpointGroupRequest() -{} - -std::string DescribeEndpointGroupRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeEndpointGroupRequest; + +DescribeEndpointGroupRequest::DescribeEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void DescribeEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DescribeEndpointGroupRequest::~DescribeEndpointGroupRequest() {} + +std::string DescribeEndpointGroupRequest::getRegionId() const { + return regionId_; } -std::string DescribeEndpointGroupRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void DescribeEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::string DescribeEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void DescribeEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } diff --git a/ga/src/model/DescribeEndpointGroupResult.cc b/ga/src/model/DescribeEndpointGroupResult.cc index 450066ba4..be47a9d30 100644 --- a/ga/src/model/DescribeEndpointGroupResult.cc +++ b/ga/src/model/DescribeEndpointGroupResult.cc @@ -39,6 +39,26 @@ void DescribeEndpointGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allEndpointConfigurationsNode = value["EndpointConfigurations"]["EndpointConfigurationsItem"]; + for (auto valueEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + { + EndpointConfigurationsItem endpointConfigurationsObject; + if(!valueEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull()) + endpointConfigurationsObject.type = valueEndpointConfigurationsEndpointConfigurationsItem["Type"].asString(); + if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull()) + endpointConfigurationsObject.enableClientIPPreservation = valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true"; + if(!valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull()) + endpointConfigurationsObject.weight = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString()); + if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull()) + endpointConfigurationsObject.probeProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString(); + if(!valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull()) + endpointConfigurationsObject.endpoint = valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString(); + if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull()) + endpointConfigurationsObject.enableProxyProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true"; + if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull()) + endpointConfigurationsObject.probePort = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString()); + endpointConfigurations_.push_back(endpointConfigurationsObject); + } auto allPortOverridesNode = value["PortOverrides"]["PortOverridesItem"]; for (auto valuePortOverridesPortOverridesItem : allPortOverridesNode) { @@ -49,26 +69,22 @@ void DescribeEndpointGroupResult::parse(const std::string &payload) portOverridesObject.endpointPort = std::stoi(valuePortOverridesPortOverridesItem["EndpointPort"].asString()); portOverrides_.push_back(portOverridesObject); } - auto allEndpointConfigurationsNode = value["EndpointConfigurations"]["EndpointConfigurationsItem"]; - for (auto valueEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) { - EndpointConfigurationsItem endpointConfigurationsObject; - if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull()) - endpointConfigurationsObject.enableProxyProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true"; - if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull()) - endpointConfigurationsObject.probeProtocol = valueEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString(); - if(!valueEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull()) - endpointConfigurationsObject.type = valueEndpointConfigurationsEndpointConfigurationsItem["Type"].asString(); - if(!valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull()) - endpointConfigurationsObject.endpoint = valueEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString(); - if(!valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull()) - endpointConfigurationsObject.enableClientIPPreservation = valueEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true"; - if(!valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull()) - endpointConfigurationsObject.probePort = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString()); - if(!valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull()) - endpointConfigurationsObject.weight = std::stoi(valueEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString()); - endpointConfigurations_.push_back(endpointConfigurationsObject); + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); } + auto allEndpointGroupIpList = value["EndpointGroupIpList"]["EndpointGroupIpList"]; + for (const auto &item : allEndpointGroupIpList) + endpointGroupIpList_.push_back(item.asString()); + auto allEndpointGroupUnconfirmedIpList = value["EndpointGroupUnconfirmedIpList"]["endpointGroupUnconfirmedIpList"]; + for (const auto &item : allEndpointGroupUnconfirmedIpList) + endpointGroupUnconfirmedIpList_.push_back(item.asString()); auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"]; for (const auto &item : allForwardingRuleIds) forwardingRuleIds_.push_back(item.asString()); @@ -76,52 +92,47 @@ void DescribeEndpointGroupResult::parse(const std::string &payload) healthCheckIntervalSeconds_ = std::stoi(value["HealthCheckIntervalSeconds"].asString()); if(!value["TrafficPercentage"].isNull()) trafficPercentage_ = std::stoi(value["TrafficPercentage"].asString()); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["EndpointGroupId"].isNull()) endpointGroupId_ = value["EndpointGroupId"].asString(); - if(!value["SlsRegion"].isNull()) - slsRegion_ = value["SlsRegion"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["HealthCheckPath"].isNull()) healthCheckPath_ = value["HealthCheckPath"].asString(); if(!value["ThresholdCount"].isNull()) thresholdCount_ = std::stoi(value["ThresholdCount"].asString()); - if(!value["SlsLogStoreName"].isNull()) - slsLogStoreName_ = value["SlsLogStoreName"].asString(); - if(!value["EndpointRequestProtocol"].isNull()) - endpointRequestProtocol_ = value["EndpointRequestProtocol"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); - if(!value["EnableAccessLog"].isNull()) - enableAccessLog_ = value["EnableAccessLog"].asString() == "true"; - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["EndpointGroupRegion"].isNull()) endpointGroupRegion_ = value["EndpointGroupRegion"].asString(); - if(!value["SlsProjectName"].isNull()) - slsProjectName_ = value["SlsProjectName"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); - if(!value["AccessLogSwitch"].isNull()) - accessLogSwitch_ = value["AccessLogSwitch"].asString(); if(!value["HealthCheckProtocol"].isNull()) healthCheckProtocol_ = value["HealthCheckProtocol"].asString(); if(!value["HealthCheckPort"].isNull()) healthCheckPort_ = std::stoi(value["HealthCheckPort"].asString()); - if(!value["AcceleratorId"].isNull()) - acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["EndpointRequestProtocol"].isNull()) + endpointRequestProtocol_ = value["EndpointRequestProtocol"].asString(); if(!value["EndpointGroupType"].isNull()) endpointGroupType_ = value["EndpointGroupType"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); if(!value["ListenerId"].isNull()) listenerId_ = value["ListenerId"].asString(); + if(!value["SlsRegion"].isNull()) + slsRegion_ = value["SlsRegion"].asString(); + if(!value["SlsProjectName"].isNull()) + slsProjectName_ = value["SlsProjectName"].asString(); + if(!value["SlsLogStoreName"].isNull()) + slsLogStoreName_ = value["SlsLogStoreName"].asString(); + if(!value["AccessLogSwitch"].isNull()) + accessLogSwitch_ = value["AccessLogSwitch"].asString(); + if(!value["EnableAccessLog"].isNull()) + enableAccessLog_ = value["EnableAccessLog"].asString() == "true"; + if(!value["HealthCheckEnabled"].isNull()) + healthCheckEnabled_ = value["HealthCheckEnabled"].asString() == "true"; } -int DescribeEndpointGroupResult::getHealthCheckIntervalSeconds()const -{ - return healthCheckIntervalSeconds_; -} - std::vector DescribeEndpointGroupResult::getForwardingRuleIds()const { return forwardingRuleIds_; @@ -132,19 +143,14 @@ int DescribeEndpointGroupResult::getTrafficPercentage()const return trafficPercentage_; } -std::string DescribeEndpointGroupResult::getDescription()const -{ - return description_; -} - std::string DescribeEndpointGroupResult::getEndpointGroupId()const { return endpointGroupId_; } -std::string DescribeEndpointGroupResult::getSlsRegion()const +std::string DescribeEndpointGroupResult::getDescription()const { - return slsRegion_; + return description_; } std::string DescribeEndpointGroupResult::getHealthCheckPath()const @@ -152,16 +158,6 @@ std::string DescribeEndpointGroupResult::getHealthCheckPath()const return healthCheckPath_; } -int DescribeEndpointGroupResult::getThresholdCount()const -{ - return thresholdCount_; -} - -std::string DescribeEndpointGroupResult::getSlsLogStoreName()const -{ - return slsLogStoreName_; -} - std::string DescribeEndpointGroupResult::getEndpointRequestProtocol()const { return endpointRequestProtocol_; @@ -177,16 +173,6 @@ std::vector DescribeEndpointGrou return portOverrides_; } -bool DescribeEndpointGroupResult::getEnableAccessLog()const -{ - return enableAccessLog_; -} - -int DescribeEndpointGroupResult::getTotalCount()const -{ - return totalCount_; -} - std::string DescribeEndpointGroupResult::getEndpointGroupRegion()const { return endpointGroupRegion_; @@ -197,9 +183,9 @@ std::string DescribeEndpointGroupResult::getSlsProjectName()const return slsProjectName_; } -std::string DescribeEndpointGroupResult::getState()const +std::string DescribeEndpointGroupResult::getHealthCheckProtocol()const { - return state_; + return healthCheckProtocol_; } std::string DescribeEndpointGroupResult::getAccessLogSwitch()const @@ -207,24 +193,14 @@ std::string DescribeEndpointGroupResult::getAccessLogSwitch()const return accessLogSwitch_; } -std::string DescribeEndpointGroupResult::getHealthCheckProtocol()const -{ - return healthCheckProtocol_; -} - -int DescribeEndpointGroupResult::getHealthCheckPort()const -{ - return healthCheckPort_; -} - std::vector DescribeEndpointGroupResult::getEndpointConfigurations()const { return endpointConfigurations_; } -std::string DescribeEndpointGroupResult::getAcceleratorId()const +std::vector DescribeEndpointGroupResult::getTags()const { - return acceleratorId_; + return tags_; } std::string DescribeEndpointGroupResult::getEndpointGroupType()const @@ -232,6 +208,61 @@ std::string DescribeEndpointGroupResult::getEndpointGroupType()const return endpointGroupType_; } +int DescribeEndpointGroupResult::getHealthCheckIntervalSeconds()const +{ + return healthCheckIntervalSeconds_; +} + +std::string DescribeEndpointGroupResult::getSlsRegion()const +{ + return slsRegion_; +} + +int DescribeEndpointGroupResult::getThresholdCount()const +{ + return thresholdCount_; +} + +bool DescribeEndpointGroupResult::getHealthCheckEnabled()const +{ + return healthCheckEnabled_; +} + +std::string DescribeEndpointGroupResult::getSlsLogStoreName()const +{ + return slsLogStoreName_; +} + +std::vector DescribeEndpointGroupResult::getEndpointGroupIpList()const +{ + return endpointGroupIpList_; +} + +bool DescribeEndpointGroupResult::getEnableAccessLog()const +{ + return enableAccessLog_; +} + +std::vector DescribeEndpointGroupResult::getEndpointGroupUnconfirmedIpList()const +{ + return endpointGroupUnconfirmedIpList_; +} + +std::string DescribeEndpointGroupResult::getState()const +{ + return state_; +} + +int DescribeEndpointGroupResult::getHealthCheckPort()const +{ + return healthCheckPort_; +} + +std::string DescribeEndpointGroupResult::getAcceleratorId()const +{ + return acceleratorId_; +} + std::string DescribeEndpointGroupResult::getListenerId()const { return listenerId_; diff --git a/ga/src/model/DescribeIpSetRequest.cc b/ga/src/model/DescribeIpSetRequest.cc index 0606defbd..ae69c201e 100644 --- a/ga/src/model/DescribeIpSetRequest.cc +++ b/ga/src/model/DescribeIpSetRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DescribeIpSetRequest; - -DescribeIpSetRequest::DescribeIpSetRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeIpSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIpSetRequest::~DescribeIpSetRequest() -{} - -std::string DescribeIpSetRequest::getIpSetId()const -{ - return ipSetId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeIpSetRequest; + +DescribeIpSetRequest::DescribeIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeIpSet") { + setMethod(HttpRequest::Method::Post); } -void DescribeIpSetRequest::setIpSetId(const std::string& ipSetId) -{ - ipSetId_ = ipSetId; - setParameter("IpSetId", ipSetId); +DescribeIpSetRequest::~DescribeIpSetRequest() {} + +std::string DescribeIpSetRequest::getIpSetId() const { + return ipSetId_; } -std::string DescribeIpSetRequest::getRegionId()const -{ - return regionId_; +void DescribeIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); } -void DescribeIpSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeIpSetRequest::getRegionId() const { + return regionId_; +} + +void DescribeIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DescribeIpSetResult.cc b/ga/src/model/DescribeIpSetResult.cc index 61c03e69f..0ede08361 100644 --- a/ga/src/model/DescribeIpSetResult.cc +++ b/ga/src/model/DescribeIpSetResult.cc @@ -50,6 +50,8 @@ void DescribeIpSetResult::parse(const std::string &payload) state_ = value["State"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["IspType"].isNull()) + ispType_ = value["IspType"].asString(); if(!value["AccelerateRegionId"].isNull()) accelerateRegionId_ = value["AccelerateRegionId"].asString(); if(!value["AcceleratorId"].isNull()) @@ -72,6 +74,11 @@ std::string DescribeIpSetResult::getState()const return state_; } +std::string DescribeIpSetResult::getIspType()const +{ + return ispType_; +} + int DescribeIpSetResult::getBandwidth()const { return bandwidth_; diff --git a/ga/src/model/DescribeListenerRequest.cc b/ga/src/model/DescribeListenerRequest.cc index c1fdd3aca..ed4b810d4 100644 --- a/ga/src/model/DescribeListenerRequest.cc +++ b/ga/src/model/DescribeListenerRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DescribeListenerRequest; - -DescribeListenerRequest::DescribeListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeListener") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeListenerRequest::~DescribeListenerRequest() -{} - -std::string DescribeListenerRequest::getListenerId()const -{ - return listenerId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeListenerRequest; + +DescribeListenerRequest::DescribeListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeListener") { + setMethod(HttpRequest::Method::Post); } -void DescribeListenerRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +DescribeListenerRequest::~DescribeListenerRequest() {} + +std::string DescribeListenerRequest::getListenerId() const { + return listenerId_; } -std::string DescribeListenerRequest::getRegionId()const -{ - return regionId_; +void DescribeListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void DescribeListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeListenerRequest::getRegionId() const { + return regionId_; +} + +void DescribeListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DescribeListenerResult.cc b/ga/src/model/DescribeListenerResult.cc index 7a0c9f241..ce01bd8a1 100644 --- a/ga/src/model/DescribeListenerResult.cc +++ b/ga/src/model/DescribeListenerResult.cc @@ -39,16 +39,6 @@ void DescribeListenerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allBackendPortsNode = value["BackendPorts"]["BackendPort"]; - for (auto valueBackendPortsBackendPort : allBackendPortsNode) - { - BackendPort backendPortsObject; - if(!valueBackendPortsBackendPort["FromPort"].isNull()) - backendPortsObject.fromPort = valueBackendPortsBackendPort["FromPort"].asString(); - if(!valueBackendPortsBackendPort["ToPort"].isNull()) - backendPortsObject.toPort = valueBackendPortsBackendPort["ToPort"].asString(); - backendPorts_.push_back(backendPortsObject); - } auto allPortRangesNode = value["PortRanges"]["PortRangesItem"]; for (auto valuePortRangesPortRangesItem : allPortRangesNode) { @@ -59,6 +49,16 @@ void DescribeListenerResult::parse(const std::string &payload) portRangesObject.toPort = std::stoi(valuePortRangesPortRangesItem["ToPort"].asString()); portRanges_.push_back(portRangesObject); } + auto allBackendPortsNode = value["BackendPorts"]["BackendPort"]; + for (auto valueBackendPortsBackendPort : allBackendPortsNode) + { + BackendPort backendPortsObject; + if(!valueBackendPortsBackendPort["FromPort"].isNull()) + backendPortsObject.fromPort = valueBackendPortsBackendPort["FromPort"].asString(); + if(!valueBackendPortsBackendPort["ToPort"].isNull()) + backendPortsObject.toPort = valueBackendPortsBackendPort["ToPort"].asString(); + backendPorts_.push_back(backendPortsObject); + } auto allCertificatesNode = value["Certificates"]["Certificate"]; for (auto valueCertificatesCertificate : allCertificatesNode) { @@ -73,32 +73,47 @@ void DescribeListenerResult::parse(const std::string &payload) for (auto valueRelatedAclsrelatedAclsItem : allRelatedAclsNode) { RelatedAclsItem relatedAclsObject; - if(!valueRelatedAclsrelatedAclsItem["Status"].isNull()) - relatedAclsObject.status = valueRelatedAclsrelatedAclsItem["Status"].asString(); if(!valueRelatedAclsrelatedAclsItem["AclId"].isNull()) relatedAclsObject.aclId = valueRelatedAclsrelatedAclsItem["AclId"].asString(); + if(!valueRelatedAclsrelatedAclsItem["Status"].isNull()) + relatedAclsObject.status = valueRelatedAclsrelatedAclsItem["Status"].asString(); relatedAcls_.push_back(relatedAclsObject); } + auto xForwardedForConfigNode = value["XForwardedForConfig"]; + if(!xForwardedForConfigNode["XForwardedForGaIdEnabled"].isNull()) + xForwardedForConfig_.xForwardedForGaIdEnabled = xForwardedForConfigNode["XForwardedForGaIdEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForGaApEnabled"].isNull()) + xForwardedForConfig_.xForwardedForGaApEnabled = xForwardedForConfigNode["XForwardedForGaApEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull()) + xForwardedForConfig_.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForPortEnabled"].isNull()) + xForwardedForConfig_.xForwardedForPortEnabled = xForwardedForConfigNode["XForwardedForPortEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XRealIpEnabled"].isNull()) + xForwardedForConfig_.xRealIpEnabled = xForwardedForConfigNode["XRealIpEnabled"].asString() == "true"; if(!value["Description"].isNull()) description_ = value["Description"].asString(); if(!value["State"].isNull()) state_ = value["State"].asString(); - if(!value["ProxyProtocol"].isNull()) - proxyProtocol_ = value["ProxyProtocol"].asString() == "true"; if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); - if(!value["AclType"].isNull()) - aclType_ = value["AclType"].asString(); if(!value["Protocol"].isNull()) protocol_ = value["Protocol"].asString(); - if(!value["AcceleratorId"].isNull()) - acceleratorId_ = value["AcceleratorId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["ClientAffinity"].isNull()) - clientAffinity_ = value["ClientAffinity"].asString(); if(!value["ListenerId"].isNull()) listenerId_ = value["ListenerId"].asString(); + if(!value["ClientAffinity"].isNull()) + clientAffinity_ = value["ClientAffinity"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["ProxyProtocol"].isNull()) + proxyProtocol_ = value["ProxyProtocol"].asString() == "true"; + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); } @@ -107,19 +122,14 @@ std::string DescribeListenerResult::getDescription()const return description_; } -std::vector DescribeListenerResult::getBackendPorts()const -{ - return backendPorts_; -} - std::vector DescribeListenerResult::getPortRanges()const { return portRanges_; } -bool DescribeListenerResult::getProxyProtocol()const +std::vector DescribeListenerResult::getBackendPorts()const { - return proxyProtocol_; + return backendPorts_; } std::string DescribeListenerResult::getCreateTime()const @@ -127,6 +137,11 @@ std::string DescribeListenerResult::getCreateTime()const return createTime_; } +bool DescribeListenerResult::getProxyProtocol()const +{ + return proxyProtocol_; +} + std::vector DescribeListenerResult::getCertificates()const { return certificates_; @@ -142,11 +157,26 @@ std::string DescribeListenerResult::getName()const return name_; } +std::string DescribeListenerResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + +std::string DescribeListenerResult::getType()const +{ + return type_; +} + std::string DescribeListenerResult::getState()const { return state_; } +DescribeListenerResult::XForwardedForConfig DescribeListenerResult::getXForwardedForConfig()const +{ + return xForwardedForConfig_; +} + std::string DescribeListenerResult::getAclType()const { return aclType_; @@ -162,13 +192,13 @@ std::string DescribeListenerResult::getAcceleratorId()const return acceleratorId_; } -std::string DescribeListenerResult::getClientAffinity()const -{ - return clientAffinity_; -} - std::string DescribeListenerResult::getListenerId()const { return listenerId_; } +std::string DescribeListenerResult::getClientAffinity()const +{ + return clientAffinity_; +} + diff --git a/ga/src/model/DescribeRegionsRequest.cc b/ga/src/model/DescribeRegionsRequest.cc index f84cca22e..236b33d6e 100644 --- a/ga/src/model/DescribeRegionsRequest.cc +++ b/ga/src/model/DescribeRegionsRequest.cc @@ -1,40 +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::Ga::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("ga", "2019-11-20", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -std::string DescribeRegionsRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("ga", "2019-11-20", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +std::string DescribeRegionsRequest::getRegionId() const { + return regionId_; +} + +void DescribeRegionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DescribeRegionsResult.cc b/ga/src/model/DescribeRegionsResult.cc index dd82075fe..1d011649d 100644 --- a/ga/src/model/DescribeRegionsResult.cc +++ b/ga/src/model/DescribeRegionsResult.cc @@ -43,10 +43,10 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegionsItem : allRegionsNode) { RegionsItem regionsObject; - if(!valueRegionsRegionsItem["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); if(!valueRegionsRegionsItem["LocalName"].isNull()) regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/ga/src/model/DetachDdosFromAcceleratorRequest.cc b/ga/src/model/DetachDdosFromAcceleratorRequest.cc index 893cecca1..753d418be 100644 --- a/ga/src/model/DetachDdosFromAcceleratorRequest.cc +++ b/ga/src/model/DetachDdosFromAcceleratorRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::DetachDdosFromAcceleratorRequest; - -DetachDdosFromAcceleratorRequest::DetachDdosFromAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "DetachDdosFromAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachDdosFromAcceleratorRequest::~DetachDdosFromAcceleratorRequest() -{} - -std::string DetachDdosFromAcceleratorRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::DetachDdosFromAcceleratorRequest; + +DetachDdosFromAcceleratorRequest::DetachDdosFromAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DetachDdosFromAccelerator") { + setMethod(HttpRequest::Method::Post); } -void DetachDdosFromAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +DetachDdosFromAcceleratorRequest::~DetachDdosFromAcceleratorRequest() {} + +std::string DetachDdosFromAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string DetachDdosFromAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DetachDdosFromAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachDdosFromAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DetachDdosFromAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DetachDdosFromAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc b/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc index 5134f959d..6a8c218ff 100644 --- a/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc +++ b/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc @@ -1,86 +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 - -using AlibabaCloud::Ga::Model::DetachLogStoreFromEndpointGroupRequest; - -DetachLogStoreFromEndpointGroupRequest::DetachLogStoreFromEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "DetachLogStoreFromEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachLogStoreFromEndpointGroupRequest::~DetachLogStoreFromEndpointGroupRequest() -{} - -std::string DetachLogStoreFromEndpointGroupRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::DetachLogStoreFromEndpointGroupRequest; + +DetachLogStoreFromEndpointGroupRequest::DetachLogStoreFromEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "DetachLogStoreFromEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void DetachLogStoreFromEndpointGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DetachLogStoreFromEndpointGroupRequest::~DetachLogStoreFromEndpointGroupRequest() {} + +std::string DetachLogStoreFromEndpointGroupRequest::getClientToken() const { + return clientToken_; } -std::string DetachLogStoreFromEndpointGroupRequest::getListenerId()const -{ - return listenerId_; +void DetachLogStoreFromEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DetachLogStoreFromEndpointGroupRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string DetachLogStoreFromEndpointGroupRequest::getListenerId() const { + return listenerId_; } -std::vector DetachLogStoreFromEndpointGroupRequest::getEndpointGroupIds()const -{ - return endpointGroupIds_; +void DetachLogStoreFromEndpointGroupRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void DetachLogStoreFromEndpointGroupRequest::setEndpointGroupIds(const std::vector& endpointGroupIds) -{ - endpointGroupIds_ = endpointGroupIds; - for(int dep1 = 0; dep1!= endpointGroupIds.size(); dep1++) { - setParameter("EndpointGroupIds."+ std::to_string(dep1), endpointGroupIds.at(dep1)); - } +std::vector DetachLogStoreFromEndpointGroupRequest::getEndpointGroupIds() const { + return endpointGroupIds_; } -std::string DetachLogStoreFromEndpointGroupRequest::getRegionId()const -{ - return regionId_; +void DetachLogStoreFromEndpointGroupRequest::setEndpointGroupIds(const std::vector &endpointGroupIds) { + endpointGroupIds_ = endpointGroupIds; } -void DetachLogStoreFromEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachLogStoreFromEndpointGroupRequest::getRegionId() const { + return regionId_; } -std::string DetachLogStoreFromEndpointGroupRequest::getAcceleratorId()const -{ - return acceleratorId_; +void DetachLogStoreFromEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachLogStoreFromEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string DetachLogStoreFromEndpointGroupRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DetachLogStoreFromEndpointGroupRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/DetectApplicationMonitorRequest.cc b/ga/src/model/DetectApplicationMonitorRequest.cc new file mode 100644 index 000000000..25ca8b67c --- /dev/null +++ b/ga/src/model/DetectApplicationMonitorRequest.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::Ga::Model::DetectApplicationMonitorRequest; + +DetectApplicationMonitorRequest::DetectApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DetectApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +DetectApplicationMonitorRequest::~DetectApplicationMonitorRequest() {} + +std::string DetectApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void DetectApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DetectApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void DetectApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DetectApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void DetectApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/DetectApplicationMonitorResult.cc b/ga/src/model/DetectApplicationMonitorResult.cc new file mode 100644 index 000000000..940ba5c23 --- /dev/null +++ b/ga/src/model/DetectApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DetectApplicationMonitorResult::DetectApplicationMonitorResult() : + ServiceResult() +{} + +DetectApplicationMonitorResult::DetectApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectApplicationMonitorResult::~DetectApplicationMonitorResult() +{} + +void DetectApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DisableApplicationMonitorRequest.cc b/ga/src/model/DisableApplicationMonitorRequest.cc new file mode 100644 index 000000000..2f8f7f7cd --- /dev/null +++ b/ga/src/model/DisableApplicationMonitorRequest.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::Ga::Model::DisableApplicationMonitorRequest; + +DisableApplicationMonitorRequest::DisableApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "DisableApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +DisableApplicationMonitorRequest::~DisableApplicationMonitorRequest() {} + +std::string DisableApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void DisableApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DisableApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void DisableApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DisableApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void DisableApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/DisableApplicationMonitorResult.cc b/ga/src/model/DisableApplicationMonitorResult.cc new file mode 100644 index 000000000..9adced53a --- /dev/null +++ b/ga/src/model/DisableApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +DisableApplicationMonitorResult::DisableApplicationMonitorResult() : + ServiceResult() +{} + +DisableApplicationMonitorResult::DisableApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableApplicationMonitorResult::~DisableApplicationMonitorResult() +{} + +void DisableApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DissociateAclsFromListenerRequest.cc b/ga/src/model/DissociateAclsFromListenerRequest.cc index a30e0c0e5..efd1dac82 100644 --- a/ga/src/model/DissociateAclsFromListenerRequest.cc +++ b/ga/src/model/DissociateAclsFromListenerRequest.cc @@ -1,86 +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 - -using AlibabaCloud::Ga::Model::DissociateAclsFromListenerRequest; - -DissociateAclsFromListenerRequest::DissociateAclsFromListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "DissociateAclsFromListener") -{ - setMethod(HttpRequest::Method::Post); -} - -DissociateAclsFromListenerRequest::~DissociateAclsFromListenerRequest() -{} - -bool DissociateAclsFromListenerRequest::getDryRun()const -{ - return dryRun_; + */ + +#include + +using AlibabaCloud::Ga::Model::DissociateAclsFromListenerRequest; + +DissociateAclsFromListenerRequest::DissociateAclsFromListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "DissociateAclsFromListener") { + setMethod(HttpRequest::Method::Post); } -void DissociateAclsFromListenerRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +DissociateAclsFromListenerRequest::~DissociateAclsFromListenerRequest() {} + +bool DissociateAclsFromListenerRequest::getDryRun() const { + return dryRun_; } -std::string DissociateAclsFromListenerRequest::getClientToken()const -{ - return clientToken_; +void DissociateAclsFromListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DissociateAclsFromListenerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DissociateAclsFromListenerRequest::getClientToken() const { + return clientToken_; } -std::vector DissociateAclsFromListenerRequest::getAclIds()const -{ - return aclIds_; +void DissociateAclsFromListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DissociateAclsFromListenerRequest::setAclIds(const std::vector& aclIds) -{ - aclIds_ = aclIds; - for(int dep1 = 0; dep1!= aclIds.size(); dep1++) { - setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1)); - } +std::vector DissociateAclsFromListenerRequest::getAclIds() const { + return aclIds_; } -std::string DissociateAclsFromListenerRequest::getListenerId()const -{ - return listenerId_; +void DissociateAclsFromListenerRequest::setAclIds(const std::vector &aclIds) { + aclIds_ = aclIds; } -void DissociateAclsFromListenerRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string DissociateAclsFromListenerRequest::getListenerId() const { + return listenerId_; } -std::string DissociateAclsFromListenerRequest::getRegionId()const -{ - return regionId_; +void DissociateAclsFromListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void DissociateAclsFromListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DissociateAclsFromListenerRequest::getRegionId() const { + return regionId_; +} + +void DissociateAclsFromListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc b/ga/src/model/DissociateAdditionalCertificatesFromListenerRequest.cc new file mode 100644 index 000000000..2dd709b99 --- /dev/null +++ b/ga/src/model/DissociateAdditionalCertificatesFromListenerRequest.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 + +using AlibabaCloud::Ga::Model::DissociateAdditionalCertificatesFromListenerRequest; + +DissociateAdditionalCertificatesFromListenerRequest::DissociateAdditionalCertificatesFromListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "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::vector DissociateAdditionalCertificatesFromListenerRequest::getDomains() const { + return domains_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setDomains(const std::vector &domains) { + domains_ = domains; +} + +std::string DissociateAdditionalCertificatesFromListenerRequest::getListenerId() const { + return listenerId_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string DissociateAdditionalCertificatesFromListenerRequest::getRegionId() const { + return regionId_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DissociateAdditionalCertificatesFromListenerRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void DissociateAdditionalCertificatesFromListenerRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/DissociateAdditionalCertificatesFromListenerResult.cc b/ga/src/model/DissociateAdditionalCertificatesFromListenerResult.cc new file mode 100644 index 000000000..8ad3fd4dc --- /dev/null +++ b/ga/src/model/DissociateAdditionalCertificatesFromListenerResult.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::Ga; +using namespace AlibabaCloud::Ga::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()); + +} + diff --git a/ga/src/model/EnableApplicationMonitorRequest.cc b/ga/src/model/EnableApplicationMonitorRequest.cc new file mode 100644 index 000000000..e27461129 --- /dev/null +++ b/ga/src/model/EnableApplicationMonitorRequest.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::Ga::Model::EnableApplicationMonitorRequest; + +EnableApplicationMonitorRequest::EnableApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "EnableApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +EnableApplicationMonitorRequest::~EnableApplicationMonitorRequest() {} + +std::string EnableApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void EnableApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string EnableApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void EnableApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string EnableApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void EnableApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/EnableApplicationMonitorResult.cc b/ga/src/model/EnableApplicationMonitorResult.cc new file mode 100644 index 000000000..61444d06a --- /dev/null +++ b/ga/src/model/EnableApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +EnableApplicationMonitorResult::EnableApplicationMonitorResult() : + ServiceResult() +{} + +EnableApplicationMonitorResult::EnableApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableApplicationMonitorResult::~EnableApplicationMonitorResult() +{} + +void EnableApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/GetAclRequest.cc b/ga/src/model/GetAclRequest.cc index 2c79cb535..42dc75960 100644 --- a/ga/src/model/GetAclRequest.cc +++ b/ga/src/model/GetAclRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::GetAclRequest; - -GetAclRequest::GetAclRequest() : - RpcServiceRequest("ga", "2019-11-20", "GetAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAclRequest::~GetAclRequest() -{} - -std::string GetAclRequest::getAclId()const -{ - return aclId_; + */ + +#include + +using AlibabaCloud::Ga::Model::GetAclRequest; + +GetAclRequest::GetAclRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetAcl") { + setMethod(HttpRequest::Method::Post); } -void GetAclRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +GetAclRequest::~GetAclRequest() {} + +std::string GetAclRequest::getAclId() const { + return aclId_; } -std::string GetAclRequest::getRegionId()const -{ - return regionId_; +void GetAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void GetAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetAclRequest::getRegionId() const { + return regionId_; +} + +void GetAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/GetAclResult.cc b/ga/src/model/GetAclResult.cc index 9352c38b3..856761477 100644 --- a/ga/src/model/GetAclResult.cc +++ b/ga/src/model/GetAclResult.cc @@ -53,22 +53,34 @@ void GetAclResult::parse(const std::string &payload) for (auto valueRelatedListenersRelatedListenersItem : allRelatedListenersNode) { RelatedListenersItem relatedListenersObject; + if(!valueRelatedListenersRelatedListenersItem["ListenerId"].isNull()) + relatedListenersObject.listenerId = valueRelatedListenersRelatedListenersItem["ListenerId"].asString(); if(!valueRelatedListenersRelatedListenersItem["AclType"].isNull()) relatedListenersObject.aclType = valueRelatedListenersRelatedListenersItem["AclType"].asString(); if(!valueRelatedListenersRelatedListenersItem["AcceleratorId"].isNull()) relatedListenersObject.acceleratorId = valueRelatedListenersRelatedListenersItem["AcceleratorId"].asString(); - if(!valueRelatedListenersRelatedListenersItem["ListenerId"].isNull()) - relatedListenersObject.listenerId = valueRelatedListenersRelatedListenersItem["ListenerId"].asString(); relatedListeners_.push_back(relatedListenersObject); } - if(!value["AclStatus"].isNull()) - aclStatus_ = value["AclStatus"].asString(); - if(!value["AddressIPVersion"].isNull()) - addressIPVersion_ = value["AddressIPVersion"].asString(); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); + } if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); if(!value["AclName"].isNull()) aclName_ = value["AclName"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -82,9 +94,9 @@ std::string GetAclResult::getAclStatus()const return aclStatus_; } -std::string GetAclResult::getAddressIPVersion()const +std::string GetAclResult::getResourceGroupId()const { - return addressIPVersion_; + return resourceGroupId_; } std::string GetAclResult::getAclId()const @@ -92,11 +104,21 @@ std::string GetAclResult::getAclId()const return aclId_; } +std::string GetAclResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + std::vector GetAclResult::getRelatedListeners()const { return relatedListeners_; } +std::vector GetAclResult::getTags()const +{ + return tags_; +} + std::string GetAclResult::getAclName()const { return aclName_; diff --git a/ga/src/model/GetBasicAccelerateIpEndpointRelationRequest.cc b/ga/src/model/GetBasicAccelerateIpEndpointRelationRequest.cc new file mode 100644 index 000000000..dea48eb28 --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpEndpointRelationRequest.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::Ga::Model::GetBasicAccelerateIpEndpointRelationRequest; + +GetBasicAccelerateIpEndpointRelationRequest::GetBasicAccelerateIpEndpointRelationRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicAccelerateIpEndpointRelation") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicAccelerateIpEndpointRelationRequest::~GetBasicAccelerateIpEndpointRelationRequest() {} + +std::string GetBasicAccelerateIpEndpointRelationRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicAccelerateIpEndpointRelationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicAccelerateIpEndpointRelationRequest::getEndpointId() const { + return endpointId_; +} + +void GetBasicAccelerateIpEndpointRelationRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string GetBasicAccelerateIpEndpointRelationRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void GetBasicAccelerateIpEndpointRelationRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string GetBasicAccelerateIpEndpointRelationRequest::getRegionId() const { + return regionId_; +} + +void GetBasicAccelerateIpEndpointRelationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetBasicAccelerateIpEndpointRelationRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void GetBasicAccelerateIpEndpointRelationRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/GetBasicAccelerateIpEndpointRelationResult.cc b/ga/src/model/GetBasicAccelerateIpEndpointRelationResult.cc new file mode 100644 index 000000000..400607dfc --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpEndpointRelationResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicAccelerateIpEndpointRelationResult::GetBasicAccelerateIpEndpointRelationResult() : + ServiceResult() +{} + +GetBasicAccelerateIpEndpointRelationResult::GetBasicAccelerateIpEndpointRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicAccelerateIpEndpointRelationResult::~GetBasicAccelerateIpEndpointRelationResult() +{} + +void GetBasicAccelerateIpEndpointRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["EndpointName"].isNull()) + endpointName_ = value["EndpointName"].asString(); + if(!value["EndpointType"].isNull()) + endpointType_ = value["EndpointType"].asString(); + if(!value["EndpointAddress"].isNull()) + endpointAddress_ = value["EndpointAddress"].asString(); + if(!value["EndpointSubAddress"].isNull()) + endpointSubAddress_ = value["EndpointSubAddress"].asString(); + if(!value["EndpointSubAddressType"].isNull()) + endpointSubAddressType_ = value["EndpointSubAddressType"].asString(); + if(!value["EndpointZoneId"].isNull()) + endpointZoneId_ = value["EndpointZoneId"].asString(); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + if(!value["IpAddress"].isNull()) + ipAddress_ = value["IpAddress"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointName()const +{ + return endpointName_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointZoneId()const +{ + return endpointZoneId_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getState()const +{ + return state_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointId()const +{ + return endpointId_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointType()const +{ + return endpointType_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointSubAddressType()const +{ + return endpointSubAddressType_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointSubAddress()const +{ + return endpointSubAddress_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getIpAddress()const +{ + return ipAddress_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string GetBasicAccelerateIpEndpointRelationResult::getEndpointAddress()const +{ + return endpointAddress_; +} + diff --git a/ga/src/model/GetBasicAccelerateIpIdleCountRequest.cc b/ga/src/model/GetBasicAccelerateIpIdleCountRequest.cc new file mode 100644 index 000000000..b18a0e9d3 --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpIdleCountRequest.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::Ga::Model::GetBasicAccelerateIpIdleCountRequest; + +GetBasicAccelerateIpIdleCountRequest::GetBasicAccelerateIpIdleCountRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicAccelerateIpIdleCount") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicAccelerateIpIdleCountRequest::~GetBasicAccelerateIpIdleCountRequest() {} + +std::string GetBasicAccelerateIpIdleCountRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicAccelerateIpIdleCountRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicAccelerateIpIdleCountRequest::getIpSetId() const { + return ipSetId_; +} + +void GetBasicAccelerateIpIdleCountRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string GetBasicAccelerateIpIdleCountRequest::getRegionId() const { + return regionId_; +} + +void GetBasicAccelerateIpIdleCountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/GetBasicAccelerateIpIdleCountResult.cc b/ga/src/model/GetBasicAccelerateIpIdleCountResult.cc new file mode 100644 index 000000000..c0dcf47e7 --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpIdleCountResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicAccelerateIpIdleCountResult::GetBasicAccelerateIpIdleCountResult() : + ServiceResult() +{} + +GetBasicAccelerateIpIdleCountResult::GetBasicAccelerateIpIdleCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicAccelerateIpIdleCountResult::~GetBasicAccelerateIpIdleCountResult() +{} + +void GetBasicAccelerateIpIdleCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetBasicAccelerateIpIdleCountResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/ga/src/model/GetBasicAccelerateIpRequest.cc b/ga/src/model/GetBasicAccelerateIpRequest.cc new file mode 100644 index 000000000..5ed6c4319 --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpRequest.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::Ga::Model::GetBasicAccelerateIpRequest; + +GetBasicAccelerateIpRequest::GetBasicAccelerateIpRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicAccelerateIp") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicAccelerateIpRequest::~GetBasicAccelerateIpRequest() {} + +std::string GetBasicAccelerateIpRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicAccelerateIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicAccelerateIpRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void GetBasicAccelerateIpRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string GetBasicAccelerateIpRequest::getRegionId() const { + return regionId_; +} + +void GetBasicAccelerateIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/GetBasicAccelerateIpResult.cc b/ga/src/model/GetBasicAccelerateIpResult.cc new file mode 100644 index 000000000..9fe60b95f --- /dev/null +++ b/ga/src/model/GetBasicAccelerateIpResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicAccelerateIpResult::GetBasicAccelerateIpResult() : + ServiceResult() +{} + +GetBasicAccelerateIpResult::GetBasicAccelerateIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicAccelerateIpResult::~GetBasicAccelerateIpResult() +{} + +void GetBasicAccelerateIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["IpSetId"].isNull()) + ipSetId_ = value["IpSetId"].asString(); + if(!value["AccelerateIpId"].isNull()) + accelerateIpId_ = value["AccelerateIpId"].asString(); + if(!value["AccelerateIpAddress"].isNull()) + accelerateIpAddress_ = value["AccelerateIpAddress"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string GetBasicAccelerateIpResult::getIpSetId()const +{ + return ipSetId_; +} + +std::string GetBasicAccelerateIpResult::getAccelerateIpId()const +{ + return accelerateIpId_; +} + +std::string GetBasicAccelerateIpResult::getAccelerateIpAddress()const +{ + return accelerateIpAddress_; +} + +std::string GetBasicAccelerateIpResult::getState()const +{ + return state_; +} + +std::string GetBasicAccelerateIpResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/GetBasicAcceleratorRequest.cc b/ga/src/model/GetBasicAcceleratorRequest.cc new file mode 100644 index 000000000..f92a38692 --- /dev/null +++ b/ga/src/model/GetBasicAcceleratorRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::GetBasicAcceleratorRequest; + +GetBasicAcceleratorRequest::GetBasicAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicAccelerator") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicAcceleratorRequest::~GetBasicAcceleratorRequest() {} + +std::string GetBasicAcceleratorRequest::getRegionId() const { + return regionId_; +} + +void GetBasicAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetBasicAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void GetBasicAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/GetBasicAcceleratorResult.cc b/ga/src/model/GetBasicAcceleratorResult.cc new file mode 100644 index 000000000..b2bb8b59c --- /dev/null +++ b/ga/src/model/GetBasicAcceleratorResult.cc @@ -0,0 +1,186 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicAcceleratorResult::GetBasicAcceleratorResult() : + ServiceResult() +{} + +GetBasicAcceleratorResult::GetBasicAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicAcceleratorResult::~GetBasicAcceleratorResult() +{} + +void GetBasicAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); + } + auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"]; + if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull()) + crossDomainBandwidthPackage_.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString()); + if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) + crossDomainBandwidthPackage_.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); + auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + if(!basicBandwidthPackageNode["Bandwidth"].isNull()) + basicBandwidthPackage_.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); + if(!basicBandwidthPackageNode["BandwidthType"].isNull()) + basicBandwidthPackage_.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString(); + if(!basicBandwidthPackageNode["InstanceId"].isNull()) + basicBandwidthPackage_.instanceId = basicBandwidthPackageNode["InstanceId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["InstanceChargeType"].isNull()) + instanceChargeType_ = value["InstanceChargeType"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = std::stol(value["CreateTime"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = std::stol(value["ExpiredTime"].asString()); + if(!value["CenId"].isNull()) + cenId_ = value["CenId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["BasicEndpointGroupId"].isNull()) + basicEndpointGroupId_ = value["BasicEndpointGroupId"].asString(); + if(!value["BasicIpSetId"].isNull()) + basicIpSetId_ = value["BasicIpSetId"].asString(); + if(!value["BandwidthBillingType"].isNull()) + bandwidthBillingType_ = value["BandwidthBillingType"].asString(); + if(!value["CrossPrivateState"].isNull()) + crossPrivateState_ = value["CrossPrivateState"].asString(); + if(!value["CrossBorderStatus"].isNull()) + crossBorderStatus_ = value["CrossBorderStatus"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string GetBasicAcceleratorResult::getDescription()const +{ + return description_; +} + +std::string GetBasicAcceleratorResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string GetBasicAcceleratorResult::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +long GetBasicAcceleratorResult::getCreateTime()const +{ + return createTime_; +} + +GetBasicAcceleratorResult::CrossDomainBandwidthPackage GetBasicAcceleratorResult::getCrossDomainBandwidthPackage()const +{ + return crossDomainBandwidthPackage_; +} + +std::string GetBasicAcceleratorResult::getName()const +{ + return name_; +} + +std::string GetBasicAcceleratorResult::getBandwidthBillingType()const +{ + return bandwidthBillingType_; +} + +GetBasicAcceleratorResult::BasicBandwidthPackage GetBasicAcceleratorResult::getBasicBandwidthPackage()const +{ + return basicBandwidthPackage_; +} + +std::string GetBasicAcceleratorResult::getState()const +{ + return state_; +} + +long GetBasicAcceleratorResult::getExpiredTime()const +{ + return expiredTime_; +} + +std::string GetBasicAcceleratorResult::getBasicIpSetId()const +{ + return basicIpSetId_; +} + +std::string GetBasicAcceleratorResult::getCenId()const +{ + return cenId_; +} + +std::string GetBasicAcceleratorResult::getCrossPrivateState()const +{ + return crossPrivateState_; +} + +std::string GetBasicAcceleratorResult::getRegionId()const +{ + return regionId_; +} + +std::string GetBasicAcceleratorResult::getBasicEndpointGroupId()const +{ + return basicEndpointGroupId_; +} + +std::string GetBasicAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::vector GetBasicAcceleratorResult::getTags()const +{ + return tags_; +} + +bool GetBasicAcceleratorResult::getCrossBorderStatus()const +{ + return crossBorderStatus_; +} + diff --git a/ga/src/model/GetBasicEndpointGroupRequest.cc b/ga/src/model/GetBasicEndpointGroupRequest.cc new file mode 100644 index 000000000..6f4be27c0 --- /dev/null +++ b/ga/src/model/GetBasicEndpointGroupRequest.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::Ga::Model::GetBasicEndpointGroupRequest; + +GetBasicEndpointGroupRequest::GetBasicEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicEndpointGroup") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicEndpointGroupRequest::~GetBasicEndpointGroupRequest() {} + +std::string GetBasicEndpointGroupRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicEndpointGroupRequest::getRegionId() const { + return regionId_; +} + +void GetBasicEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetBasicEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void GetBasicEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/GetBasicEndpointGroupResult.cc b/ga/src/model/GetBasicEndpointGroupResult.cc new file mode 100644 index 000000000..d9406392f --- /dev/null +++ b/ga/src/model/GetBasicEndpointGroupResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicEndpointGroupResult::GetBasicEndpointGroupResult() : + ServiceResult() +{} + +GetBasicEndpointGroupResult::GetBasicEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicEndpointGroupResult::~GetBasicEndpointGroupResult() +{} + +void GetBasicEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["EndpointGroupRegion"].isNull()) + endpointGroupRegion_ = value["EndpointGroupRegion"].asString(); + if(!value["EndpointType"].isNull()) + endpointType_ = value["EndpointType"].asString(); + if(!value["EndpointAddress"].isNull()) + endpointAddress_ = value["EndpointAddress"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["EndpointSubAddress"].isNull()) + endpointSubAddress_ = value["EndpointSubAddress"].asString(); + +} + +std::string GetBasicEndpointGroupResult::getEndpointGroupRegion()const +{ + return endpointGroupRegion_; +} + +std::string GetBasicEndpointGroupResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string GetBasicEndpointGroupResult::getDescription()const +{ + return description_; +} + +std::string GetBasicEndpointGroupResult::getState()const +{ + return state_; +} + +std::string GetBasicEndpointGroupResult::getEndpointType()const +{ + return endpointType_; +} + +std::string GetBasicEndpointGroupResult::getEndpointSubAddress()const +{ + return endpointSubAddress_; +} + +std::string GetBasicEndpointGroupResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string GetBasicEndpointGroupResult::getName()const +{ + return name_; +} + +std::string GetBasicEndpointGroupResult::getEndpointAddress()const +{ + return endpointAddress_; +} + diff --git a/ga/src/model/GetBasicEndpointRequest.cc b/ga/src/model/GetBasicEndpointRequest.cc new file mode 100644 index 000000000..fcb841950 --- /dev/null +++ b/ga/src/model/GetBasicEndpointRequest.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::Ga::Model::GetBasicEndpointRequest; + +GetBasicEndpointRequest::GetBasicEndpointRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicEndpointRequest::~GetBasicEndpointRequest() {} + +std::string GetBasicEndpointRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void GetBasicEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string GetBasicEndpointRequest::getRegionId() const { + return regionId_; +} + +void GetBasicEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/GetBasicEndpointResult.cc b/ga/src/model/GetBasicEndpointResult.cc new file mode 100644 index 000000000..7fab195ab --- /dev/null +++ b/ga/src/model/GetBasicEndpointResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicEndpointResult::GetBasicEndpointResult() : + ServiceResult() +{} + +GetBasicEndpointResult::GetBasicEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicEndpointResult::~GetBasicEndpointResult() +{} + +void GetBasicEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["EndPointId"].isNull()) + endPointId_ = value["EndPointId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["EndpointType"].isNull()) + endpointType_ = value["EndpointType"].asString(); + if(!value["EndpointAddress"].isNull()) + endpointAddress_ = value["EndpointAddress"].asString(); + if(!value["EndpointSubAddress"].isNull()) + endpointSubAddress_ = value["EndpointSubAddress"].asString(); + if(!value["EndpointSubAddressType"].isNull()) + endpointSubAddressType_ = value["EndpointSubAddressType"].asString(); + if(!value["EndpointZoneId"].isNull()) + endpointZoneId_ = value["EndpointZoneId"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string GetBasicEndpointResult::getEndPointId()const +{ + return endPointId_; +} + +std::string GetBasicEndpointResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string GetBasicEndpointResult::getEndpointZoneId()const +{ + return endpointZoneId_; +} + +std::string GetBasicEndpointResult::getState()const +{ + return state_; +} + +std::string GetBasicEndpointResult::getEndpointType()const +{ + return endpointType_; +} + +std::string GetBasicEndpointResult::getEndpointSubAddressType()const +{ + return endpointSubAddressType_; +} + +std::string GetBasicEndpointResult::getEndpointSubAddress()const +{ + return endpointSubAddress_; +} + +std::string GetBasicEndpointResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string GetBasicEndpointResult::getName()const +{ + return name_; +} + +std::string GetBasicEndpointResult::getEndpointAddress()const +{ + return endpointAddress_; +} + diff --git a/ga/src/model/GetBasicIpSetRequest.cc b/ga/src/model/GetBasicIpSetRequest.cc new file mode 100644 index 000000000..6a9e5db51 --- /dev/null +++ b/ga/src/model/GetBasicIpSetRequest.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::Ga::Model::GetBasicIpSetRequest; + +GetBasicIpSetRequest::GetBasicIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetBasicIpSet") { + setMethod(HttpRequest::Method::Post); +} + +GetBasicIpSetRequest::~GetBasicIpSetRequest() {} + +std::string GetBasicIpSetRequest::getClientToken() const { + return clientToken_; +} + +void GetBasicIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetBasicIpSetRequest::getIpSetId() const { + return ipSetId_; +} + +void GetBasicIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string GetBasicIpSetRequest::getRegionId() const { + return regionId_; +} + +void GetBasicIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/GetBasicIpSetResult.cc b/ga/src/model/GetBasicIpSetResult.cc new file mode 100644 index 000000000..1e54050e0 --- /dev/null +++ b/ga/src/model/GetBasicIpSetResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetBasicIpSetResult::GetBasicIpSetResult() : + ServiceResult() +{} + +GetBasicIpSetResult::GetBasicIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBasicIpSetResult::~GetBasicIpSetResult() +{} + +void GetBasicIpSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AccelerateRegionId"].isNull()) + accelerateRegionId_ = value["AccelerateRegionId"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stol(value["Bandwidth"].asString()); + if(!value["IpSetId"].isNull()) + ipSetId_ = value["IpSetId"].asString(); + if(!value["IpAddress"].isNull()) + ipAddress_ = value["IpAddress"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + if(!value["IpVersion"].isNull()) + ipVersion_ = value["IpVersion"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["IspType"].isNull()) + ispType_ = value["IspType"].asString(); + +} + +std::string GetBasicIpSetResult::getIpSetId()const +{ + return ipSetId_; +} + +std::string GetBasicIpSetResult::getIpVersion()const +{ + return ipVersion_; +} + +std::string GetBasicIpSetResult::getState()const +{ + return state_; +} + +std::string GetBasicIpSetResult::getIspType()const +{ + return ispType_; +} + +long GetBasicIpSetResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string GetBasicIpSetResult::getAccelerateRegionId()const +{ + return accelerateRegionId_; +} + +std::string GetBasicIpSetResult::getIpAddress()const +{ + return ipAddress_; +} + +std::string GetBasicIpSetResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/GetHealthStatusRequest.cc b/ga/src/model/GetHealthStatusRequest.cc new file mode 100644 index 000000000..52a9fa11b --- /dev/null +++ b/ga/src/model/GetHealthStatusRequest.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::Ga::Model::GetHealthStatusRequest; + +GetHealthStatusRequest::GetHealthStatusRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetHealthStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetHealthStatusRequest::~GetHealthStatusRequest() {} + +bool GetHealthStatusRequest::getDryRun() const { + return dryRun_; +} + +void GetHealthStatusRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string GetHealthStatusRequest::getClientToken() const { + return clientToken_; +} + +void GetHealthStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetHealthStatusRequest::getListenerId() const { + return listenerId_; +} + +void GetHealthStatusRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string GetHealthStatusRequest::getRegionId() const { + return regionId_; +} + +void GetHealthStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetHealthStatusRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void GetHealthStatusRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/GetHealthStatusResult.cc b/ga/src/model/GetHealthStatusResult.cc new file mode 100644 index 000000000..a216d6ba4 --- /dev/null +++ b/ga/src/model/GetHealthStatusResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetHealthStatusResult::GetHealthStatusResult() : + ServiceResult() +{} + +GetHealthStatusResult::GetHealthStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHealthStatusResult::~GetHealthStatusResult() +{} + +void GetHealthStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupsNode = value["EndpointGroups"]["endpointGroupHealthStatuses"]; + for (auto valueEndpointGroupsendpointGroupHealthStatuses : allEndpointGroupsNode) + { + EndpointGroupHealthStatuses endpointGroupsObject; + if(!valueEndpointGroupsendpointGroupHealthStatuses["EndpointGroupId"].isNull()) + endpointGroupsObject.endpointGroupId = valueEndpointGroupsendpointGroupHealthStatuses["EndpointGroupId"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatuses["EndpointGroupType"].isNull()) + endpointGroupsObject.endpointGroupType = valueEndpointGroupsendpointGroupHealthStatuses["EndpointGroupType"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatuses["HealthStatus"].isNull()) + endpointGroupsObject.healthStatus = valueEndpointGroupsendpointGroupHealthStatuses["HealthStatus"].asString(); + auto allEndpointsNode = valueEndpointGroupsendpointGroupHealthStatuses["Endpoints"]["endpointHealthStatuses"]; + for (auto valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses : allEndpointsNode) + { + EndpointGroupHealthStatuses::EndpointHealthStatuses endpointsObject; + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["EndpointId"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Address"].isNull()) + endpointsObject.address = valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Address"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["HealthStatus"].isNull()) + endpointsObject.healthStatus = valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["HealthStatus"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["HealthDetail"].isNull()) + endpointsObject.healthDetail = valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["HealthDetail"].asString(); + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Port"].isNull()) + endpointsObject.port = std::stol(valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Port"].asString()); + if(!valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Type"].isNull()) + endpointsObject.type = valueEndpointGroupsendpointGroupHealthStatusesEndpointsendpointHealthStatuses["Type"].asString(); + endpointGroupsObject.endpoints.push_back(endpointsObject); + } + auto allForwardingRuleIds = value["ForwardingRuleIds"]["forwardingRuleIds"]; + for (auto value : allForwardingRuleIds) + endpointGroupsObject.forwardingRuleIds.push_back(value.asString()); + endpointGroups_.push_back(endpointGroupsObject); + } + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["HealthStatus"].isNull()) + healthStatus_ = value["HealthStatus"].asString(); + +} + +std::string GetHealthStatusResult::getHealthStatus()const +{ + return healthStatus_; +} + +std::vector GetHealthStatusResult::getEndpointGroups()const +{ + return endpointGroups_; +} + +std::string GetHealthStatusResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/GetInvalidDomainCountRequest.cc b/ga/src/model/GetInvalidDomainCountRequest.cc new file mode 100644 index 000000000..a76dd94c4 --- /dev/null +++ b/ga/src/model/GetInvalidDomainCountRequest.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::Ga::Model::GetInvalidDomainCountRequest; + +GetInvalidDomainCountRequest::GetInvalidDomainCountRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetInvalidDomainCount") { + setMethod(HttpRequest::Method::Post); +} + +GetInvalidDomainCountRequest::~GetInvalidDomainCountRequest() {} + +std::string GetInvalidDomainCountRequest::getRegionId() const { + return regionId_; +} + +void GetInvalidDomainCountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/GetInvalidDomainCountResult.cc b/ga/src/model/GetInvalidDomainCountResult.cc new file mode 100644 index 000000000..a80370e53 --- /dev/null +++ b/ga/src/model/GetInvalidDomainCountResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetInvalidDomainCountResult::GetInvalidDomainCountResult() : + ServiceResult() +{} + +GetInvalidDomainCountResult::GetInvalidDomainCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInvalidDomainCountResult::~GetInvalidDomainCountResult() +{} + +void GetInvalidDomainCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InvalidDomainCount"].isNull()) + invalidDomainCount_ = value["InvalidDomainCount"].asString(); + +} + +std::string GetInvalidDomainCountResult::getInvalidDomainCount()const +{ + return invalidDomainCount_; +} + diff --git a/ga/src/model/GetIpsetsBandwidthLimitRequest.cc b/ga/src/model/GetIpsetsBandwidthLimitRequest.cc new file mode 100644 index 000000000..1be78308f --- /dev/null +++ b/ga/src/model/GetIpsetsBandwidthLimitRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::GetIpsetsBandwidthLimitRequest; + +GetIpsetsBandwidthLimitRequest::GetIpsetsBandwidthLimitRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetIpsetsBandwidthLimit") { + setMethod(HttpRequest::Method::Post); +} + +GetIpsetsBandwidthLimitRequest::~GetIpsetsBandwidthLimitRequest() {} + +std::string GetIpsetsBandwidthLimitRequest::getRegionId() const { + return regionId_; +} + +void GetIpsetsBandwidthLimitRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetIpsetsBandwidthLimitRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void GetIpsetsBandwidthLimitRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/GetIpsetsBandwidthLimitResult.cc b/ga/src/model/GetIpsetsBandwidthLimitResult.cc new file mode 100644 index 000000000..f29545057 --- /dev/null +++ b/ga/src/model/GetIpsetsBandwidthLimitResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetIpsetsBandwidthLimitResult::GetIpsetsBandwidthLimitResult() : + ServiceResult() +{} + +GetIpsetsBandwidthLimitResult::GetIpsetsBandwidthLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetIpsetsBandwidthLimitResult::~GetIpsetsBandwidthLimitResult() +{} + +void GetIpsetsBandwidthLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthLimit"].isNull()) + bandwidthLimit_ = std::stol(value["BandwidthLimit"].asString()); + if(!value["BandwidthAllocationType"].isNull()) + bandwidthAllocationType_ = value["BandwidthAllocationType"].asString(); + +} + +std::string GetIpsetsBandwidthLimitResult::getBandwidthAllocationType()const +{ + return bandwidthAllocationType_; +} + +long GetIpsetsBandwidthLimitResult::getBandwidthLimit()const +{ + return bandwidthLimit_; +} + diff --git a/ga/src/model/GetSpareIpRequest.cc b/ga/src/model/GetSpareIpRequest.cc new file mode 100644 index 000000000..67af36787 --- /dev/null +++ b/ga/src/model/GetSpareIpRequest.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::Ga::Model::GetSpareIpRequest; + +GetSpareIpRequest::GetSpareIpRequest() + : RpcServiceRequest("ga", "2019-11-20", "GetSpareIp") { + setMethod(HttpRequest::Method::Post); +} + +GetSpareIpRequest::~GetSpareIpRequest() {} + +bool GetSpareIpRequest::getDryRun() const { + return dryRun_; +} + +void GetSpareIpRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string GetSpareIpRequest::getClientToken() const { + return clientToken_; +} + +void GetSpareIpRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetSpareIpRequest::getSpareIp() const { + return spareIp_; +} + +void GetSpareIpRequest::setSpareIp(const std::string &spareIp) { + spareIp_ = spareIp; + setParameter(std::string("SpareIp"), spareIp); +} + +std::string GetSpareIpRequest::getRegionId() const { + return regionId_; +} + +void GetSpareIpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetSpareIpRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void GetSpareIpRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/GetSpareIpResult.cc b/ga/src/model/GetSpareIpResult.cc new file mode 100644 index 000000000..f2db19651 --- /dev/null +++ b/ga/src/model/GetSpareIpResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetSpareIpResult::GetSpareIpResult() : + ServiceResult() +{} + +GetSpareIpResult::GetSpareIpResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSpareIpResult::~GetSpareIpResult() +{} + +void GetSpareIpResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string GetSpareIpResult::getState()const +{ + return state_; +} + diff --git a/ga/src/model/ListAccelerateAreasRequest.cc b/ga/src/model/ListAccelerateAreasRequest.cc index 74abb016e..898c105bb 100644 --- a/ga/src/model/ListAccelerateAreasRequest.cc +++ b/ga/src/model/ListAccelerateAreasRequest.cc @@ -1,40 +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::Ga::Model::ListAccelerateAreasRequest; - -ListAccelerateAreasRequest::ListAccelerateAreasRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListAccelerateAreas") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAccelerateAreasRequest::~ListAccelerateAreasRequest() -{} - -std::string ListAccelerateAreasRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListAccelerateAreasRequest; + +ListAccelerateAreasRequest::ListAccelerateAreasRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListAccelerateAreas") { + setMethod(HttpRequest::Method::Post); } -void ListAccelerateAreasRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListAccelerateAreasRequest::~ListAccelerateAreasRequest() {} + +std::string ListAccelerateAreasRequest::getRegionId() const { + return regionId_; +} + +void ListAccelerateAreasRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/ListAccelerateAreasResult.cc b/ga/src/model/ListAccelerateAreasResult.cc index 765839270..6ab93055f 100644 --- a/ga/src/model/ListAccelerateAreasResult.cc +++ b/ga/src/model/ListAccelerateAreasResult.cc @@ -43,18 +43,18 @@ void ListAccelerateAreasResult::parse(const std::string &payload) for (auto valueAreasAreasItem : allAreasNode) { AreasItem areasObject; - if(!valueAreasAreasItem["AreaId"].isNull()) - areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); if(!valueAreasAreasItem["LocalName"].isNull()) areasObject.localName = valueAreasAreasItem["LocalName"].asString(); + if(!valueAreasAreasItem["AreaId"].isNull()) + areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); auto allRegionListNode = valueAreasAreasItem["RegionList"]["RegionListItem"]; for (auto valueAreasAreasItemRegionListRegionListItem : allRegionListNode) { AreasItem::RegionListItem regionListObject; - if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull()) - regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString(); if(!valueAreasAreasItemRegionListRegionListItem["LocalName"].isNull()) regionListObject.localName = valueAreasAreasItemRegionListRegionListItem["LocalName"].asString(); + if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull()) + regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString(); areasObject.regionList.push_back(regionListObject); } areas_.push_back(areasObject); diff --git a/ga/src/model/ListAcceleratorsRequest.cc b/ga/src/model/ListAcceleratorsRequest.cc index ef8af1bd0..292f86f7d 100644 --- a/ga/src/model/ListAcceleratorsRequest.cc +++ b/ga/src/model/ListAcceleratorsRequest.cc @@ -1,73 +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::Ga::Model::ListAcceleratorsRequest; - -ListAcceleratorsRequest::ListAcceleratorsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListAccelerators") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAcceleratorsRequest::~ListAcceleratorsRequest() -{} - -int ListAcceleratorsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListAcceleratorsRequest; + +ListAcceleratorsRequest::ListAcceleratorsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListAccelerators") { + setMethod(HttpRequest::Method::Post); } -void ListAcceleratorsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListAcceleratorsRequest::~ListAcceleratorsRequest() {} + +int ListAcceleratorsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListAcceleratorsRequest::getRegionId()const -{ - return regionId_; +void ListAcceleratorsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListAcceleratorsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListAcceleratorsRequest::getResourceGroupId() const { + return resourceGroupId_; } -int ListAcceleratorsRequest::getPageSize()const -{ - return pageSize_; +void ListAcceleratorsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ListAcceleratorsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string ListAcceleratorsRequest::getRegionId() const { + return regionId_; } -std::string ListAcceleratorsRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListAcceleratorsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAcceleratorsRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +int ListAcceleratorsRequest::getPageSize() const { + return pageSize_; +} + +void ListAcceleratorsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAcceleratorsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListAcceleratorsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListAcceleratorsRequest::getState() const { + return state_; +} + +void ListAcceleratorsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::vector ListAcceleratorsRequest::getTag() const { + return tag_; +} + +void ListAcceleratorsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } diff --git a/ga/src/model/ListAcceleratorsResult.cc b/ga/src/model/ListAcceleratorsResult.cc index 17052899c..4187b0176 100644 --- a/ga/src/model/ListAcceleratorsResult.cc +++ b/ga/src/model/ListAcceleratorsResult.cc @@ -43,48 +43,71 @@ void ListAcceleratorsResult::parse(const std::string &payload) for (auto valueAcceleratorsAcceleratorsItem : allAcceleratorsNode) { AcceleratorsItem acceleratorsObject; - if(!valueAcceleratorsAcceleratorsItem["DdosId"].isNull()) - acceleratorsObject.ddosId = valueAcceleratorsAcceleratorsItem["DdosId"].asString(); if(!valueAcceleratorsAcceleratorsItem["DnsName"].isNull()) acceleratorsObject.dnsName = valueAcceleratorsAcceleratorsItem["DnsName"].asString(); - if(!valueAcceleratorsAcceleratorsItem["Description"].isNull()) - acceleratorsObject.description = valueAcceleratorsAcceleratorsItem["Description"].asString(); - if(!valueAcceleratorsAcceleratorsItem["InstanceChargeType"].isNull()) - acceleratorsObject.instanceChargeType = valueAcceleratorsAcceleratorsItem["InstanceChargeType"].asString(); - if(!valueAcceleratorsAcceleratorsItem["CreateTime"].isNull()) - acceleratorsObject.createTime = std::stol(valueAcceleratorsAcceleratorsItem["CreateTime"].asString()); - if(!valueAcceleratorsAcceleratorsItem["SecondDnsName"].isNull()) - acceleratorsObject.secondDnsName = valueAcceleratorsAcceleratorsItem["SecondDnsName"].asString(); - if(!valueAcceleratorsAcceleratorsItem["Name"].isNull()) - acceleratorsObject.name = valueAcceleratorsAcceleratorsItem["Name"].asString(); if(!valueAcceleratorsAcceleratorsItem["Type"].isNull()) acceleratorsObject.type = valueAcceleratorsAcceleratorsItem["Type"].asString(); - if(!valueAcceleratorsAcceleratorsItem["State"].isNull()) - acceleratorsObject.state = valueAcceleratorsAcceleratorsItem["State"].asString(); - if(!valueAcceleratorsAcceleratorsItem["ExpiredTime"].isNull()) - acceleratorsObject.expiredTime = std::stol(valueAcceleratorsAcceleratorsItem["ExpiredTime"].asString()); - if(!valueAcceleratorsAcceleratorsItem["Bandwidth"].isNull()) - acceleratorsObject.bandwidth = std::stoi(valueAcceleratorsAcceleratorsItem["Bandwidth"].asString()); - if(!valueAcceleratorsAcceleratorsItem["CenId"].isNull()) - acceleratorsObject.cenId = valueAcceleratorsAcceleratorsItem["CenId"].asString(); - if(!valueAcceleratorsAcceleratorsItem["RegionId"].isNull()) - acceleratorsObject.regionId = valueAcceleratorsAcceleratorsItem["RegionId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["SecondDnsName"].isNull()) + acceleratorsObject.secondDnsName = valueAcceleratorsAcceleratorsItem["SecondDnsName"].asString(); if(!valueAcceleratorsAcceleratorsItem["Spec"].isNull()) acceleratorsObject.spec = valueAcceleratorsAcceleratorsItem["Spec"].asString(); + if(!valueAcceleratorsAcceleratorsItem["State"].isNull()) + acceleratorsObject.state = valueAcceleratorsAcceleratorsItem["State"].asString(); + if(!valueAcceleratorsAcceleratorsItem["CreateTime"].isNull()) + acceleratorsObject.createTime = std::stol(valueAcceleratorsAcceleratorsItem["CreateTime"].asString()); + if(!valueAcceleratorsAcceleratorsItem["CenId"].isNull()) + acceleratorsObject.cenId = valueAcceleratorsAcceleratorsItem["CenId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["DdosId"].isNull()) + acceleratorsObject.ddosId = valueAcceleratorsAcceleratorsItem["DdosId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["RegionId"].isNull()) + acceleratorsObject.regionId = valueAcceleratorsAcceleratorsItem["RegionId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["InstanceChargeType"].isNull()) + acceleratorsObject.instanceChargeType = valueAcceleratorsAcceleratorsItem["InstanceChargeType"].asString(); if(!valueAcceleratorsAcceleratorsItem["AcceleratorId"].isNull()) acceleratorsObject.acceleratorId = valueAcceleratorsAcceleratorsItem["AcceleratorId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["Description"].isNull()) + acceleratorsObject.description = valueAcceleratorsAcceleratorsItem["Description"].asString(); + if(!valueAcceleratorsAcceleratorsItem["Bandwidth"].isNull()) + acceleratorsObject.bandwidth = std::stoi(valueAcceleratorsAcceleratorsItem["Bandwidth"].asString()); + if(!valueAcceleratorsAcceleratorsItem["BandwidthBillingType"].isNull()) + acceleratorsObject.bandwidthBillingType = valueAcceleratorsAcceleratorsItem["BandwidthBillingType"].asString(); + if(!valueAcceleratorsAcceleratorsItem["ExpiredTime"].isNull()) + acceleratorsObject.expiredTime = std::stol(valueAcceleratorsAcceleratorsItem["ExpiredTime"].asString()); + if(!valueAcceleratorsAcceleratorsItem["Name"].isNull()) + acceleratorsObject.name = valueAcceleratorsAcceleratorsItem["Name"].asString(); + if(!valueAcceleratorsAcceleratorsItem["ResourceGroupId"].isNull()) + acceleratorsObject.resourceGroupId = valueAcceleratorsAcceleratorsItem["ResourceGroupId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["CrossBorderMode"].isNull()) + acceleratorsObject.crossBorderMode = valueAcceleratorsAcceleratorsItem["CrossBorderMode"].asString(); + if(!valueAcceleratorsAcceleratorsItem["CrossBorderStatus"].isNull()) + acceleratorsObject.crossBorderStatus = valueAcceleratorsAcceleratorsItem["CrossBorderStatus"].asString() == "true"; + if(!valueAcceleratorsAcceleratorsItem["UpgradableStatus"].isNull()) + acceleratorsObject.upgradableStatus = valueAcceleratorsAcceleratorsItem["UpgradableStatus"].asString(); + auto allTagsNode = valueAcceleratorsAcceleratorsItem["Tags"]["TagsItem"]; + for (auto valueAcceleratorsAcceleratorsItemTagsTagsItem : allTagsNode) + { + AcceleratorsItem::TagsItem tagsObject; + if(!valueAcceleratorsAcceleratorsItemTagsTagsItem["Key"].isNull()) + tagsObject.key = valueAcceleratorsAcceleratorsItemTagsTagsItem["Key"].asString(); + if(!valueAcceleratorsAcceleratorsItemTagsTagsItem["Value"].isNull()) + tagsObject.value = valueAcceleratorsAcceleratorsItemTagsTagsItem["Value"].asString(); + acceleratorsObject.tags.push_back(tagsObject); + } auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + if(!basicBandwidthPackageNode["Bandwidth"].isNull()) + acceleratorsObject.basicBandwidthPackage.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); if(!basicBandwidthPackageNode["BandwidthType"].isNull()) acceleratorsObject.basicBandwidthPackage.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString(); if(!basicBandwidthPackageNode["InstanceId"].isNull()) acceleratorsObject.basicBandwidthPackage.instanceId = basicBandwidthPackageNode["InstanceId"].asString(); - if(!basicBandwidthPackageNode["Bandwidth"].isNull()) - acceleratorsObject.basicBandwidthPackage.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"]; - if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) - acceleratorsObject.crossDomainBandwidthPackage.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull()) acceleratorsObject.crossDomainBandwidthPackage.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString()); + if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) + acceleratorsObject.crossDomainBandwidthPackage.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); + auto ipSetConfigNode = value["IpSetConfig"]; + if(!ipSetConfigNode["AccessMode"].isNull()) + acceleratorsObject.ipSetConfig.accessMode = ipSetConfigNode["AccessMode"].asString(); accelerators_.push_back(acceleratorsObject); } if(!value["TotalCount"].isNull()) diff --git a/ga/src/model/ListAclsRequest.cc b/ga/src/model/ListAclsRequest.cc index e56c9bdd5..4bf9de844 100644 --- a/ga/src/model/ListAclsRequest.cc +++ b/ga/src/model/ListAclsRequest.cc @@ -1,95 +1,106 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::ListAclsRequest; - -ListAclsRequest::ListAclsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListAcls") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAclsRequest::~ListAclsRequest() -{} - -std::string ListAclsRequest::getAclName()const -{ - return aclName_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListAclsRequest; + +ListAclsRequest::ListAclsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListAcls") { + setMethod(HttpRequest::Method::Post); } -void ListAclsRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +ListAclsRequest::~ListAclsRequest() {} + +std::string ListAclsRequest::getAclName() const { + return aclName_; } -std::string ListAclsRequest::getClientToken()const -{ - return clientToken_; +void ListAclsRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void ListAclsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ListAclsRequest::getClientToken() const { + return clientToken_; } -Array ListAclsRequest::getAclIds()const -{ - return aclIds_; +void ListAclsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ListAclsRequest::setAclIds(const Array& aclIds) -{ - aclIds_ = aclIds; - setParameter("AclIds", std::to_string(aclIds)); +std::vector ListAclsRequest::getAclIds() const { + return aclIds_; } -std::string ListAclsRequest::getRegionId()const -{ - return regionId_; +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]); + } } -void ListAclsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListAclsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ListAclsRequest::getNextToken()const -{ - return nextToken_; +void ListAclsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ListAclsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListAclsRequest::getRegionId() const { + return regionId_; } -int ListAclsRequest::getMaxResults()const -{ - return maxResults_; +void ListAclsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAclsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +std::string ListAclsRequest::getNextToken() const { + return nextToken_; +} + +void ListAclsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListAclsRequest::getMaxResults() const { + return maxResults_; +} + +void ListAclsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::vector ListAclsRequest::getTag() const { + return tag_; +} + +void ListAclsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } diff --git a/ga/src/model/ListAclsResult.cc b/ga/src/model/ListAclsResult.cc index 0ab7712d9..17cd001f3 100644 --- a/ga/src/model/ListAclsResult.cc +++ b/ga/src/model/ListAclsResult.cc @@ -43,14 +43,26 @@ void ListAclsResult::parse(const std::string &payload) for (auto valueAclsGaAcls : allAclsNode) { GaAcls aclsObject; - if(!valueAclsGaAcls["AclStatus"].isNull()) - aclsObject.aclStatus = valueAclsGaAcls["AclStatus"].asString(); - if(!valueAclsGaAcls["AddressIPVersion"].isNull()) - aclsObject.addressIPVersion = valueAclsGaAcls["AddressIPVersion"].asString(); if(!valueAclsGaAcls["AclId"].isNull()) aclsObject.aclId = valueAclsGaAcls["AclId"].asString(); if(!valueAclsGaAcls["AclName"].isNull()) aclsObject.aclName = valueAclsGaAcls["AclName"].asString(); + if(!valueAclsGaAcls["AddressIPVersion"].isNull()) + aclsObject.addressIPVersion = valueAclsGaAcls["AddressIPVersion"].asString(); + if(!valueAclsGaAcls["AclStatus"].isNull()) + aclsObject.aclStatus = valueAclsGaAcls["AclStatus"].asString(); + if(!valueAclsGaAcls["ResourceGroupId"].isNull()) + aclsObject.resourceGroupId = valueAclsGaAcls["ResourceGroupId"].asString(); + auto allTagsNode = valueAclsGaAcls["Tags"]["TagsItem"]; + for (auto valueAclsGaAclsTagsTagsItem : allTagsNode) + { + GaAcls::TagsItem tagsObject; + if(!valueAclsGaAclsTagsTagsItem["Key"].isNull()) + tagsObject.key = valueAclsGaAclsTagsTagsItem["Key"].asString(); + if(!valueAclsGaAclsTagsTagsItem["Value"].isNull()) + tagsObject.value = valueAclsGaAclsTagsTagsItem["Value"].asString(); + aclsObject.tags.push_back(tagsObject); + } acls_.push_back(aclsObject); } if(!value["TotalCount"].isNull()) diff --git a/ga/src/model/ListApplicationMonitorDetectResultRequest.cc b/ga/src/model/ListApplicationMonitorDetectResultRequest.cc new file mode 100644 index 000000000..58a5f1336 --- /dev/null +++ b/ga/src/model/ListApplicationMonitorDetectResultRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListApplicationMonitorDetectResultRequest; + +ListApplicationMonitorDetectResultRequest::ListApplicationMonitorDetectResultRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListApplicationMonitorDetectResult") { + setMethod(HttpRequest::Method::Post); +} + +ListApplicationMonitorDetectResultRequest::~ListApplicationMonitorDetectResultRequest() {} + +long ListApplicationMonitorDetectResultRequest::getEndTime() const { + return endTime_; +} + +void ListApplicationMonitorDetectResultRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListApplicationMonitorDetectResultRequest::getBeginTime() const { + return beginTime_; +} + +void ListApplicationMonitorDetectResultRequest::setBeginTime(long beginTime) { + beginTime_ = beginTime; + setParameter(std::string("BeginTime"), std::to_string(beginTime)); +} + +int ListApplicationMonitorDetectResultRequest::getPageNumber() const { + return pageNumber_; +} + +void ListApplicationMonitorDetectResultRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListApplicationMonitorDetectResultRequest::getRegionId() const { + return regionId_; +} + +void ListApplicationMonitorDetectResultRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListApplicationMonitorDetectResultRequest::getPageSize() const { + return pageSize_; +} + +void ListApplicationMonitorDetectResultRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListApplicationMonitorDetectResultRequest::getTaskId() const { + return taskId_; +} + +void ListApplicationMonitorDetectResultRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ga/src/model/ListApplicationMonitorDetectResultResult.cc b/ga/src/model/ListApplicationMonitorDetectResultResult.cc new file mode 100644 index 000000000..4ba4cf7cf --- /dev/null +++ b/ga/src/model/ListApplicationMonitorDetectResultResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListApplicationMonitorDetectResultResult::ListApplicationMonitorDetectResultResult() : + ServiceResult() +{} + +ListApplicationMonitorDetectResultResult::ListApplicationMonitorDetectResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationMonitorDetectResultResult::~ListApplicationMonitorDetectResultResult() +{} + +void ListApplicationMonitorDetectResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationMonitorDetectResultListNode = value["ApplicationMonitorDetectResultList"]["ApplicationMonitorDetectResult"]; + for (auto valueApplicationMonitorDetectResultListApplicationMonitorDetectResult : allApplicationMonitorDetectResultListNode) + { + ApplicationMonitorDetectResult applicationMonitorDetectResultListObject; + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["AcceleratorId"].isNull()) + applicationMonitorDetectResultListObject.acceleratorId = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["AcceleratorId"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["ListenerId"].isNull()) + applicationMonitorDetectResultListObject.listenerId = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["ListenerId"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["TaskId"].isNull()) + applicationMonitorDetectResultListObject.taskId = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["TaskId"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Port"].isNull()) + applicationMonitorDetectResultListObject.port = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Port"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Protocol"].isNull()) + applicationMonitorDetectResultListObject.protocol = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Protocol"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["DiagStatus"].isNull()) + applicationMonitorDetectResultListObject.diagStatus = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["DiagStatus"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["StatusCode"].isNull()) + applicationMonitorDetectResultListObject.statusCode = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["StatusCode"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Content"].isNull()) + applicationMonitorDetectResultListObject.content = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Content"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Detail"].isNull()) + applicationMonitorDetectResultListObject.detail = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["Detail"].asString(); + if(!valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["DetectTime"].isNull()) + applicationMonitorDetectResultListObject.detectTime = valueApplicationMonitorDetectResultListApplicationMonitorDetectResult["DetectTime"].asString(); + applicationMonitorDetectResultList_.push_back(applicationMonitorDetectResultListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListApplicationMonitorDetectResultResult::getTotalCount()const +{ + return totalCount_; +} + +int ListApplicationMonitorDetectResultResult::getPageSize()const +{ + return pageSize_; +} + +int ListApplicationMonitorDetectResultResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListApplicationMonitorDetectResultResult::getApplicationMonitorDetectResultList()const +{ + return applicationMonitorDetectResultList_; +} + diff --git a/ga/src/model/ListApplicationMonitorRequest.cc b/ga/src/model/ListApplicationMonitorRequest.cc new file mode 100644 index 000000000..29c102279 --- /dev/null +++ b/ga/src/model/ListApplicationMonitorRequest.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::Ga::Model::ListApplicationMonitorRequest; + +ListApplicationMonitorRequest::ListApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +ListApplicationMonitorRequest::~ListApplicationMonitorRequest() {} + +int ListApplicationMonitorRequest::getPageNumber() const { + return pageNumber_; +} + +void ListApplicationMonitorRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void ListApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListApplicationMonitorRequest::getPageSize() const { + return pageSize_; +} + +void ListApplicationMonitorRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListApplicationMonitorRequest::getSearchValue() const { + return searchValue_; +} + +void ListApplicationMonitorRequest::setSearchValue(const std::string &searchValue) { + searchValue_ = searchValue; + setParameter(std::string("SearchValue"), searchValue); +} + diff --git a/ga/src/model/ListApplicationMonitorResult.cc b/ga/src/model/ListApplicationMonitorResult.cc new file mode 100644 index 000000000..ad63e7baf --- /dev/null +++ b/ga/src/model/ListApplicationMonitorResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListApplicationMonitorResult::ListApplicationMonitorResult() : + ServiceResult() +{} + +ListApplicationMonitorResult::ListApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationMonitorResult::~ListApplicationMonitorResult() +{} + +void ListApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationMonitorsNode = value["ApplicationMonitors"]["ApplicationMonitor"]; + for (auto valueApplicationMonitorsApplicationMonitor : allApplicationMonitorsNode) + { + ApplicationMonitor applicationMonitorsObject; + if(!valueApplicationMonitorsApplicationMonitor["AcceleratorId"].isNull()) + applicationMonitorsObject.acceleratorId = valueApplicationMonitorsApplicationMonitor["AcceleratorId"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["ListenerId"].isNull()) + applicationMonitorsObject.listenerId = valueApplicationMonitorsApplicationMonitor["ListenerId"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["TaskId"].isNull()) + applicationMonitorsObject.taskId = valueApplicationMonitorsApplicationMonitor["TaskId"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["TaskName"].isNull()) + applicationMonitorsObject.taskName = valueApplicationMonitorsApplicationMonitor["TaskName"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["Address"].isNull()) + applicationMonitorsObject.address = valueApplicationMonitorsApplicationMonitor["Address"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["OptionsJson"].isNull()) + applicationMonitorsObject.optionsJson = valueApplicationMonitorsApplicationMonitor["OptionsJson"].asString(); + if(!valueApplicationMonitorsApplicationMonitor["DetectEnable"].isNull()) + applicationMonitorsObject.detectEnable = valueApplicationMonitorsApplicationMonitor["DetectEnable"].asString() == "true"; + if(!valueApplicationMonitorsApplicationMonitor["DetectThreshold"].isNull()) + applicationMonitorsObject.detectThreshold = std::stoi(valueApplicationMonitorsApplicationMonitor["DetectThreshold"].asString()); + if(!valueApplicationMonitorsApplicationMonitor["DetectTimes"].isNull()) + applicationMonitorsObject.detectTimes = std::stoi(valueApplicationMonitorsApplicationMonitor["DetectTimes"].asString()); + if(!valueApplicationMonitorsApplicationMonitor["SilenceTime"].isNull()) + applicationMonitorsObject.silenceTime = std::stoi(valueApplicationMonitorsApplicationMonitor["SilenceTime"].asString()); + if(!valueApplicationMonitorsApplicationMonitor["State"].isNull()) + applicationMonitorsObject.state = valueApplicationMonitorsApplicationMonitor["State"].asString(); + applicationMonitors_.push_back(applicationMonitorsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListApplicationMonitorResult::getTotalCount()const +{ + return totalCount_; +} + +int ListApplicationMonitorResult::getPageSize()const +{ + return pageSize_; +} + +int ListApplicationMonitorResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListApplicationMonitorResult::getApplicationMonitors()const +{ + return applicationMonitors_; +} + diff --git a/ga/src/model/ListAvailableAccelerateAreasRequest.cc b/ga/src/model/ListAvailableAccelerateAreasRequest.cc index d4088399c..73f1fbd87 100644 --- a/ga/src/model/ListAvailableAccelerateAreasRequest.cc +++ b/ga/src/model/ListAvailableAccelerateAreasRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::ListAvailableAccelerateAreasRequest; - -ListAvailableAccelerateAreasRequest::ListAvailableAccelerateAreasRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListAvailableAccelerateAreas") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAvailableAccelerateAreasRequest::~ListAvailableAccelerateAreasRequest() -{} - -std::string ListAvailableAccelerateAreasRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListAvailableAccelerateAreasRequest; + +ListAvailableAccelerateAreasRequest::ListAvailableAccelerateAreasRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListAvailableAccelerateAreas") { + setMethod(HttpRequest::Method::Post); } -void ListAvailableAccelerateAreasRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListAvailableAccelerateAreasRequest::~ListAvailableAccelerateAreasRequest() {} + +std::string ListAvailableAccelerateAreasRequest::getRegionId() const { + return regionId_; } -std::string ListAvailableAccelerateAreasRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListAvailableAccelerateAreasRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAvailableAccelerateAreasRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListAvailableAccelerateAreasRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListAvailableAccelerateAreasRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ListAvailableAccelerateAreasResult.cc b/ga/src/model/ListAvailableAccelerateAreasResult.cc index 56de0daff..d52376528 100644 --- a/ga/src/model/ListAvailableAccelerateAreasResult.cc +++ b/ga/src/model/ListAvailableAccelerateAreasResult.cc @@ -43,18 +43,18 @@ void ListAvailableAccelerateAreasResult::parse(const std::string &payload) for (auto valueAreasAreasItem : allAreasNode) { AreasItem areasObject; - if(!valueAreasAreasItem["AreaId"].isNull()) - areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); if(!valueAreasAreasItem["LocalName"].isNull()) areasObject.localName = valueAreasAreasItem["LocalName"].asString(); + if(!valueAreasAreasItem["AreaId"].isNull()) + areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); auto allRegionListNode = valueAreasAreasItem["RegionList"]["RegionListItem"]; for (auto valueAreasAreasItemRegionListRegionListItem : allRegionListNode) { AreasItem::RegionListItem regionListObject; - if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull()) - regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString(); if(!valueAreasAreasItemRegionListRegionListItem["LocalName"].isNull()) regionListObject.localName = valueAreasAreasItemRegionListRegionListItem["LocalName"].asString(); + if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull()) + regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString(); areasObject.regionList.push_back(regionListObject); } areas_.push_back(areasObject); diff --git a/ga/src/model/ListAvailableBusiRegionsRequest.cc b/ga/src/model/ListAvailableBusiRegionsRequest.cc index ca1afd071..186189674 100644 --- a/ga/src/model/ListAvailableBusiRegionsRequest.cc +++ b/ga/src/model/ListAvailableBusiRegionsRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::ListAvailableBusiRegionsRequest; - -ListAvailableBusiRegionsRequest::ListAvailableBusiRegionsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListAvailableBusiRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAvailableBusiRegionsRequest::~ListAvailableBusiRegionsRequest() -{} - -std::string ListAvailableBusiRegionsRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListAvailableBusiRegionsRequest; + +ListAvailableBusiRegionsRequest::ListAvailableBusiRegionsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListAvailableBusiRegions") { + setMethod(HttpRequest::Method::Post); } -void ListAvailableBusiRegionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListAvailableBusiRegionsRequest::~ListAvailableBusiRegionsRequest() {} + +std::string ListAvailableBusiRegionsRequest::getRegionId() const { + return regionId_; } -std::string ListAvailableBusiRegionsRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListAvailableBusiRegionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAvailableBusiRegionsRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListAvailableBusiRegionsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListAvailableBusiRegionsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ListAvailableBusiRegionsResult.cc b/ga/src/model/ListAvailableBusiRegionsResult.cc index c36aaa6ed..286012bf4 100644 --- a/ga/src/model/ListAvailableBusiRegionsResult.cc +++ b/ga/src/model/ListAvailableBusiRegionsResult.cc @@ -43,10 +43,12 @@ void ListAvailableBusiRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegionsItem : allRegionsNode) { RegionsItem regionsObject; - if(!valueRegionsRegionsItem["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); if(!valueRegionsRegionsItem["LocalName"].isNull()) regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); + if(!valueRegionsRegionsItem["Pop"].isNull()) + regionsObject.pop = valueRegionsRegionsItem["Pop"].asString() == "true"; regions_.push_back(regionsObject); } diff --git a/ga/src/model/ListBandwidthPackagesRequest.cc b/ga/src/model/ListBandwidthPackagesRequest.cc index 0381ffc3a..879f9a4e8 100644 --- a/ga/src/model/ListBandwidthPackagesRequest.cc +++ b/ga/src/model/ListBandwidthPackagesRequest.cc @@ -1,95 +1,104 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ga::Model::ListBandwidthPackagesRequest; - -ListBandwidthPackagesRequest::ListBandwidthPackagesRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListBandwidthPackages") -{ - setMethod(HttpRequest::Method::Post); -} - -ListBandwidthPackagesRequest::~ListBandwidthPackagesRequest() -{} - -std::string ListBandwidthPackagesRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListBandwidthPackagesRequest; + +ListBandwidthPackagesRequest::ListBandwidthPackagesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBandwidthPackages") { + setMethod(HttpRequest::Method::Post); } -void ListBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +ListBandwidthPackagesRequest::~ListBandwidthPackagesRequest() {} + +std::string ListBandwidthPackagesRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ListBandwidthPackagesRequest::getType()const -{ - return type_; +void ListBandwidthPackagesRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ListBandwidthPackagesRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ListBandwidthPackagesRequest::getType() const { + return type_; } -int ListBandwidthPackagesRequest::getPageNumber()const -{ - return pageNumber_; +void ListBandwidthPackagesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void ListBandwidthPackagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListBandwidthPackagesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListBandwidthPackagesRequest::getRegionId()const -{ - return regionId_; +void ListBandwidthPackagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListBandwidthPackagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListBandwidthPackagesRequest::getResourceGroupId() const { + return resourceGroupId_; } -int ListBandwidthPackagesRequest::getPageSize()const -{ - return pageSize_; +void ListBandwidthPackagesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ListBandwidthPackagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string ListBandwidthPackagesRequest::getRegionId() const { + return regionId_; } -std::string ListBandwidthPackagesRequest::getState()const -{ - return state_; +void ListBandwidthPackagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListBandwidthPackagesRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +int ListBandwidthPackagesRequest::getPageSize() const { + return pageSize_; +} + +void ListBandwidthPackagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListBandwidthPackagesRequest::getState() const { + return state_; +} + +void ListBandwidthPackagesRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::vector ListBandwidthPackagesRequest::getTag() const { + return tag_; +} + +void ListBandwidthPackagesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } diff --git a/ga/src/model/ListBandwidthPackagesResult.cc b/ga/src/model/ListBandwidthPackagesResult.cc index 53cf8ceb2..d1c923eb8 100644 --- a/ga/src/model/ListBandwidthPackagesResult.cc +++ b/ga/src/model/ListBandwidthPackagesResult.cc @@ -43,36 +43,48 @@ void ListBandwidthPackagesResult::parse(const std::string &payload) for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode) { BandwidthPackage bandwidthPackagesObject; - if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].isNull()) - bandwidthPackagesObject.cbnGeographicRegionIdB = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) - bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].isNull()) - bandwidthPackagesObject.cbnGeographicRegionIdA = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["CreateTime"].isNull()) - bandwidthPackagesObject.createTime = valueBandwidthPackagesBandwidthPackage["CreateTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) - bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["BandwidthType"].isNull()) - bandwidthPackagesObject.bandwidthType = valueBandwidthPackagesBandwidthPackage["BandwidthType"].asString(); if(!valueBandwidthPackagesBandwidthPackage["Type"].isNull()) bandwidthPackagesObject.type = valueBandwidthPackagesBandwidthPackage["Type"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull()) - bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["BandwidthType"].isNull()) + bandwidthPackagesObject.bandwidthType = valueBandwidthPackagesBandwidthPackage["BandwidthType"].asString(); if(!valueBandwidthPackagesBandwidthPackage["State"].isNull()) bandwidthPackagesObject.state = valueBandwidthPackagesBandwidthPackage["State"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull()) - bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) - bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString()); - if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) - bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Ratio"].isNull()) - bandwidthPackagesObject.ratio = std::stoi(valueBandwidthPackagesBandwidthPackage["Ratio"].asString()); + if(!valueBandwidthPackagesBandwidthPackage["CreateTime"].isNull()) + bandwidthPackagesObject.createTime = valueBandwidthPackagesBandwidthPackage["CreateTime"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull()) + bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString(); if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull()) bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].isNull()) + bandwidthPackagesObject.cbnGeographicRegionIdA = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdA"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) + bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) + bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString()); + if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) + bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull()) + bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].isNull()) + bandwidthPackagesObject.cbnGeographicRegionIdB = valueBandwidthPackagesBandwidthPackage["CbnGeographicRegionIdB"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) + bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); if(!valueBandwidthPackagesBandwidthPackage["BillingType"].isNull()) bandwidthPackagesObject.billingType = valueBandwidthPackagesBandwidthPackage["BillingType"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Ratio"].isNull()) + bandwidthPackagesObject.ratio = std::stoi(valueBandwidthPackagesBandwidthPackage["Ratio"].asString()); + if(!valueBandwidthPackagesBandwidthPackage["ResourceGroupId"].isNull()) + bandwidthPackagesObject.resourceGroupId = valueBandwidthPackagesBandwidthPackage["ResourceGroupId"].asString(); + auto allTagsNode = valueBandwidthPackagesBandwidthPackage["Tags"]["TagsItem"]; + for (auto valueBandwidthPackagesBandwidthPackageTagsTagsItem : allTagsNode) + { + BandwidthPackage::TagsItem tagsObject; + if(!valueBandwidthPackagesBandwidthPackageTagsTagsItem["Key"].isNull()) + tagsObject.key = valueBandwidthPackagesBandwidthPackageTagsTagsItem["Key"].asString(); + if(!valueBandwidthPackagesBandwidthPackageTagsTagsItem["Value"].isNull()) + tagsObject.value = valueBandwidthPackagesBandwidthPackageTagsTagsItem["Value"].asString(); + bandwidthPackagesObject.tags.push_back(tagsObject); + } auto allAccelerators = value["Accelerators"]["Accelerator"]; for (auto value : allAccelerators) bandwidthPackagesObject.accelerators.push_back(value.asString()); diff --git a/ga/src/model/ListBandwidthackagesRequest.cc b/ga/src/model/ListBandwidthackagesRequest.cc index 8e64cd1a4..aab0b5386 100644 --- a/ga/src/model/ListBandwidthackagesRequest.cc +++ b/ga/src/model/ListBandwidthackagesRequest.cc @@ -1,62 +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::Ga::Model::ListBandwidthackagesRequest; - -ListBandwidthackagesRequest::ListBandwidthackagesRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListBandwidthackages") -{ - setMethod(HttpRequest::Method::Post); -} - -ListBandwidthackagesRequest::~ListBandwidthackagesRequest() -{} - -int ListBandwidthackagesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListBandwidthackagesRequest; + +ListBandwidthackagesRequest::ListBandwidthackagesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBandwidthackages") { + setMethod(HttpRequest::Method::Post); } -void ListBandwidthackagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListBandwidthackagesRequest::~ListBandwidthackagesRequest() {} + +int ListBandwidthackagesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListBandwidthackagesRequest::getRegionId()const -{ - return regionId_; +void ListBandwidthackagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListBandwidthackagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListBandwidthackagesRequest::getRegionId() const { + return regionId_; } -int ListBandwidthackagesRequest::getPageSize()const -{ - return pageSize_; +void ListBandwidthackagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListBandwidthackagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListBandwidthackagesRequest::getPageSize() const { + return pageSize_; +} + +void ListBandwidthackagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/ga/src/model/ListBandwidthackagesResult.cc b/ga/src/model/ListBandwidthackagesResult.cc index 00cfb501d..0f8e20dea 100644 --- a/ga/src/model/ListBandwidthackagesResult.cc +++ b/ga/src/model/ListBandwidthackagesResult.cc @@ -43,24 +43,36 @@ void ListBandwidthackagesResult::parse(const std::string &payload) for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode) { BandwidthPackage bandwidthPackagesObject; + if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) + bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) + bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString()); if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull()) - bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull()) + bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString(); if(!valueBandwidthPackagesBandwidthPackage["State"].isNull()) bandwidthPackagesObject.state = valueBandwidthPackagesBandwidthPackage["State"].asString(); if(!valueBandwidthPackagesBandwidthPackage["CreateTime"].isNull()) bandwidthPackagesObject.createTime = valueBandwidthPackagesBandwidthPackage["CreateTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ExpiredTime"].isNull()) - bandwidthPackagesObject.expiredTime = valueBandwidthPackagesBandwidthPackage["ExpiredTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) - bandwidthPackagesObject.bandwidth = std::stoi(valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString()); - if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) - bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull()) - bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull()) + bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].asString(); if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull()) + bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ResourceGroupId"].isNull()) + bandwidthPackagesObject.resourceGroupId = valueBandwidthPackagesBandwidthPackage["ResourceGroupId"].asString(); + auto allTagsNode = valueBandwidthPackagesBandwidthPackage["Tags"]["TagsItem"]; + for (auto valueBandwidthPackagesBandwidthPackageTagsTagsItem : allTagsNode) + { + BandwidthPackage::TagsItem tagsObject; + if(!valueBandwidthPackagesBandwidthPackageTagsTagsItem["Key"].isNull()) + tagsObject.key = valueBandwidthPackagesBandwidthPackageTagsTagsItem["Key"].asString(); + if(!valueBandwidthPackagesBandwidthPackageTagsTagsItem["Value"].isNull()) + tagsObject.value = valueBandwidthPackagesBandwidthPackageTagsTagsItem["Value"].asString(); + bandwidthPackagesObject.tags.push_back(tagsObject); + } auto allAccelerators = value["Accelerators"]["Accelerator"]; for (auto value : allAccelerators) bandwidthPackagesObject.accelerators.push_back(value.asString()); diff --git a/ga/src/model/ListBasicAccelerateIpEndpointRelationsRequest.cc b/ga/src/model/ListBasicAccelerateIpEndpointRelationsRequest.cc new file mode 100644 index 000000000..111b9a64b --- /dev/null +++ b/ga/src/model/ListBasicAccelerateIpEndpointRelationsRequest.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 + +using AlibabaCloud::Ga::Model::ListBasicAccelerateIpEndpointRelationsRequest; + +ListBasicAccelerateIpEndpointRelationsRequest::ListBasicAccelerateIpEndpointRelationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBasicAccelerateIpEndpointRelations") { + setMethod(HttpRequest::Method::Post); +} + +ListBasicAccelerateIpEndpointRelationsRequest::~ListBasicAccelerateIpEndpointRelationsRequest() {} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getClientToken() const { + return clientToken_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getEndpointId() const { + return endpointId_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getRegionId() const { + return regionId_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getNextToken() const { + return nextToken_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListBasicAccelerateIpEndpointRelationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListBasicAccelerateIpEndpointRelationsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListBasicAccelerateIpEndpointRelationsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/ListBasicAccelerateIpEndpointRelationsResult.cc b/ga/src/model/ListBasicAccelerateIpEndpointRelationsResult.cc new file mode 100644 index 000000000..84f852a1b --- /dev/null +++ b/ga/src/model/ListBasicAccelerateIpEndpointRelationsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListBasicAccelerateIpEndpointRelationsResult::ListBasicAccelerateIpEndpointRelationsResult() : + ServiceResult() +{} + +ListBasicAccelerateIpEndpointRelationsResult::ListBasicAccelerateIpEndpointRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBasicAccelerateIpEndpointRelationsResult::~ListBasicAccelerateIpEndpointRelationsResult() +{} + +void ListBasicAccelerateIpEndpointRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccelerateIpEndpointRelationsNode = value["AccelerateIpEndpointRelations"]["accelerateIpEndpointRelationsItem"]; + for (auto valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem : allAccelerateIpEndpointRelationsNode) + { + AccelerateIpEndpointRelationsItem accelerateIpEndpointRelationsObject; + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["AccelerateIpId"].isNull()) + accelerateIpEndpointRelationsObject.accelerateIpId = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["AccelerateIpId"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["IpAddress"].isNull()) + accelerateIpEndpointRelationsObject.ipAddress = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["IpAddress"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointId"].isNull()) + accelerateIpEndpointRelationsObject.endpointId = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointId"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointName"].isNull()) + accelerateIpEndpointRelationsObject.endpointName = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointName"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointType"].isNull()) + accelerateIpEndpointRelationsObject.endpointType = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointType"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointAddress"].isNull()) + accelerateIpEndpointRelationsObject.endpointAddress = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointAddress"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointSubAddress"].isNull()) + accelerateIpEndpointRelationsObject.endpointSubAddress = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointSubAddress"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointSubAddressType"].isNull()) + accelerateIpEndpointRelationsObject.endpointSubAddressType = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointSubAddressType"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointZoneId"].isNull()) + accelerateIpEndpointRelationsObject.endpointZoneId = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["EndpointZoneId"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["State"].isNull()) + accelerateIpEndpointRelationsObject.state = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["State"].asString(); + if(!valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["AcceleratorId"].isNull()) + accelerateIpEndpointRelationsObject.acceleratorId = valueAccelerateIpEndpointRelationsaccelerateIpEndpointRelationsItem["AcceleratorId"].asString(); + accelerateIpEndpointRelations_.push_back(accelerateIpEndpointRelationsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); + +} + +std::string ListBasicAccelerateIpEndpointRelationsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListBasicAccelerateIpEndpointRelationsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListBasicAccelerateIpEndpointRelationsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListBasicAccelerateIpEndpointRelationsResult::getAccelerateIpEndpointRelations()const +{ + return accelerateIpEndpointRelations_; +} + diff --git a/ga/src/model/ListBasicAccelerateIpsRequest.cc b/ga/src/model/ListBasicAccelerateIpsRequest.cc new file mode 100644 index 000000000..96447d322 --- /dev/null +++ b/ga/src/model/ListBasicAccelerateIpsRequest.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 + +using AlibabaCloud::Ga::Model::ListBasicAccelerateIpsRequest; + +ListBasicAccelerateIpsRequest::ListBasicAccelerateIpsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBasicAccelerateIps") { + setMethod(HttpRequest::Method::Post); +} + +ListBasicAccelerateIpsRequest::~ListBasicAccelerateIpsRequest() {} + +std::string ListBasicAccelerateIpsRequest::getClientToken() const { + return clientToken_; +} + +void ListBasicAccelerateIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListBasicAccelerateIpsRequest::getIpSetId() const { + return ipSetId_; +} + +void ListBasicAccelerateIpsRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string ListBasicAccelerateIpsRequest::getAccelerateIpAddress() const { + return accelerateIpAddress_; +} + +void ListBasicAccelerateIpsRequest::setAccelerateIpAddress(const std::string &accelerateIpAddress) { + accelerateIpAddress_ = accelerateIpAddress; + setParameter(std::string("AccelerateIpAddress"), accelerateIpAddress); +} + +std::string ListBasicAccelerateIpsRequest::getAccelerateIpId() const { + return accelerateIpId_; +} + +void ListBasicAccelerateIpsRequest::setAccelerateIpId(const std::string &accelerateIpId) { + accelerateIpId_ = accelerateIpId; + setParameter(std::string("AccelerateIpId"), accelerateIpId); +} + +std::string ListBasicAccelerateIpsRequest::getRegionId() const { + return regionId_; +} + +void ListBasicAccelerateIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListBasicAccelerateIpsRequest::getNextToken() const { + return nextToken_; +} + +void ListBasicAccelerateIpsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListBasicAccelerateIpsRequest::getMaxResults() const { + return maxResults_; +} + +void ListBasicAccelerateIpsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/ga/src/model/ListBasicAccelerateIpsResult.cc b/ga/src/model/ListBasicAccelerateIpsResult.cc new file mode 100644 index 000000000..006edff36 --- /dev/null +++ b/ga/src/model/ListBasicAccelerateIpsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListBasicAccelerateIpsResult::ListBasicAccelerateIpsResult() : + ServiceResult() +{} + +ListBasicAccelerateIpsResult::ListBasicAccelerateIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBasicAccelerateIpsResult::~ListBasicAccelerateIpsResult() +{} + +void ListBasicAccelerateIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccelerateIpsNode = value["AccelerateIps"]["AccelerateIpsItem"]; + for (auto valueAccelerateIpsAccelerateIpsItem : allAccelerateIpsNode) + { + AccelerateIpsItem accelerateIpsObject; + if(!valueAccelerateIpsAccelerateIpsItem["AcceleratorId"].isNull()) + accelerateIpsObject.acceleratorId = valueAccelerateIpsAccelerateIpsItem["AcceleratorId"].asString(); + if(!valueAccelerateIpsAccelerateIpsItem["IpSetId"].isNull()) + accelerateIpsObject.ipSetId = valueAccelerateIpsAccelerateIpsItem["IpSetId"].asString(); + if(!valueAccelerateIpsAccelerateIpsItem["AccelerateIpId"].isNull()) + accelerateIpsObject.accelerateIpId = valueAccelerateIpsAccelerateIpsItem["AccelerateIpId"].asString(); + if(!valueAccelerateIpsAccelerateIpsItem["AccelerateIpAddress"].isNull()) + accelerateIpsObject.accelerateIpAddress = valueAccelerateIpsAccelerateIpsItem["AccelerateIpAddress"].asString(); + if(!valueAccelerateIpsAccelerateIpsItem["State"].isNull()) + accelerateIpsObject.state = valueAccelerateIpsAccelerateIpsItem["State"].asString(); + accelerateIps_.push_back(accelerateIpsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListBasicAccelerateIpsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListBasicAccelerateIpsResult::getNextToken()const +{ + return nextToken_; +} + +int ListBasicAccelerateIpsResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListBasicAccelerateIpsResult::getAccelerateIps()const +{ + return accelerateIps_; +} + diff --git a/ga/src/model/ListBasicAcceleratorsRequest.cc b/ga/src/model/ListBasicAcceleratorsRequest.cc new file mode 100644 index 000000000..f5f553202 --- /dev/null +++ b/ga/src/model/ListBasicAcceleratorsRequest.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::Ga::Model::ListBasicAcceleratorsRequest; + +ListBasicAcceleratorsRequest::ListBasicAcceleratorsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBasicAccelerators") { + setMethod(HttpRequest::Method::Post); +} + +ListBasicAcceleratorsRequest::~ListBasicAcceleratorsRequest() {} + +int ListBasicAcceleratorsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListBasicAcceleratorsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListBasicAcceleratorsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListBasicAcceleratorsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListBasicAcceleratorsRequest::getRegionId() const { + return regionId_; +} + +void ListBasicAcceleratorsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListBasicAcceleratorsRequest::getPageSize() const { + return pageSize_; +} + +void ListBasicAcceleratorsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListBasicAcceleratorsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListBasicAcceleratorsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListBasicAcceleratorsRequest::getState() const { + return state_; +} + +void ListBasicAcceleratorsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::vector ListBasicAcceleratorsRequest::getTag() const { + return tag_; +} + +void ListBasicAcceleratorsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + diff --git a/ga/src/model/ListBasicAcceleratorsResult.cc b/ga/src/model/ListBasicAcceleratorsResult.cc new file mode 100644 index 000000000..2518f5e1d --- /dev/null +++ b/ga/src/model/ListBasicAcceleratorsResult.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListBasicAcceleratorsResult::ListBasicAcceleratorsResult() : + ServiceResult() +{} + +ListBasicAcceleratorsResult::ListBasicAcceleratorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBasicAcceleratorsResult::~ListBasicAcceleratorsResult() +{} + +void ListBasicAcceleratorsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAcceleratorsNode = value["Accelerators"]["AcceleratorsItem"]; + for (auto valueAcceleratorsAcceleratorsItem : allAcceleratorsNode) + { + AcceleratorsItem acceleratorsObject; + if(!valueAcceleratorsAcceleratorsItem["Type"].isNull()) + acceleratorsObject.type = valueAcceleratorsAcceleratorsItem["Type"].asString(); + if(!valueAcceleratorsAcceleratorsItem["State"].isNull()) + acceleratorsObject.state = valueAcceleratorsAcceleratorsItem["State"].asString(); + if(!valueAcceleratorsAcceleratorsItem["CreateTime"].isNull()) + acceleratorsObject.createTime = std::stol(valueAcceleratorsAcceleratorsItem["CreateTime"].asString()); + if(!valueAcceleratorsAcceleratorsItem["RegionId"].isNull()) + acceleratorsObject.regionId = valueAcceleratorsAcceleratorsItem["RegionId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["InstanceChargeType"].isNull()) + acceleratorsObject.instanceChargeType = valueAcceleratorsAcceleratorsItem["InstanceChargeType"].asString(); + if(!valueAcceleratorsAcceleratorsItem["AcceleratorId"].isNull()) + acceleratorsObject.acceleratorId = valueAcceleratorsAcceleratorsItem["AcceleratorId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["Description"].isNull()) + acceleratorsObject.description = valueAcceleratorsAcceleratorsItem["Description"].asString(); + if(!valueAcceleratorsAcceleratorsItem["ExpiredTime"].isNull()) + acceleratorsObject.expiredTime = std::stol(valueAcceleratorsAcceleratorsItem["ExpiredTime"].asString()); + if(!valueAcceleratorsAcceleratorsItem["Name"].isNull()) + acceleratorsObject.name = valueAcceleratorsAcceleratorsItem["Name"].asString(); + if(!valueAcceleratorsAcceleratorsItem["BasicEndpointGroupId"].isNull()) + acceleratorsObject.basicEndpointGroupId = valueAcceleratorsAcceleratorsItem["BasicEndpointGroupId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["BasicIpSetId"].isNull()) + acceleratorsObject.basicIpSetId = valueAcceleratorsAcceleratorsItem["BasicIpSetId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["BandwidthBillingType"].isNull()) + acceleratorsObject.bandwidthBillingType = valueAcceleratorsAcceleratorsItem["BandwidthBillingType"].asString(); + if(!valueAcceleratorsAcceleratorsItem["ResourceGroupId"].isNull()) + acceleratorsObject.resourceGroupId = valueAcceleratorsAcceleratorsItem["ResourceGroupId"].asString(); + if(!valueAcceleratorsAcceleratorsItem["CrossBorderStatus"].isNull()) + acceleratorsObject.crossBorderStatus = valueAcceleratorsAcceleratorsItem["CrossBorderStatus"].asString() == "true"; + auto allTagsNode = valueAcceleratorsAcceleratorsItem["Tags"]["TagsItem"]; + for (auto valueAcceleratorsAcceleratorsItemTagsTagsItem : allTagsNode) + { + AcceleratorsItem::TagsItem tagsObject; + if(!valueAcceleratorsAcceleratorsItemTagsTagsItem["Key"].isNull()) + tagsObject.key = valueAcceleratorsAcceleratorsItemTagsTagsItem["Key"].asString(); + if(!valueAcceleratorsAcceleratorsItemTagsTagsItem["Value"].isNull()) + tagsObject.value = valueAcceleratorsAcceleratorsItemTagsTagsItem["Value"].asString(); + acceleratorsObject.tags.push_back(tagsObject); + } + auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + if(!basicBandwidthPackageNode["Bandwidth"].isNull()) + acceleratorsObject.basicBandwidthPackage.bandwidth = std::stoi(basicBandwidthPackageNode["Bandwidth"].asString()); + if(!basicBandwidthPackageNode["BandwidthType"].isNull()) + acceleratorsObject.basicBandwidthPackage.bandwidthType = basicBandwidthPackageNode["BandwidthType"].asString(); + if(!basicBandwidthPackageNode["InstanceId"].isNull()) + acceleratorsObject.basicBandwidthPackage.instanceId = basicBandwidthPackageNode["InstanceId"].asString(); + auto crossDomainBandwidthPackageNode = value["CrossDomainBandwidthPackage"]; + if(!crossDomainBandwidthPackageNode["Bandwidth"].isNull()) + acceleratorsObject.crossDomainBandwidthPackage.bandwidth = std::stoi(crossDomainBandwidthPackageNode["Bandwidth"].asString()); + if(!crossDomainBandwidthPackageNode["InstanceId"].isNull()) + acceleratorsObject.crossDomainBandwidthPackage.instanceId = crossDomainBandwidthPackageNode["InstanceId"].asString(); + accelerators_.push_back(acceleratorsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListBasicAcceleratorsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListBasicAcceleratorsResult::getAccelerators()const +{ + return accelerators_; +} + +int ListBasicAcceleratorsResult::getPageSize()const +{ + return pageSize_; +} + +int ListBasicAcceleratorsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListBasicEndpointsRequest.cc b/ga/src/model/ListBasicEndpointsRequest.cc new file mode 100644 index 000000000..911c54db9 --- /dev/null +++ b/ga/src/model/ListBasicEndpointsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::ListBasicEndpointsRequest; + +ListBasicEndpointsRequest::ListBasicEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBasicEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +ListBasicEndpointsRequest::~ListBasicEndpointsRequest() {} + +std::string ListBasicEndpointsRequest::getClientToken() const { + return clientToken_; +} + +void ListBasicEndpointsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListBasicEndpointsRequest::getEndpointId() const { + return endpointId_; +} + +void ListBasicEndpointsRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string ListBasicEndpointsRequest::getRegionId() const { + return regionId_; +} + +void ListBasicEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListBasicEndpointsRequest::getEndpointType() const { + return endpointType_; +} + +void ListBasicEndpointsRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); +} + +std::string ListBasicEndpointsRequest::getNextToken() const { + return nextToken_; +} + +void ListBasicEndpointsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListBasicEndpointsRequest::getName() const { + return name_; +} + +void ListBasicEndpointsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListBasicEndpointsRequest::getMaxResults() const { + return maxResults_; +} + +void ListBasicEndpointsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListBasicEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListBasicEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListBasicEndpointsResult.cc b/ga/src/model/ListBasicEndpointsResult.cc new file mode 100644 index 000000000..7dc13e0fd --- /dev/null +++ b/ga/src/model/ListBasicEndpointsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListBasicEndpointsResult::ListBasicEndpointsResult() : + ServiceResult() +{} + +ListBasicEndpointsResult::ListBasicEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBasicEndpointsResult::~ListBasicEndpointsResult() +{} + +void ListBasicEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointsNode = value["Endpoints"]["endpointsItem"]; + for (auto valueEndpointsendpointsItem : allEndpointsNode) + { + EndpointsItem endpointsObject; + if(!valueEndpointsendpointsItem["AcceleratorId"].isNull()) + endpointsObject.acceleratorId = valueEndpointsendpointsItem["AcceleratorId"].asString(); + if(!valueEndpointsendpointsItem["EndpointGroupId"].isNull()) + endpointsObject.endpointGroupId = valueEndpointsendpointsItem["EndpointGroupId"].asString(); + if(!valueEndpointsendpointsItem["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointsendpointsItem["EndpointId"].asString(); + if(!valueEndpointsendpointsItem["Name"].isNull()) + endpointsObject.name = valueEndpointsendpointsItem["Name"].asString(); + if(!valueEndpointsendpointsItem["EndpointType"].isNull()) + endpointsObject.endpointType = valueEndpointsendpointsItem["EndpointType"].asString(); + if(!valueEndpointsendpointsItem["EndpointAddress"].isNull()) + endpointsObject.endpointAddress = valueEndpointsendpointsItem["EndpointAddress"].asString(); + if(!valueEndpointsendpointsItem["EndpointSubAddress"].isNull()) + endpointsObject.endpointSubAddress = valueEndpointsendpointsItem["EndpointSubAddress"].asString(); + if(!valueEndpointsendpointsItem["EndpointSubAddressType"].isNull()) + endpointsObject.endpointSubAddressType = valueEndpointsendpointsItem["EndpointSubAddressType"].asString(); + if(!valueEndpointsendpointsItem["EndpointZoneId"].isNull()) + endpointsObject.endpointZoneId = valueEndpointsendpointsItem["EndpointZoneId"].asString(); + if(!valueEndpointsendpointsItem["State"].isNull()) + endpointsObject.state = valueEndpointsendpointsItem["State"].asString(); + endpoints_.push_back(endpointsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); + +} + +std::vector ListBasicEndpointsResult::getEndpoints()const +{ + return endpoints_; +} + +std::string ListBasicEndpointsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListBasicEndpointsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListBasicEndpointsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/ga/src/model/ListBusiRegionsRequest.cc b/ga/src/model/ListBusiRegionsRequest.cc index 24c886219..86de33f79 100644 --- a/ga/src/model/ListBusiRegionsRequest.cc +++ b/ga/src/model/ListBusiRegionsRequest.cc @@ -1,40 +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::Ga::Model::ListBusiRegionsRequest; - -ListBusiRegionsRequest::ListBusiRegionsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListBusiRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListBusiRegionsRequest::~ListBusiRegionsRequest() -{} - -std::string ListBusiRegionsRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListBusiRegionsRequest; + +ListBusiRegionsRequest::ListBusiRegionsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListBusiRegions") { + setMethod(HttpRequest::Method::Post); } -void ListBusiRegionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListBusiRegionsRequest::~ListBusiRegionsRequest() {} + +std::string ListBusiRegionsRequest::getRegionId() const { + return regionId_; +} + +void ListBusiRegionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/ListBusiRegionsResult.cc b/ga/src/model/ListBusiRegionsResult.cc index 7c7ed368f..d294e9b51 100644 --- a/ga/src/model/ListBusiRegionsResult.cc +++ b/ga/src/model/ListBusiRegionsResult.cc @@ -43,10 +43,10 @@ void ListBusiRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegionsItem : allRegionsNode) { RegionsItem regionsObject; - if(!valueRegionsRegionsItem["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); if(!valueRegionsRegionsItem["LocalName"].isNull()) regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/ga/src/model/ListCommonAreasRequest.cc b/ga/src/model/ListCommonAreasRequest.cc new file mode 100644 index 000000000..cc14bf1c6 --- /dev/null +++ b/ga/src/model/ListCommonAreasRequest.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::Ga::Model::ListCommonAreasRequest; + +ListCommonAreasRequest::ListCommonAreasRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCommonAreas") { + setMethod(HttpRequest::Method::Post); +} + +ListCommonAreasRequest::~ListCommonAreasRequest() {} + +bool ListCommonAreasRequest::getIsEpg() const { + return isEpg_; +} + +void ListCommonAreasRequest::setIsEpg(bool isEpg) { + isEpg_ = isEpg; + setParameter(std::string("IsEpg"), isEpg ? "true" : "false"); +} + +bool ListCommonAreasRequest::getIsIpSet() const { + return isIpSet_; +} + +void ListCommonAreasRequest::setIsIpSet(bool isIpSet) { + isIpSet_ = isIpSet; + setParameter(std::string("IsIpSet"), isIpSet ? "true" : "false"); +} + +std::string ListCommonAreasRequest::getIpVersion() const { + return ipVersion_; +} + +void ListCommonAreasRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + diff --git a/ga/src/model/ListCommonAreasResult.cc b/ga/src/model/ListCommonAreasResult.cc new file mode 100644 index 000000000..1a9bcd44e --- /dev/null +++ b/ga/src/model/ListCommonAreasResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCommonAreasResult::ListCommonAreasResult() : + ServiceResult() +{} + +ListCommonAreasResult::ListCommonAreasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCommonAreasResult::~ListCommonAreasResult() +{} + +void ListCommonAreasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAreasNode = value["Areas"]["AreasItem"]; + for (auto valueAreasAreasItem : allAreasNode) + { + AreasItem areasObject; + if(!valueAreasAreasItem["LocalName"].isNull()) + areasObject.localName = valueAreasAreasItem["LocalName"].asString(); + if(!valueAreasAreasItem["AreaId"].isNull()) + areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); + auto allRegionListNode = valueAreasAreasItem["RegionList"]["RegionListItem"]; + for (auto valueAreasAreasItemRegionListRegionListItem : allRegionListNode) + { + AreasItem::RegionListItem regionListObject; + if(!valueAreasAreasItemRegionListRegionListItem["LocalName"].isNull()) + regionListObject.localName = valueAreasAreasItemRegionListRegionListItem["LocalName"].asString(); + if(!valueAreasAreasItemRegionListRegionListItem["RegionId"].isNull()) + regionListObject.regionId = valueAreasAreasItemRegionListRegionListItem["RegionId"].asString(); + areasObject.regionList.push_back(regionListObject); + } + areas_.push_back(areasObject); + } + +} + +std::vector ListCommonAreasResult::getAreas()const +{ + return areas_; +} + diff --git a/ga/src/model/ListCustomRoutingEndpointGroupDestinationsRequest.cc b/ga/src/model/ListCustomRoutingEndpointGroupDestinationsRequest.cc new file mode 100644 index 000000000..3ecee8b9c --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointGroupDestinationsRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::ListCustomRoutingEndpointGroupDestinationsRequest; + +ListCustomRoutingEndpointGroupDestinationsRequest::ListCustomRoutingEndpointGroupDestinationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingEndpointGroupDestinations") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingEndpointGroupDestinationsRequest::~ListCustomRoutingEndpointGroupDestinationsRequest() {} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getListenerId() const { + return listenerId_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListCustomRoutingEndpointGroupDestinationsRequest::getFromPort() const { + return fromPort_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setFromPort(int fromPort) { + fromPort_ = fromPort; + setParameter(std::string("FromPort"), std::to_string(fromPort)); +} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::vector ListCustomRoutingEndpointGroupDestinationsRequest::getProtocols() const { + return protocols_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setProtocols(const std::vector &protocols) { + protocols_ = protocols; +} + +int ListCustomRoutingEndpointGroupDestinationsRequest::getToPort() const { + return toPort_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setToPort(int toPort) { + toPort_ = toPort; + setParameter(std::string("ToPort"), std::to_string(toPort)); +} + +std::string ListCustomRoutingEndpointGroupDestinationsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListCustomRoutingEndpointGroupDestinationsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListCustomRoutingEndpointGroupDestinationsResult.cc b/ga/src/model/ListCustomRoutingEndpointGroupDestinationsResult.cc new file mode 100644 index 000000000..dbec6da66 --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointGroupDestinationsResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingEndpointGroupDestinationsResult::ListCustomRoutingEndpointGroupDestinationsResult() : + ServiceResult() +{} + +ListCustomRoutingEndpointGroupDestinationsResult::ListCustomRoutingEndpointGroupDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingEndpointGroupDestinationsResult::~ListCustomRoutingEndpointGroupDestinationsResult() +{} + +void ListCustomRoutingEndpointGroupDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDestinationsNode = value["Destinations"]["endpoints"]; + for (auto valueDestinationsendpoints : allDestinationsNode) + { + Endpoints destinationsObject; + if(!valueDestinationsendpoints["AcceleratorId"].isNull()) + destinationsObject.acceleratorId = valueDestinationsendpoints["AcceleratorId"].asString(); + if(!valueDestinationsendpoints["ListenerId"].isNull()) + destinationsObject.listenerId = valueDestinationsendpoints["ListenerId"].asString(); + if(!valueDestinationsendpoints["EndpointGroupId"].isNull()) + destinationsObject.endpointGroupId = valueDestinationsendpoints["EndpointGroupId"].asString(); + if(!valueDestinationsendpoints["DestinationId"].isNull()) + destinationsObject.destinationId = valueDestinationsendpoints["DestinationId"].asString(); + if(!valueDestinationsendpoints["FromPort"].isNull()) + destinationsObject.fromPort = std::stoi(valueDestinationsendpoints["FromPort"].asString()); + if(!valueDestinationsendpoints["ToPort"].isNull()) + destinationsObject.toPort = std::stoi(valueDestinationsendpoints["ToPort"].asString()); + auto allProtocols = value["Protocols"]["protocols"]; + for (auto value : allProtocols) + destinationsObject.protocols.push_back(value.asString()); + destinations_.push_back(destinationsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListCustomRoutingEndpointGroupDestinationsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCustomRoutingEndpointGroupDestinationsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingEndpointGroupDestinationsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListCustomRoutingEndpointGroupDestinationsResult::getDestinations()const +{ + return destinations_; +} + diff --git a/ga/src/model/ListCustomRoutingEndpointGroupsRequest.cc b/ga/src/model/ListCustomRoutingEndpointGroupsRequest.cc new file mode 100644 index 000000000..14eb52e22 --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointGroupsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListCustomRoutingEndpointGroupsRequest; + +ListCustomRoutingEndpointGroupsRequest::ListCustomRoutingEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingEndpointGroupsRequest::~ListCustomRoutingEndpointGroupsRequest() {} + +std::string ListCustomRoutingEndpointGroupsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingEndpointGroupsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingEndpointGroupsRequest::getListenerId() const { + return listenerId_; +} + +void ListCustomRoutingEndpointGroupsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListCustomRoutingEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCustomRoutingEndpointGroupsRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingEndpointGroupsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListCustomRoutingEndpointGroupsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListCustomRoutingEndpointGroupsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListCustomRoutingEndpointGroupsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListCustomRoutingEndpointGroupsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListCustomRoutingEndpointGroupsResult.cc b/ga/src/model/ListCustomRoutingEndpointGroupsResult.cc new file mode 100644 index 000000000..afe5c336e --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointGroupsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingEndpointGroupsResult::ListCustomRoutingEndpointGroupsResult() : + ServiceResult() +{} + +ListCustomRoutingEndpointGroupsResult::ListCustomRoutingEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingEndpointGroupsResult::~ListCustomRoutingEndpointGroupsResult() +{} + +void ListCustomRoutingEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupsNode = value["EndpointGroups"]["endpointGroupsItem"]; + for (auto valueEndpointGroupsendpointGroupsItem : allEndpointGroupsNode) + { + EndpointGroupsItem endpointGroupsObject; + if(!valueEndpointGroupsendpointGroupsItem["AcceleratorId"].isNull()) + endpointGroupsObject.acceleratorId = valueEndpointGroupsendpointGroupsItem["AcceleratorId"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["ListenerId"].isNull()) + endpointGroupsObject.listenerId = valueEndpointGroupsendpointGroupsItem["ListenerId"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["EndpointGroupId"].isNull()) + endpointGroupsObject.endpointGroupId = valueEndpointGroupsendpointGroupsItem["EndpointGroupId"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["Name"].isNull()) + endpointGroupsObject.name = valueEndpointGroupsendpointGroupsItem["Name"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["Description"].isNull()) + endpointGroupsObject.description = valueEndpointGroupsendpointGroupsItem["Description"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["EndpointGroupRegion"].isNull()) + endpointGroupsObject.endpointGroupRegion = valueEndpointGroupsendpointGroupsItem["EndpointGroupRegion"].asString(); + if(!valueEndpointGroupsendpointGroupsItem["State"].isNull()) + endpointGroupsObject.state = valueEndpointGroupsendpointGroupsItem["State"].asString(); + auto allEndpointGroupIpList = value["EndpointGroupIpList"]["endpointGroupIpList"]; + for (auto value : allEndpointGroupIpList) + endpointGroupsObject.endpointGroupIpList.push_back(value.asString()); + auto allEndpointGroupUnconfirmedIpList = value["EndpointGroupUnconfirmedIpList"]["endpointGroupUnconfirmedIpList"]; + for (auto value : allEndpointGroupUnconfirmedIpList) + endpointGroupsObject.endpointGroupUnconfirmedIpList.push_back(value.asString()); + endpointGroups_.push_back(endpointGroupsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListCustomRoutingEndpointGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCustomRoutingEndpointGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingEndpointGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListCustomRoutingEndpointGroupsResult::getEndpointGroups()const +{ + return endpointGroups_; +} + diff --git a/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesRequest.cc b/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesRequest.cc new file mode 100644 index 000000000..542ee1eee --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::ListCustomRoutingEndpointTrafficPoliciesRequest; + +ListCustomRoutingEndpointTrafficPoliciesRequest::ListCustomRoutingEndpointTrafficPoliciesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingEndpointTrafficPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingEndpointTrafficPoliciesRequest::~ListCustomRoutingEndpointTrafficPoliciesRequest() {} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getAddress() const { + return address_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getEndpointId() const { + return endpointId_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getListenerId() const { + return listenerId_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListCustomRoutingEndpointTrafficPoliciesRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListCustomRoutingEndpointTrafficPoliciesRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesResult.cc b/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesResult.cc new file mode 100644 index 000000000..1277fb5b2 --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointTrafficPoliciesResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingEndpointTrafficPoliciesResult::ListCustomRoutingEndpointTrafficPoliciesResult() : + ServiceResult() +{} + +ListCustomRoutingEndpointTrafficPoliciesResult::ListCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingEndpointTrafficPoliciesResult::~ListCustomRoutingEndpointTrafficPoliciesResult() +{} + +void ListCustomRoutingEndpointTrafficPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPoliciesNode = value["Policies"]["policiesItem"]; + for (auto valuePoliciespoliciesItem : allPoliciesNode) + { + PoliciesItem policiesObject; + if(!valuePoliciespoliciesItem["AcceleratorId"].isNull()) + policiesObject.acceleratorId = valuePoliciespoliciesItem["AcceleratorId"].asString(); + if(!valuePoliciespoliciesItem["ListenerId"].isNull()) + policiesObject.listenerId = valuePoliciespoliciesItem["ListenerId"].asString(); + if(!valuePoliciespoliciesItem["EndpointGroupId"].isNull()) + policiesObject.endpointGroupId = valuePoliciespoliciesItem["EndpointGroupId"].asString(); + if(!valuePoliciespoliciesItem["EndpointId"].isNull()) + policiesObject.endpointId = valuePoliciespoliciesItem["EndpointId"].asString(); + if(!valuePoliciespoliciesItem["PolicyId"].isNull()) + policiesObject.policyId = valuePoliciespoliciesItem["PolicyId"].asString(); + if(!valuePoliciespoliciesItem["Address"].isNull()) + policiesObject.address = valuePoliciespoliciesItem["Address"].asString(); + auto allPortRangesNode = valuePoliciespoliciesItem["PortRanges"]["portRangesItem"]; + for (auto valuePoliciespoliciesItemPortRangesportRangesItem : allPortRangesNode) + { + PoliciesItem::PortRangesItem portRangesObject; + if(!valuePoliciespoliciesItemPortRangesportRangesItem["FromPort"].isNull()) + portRangesObject.fromPort = std::stoi(valuePoliciespoliciesItemPortRangesportRangesItem["FromPort"].asString()); + if(!valuePoliciespoliciesItemPortRangesportRangesItem["ToPort"].isNull()) + portRangesObject.toPort = std::stoi(valuePoliciespoliciesItemPortRangesportRangesItem["ToPort"].asString()); + policiesObject.portRanges.push_back(portRangesObject); + } + policies_.push_back(policiesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListCustomRoutingEndpointTrafficPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListCustomRoutingEndpointTrafficPoliciesResult::getPolicies()const +{ + return policies_; +} + +int ListCustomRoutingEndpointTrafficPoliciesResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingEndpointTrafficPoliciesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListCustomRoutingEndpointsRequest.cc b/ga/src/model/ListCustomRoutingEndpointsRequest.cc new file mode 100644 index 000000000..9b1f7ff39 --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListCustomRoutingEndpointsRequest; + +ListCustomRoutingEndpointsRequest::ListCustomRoutingEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingEndpointsRequest::~ListCustomRoutingEndpointsRequest() {} + +std::string ListCustomRoutingEndpointsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingEndpointsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingEndpointsRequest::getListenerId() const { + return listenerId_; +} + +void ListCustomRoutingEndpointsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListCustomRoutingEndpointsRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCustomRoutingEndpointsRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingEndpointsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListCustomRoutingEndpointsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListCustomRoutingEndpointsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListCustomRoutingEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListCustomRoutingEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListCustomRoutingEndpointsResult.cc b/ga/src/model/ListCustomRoutingEndpointsResult.cc new file mode 100644 index 000000000..bb5fe3816 --- /dev/null +++ b/ga/src/model/ListCustomRoutingEndpointsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingEndpointsResult::ListCustomRoutingEndpointsResult() : + ServiceResult() +{} + +ListCustomRoutingEndpointsResult::ListCustomRoutingEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingEndpointsResult::~ListCustomRoutingEndpointsResult() +{} + +void ListCustomRoutingEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointsNode = value["Endpoints"]["endpointsItem"]; + for (auto valueEndpointsendpointsItem : allEndpointsNode) + { + EndpointsItem endpointsObject; + if(!valueEndpointsendpointsItem["AcceleratorId"].isNull()) + endpointsObject.acceleratorId = valueEndpointsendpointsItem["AcceleratorId"].asString(); + if(!valueEndpointsendpointsItem["ListenerId"].isNull()) + endpointsObject.listenerId = valueEndpointsendpointsItem["ListenerId"].asString(); + if(!valueEndpointsendpointsItem["EndpointGroupId"].isNull()) + endpointsObject.endpointGroupId = valueEndpointsendpointsItem["EndpointGroupId"].asString(); + if(!valueEndpointsendpointsItem["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointsendpointsItem["EndpointId"].asString(); + if(!valueEndpointsendpointsItem["Type"].isNull()) + endpointsObject.type = valueEndpointsendpointsItem["Type"].asString(); + if(!valueEndpointsendpointsItem["Endpoint"].isNull()) + endpointsObject.endpoint = valueEndpointsendpointsItem["Endpoint"].asString(); + if(!valueEndpointsendpointsItem["TrafficToEndpointPolicy"].isNull()) + endpointsObject.trafficToEndpointPolicy = valueEndpointsendpointsItem["TrafficToEndpointPolicy"].asString(); + endpoints_.push_back(endpointsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector ListCustomRoutingEndpointsResult::getEndpoints()const +{ + return endpoints_; +} + +int ListCustomRoutingEndpointsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCustomRoutingEndpointsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingEndpointsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListCustomRoutingPortMappingsByDestinationRequest.cc b/ga/src/model/ListCustomRoutingPortMappingsByDestinationRequest.cc new file mode 100644 index 000000000..d09ceccd6 --- /dev/null +++ b/ga/src/model/ListCustomRoutingPortMappingsByDestinationRequest.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::Ga::Model::ListCustomRoutingPortMappingsByDestinationRequest; + +ListCustomRoutingPortMappingsByDestinationRequest::ListCustomRoutingPortMappingsByDestinationRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingPortMappingsByDestination") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingPortMappingsByDestinationRequest::~ListCustomRoutingPortMappingsByDestinationRequest() {} + +std::string ListCustomRoutingPortMappingsByDestinationRequest::getEndpointId() const { + return endpointId_; +} + +void ListCustomRoutingPortMappingsByDestinationRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string ListCustomRoutingPortMappingsByDestinationRequest::getDestinationAddress() const { + return destinationAddress_; +} + +void ListCustomRoutingPortMappingsByDestinationRequest::setDestinationAddress(const std::string &destinationAddress) { + destinationAddress_ = destinationAddress; + setParameter(std::string("DestinationAddress"), destinationAddress); +} + +std::string ListCustomRoutingPortMappingsByDestinationRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingPortMappingsByDestinationRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingPortMappingsByDestinationRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingPortMappingsByDestinationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCustomRoutingPortMappingsByDestinationRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingPortMappingsByDestinationRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + diff --git a/ga/src/model/ListCustomRoutingPortMappingsByDestinationResult.cc b/ga/src/model/ListCustomRoutingPortMappingsByDestinationResult.cc new file mode 100644 index 000000000..9bf50978f --- /dev/null +++ b/ga/src/model/ListCustomRoutingPortMappingsByDestinationResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingPortMappingsByDestinationResult::ListCustomRoutingPortMappingsByDestinationResult() : + ServiceResult() +{} + +ListCustomRoutingPortMappingsByDestinationResult::ListCustomRoutingPortMappingsByDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingPortMappingsByDestinationResult::~ListCustomRoutingPortMappingsByDestinationResult() +{} + +void ListCustomRoutingPortMappingsByDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPortMappingsNode = value["PortMappings"]["portMappingsItem"]; + for (auto valuePortMappingsportMappingsItem : allPortMappingsNode) + { + PortMappingsItem portMappingsObject; + if(!valuePortMappingsportMappingsItem["AcceleratorId"].isNull()) + portMappingsObject.acceleratorId = valuePortMappingsportMappingsItem["AcceleratorId"].asString(); + if(!valuePortMappingsportMappingsItem["ListenerId"].isNull()) + portMappingsObject.listenerId = valuePortMappingsportMappingsItem["ListenerId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointGroupId"].isNull()) + portMappingsObject.endpointGroupId = valuePortMappingsportMappingsItem["EndpointGroupId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointId"].isNull()) + portMappingsObject.endpointId = valuePortMappingsportMappingsItem["EndpointId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointGroupRegion"].isNull()) + portMappingsObject.endpointGroupRegion = valuePortMappingsportMappingsItem["EndpointGroupRegion"].asString(); + if(!valuePortMappingsportMappingsItem["Vswitch"].isNull()) + portMappingsObject.vswitch = valuePortMappingsportMappingsItem["Vswitch"].asString(); + if(!valuePortMappingsportMappingsItem["AcceleratorPort"].isNull()) + portMappingsObject.acceleratorPort = std::stoi(valuePortMappingsportMappingsItem["AcceleratorPort"].asString()); + if(!valuePortMappingsportMappingsItem["DestinationTrafficState"].isNull()) + portMappingsObject.destinationTrafficState = valuePortMappingsportMappingsItem["DestinationTrafficState"].asString(); + auto destinationSocketAddressNode = value["DestinationSocketAddress"]; + if(!destinationSocketAddressNode["IpAddress"].isNull()) + portMappingsObject.destinationSocketAddress.ipAddress = destinationSocketAddressNode["IpAddress"].asString(); + if(!destinationSocketAddressNode["Port"].isNull()) + portMappingsObject.destinationSocketAddress.port = std::stoi(destinationSocketAddressNode["Port"].asString()); + auto allProtocols = value["Protocols"]["protocols"]; + for (auto value : allProtocols) + portMappingsObject.protocols.push_back(value.asString()); + portMappings_.push_back(portMappingsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListCustomRoutingPortMappingsByDestinationResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListCustomRoutingPortMappingsByDestinationResult::getPortMappings()const +{ + return portMappings_; +} + +int ListCustomRoutingPortMappingsByDestinationResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingPortMappingsByDestinationResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListCustomRoutingPortMappingsRequest.cc b/ga/src/model/ListCustomRoutingPortMappingsRequest.cc new file mode 100644 index 000000000..0e237ec20 --- /dev/null +++ b/ga/src/model/ListCustomRoutingPortMappingsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListCustomRoutingPortMappingsRequest; + +ListCustomRoutingPortMappingsRequest::ListCustomRoutingPortMappingsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListCustomRoutingPortMappings") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomRoutingPortMappingsRequest::~ListCustomRoutingPortMappingsRequest() {} + +std::string ListCustomRoutingPortMappingsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCustomRoutingPortMappingsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string ListCustomRoutingPortMappingsRequest::getListenerId() const { + return listenerId_; +} + +void ListCustomRoutingPortMappingsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListCustomRoutingPortMappingsRequest::getRegionId() const { + return regionId_; +} + +void ListCustomRoutingPortMappingsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCustomRoutingPortMappingsRequest::getPageSize() const { + return pageSize_; +} + +void ListCustomRoutingPortMappingsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListCustomRoutingPortMappingsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListCustomRoutingPortMappingsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListCustomRoutingPortMappingsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListCustomRoutingPortMappingsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/ListCustomRoutingPortMappingsResult.cc b/ga/src/model/ListCustomRoutingPortMappingsResult.cc new file mode 100644 index 000000000..0ebed562b --- /dev/null +++ b/ga/src/model/ListCustomRoutingPortMappingsResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListCustomRoutingPortMappingsResult::ListCustomRoutingPortMappingsResult() : + ServiceResult() +{} + +ListCustomRoutingPortMappingsResult::ListCustomRoutingPortMappingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomRoutingPortMappingsResult::~ListCustomRoutingPortMappingsResult() +{} + +void ListCustomRoutingPortMappingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPortMappingsNode = value["PortMappings"]["portMappingsItem"]; + for (auto valuePortMappingsportMappingsItem : allPortMappingsNode) + { + PortMappingsItem portMappingsObject; + if(!valuePortMappingsportMappingsItem["AcceleratorId"].isNull()) + portMappingsObject.acceleratorId = valuePortMappingsportMappingsItem["AcceleratorId"].asString(); + if(!valuePortMappingsportMappingsItem["ListenerId"].isNull()) + portMappingsObject.listenerId = valuePortMappingsportMappingsItem["ListenerId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointGroupId"].isNull()) + portMappingsObject.endpointGroupId = valuePortMappingsportMappingsItem["EndpointGroupId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointId"].isNull()) + portMappingsObject.endpointId = valuePortMappingsportMappingsItem["EndpointId"].asString(); + if(!valuePortMappingsportMappingsItem["EndpointGroupRegion"].isNull()) + portMappingsObject.endpointGroupRegion = valuePortMappingsportMappingsItem["EndpointGroupRegion"].asString(); + if(!valuePortMappingsportMappingsItem["Vswitch"].isNull()) + portMappingsObject.vswitch = valuePortMappingsportMappingsItem["Vswitch"].asString(); + if(!valuePortMappingsportMappingsItem["AcceleratorPort"].isNull()) + portMappingsObject.acceleratorPort = std::stoi(valuePortMappingsportMappingsItem["AcceleratorPort"].asString()); + if(!valuePortMappingsportMappingsItem["DestinationTrafficState"].isNull()) + portMappingsObject.destinationTrafficState = valuePortMappingsportMappingsItem["DestinationTrafficState"].asString(); + auto destinationSocketAddressNode = value["DestinationSocketAddress"]; + if(!destinationSocketAddressNode["IpAddress"].isNull()) + portMappingsObject.destinationSocketAddress.ipAddress = destinationSocketAddressNode["IpAddress"].asString(); + if(!destinationSocketAddressNode["Port"].isNull()) + portMappingsObject.destinationSocketAddress.port = std::stoi(destinationSocketAddressNode["Port"].asString()); + auto allProtocols = value["Protocols"]["protocols"]; + for (auto value : allProtocols) + portMappingsObject.protocols.push_back(value.asString()); + portMappings_.push_back(portMappingsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListCustomRoutingPortMappingsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListCustomRoutingPortMappingsResult::getPortMappings()const +{ + return portMappings_; +} + +int ListCustomRoutingPortMappingsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCustomRoutingPortMappingsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListDomainsRequest.cc b/ga/src/model/ListDomainsRequest.cc new file mode 100644 index 000000000..5570b632f --- /dev/null +++ b/ga/src/model/ListDomainsRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListDomainsRequest; + +ListDomainsRequest::ListDomainsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListDomains") { + setMethod(HttpRequest::Method::Post); +} + +ListDomainsRequest::~ListDomainsRequest() {} + +int ListDomainsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDomainsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListDomainsRequest::getRegionId() const { + return regionId_; +} + +void ListDomainsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListDomainsRequest::getDomain() const { + return domain_; +} + +void ListDomainsRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + +int ListDomainsRequest::getPageSize() const { + return pageSize_; +} + +void ListDomainsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListDomainsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListDomainsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + +std::string ListDomainsRequest::getState() const { + return state_; +} + +void ListDomainsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + diff --git a/ga/src/model/ListDomainsResult.cc b/ga/src/model/ListDomainsResult.cc new file mode 100644 index 000000000..91fa89c47 --- /dev/null +++ b/ga/src/model/ListDomainsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListDomainsResult::ListDomainsResult() : + ServiceResult() +{} + +ListDomainsResult::ListDomainsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDomainsResult::~ListDomainsResult() +{} + +void ListDomainsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDomainsNode = value["Domains"]["DomainsItem"]; + for (auto valueDomainsDomainsItem : allDomainsNode) + { + DomainsItem domainsObject; + if(!valueDomainsDomainsItem["Domain"].isNull()) + domainsObject.domain = valueDomainsDomainsItem["Domain"].asString(); + if(!valueDomainsDomainsItem["State"].isNull()) + domainsObject.state = valueDomainsDomainsItem["State"].asString(); + auto allAcceleratorsNode = valueDomainsDomainsItem["Accelerators"]["AcceleratorsItem"]; + for (auto valueDomainsDomainsItemAcceleratorsAcceleratorsItem : allAcceleratorsNode) + { + DomainsItem::AcceleratorsItem acceleratorsObject; + if(!valueDomainsDomainsItemAcceleratorsAcceleratorsItem["AcceleratorId"].isNull()) + acceleratorsObject.acceleratorId = valueDomainsDomainsItemAcceleratorsAcceleratorsItem["AcceleratorId"].asString(); + if(!valueDomainsDomainsItemAcceleratorsAcceleratorsItem["Name"].isNull()) + acceleratorsObject.name = valueDomainsDomainsItemAcceleratorsAcceleratorsItem["Name"].asString(); + domainsObject.accelerators.push_back(acceleratorsObject); + } + domains_.push_back(domainsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector ListDomainsResult::getDomains()const +{ + return domains_; +} + +int ListDomainsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListDomainsResult::getPageSize()const +{ + return pageSize_; +} + +int ListDomainsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListEndpointGroupsRequest.cc b/ga/src/model/ListEndpointGroupsRequest.cc index 37f1f4f09..e8c55a3d0 100644 --- a/ga/src/model/ListEndpointGroupsRequest.cc +++ b/ga/src/model/ListEndpointGroupsRequest.cc @@ -1,117 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::ListEndpointGroupsRequest; - -ListEndpointGroupsRequest::ListEndpointGroupsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListEndpointGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListEndpointGroupsRequest::~ListEndpointGroupsRequest() -{} - -int ListEndpointGroupsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListEndpointGroupsRequest; + +ListEndpointGroupsRequest::ListEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListEndpointGroups") { + setMethod(HttpRequest::Method::Post); } -void ListEndpointGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListEndpointGroupsRequest::~ListEndpointGroupsRequest() {} + +int ListEndpointGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListEndpointGroupsRequest::getListenerId()const -{ - return listenerId_; +void ListEndpointGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListEndpointGroupsRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string ListEndpointGroupsRequest::getListenerId() const { + return listenerId_; } -std::string ListEndpointGroupsRequest::getRegionId()const -{ - return regionId_; +void ListEndpointGroupsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void ListEndpointGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListEndpointGroupsRequest::getRegionId() const { + return regionId_; } -std::string ListEndpointGroupsRequest::getEndpointGroupType()const -{ - return endpointGroupType_; +void ListEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListEndpointGroupsRequest::setEndpointGroupType(const std::string& endpointGroupType) -{ - endpointGroupType_ = endpointGroupType; - setParameter("EndpointGroupType", endpointGroupType); +std::string ListEndpointGroupsRequest::getEndpointGroupType() const { + return endpointGroupType_; } -std::string ListEndpointGroupsRequest::getAccessLogSwitch()const -{ - return accessLogSwitch_; +void ListEndpointGroupsRequest::setEndpointGroupType(const std::string &endpointGroupType) { + endpointGroupType_ = endpointGroupType; + setParameter(std::string("EndpointGroupType"), endpointGroupType); } -void ListEndpointGroupsRequest::setAccessLogSwitch(const std::string& accessLogSwitch) -{ - accessLogSwitch_ = accessLogSwitch; - setParameter("AccessLogSwitch", accessLogSwitch); +std::string ListEndpointGroupsRequest::getAccessLogSwitch() const { + return accessLogSwitch_; } -int ListEndpointGroupsRequest::getPageSize()const -{ - return pageSize_; +void ListEndpointGroupsRequest::setAccessLogSwitch(const std::string &accessLogSwitch) { + accessLogSwitch_ = accessLogSwitch; + setParameter(std::string("AccessLogSwitch"), accessLogSwitch); } -void ListEndpointGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListEndpointGroupsRequest::getPageSize() const { + return pageSize_; } -std::string ListEndpointGroupsRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListEndpointGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListEndpointGroupsRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListEndpointGroupsRequest::getAcceleratorId() const { + return acceleratorId_; } -std::string ListEndpointGroupsRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void ListEndpointGroupsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void ListEndpointGroupsRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::vector ListEndpointGroupsRequest::getTag() const { + return tag_; +} + +void ListEndpointGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string ListEndpointGroupsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void ListEndpointGroupsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } diff --git a/ga/src/model/ListEndpointGroupsResult.cc b/ga/src/model/ListEndpointGroupsResult.cc index 5f66d86e5..27ab12feb 100644 --- a/ga/src/model/ListEndpointGroupsResult.cc +++ b/ga/src/model/ListEndpointGroupsResult.cc @@ -43,36 +43,60 @@ void ListEndpointGroupsResult::parse(const std::string &payload) for (auto valueEndpointGroupsEndpointGroupsItem : allEndpointGroupsNode) { EndpointGroupsItem endpointGroupsObject; + if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].isNull()) + endpointGroupsObject.endpointGroupId = valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["State"].isNull()) + endpointGroupsObject.state = valueEndpointGroupsEndpointGroupsItem["State"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].isNull()) + endpointGroupsObject.healthCheckPath = valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].isNull()) + endpointGroupsObject.endpointGroupRegion = valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].asString(); if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckIntervalSeconds"].isNull()) endpointGroupsObject.healthCheckIntervalSeconds = std::stoi(valueEndpointGroupsEndpointGroupsItem["HealthCheckIntervalSeconds"].asString()); if(!valueEndpointGroupsEndpointGroupsItem["TrafficPercentage"].isNull()) endpointGroupsObject.trafficPercentage = std::stoi(valueEndpointGroupsEndpointGroupsItem["TrafficPercentage"].asString()); - if(!valueEndpointGroupsEndpointGroupsItem["Description"].isNull()) - endpointGroupsObject.description = valueEndpointGroupsEndpointGroupsItem["Description"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].isNull()) - endpointGroupsObject.endpointGroupId = valueEndpointGroupsEndpointGroupsItem["EndpointGroupId"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].isNull()) - endpointGroupsObject.healthCheckPath = valueEndpointGroupsEndpointGroupsItem["HealthCheckPath"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].isNull()) - endpointGroupsObject.thresholdCount = std::stoi(valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].asString()); - if(!valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].isNull()) - endpointGroupsObject.endpointRequestProtocol = valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["Name"].isNull()) - endpointGroupsObject.name = valueEndpointGroupsEndpointGroupsItem["Name"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].isNull()) - endpointGroupsObject.endpointGroupRegion = valueEndpointGroupsEndpointGroupsItem["EndpointGroupRegion"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["State"].isNull()) - endpointGroupsObject.state = valueEndpointGroupsEndpointGroupsItem["State"].asString(); if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckProtocol"].isNull()) endpointGroupsObject.healthCheckProtocol = valueEndpointGroupsEndpointGroupsItem["HealthCheckProtocol"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].isNull()) - endpointGroupsObject.healthCheckPort = std::stoi(valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].asString()); + if(!valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].isNull()) + endpointGroupsObject.thresholdCount = std::stoi(valueEndpointGroupsEndpointGroupsItem["ThresholdCount"].asString()); + if(!valueEndpointGroupsEndpointGroupsItem["ListenerId"].isNull()) + endpointGroupsObject.listenerId = valueEndpointGroupsEndpointGroupsItem["ListenerId"].asString(); if(!valueEndpointGroupsEndpointGroupsItem["AcceleratorId"].isNull()) endpointGroupsObject.acceleratorId = valueEndpointGroupsEndpointGroupsItem["AcceleratorId"].asString(); if(!valueEndpointGroupsEndpointGroupsItem["EndpointGroupType"].isNull()) endpointGroupsObject.endpointGroupType = valueEndpointGroupsEndpointGroupsItem["EndpointGroupType"].asString(); - if(!valueEndpointGroupsEndpointGroupsItem["ListenerId"].isNull()) - endpointGroupsObject.listenerId = valueEndpointGroupsEndpointGroupsItem["ListenerId"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].isNull()) + endpointGroupsObject.endpointRequestProtocol = valueEndpointGroupsEndpointGroupsItem["EndpointRequestProtocol"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["Description"].isNull()) + endpointGroupsObject.description = valueEndpointGroupsEndpointGroupsItem["Description"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["Name"].isNull()) + endpointGroupsObject.name = valueEndpointGroupsEndpointGroupsItem["Name"].asString(); + if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].isNull()) + endpointGroupsObject.healthCheckPort = std::stoi(valueEndpointGroupsEndpointGroupsItem["HealthCheckPort"].asString()); + if(!valueEndpointGroupsEndpointGroupsItem["HealthCheckEnabled"].isNull()) + endpointGroupsObject.healthCheckEnabled = valueEndpointGroupsEndpointGroupsItem["HealthCheckEnabled"].asString() == "true"; + auto allEndpointConfigurationsNode = valueEndpointGroupsEndpointGroupsItem["EndpointConfigurations"]["EndpointConfigurationsItem"]; + for (auto valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + { + EndpointGroupsItem::EndpointConfigurationsItem endpointConfigurationsObject; + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull()) + endpointConfigurationsObject.type = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].asString(); + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull()) + endpointConfigurationsObject.enableClientIPPreservation = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true"; + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull()) + endpointConfigurationsObject.weight = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString()); + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull()) + endpointConfigurationsObject.probeProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString(); + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull()) + endpointConfigurationsObject.endpoint = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString(); + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull()) + endpointConfigurationsObject.enableProxyProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true"; + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull()) + endpointConfigurationsObject.probePort = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString()); + if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EndpointId"].isNull()) + endpointConfigurationsObject.endpointId = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EndpointId"].asString(); + endpointGroupsObject.endpointConfigurations.push_back(endpointConfigurationsObject); + } auto allPortOverridesNode = valueEndpointGroupsEndpointGroupsItem["PortOverrides"]["PortOverridesItem"]; for (auto valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem : allPortOverridesNode) { @@ -83,29 +107,22 @@ void ListEndpointGroupsResult::parse(const std::string &payload) portOverridesObject.endpointPort = std::stoi(valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["EndpointPort"].asString()); endpointGroupsObject.portOverrides.push_back(portOverridesObject); } - auto allEndpointConfigurationsNode = valueEndpointGroupsEndpointGroupsItem["EndpointConfigurations"]["EndpointConfigurationsItem"]; - for (auto valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + auto allTagsNode = valueEndpointGroupsEndpointGroupsItem["Tags"]["TagsItem"]; + for (auto valueEndpointGroupsEndpointGroupsItemTagsTagsItem : allTagsNode) { - EndpointGroupsItem::EndpointConfigurationsItem endpointConfigurationsObject; - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].isNull()) - endpointConfigurationsObject.enableProxyProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableProxyProtocol"].asString() == "true"; - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].isNull()) - endpointConfigurationsObject.probeProtocol = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbeProtocol"].asString(); - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].isNull()) - endpointConfigurationsObject.type = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Type"].asString(); - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].isNull()) - endpointConfigurationsObject.endpoint = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Endpoint"].asString(); - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].isNull()) - endpointConfigurationsObject.enableClientIPPreservation = valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["EnableClientIPPreservation"].asString() == "true"; - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].isNull()) - endpointConfigurationsObject.probePort = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["ProbePort"].asString()); - if(!valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].isNull()) - endpointConfigurationsObject.weight = std::stoi(valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem["Weight"].asString()); - endpointGroupsObject.endpointConfigurations.push_back(endpointConfigurationsObject); + EndpointGroupsItem::TagsItem tagsObject; + if(!valueEndpointGroupsEndpointGroupsItemTagsTagsItem["Key"].isNull()) + tagsObject.key = valueEndpointGroupsEndpointGroupsItemTagsTagsItem["Key"].asString(); + if(!valueEndpointGroupsEndpointGroupsItemTagsTagsItem["Value"].isNull()) + tagsObject.value = valueEndpointGroupsEndpointGroupsItemTagsTagsItem["Value"].asString(); + endpointGroupsObject.tags.push_back(tagsObject); } auto allEndpointGroupIpList = value["EndpointGroupIpList"]["EndpointGroupIpList"]; for (auto value : allEndpointGroupIpList) endpointGroupsObject.endpointGroupIpList.push_back(value.asString()); + auto allEndpointGroupUnconfirmedIpList = value["EndpointGroupUnconfirmedIpList"]["endpointGroupUnconfirmedIpList"]; + for (auto value : allEndpointGroupUnconfirmedIpList) + endpointGroupsObject.endpointGroupUnconfirmedIpList.push_back(value.asString()); auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"]; for (auto value : allForwardingRuleIds) endpointGroupsObject.forwardingRuleIds.push_back(value.asString()); diff --git a/ga/src/model/ListForwardingRulesRequest.cc b/ga/src/model/ListForwardingRulesRequest.cc index ac76e7f6f..42c89a66b 100644 --- a/ga/src/model/ListForwardingRulesRequest.cc +++ b/ga/src/model/ListForwardingRulesRequest.cc @@ -1,106 +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 - -using AlibabaCloud::Ga::Model::ListForwardingRulesRequest; - -ListForwardingRulesRequest::ListForwardingRulesRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListForwardingRules") -{ - setMethod(HttpRequest::Method::Post); -} - -ListForwardingRulesRequest::~ListForwardingRulesRequest() -{} - -std::string ListForwardingRulesRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListForwardingRulesRequest; + +ListForwardingRulesRequest::ListForwardingRulesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListForwardingRules") { + setMethod(HttpRequest::Method::Post); } -void ListForwardingRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ListForwardingRulesRequest::~ListForwardingRulesRequest() {} + +std::string ListForwardingRulesRequest::getClientToken() const { + return clientToken_; } -std::string ListForwardingRulesRequest::getListenerId()const -{ - return listenerId_; +void ListForwardingRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ListForwardingRulesRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string ListForwardingRulesRequest::getListenerId() const { + return listenerId_; } -std::string ListForwardingRulesRequest::getForwardingRuleId()const -{ - return forwardingRuleId_; +void ListForwardingRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void ListForwardingRulesRequest::setForwardingRuleId(const std::string& forwardingRuleId) -{ - forwardingRuleId_ = forwardingRuleId; - setParameter("ForwardingRuleId", forwardingRuleId); +std::string ListForwardingRulesRequest::getForwardingRuleId() const { + return forwardingRuleId_; } -std::string ListForwardingRulesRequest::getRegionId()const -{ - return regionId_; +void ListForwardingRulesRequest::setForwardingRuleId(const std::string &forwardingRuleId) { + forwardingRuleId_ = forwardingRuleId; + setParameter(std::string("ForwardingRuleId"), forwardingRuleId); } -void ListForwardingRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListForwardingRulesRequest::getRegionId() const { + return regionId_; } -std::string ListForwardingRulesRequest::getNextToken()const -{ - return nextToken_; +void ListForwardingRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListForwardingRulesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListForwardingRulesRequest::getNextToken() const { + return nextToken_; } -int ListForwardingRulesRequest::getMaxResults()const -{ - return maxResults_; +void ListForwardingRulesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListForwardingRulesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListForwardingRulesRequest::getMaxResults() const { + return maxResults_; } -std::string ListForwardingRulesRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListForwardingRulesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void ListForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListForwardingRulesRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListForwardingRulesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ListForwardingRulesResult.cc b/ga/src/model/ListForwardingRulesResult.cc index 08ebe69f5..f2889e970 100644 --- a/ga/src/model/ListForwardingRulesResult.cc +++ b/ga/src/model/ListForwardingRulesResult.cc @@ -43,24 +43,46 @@ void ListForwardingRulesResult::parse(const std::string &payload) for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode) { ForwardingRulesItem forwardingRulesObject; - if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].isNull()) - forwardingRulesObject.forwardingRuleName = valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].asString(); if(!valueForwardingRulesForwardingRulesItem["Priority"].isNull()) forwardingRulesObject.priority = std::stoi(valueForwardingRulesForwardingRulesItem["Priority"].asString()); if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull()) forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString(); + if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].isNull()) + forwardingRulesObject.forwardingRuleName = valueForwardingRulesForwardingRulesItem["ForwardingRuleName"].asString(); + if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleDirection"].isNull()) + forwardingRulesObject.forwardingRuleDirection = valueForwardingRulesForwardingRulesItem["ForwardingRuleDirection"].asString(); if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleStatus"].isNull()) forwardingRulesObject.forwardingRuleStatus = valueForwardingRulesForwardingRulesItem["ForwardingRuleStatus"].asString(); if(!valueForwardingRulesForwardingRulesItem["ListenerId"].isNull()) forwardingRulesObject.listenerId = valueForwardingRulesForwardingRulesItem["ListenerId"].asString(); + auto allRuleConditionsNode = valueForwardingRulesForwardingRulesItem["RuleConditions"]["RuleConditionsItem"]; + for (auto valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem : allRuleConditionsNode) + { + ForwardingRulesItem::RuleConditionsItem ruleConditionsObject; + if(!valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].isNull()) + ruleConditionsObject.ruleConditionType = valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].asString(); + if(!valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionValue"].isNull()) + ruleConditionsObject.ruleConditionValue = valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionValue"].asString(); + auto pathConfigNode = value["PathConfig"]; + auto allValues = pathConfigNode["Values"]["Values"]; + for (auto value : allValues) + ruleConditionsObject.pathConfig.values.push_back(value.asString()); + auto hostConfigNode = value["HostConfig"]; + auto allValues1 = hostConfigNode["Values"]["Values"]; + for (auto value : allValues1) + ruleConditionsObject.hostConfig.values1.push_back(value.asString()); + forwardingRulesObject.ruleConditions.push_back(ruleConditionsObject); + } auto allRuleActionsNode = valueForwardingRulesForwardingRulesItem["RuleActions"]["RuleActionsItem"]; for (auto valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem : allRuleActionsNode) { ForwardingRulesItem::RuleActionsItem ruleActionsObject; - if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].isNull()) - ruleActionsObject.ruleActionType = valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].asString(); if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["Order"].isNull()) ruleActionsObject.order = std::stoi(valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["Order"].asString()); + if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].isNull()) + ruleActionsObject.ruleActionType = valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionType"].asString(); + if(!valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionValue"].isNull()) + ruleActionsObject.ruleActionValue = valueForwardingRulesForwardingRulesItemRuleActionsRuleActionsItem["RuleActionValue"].asString(); auto forwardGroupConfigNode = value["ForwardGroupConfig"]; auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["ServerGroupTuplesItem"]; for (auto forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem : allServerGroupTuplesNode) @@ -72,22 +94,6 @@ void ListForwardingRulesResult::parse(const std::string &payload) } forwardingRulesObject.ruleActions.push_back(ruleActionsObject); } - auto allRuleConditionsNode = valueForwardingRulesForwardingRulesItem["RuleConditions"]["RuleConditionsItem"]; - for (auto valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem : allRuleConditionsNode) - { - ForwardingRulesItem::RuleConditionsItem ruleConditionsObject; - if(!valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].isNull()) - ruleConditionsObject.ruleConditionType = valueForwardingRulesForwardingRulesItemRuleConditionsRuleConditionsItem["RuleConditionType"].asString(); - auto pathConfigNode = value["PathConfig"]; - auto allValues = pathConfigNode["Values"]["Values"]; - for (auto value : allValues) - ruleConditionsObject.pathConfig.values.push_back(value.asString()); - auto hostConfigNode = value["HostConfig"]; - auto allValues1 = hostConfigNode["Values"]["Values"]; - for (auto value : allValues1) - ruleConditionsObject.hostConfig.values1.push_back(value.asString()); - forwardingRulesObject.ruleConditions.push_back(ruleConditionsObject); - } forwardingRules_.push_back(forwardingRulesObject); } if(!value["TotalCount"].isNull()) diff --git a/ga/src/model/ListIpSetsRequest.cc b/ga/src/model/ListIpSetsRequest.cc index 019c65eda..ecb168d85 100644 --- a/ga/src/model/ListIpSetsRequest.cc +++ b/ga/src/model/ListIpSetsRequest.cc @@ -1,73 +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::Ga::Model::ListIpSetsRequest; - -ListIpSetsRequest::ListIpSetsRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListIpSets") -{ - setMethod(HttpRequest::Method::Post); -} - -ListIpSetsRequest::~ListIpSetsRequest() -{} - -int ListIpSetsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListIpSetsRequest; + +ListIpSetsRequest::ListIpSetsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListIpSets") { + setMethod(HttpRequest::Method::Post); } -void ListIpSetsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListIpSetsRequest::~ListIpSetsRequest() {} + +int ListIpSetsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListIpSetsRequest::getRegionId()const -{ - return regionId_; +void ListIpSetsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListIpSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListIpSetsRequest::getRegionId() const { + return regionId_; } -int ListIpSetsRequest::getPageSize()const -{ - return pageSize_; +void ListIpSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListIpSetsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListIpSetsRequest::getPageSize() const { + return pageSize_; } -std::string ListIpSetsRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListIpSetsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListIpSetsRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListIpSetsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListIpSetsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ListIpSetsResult.cc b/ga/src/model/ListIpSetsResult.cc index 388ddb18b..d62faae10 100644 --- a/ga/src/model/ListIpSetsResult.cc +++ b/ga/src/model/ListIpSetsResult.cc @@ -43,16 +43,18 @@ void ListIpSetsResult::parse(const std::string &payload) for (auto valueIpSetsIpSetsItem : allIpSetsNode) { IpSetsItem ipSetsObject; - if(!valueIpSetsIpSetsItem["IpSetId"].isNull()) - ipSetsObject.ipSetId = valueIpSetsIpSetsItem["IpSetId"].asString(); - if(!valueIpSetsIpSetsItem["IpVersion"].isNull()) - ipSetsObject.ipVersion = valueIpSetsIpSetsItem["IpVersion"].asString(); - if(!valueIpSetsIpSetsItem["State"].isNull()) - ipSetsObject.state = valueIpSetsIpSetsItem["State"].asString(); - if(!valueIpSetsIpSetsItem["Bandwidth"].isNull()) - ipSetsObject.bandwidth = std::stoi(valueIpSetsIpSetsItem["Bandwidth"].asString()); if(!valueIpSetsIpSetsItem["AccelerateRegionId"].isNull()) ipSetsObject.accelerateRegionId = valueIpSetsIpSetsItem["AccelerateRegionId"].asString(); + if(!valueIpSetsIpSetsItem["IpVersion"].isNull()) + ipSetsObject.ipVersion = valueIpSetsIpSetsItem["IpVersion"].asString(); + if(!valueIpSetsIpSetsItem["Bandwidth"].isNull()) + ipSetsObject.bandwidth = std::stoi(valueIpSetsIpSetsItem["Bandwidth"].asString()); + if(!valueIpSetsIpSetsItem["IspType"].isNull()) + ipSetsObject.ispType = valueIpSetsIpSetsItem["IspType"].asString(); + if(!valueIpSetsIpSetsItem["State"].isNull()) + ipSetsObject.state = valueIpSetsIpSetsItem["State"].asString(); + if(!valueIpSetsIpSetsItem["IpSetId"].isNull()) + ipSetsObject.ipSetId = valueIpSetsIpSetsItem["IpSetId"].asString(); auto allIpAddressList = value["IpAddressList"]["IpAddressList"]; for (auto value : allIpAddressList) ipSetsObject.ipAddressList.push_back(value.asString()); diff --git a/ga/src/model/ListIspTypesRequest.cc b/ga/src/model/ListIspTypesRequest.cc new file mode 100644 index 000000000..f0495d44d --- /dev/null +++ b/ga/src/model/ListIspTypesRequest.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::Ga::Model::ListIspTypesRequest; + +ListIspTypesRequest::ListIspTypesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListIspTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListIspTypesRequest::~ListIspTypesRequest() {} + +std::string ListIspTypesRequest::getAcceleratorType() const { + return acceleratorType_; +} + +void ListIspTypesRequest::setAcceleratorType(const std::string &acceleratorType) { + acceleratorType_ = acceleratorType; + setParameter(std::string("AcceleratorType"), acceleratorType); +} + +std::string ListIspTypesRequest::getBusinessRegionId() const { + return businessRegionId_; +} + +void ListIspTypesRequest::setBusinessRegionId(const std::string &businessRegionId) { + businessRegionId_ = businessRegionId; + setParameter(std::string("BusinessRegionId"), businessRegionId); +} + +std::string ListIspTypesRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListIspTypesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/ListIspTypesResult.cc b/ga/src/model/ListIspTypesResult.cc new file mode 100644 index 000000000..af6242d08 --- /dev/null +++ b/ga/src/model/ListIspTypesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListIspTypesResult::ListIspTypesResult() : + ServiceResult() +{} + +ListIspTypesResult::ListIspTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIspTypesResult::~ListIspTypesResult() +{} + +void ListIspTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIspTypeList = value["IspTypeList"]["IspTypeList"]; + for (const auto &item : allIspTypeList) + ispTypeList_.push_back(item.asString()); + +} + +std::vector ListIspTypesResult::getIspTypeList()const +{ + return ispTypeList_; +} + diff --git a/ga/src/model/ListListenerCertificatesRequest.cc b/ga/src/model/ListListenerCertificatesRequest.cc new file mode 100644 index 000000000..e7307f3b2 --- /dev/null +++ b/ga/src/model/ListListenerCertificatesRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::ListListenerCertificatesRequest; + +ListListenerCertificatesRequest::ListListenerCertificatesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListListenerCertificates") { + setMethod(HttpRequest::Method::Post); +} + +ListListenerCertificatesRequest::~ListListenerCertificatesRequest() {} + +std::string ListListenerCertificatesRequest::getRole() const { + return role_; +} + +void ListListenerCertificatesRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); +} + +std::string ListListenerCertificatesRequest::getListenerId() const { + return listenerId_; +} + +void ListListenerCertificatesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string ListListenerCertificatesRequest::getRegionId() const { + return regionId_; +} + +void ListListenerCertificatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +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)); +} + +std::string ListListenerCertificatesRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListListenerCertificatesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/ListListenerCertificatesResult.cc b/ga/src/model/ListListenerCertificatesResult.cc new file mode 100644 index 000000000..4d360a2e7 --- /dev/null +++ b/ga/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::Ga; +using namespace AlibabaCloud::Ga::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"]["CertificatesItem"]; + for (auto valueCertificatesCertificatesItem : allCertificatesNode) + { + CertificatesItem certificatesObject; + if(!valueCertificatesCertificatesItem["CertificateId"].isNull()) + certificatesObject.certificateId = valueCertificatesCertificatesItem["CertificateId"].asString(); + if(!valueCertificatesCertificatesItem["IsDefault"].isNull()) + certificatesObject.isDefault = valueCertificatesCertificatesItem["IsDefault"].asString() == "true"; + if(!valueCertificatesCertificatesItem["Domain"].isNull()) + certificatesObject.domain = valueCertificatesCertificatesItem["Domain"].asString(); + if(!valueCertificatesCertificatesItem["State"].isNull()) + certificatesObject.state = valueCertificatesCertificatesItem["State"].asString(); + certificates_.push_back(certificatesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].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/ga/src/model/ListListenersRequest.cc b/ga/src/model/ListListenersRequest.cc index 6bd786b8b..475b262df 100644 --- a/ga/src/model/ListListenersRequest.cc +++ b/ga/src/model/ListListenersRequest.cc @@ -1,73 +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::Ga::Model::ListListenersRequest; - -ListListenersRequest::ListListenersRequest() : - RpcServiceRequest("ga", "2019-11-20", "ListListeners") -{ - setMethod(HttpRequest::Method::Post); -} - -ListListenersRequest::~ListListenersRequest() -{} - -int ListListenersRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::Ga::Model::ListListenersRequest; + +ListListenersRequest::ListListenersRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListListeners") { + setMethod(HttpRequest::Method::Post); } -void ListListenersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListListenersRequest::~ListListenersRequest() {} + +int ListListenersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListListenersRequest::getRegionId()const -{ - return regionId_; +void ListListenersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListListenersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListListenersRequest::getRegionId() const { + return regionId_; } -int ListListenersRequest::getPageSize()const -{ - return pageSize_; +void ListListenersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListListenersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListListenersRequest::getPageSize() const { + return pageSize_; } -std::string ListListenersRequest::getAcceleratorId()const -{ - return acceleratorId_; +void ListListenersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListListenersRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string ListListenersRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListListenersRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/ListListenersResult.cc b/ga/src/model/ListListenersResult.cc index 462344d05..7247bfb9f 100644 --- a/ga/src/model/ListListenersResult.cc +++ b/ga/src/model/ListListenersResult.cc @@ -43,33 +43,37 @@ void ListListenersResult::parse(const std::string &payload) for (auto valueListenersListenersItem : allListenersNode) { ListenersItem listenersObject; + if(!valueListenersListenersItem["ListenerId"].isNull()) + listenersObject.listenerId = valueListenersListenersItem["ListenerId"].asString(); if(!valueListenersListenersItem["Description"].isNull()) listenersObject.description = valueListenersListenersItem["Description"].asString(); if(!valueListenersListenersItem["State"].isNull()) listenersObject.state = valueListenersListenersItem["State"].asString(); - if(!valueListenersListenersItem["ProxyProtocol"].isNull()) - listenersObject.proxyProtocol = valueListenersListenersItem["ProxyProtocol"].asString() == "true"; - if(!valueListenersListenersItem["CreateTime"].isNull()) - listenersObject.createTime = std::stol(valueListenersListenersItem["CreateTime"].asString()); - if(!valueListenersListenersItem["Protocol"].isNull()) - listenersObject.protocol = valueListenersListenersItem["Protocol"].asString(); - if(!valueListenersListenersItem["AcceleratorId"].isNull()) - listenersObject.acceleratorId = valueListenersListenersItem["AcceleratorId"].asString(); - if(!valueListenersListenersItem["Name"].isNull()) - listenersObject.name = valueListenersListenersItem["Name"].asString(); if(!valueListenersListenersItem["ClientAffinity"].isNull()) listenersObject.clientAffinity = valueListenersListenersItem["ClientAffinity"].asString(); - if(!valueListenersListenersItem["ListenerId"].isNull()) - listenersObject.listenerId = valueListenersListenersItem["ListenerId"].asString(); - auto allPortRangesNode = valueListenersListenersItem["PortRanges"]["PortRangesItem"]; - for (auto valueListenersListenersItemPortRangesPortRangesItem : allPortRangesNode) + if(!valueListenersListenersItem["Protocol"].isNull()) + listenersObject.protocol = valueListenersListenersItem["Protocol"].asString(); + if(!valueListenersListenersItem["CreateTime"].isNull()) + listenersObject.createTime = std::stol(valueListenersListenersItem["CreateTime"].asString()); + if(!valueListenersListenersItem["Name"].isNull()) + listenersObject.name = valueListenersListenersItem["Name"].asString(); + if(!valueListenersListenersItem["ProxyProtocol"].isNull()) + listenersObject.proxyProtocol = valueListenersListenersItem["ProxyProtocol"].asString() == "true"; + if(!valueListenersListenersItem["AcceleratorId"].isNull()) + listenersObject.acceleratorId = valueListenersListenersItem["AcceleratorId"].asString(); + if(!valueListenersListenersItem["SecurityPolicyId"].isNull()) + listenersObject.securityPolicyId = valueListenersListenersItem["SecurityPolicyId"].asString(); + if(!valueListenersListenersItem["Type"].isNull()) + listenersObject.type = valueListenersListenersItem["Type"].asString(); + auto allCertificatesNode = valueListenersListenersItem["Certificates"]["Certificate"]; + for (auto valueListenersListenersItemCertificatesCertificate : allCertificatesNode) { - ListenersItem::PortRangesItem portRangesObject; - if(!valueListenersListenersItemPortRangesPortRangesItem["FromPort"].isNull()) - portRangesObject.fromPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["FromPort"].asString()); - if(!valueListenersListenersItemPortRangesPortRangesItem["ToPort"].isNull()) - portRangesObject.toPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["ToPort"].asString()); - listenersObject.portRanges.push_back(portRangesObject); + ListenersItem::Certificate certificatesObject; + if(!valueListenersListenersItemCertificatesCertificate["Type"].isNull()) + certificatesObject.type = valueListenersListenersItemCertificatesCertificate["Type"].asString(); + if(!valueListenersListenersItemCertificatesCertificate["Id"].isNull()) + certificatesObject.id = valueListenersListenersItemCertificatesCertificate["Id"].asString(); + listenersObject.certificates.push_back(certificatesObject); } auto allBackendPortsNode = valueListenersListenersItem["BackendPorts"]["BackendPort"]; for (auto valueListenersListenersItemBackendPortsBackendPort : allBackendPortsNode) @@ -81,16 +85,27 @@ void ListListenersResult::parse(const std::string &payload) backendPortsObject.toPort = valueListenersListenersItemBackendPortsBackendPort["ToPort"].asString(); listenersObject.backendPorts.push_back(backendPortsObject); } - auto allCertificatesNode = valueListenersListenersItem["Certificates"]["Certificate"]; - for (auto valueListenersListenersItemCertificatesCertificate : allCertificatesNode) + auto allPortRangesNode = valueListenersListenersItem["PortRanges"]["PortRangesItem"]; + for (auto valueListenersListenersItemPortRangesPortRangesItem : allPortRangesNode) { - ListenersItem::Certificate certificatesObject; - if(!valueListenersListenersItemCertificatesCertificate["Type"].isNull()) - certificatesObject.type = valueListenersListenersItemCertificatesCertificate["Type"].asString(); - if(!valueListenersListenersItemCertificatesCertificate["Id"].isNull()) - certificatesObject.id = valueListenersListenersItemCertificatesCertificate["Id"].asString(); - listenersObject.certificates.push_back(certificatesObject); + ListenersItem::PortRangesItem portRangesObject; + if(!valueListenersListenersItemPortRangesPortRangesItem["FromPort"].isNull()) + portRangesObject.fromPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["FromPort"].asString()); + if(!valueListenersListenersItemPortRangesPortRangesItem["ToPort"].isNull()) + portRangesObject.toPort = std::stoi(valueListenersListenersItemPortRangesPortRangesItem["ToPort"].asString()); + listenersObject.portRanges.push_back(portRangesObject); } + auto xForwardedForConfigNode = value["XForwardedForConfig"]; + if(!xForwardedForConfigNode["XForwardedForGaIdEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForGaIdEnabled = xForwardedForConfigNode["XForwardedForGaIdEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XRealIpEnabled"].isNull()) + listenersObject.xForwardedForConfig.xRealIpEnabled = xForwardedForConfigNode["XRealIpEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForGaApEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForGaApEnabled = xForwardedForConfigNode["XForwardedForGaApEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForProtoEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForProtoEnabled = xForwardedForConfigNode["XForwardedForProtoEnabled"].asString() == "true"; + if(!xForwardedForConfigNode["XForwardedForPortEnabled"].isNull()) + listenersObject.xForwardedForConfig.xForwardedForPortEnabled = xForwardedForConfigNode["XForwardedForPortEnabled"].asString() == "true"; listeners_.push_back(listenersObject); } if(!value["TotalCount"].isNull()) diff --git a/ga/src/model/ListSpareIpsRequest.cc b/ga/src/model/ListSpareIpsRequest.cc new file mode 100644 index 000000000..e5a3aefdc --- /dev/null +++ b/ga/src/model/ListSpareIpsRequest.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::Ga::Model::ListSpareIpsRequest; + +ListSpareIpsRequest::ListSpareIpsRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListSpareIps") { + setMethod(HttpRequest::Method::Post); +} + +ListSpareIpsRequest::~ListSpareIpsRequest() {} + +bool ListSpareIpsRequest::getDryRun() const { + return dryRun_; +} + +void ListSpareIpsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ListSpareIpsRequest::getClientToken() const { + return clientToken_; +} + +void ListSpareIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListSpareIpsRequest::getRegionId() const { + return regionId_; +} + +void ListSpareIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListSpareIpsRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ListSpareIpsRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/ListSpareIpsResult.cc b/ga/src/model/ListSpareIpsResult.cc new file mode 100644 index 000000000..c183d6d75 --- /dev/null +++ b/ga/src/model/ListSpareIpsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListSpareIpsResult::ListSpareIpsResult() : + ServiceResult() +{} + +ListSpareIpsResult::ListSpareIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSpareIpsResult::~ListSpareIpsResult() +{} + +void ListSpareIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSpareIpsNode = value["SpareIps"]["spareIpsItem"]; + for (auto valueSpareIpsspareIpsItem : allSpareIpsNode) + { + SpareIpsItem spareIpsObject; + if(!valueSpareIpsspareIpsItem["SpareIp"].isNull()) + spareIpsObject.spareIp = valueSpareIpsspareIpsItem["SpareIp"].asString(); + if(!valueSpareIpsspareIpsItem["State"].isNull()) + spareIpsObject.state = valueSpareIpsspareIpsItem["State"].asString(); + spareIps_.push_back(spareIpsObject); + } + +} + +std::vector ListSpareIpsResult::getSpareIps()const +{ + return spareIps_; +} + diff --git a/ga/src/model/ListSystemSecurityPoliciesRequest.cc b/ga/src/model/ListSystemSecurityPoliciesRequest.cc new file mode 100644 index 000000000..94eada23f --- /dev/null +++ b/ga/src/model/ListSystemSecurityPoliciesRequest.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::Ga::Model::ListSystemSecurityPoliciesRequest; + +ListSystemSecurityPoliciesRequest::ListSystemSecurityPoliciesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListSystemSecurityPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListSystemSecurityPoliciesRequest::~ListSystemSecurityPoliciesRequest() {} + +int ListSystemSecurityPoliciesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSystemSecurityPoliciesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListSystemSecurityPoliciesRequest::getRegionId() const { + return regionId_; +} + +void ListSystemSecurityPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListSystemSecurityPoliciesRequest::getPageSize() const { + return pageSize_; +} + +void ListSystemSecurityPoliciesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ga/src/model/ListSystemSecurityPoliciesResult.cc b/ga/src/model/ListSystemSecurityPoliciesResult.cc new file mode 100644 index 000000000..6fc5b6a87 --- /dev/null +++ b/ga/src/model/ListSystemSecurityPoliciesResult.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::Ga; +using namespace AlibabaCloud::Ga::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"]["SecurityPoliciesItem"]; + for (auto valueSecurityPoliciesSecurityPoliciesItem : allSecurityPoliciesNode) + { + SecurityPoliciesItem securityPoliciesObject; + if(!valueSecurityPoliciesSecurityPoliciesItem["SecurityPolicyId"].isNull()) + securityPoliciesObject.securityPolicyId = valueSecurityPoliciesSecurityPoliciesItem["SecurityPolicyId"].asString(); + auto allTlsVersions = value["TlsVersions"]["TlsVersions"]; + for (auto value : allTlsVersions) + securityPoliciesObject.tlsVersions.push_back(value.asString()); + auto allCiphers = value["Ciphers"]["Ciphers"]; + for (auto value : allCiphers) + securityPoliciesObject.ciphers.push_back(value.asString()); + securityPolicies_.push_back(securityPoliciesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int ListSystemSecurityPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListSystemSecurityPoliciesResult::getPageSize()const +{ + return pageSize_; +} + +int ListSystemSecurityPoliciesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListSystemSecurityPoliciesResult::getSecurityPolicies()const +{ + return securityPolicies_; +} + diff --git a/ga/src/model/ListTagResourcesRequest.cc b/ga/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..9b6af1fa1 --- /dev/null +++ b/ga/src/model/ListTagResourcesRequest.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::Ga::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ga", "2019-11-20", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void ListTagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + diff --git a/ga/src/model/ListTagResourcesResult.cc b/ga/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..38a8e2ec6 --- /dev/null +++ b/ga/src/model/ListTagResourcesResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::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["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +int ListTagResourcesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/ga/src/model/QueryCrossBorderApprovalStatusRequest.cc b/ga/src/model/QueryCrossBorderApprovalStatusRequest.cc new file mode 100644 index 000000000..e130ea57f --- /dev/null +++ b/ga/src/model/QueryCrossBorderApprovalStatusRequest.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::Ga::Model::QueryCrossBorderApprovalStatusRequest; + +QueryCrossBorderApprovalStatusRequest::QueryCrossBorderApprovalStatusRequest() + : RpcServiceRequest("ga", "2019-11-20", "QueryCrossBorderApprovalStatus") { + setMethod(HttpRequest::Method::Post); +} + +QueryCrossBorderApprovalStatusRequest::~QueryCrossBorderApprovalStatusRequest() {} + +std::string QueryCrossBorderApprovalStatusRequest::getRegionId() const { + return regionId_; +} + +void QueryCrossBorderApprovalStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/QueryCrossBorderApprovalStatusResult.cc b/ga/src/model/QueryCrossBorderApprovalStatusResult.cc new file mode 100644 index 000000000..25681832f --- /dev/null +++ b/ga/src/model/QueryCrossBorderApprovalStatusResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +QueryCrossBorderApprovalStatusResult::QueryCrossBorderApprovalStatusResult() : + ServiceResult() +{} + +QueryCrossBorderApprovalStatusResult::QueryCrossBorderApprovalStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCrossBorderApprovalStatusResult::~QueryCrossBorderApprovalStatusResult() +{} + +void QueryCrossBorderApprovalStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApprovalStatus"].isNull()) + approvalStatus_ = value["ApprovalStatus"].asString(); + +} + +std::string QueryCrossBorderApprovalStatusResult::getApprovalStatus()const +{ + return approvalStatus_; +} + diff --git a/ga/src/model/RemoveEntriesFromAclRequest.cc b/ga/src/model/RemoveEntriesFromAclRequest.cc index 6343014b8..0d3a34aae 100644 --- a/ga/src/model/RemoveEntriesFromAclRequest.cc +++ b/ga/src/model/RemoveEntriesFromAclRequest.cc @@ -1,88 +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::Ga::Model::RemoveEntriesFromAclRequest; - -RemoveEntriesFromAclRequest::RemoveEntriesFromAclRequest() : - RpcServiceRequest("ga", "2019-11-20", "RemoveEntriesFromAcl") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveEntriesFromAclRequest::~RemoveEntriesFromAclRequest() -{} - -std::string RemoveEntriesFromAclRequest::getAclId()const -{ - return aclId_; + */ + +#include + +using AlibabaCloud::Ga::Model::RemoveEntriesFromAclRequest; + +RemoveEntriesFromAclRequest::RemoveEntriesFromAclRequest() + : RpcServiceRequest("ga", "2019-11-20", "RemoveEntriesFromAcl") { + setMethod(HttpRequest::Method::Post); } -void RemoveEntriesFromAclRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +RemoveEntriesFromAclRequest::~RemoveEntriesFromAclRequest() {} + +std::string RemoveEntriesFromAclRequest::getAclId() const { + return aclId_; } -bool RemoveEntriesFromAclRequest::getDryRun()const -{ - return dryRun_; +void RemoveEntriesFromAclRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void RemoveEntriesFromAclRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool RemoveEntriesFromAclRequest::getDryRun() const { + return dryRun_; } -std::string RemoveEntriesFromAclRequest::getClientToken()const -{ - return clientToken_; +void RemoveEntriesFromAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void RemoveEntriesFromAclRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RemoveEntriesFromAclRequest::getClientToken() const { + return clientToken_; } -std::vector RemoveEntriesFromAclRequest::getAclEntries()const -{ - return aclEntries_; +void RemoveEntriesFromAclRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RemoveEntriesFromAclRequest::setAclEntries(const std::vector& aclEntries) -{ - aclEntries_ = aclEntries; - for(int dep1 = 0; dep1!= aclEntries.size(); dep1++) { - auto aclEntriesObj = aclEntries.at(dep1); - std::string aclEntriesObjStr = "AclEntries." + std::to_string(dep1 + 1); - setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); - } +std::vector RemoveEntriesFromAclRequest::getAclEntries() const { + return aclEntries_; } -std::string RemoveEntriesFromAclRequest::getRegionId()const -{ - return regionId_; +void RemoveEntriesFromAclRequest::setAclEntries(const std::vector &aclEntries) { + aclEntries_ = aclEntries; + for(int dep1 = 0; dep1 != aclEntries.size(); dep1++) { + auto aclEntriesObj = aclEntries.at(dep1); + std::string aclEntriesObjStr = std::string("AclEntries") + "." + std::to_string(dep1 + 1); + setParameter(aclEntriesObjStr + ".Entry", aclEntriesObj.entry); + } } -void RemoveEntriesFromAclRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveEntriesFromAclRequest::getRegionId() const { + return regionId_; +} + +void RemoveEntriesFromAclRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/ReplaceBandwidthPackageRequest.cc b/ga/src/model/ReplaceBandwidthPackageRequest.cc index 73881d5d1..2ff4f21d2 100644 --- a/ga/src/model/ReplaceBandwidthPackageRequest.cc +++ b/ga/src/model/ReplaceBandwidthPackageRequest.cc @@ -1,62 +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::Ga::Model::ReplaceBandwidthPackageRequest; - -ReplaceBandwidthPackageRequest::ReplaceBandwidthPackageRequest() : - RpcServiceRequest("ga", "2019-11-20", "ReplaceBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -ReplaceBandwidthPackageRequest::~ReplaceBandwidthPackageRequest() -{} - -std::string ReplaceBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; + */ + +#include + +using AlibabaCloud::Ga::Model::ReplaceBandwidthPackageRequest; + +ReplaceBandwidthPackageRequest::ReplaceBandwidthPackageRequest() + : RpcServiceRequest("ga", "2019-11-20", "ReplaceBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void ReplaceBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +ReplaceBandwidthPackageRequest::~ReplaceBandwidthPackageRequest() {} + +std::string ReplaceBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ReplaceBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void ReplaceBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ReplaceBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReplaceBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string ReplaceBandwidthPackageRequest::getTargetBandwidthPackageId()const -{ - return targetBandwidthPackageId_; +void ReplaceBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReplaceBandwidthPackageRequest::setTargetBandwidthPackageId(const std::string& targetBandwidthPackageId) -{ - targetBandwidthPackageId_ = targetBandwidthPackageId; - setParameter("TargetBandwidthPackageId", targetBandwidthPackageId); +std::string ReplaceBandwidthPackageRequest::getTargetBandwidthPackageId() const { + return targetBandwidthPackageId_; +} + +void ReplaceBandwidthPackageRequest::setTargetBandwidthPackageId(const std::string &targetBandwidthPackageId) { + targetBandwidthPackageId_ = targetBandwidthPackageId; + setParameter(std::string("TargetBandwidthPackageId"), targetBandwidthPackageId); +} + +std::string ReplaceBandwidthPackageRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void ReplaceBandwidthPackageRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/TagResourcesRequest.cc b/ga/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..1947bcc5e --- /dev/null +++ b/ga/src/model/TagResourcesRequest.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::Ga::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ga", "2019-11-20", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void TagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + diff --git a/ga/src/model/TagResourcesResult.cc b/ga/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..946d15ed6 --- /dev/null +++ b/ga/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::Ga; +using namespace AlibabaCloud::Ga::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/ga/src/model/UntagResourcesRequest.cc b/ga/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..3e97a16be --- /dev/null +++ b/ga/src/model/UntagResourcesRequest.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ga", "2019-11-20", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void UntagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/ga/src/model/UntagResourcesResult.cc b/ga/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..6b304e437 --- /dev/null +++ b/ga/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::Ga; +using namespace AlibabaCloud::Ga::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/ga/src/model/UpdateAcceleratorAutoRenewAttributeRequest.cc b/ga/src/model/UpdateAcceleratorAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..4b9db36eb --- /dev/null +++ b/ga/src/model/UpdateAcceleratorAutoRenewAttributeRequest.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 + +using AlibabaCloud::Ga::Model::UpdateAcceleratorAutoRenewAttributeRequest; + +UpdateAcceleratorAutoRenewAttributeRequest::UpdateAcceleratorAutoRenewAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAcceleratorAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAcceleratorAutoRenewAttributeRequest::~UpdateAcceleratorAutoRenewAttributeRequest() {} + +std::string UpdateAcceleratorAutoRenewAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int UpdateAcceleratorAutoRenewAttributeRequest::getAutoRenewDuration() const { + return autoRenewDuration_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); +} + +bool UpdateAcceleratorAutoRenewAttributeRequest::getAutoRenew() const { + return autoRenew_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string UpdateAcceleratorAutoRenewAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateAcceleratorAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); +} + +std::string UpdateAcceleratorAutoRenewAttributeRequest::getName() const { + return name_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateAcceleratorAutoRenewAttributeRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateAcceleratorAutoRenewAttributeRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/UpdateAcceleratorAutoRenewAttributeResult.cc b/ga/src/model/UpdateAcceleratorAutoRenewAttributeResult.cc new file mode 100644 index 000000000..08d137193 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorAutoRenewAttributeResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateAcceleratorAutoRenewAttributeResult::UpdateAcceleratorAutoRenewAttributeResult() : + ServiceResult() +{} + +UpdateAcceleratorAutoRenewAttributeResult::UpdateAcceleratorAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAcceleratorAutoRenewAttributeResult::~UpdateAcceleratorAutoRenewAttributeResult() +{} + +void UpdateAcceleratorAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string UpdateAcceleratorAutoRenewAttributeResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/UpdateAcceleratorConfirmRequest.cc b/ga/src/model/UpdateAcceleratorConfirmRequest.cc new file mode 100644 index 000000000..38d21a252 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorConfirmRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateAcceleratorConfirmRequest; + +UpdateAcceleratorConfirmRequest::UpdateAcceleratorConfirmRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAcceleratorConfirm") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAcceleratorConfirmRequest::~UpdateAcceleratorConfirmRequest() {} + +std::string UpdateAcceleratorConfirmRequest::getRegionId() const { + return regionId_; +} + +void UpdateAcceleratorConfirmRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateAcceleratorConfirmRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateAcceleratorConfirmRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/UpdateAcceleratorConfirmResult.cc b/ga/src/model/UpdateAcceleratorConfirmResult.cc new file mode 100644 index 000000000..4814a8746 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorConfirmResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateAcceleratorConfirmResult::UpdateAcceleratorConfirmResult() : + ServiceResult() +{} + +UpdateAcceleratorConfirmResult::UpdateAcceleratorConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAcceleratorConfirmResult::~UpdateAcceleratorConfirmResult() +{} + +void UpdateAcceleratorConfirmResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateAcceleratorCrossBorderModeRequest.cc b/ga/src/model/UpdateAcceleratorCrossBorderModeRequest.cc new file mode 100644 index 000000000..3cfb18825 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorCrossBorderModeRequest.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::Ga::Model::UpdateAcceleratorCrossBorderModeRequest; + +UpdateAcceleratorCrossBorderModeRequest::UpdateAcceleratorCrossBorderModeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAcceleratorCrossBorderMode") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAcceleratorCrossBorderModeRequest::~UpdateAcceleratorCrossBorderModeRequest() {} + +std::string UpdateAcceleratorCrossBorderModeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAcceleratorCrossBorderModeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateAcceleratorCrossBorderModeRequest::getCrossBorderMode() const { + return crossBorderMode_; +} + +void UpdateAcceleratorCrossBorderModeRequest::setCrossBorderMode(const std::string &crossBorderMode) { + crossBorderMode_ = crossBorderMode; + setParameter(std::string("CrossBorderMode"), crossBorderMode); +} + +std::string UpdateAcceleratorCrossBorderModeRequest::getRegionId() const { + return regionId_; +} + +void UpdateAcceleratorCrossBorderModeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateAcceleratorCrossBorderModeRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateAcceleratorCrossBorderModeRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/UpdateAcceleratorCrossBorderModeResult.cc b/ga/src/model/UpdateAcceleratorCrossBorderModeResult.cc new file mode 100644 index 000000000..b74d58703 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorCrossBorderModeResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateAcceleratorCrossBorderModeResult::UpdateAcceleratorCrossBorderModeResult() : + ServiceResult() +{} + +UpdateAcceleratorCrossBorderModeResult::UpdateAcceleratorCrossBorderModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAcceleratorCrossBorderModeResult::~UpdateAcceleratorCrossBorderModeResult() +{} + +void UpdateAcceleratorCrossBorderModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateAcceleratorRequest.cc b/ga/src/model/UpdateAcceleratorRequest.cc index 9b70fb189..1bf7da930 100644 --- a/ga/src/model/UpdateAcceleratorRequest.cc +++ b/ga/src/model/UpdateAcceleratorRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::UpdateAcceleratorRequest; - -UpdateAcceleratorRequest::UpdateAcceleratorRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateAccelerator") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAcceleratorRequest::~UpdateAcceleratorRequest() -{} - -bool UpdateAcceleratorRequest::getAutoPay()const -{ - return autoPay_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateAcceleratorRequest; + +UpdateAcceleratorRequest::UpdateAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAccelerator") { + setMethod(HttpRequest::Method::Post); } -void UpdateAcceleratorRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +UpdateAcceleratorRequest::~UpdateAcceleratorRequest() {} + +bool UpdateAcceleratorRequest::getAutoPay() const { + return autoPay_; } -std::string UpdateAcceleratorRequest::getPromotionOptionNo()const -{ - return promotionOptionNo_; +void UpdateAcceleratorRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void UpdateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo) -{ - promotionOptionNo_ = promotionOptionNo; - setParameter("PromotionOptionNo", promotionOptionNo); +std::string UpdateAcceleratorRequest::getPromotionOptionNo() const { + return promotionOptionNo_; } -std::string UpdateAcceleratorRequest::getClientToken()const -{ - return clientToken_; +void UpdateAcceleratorRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); } -void UpdateAcceleratorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateAcceleratorRequest::getClientToken() const { + return clientToken_; } -std::string UpdateAcceleratorRequest::getDescription()const -{ - return description_; +void UpdateAcceleratorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateAcceleratorRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateAcceleratorRequest::getDescription() const { + return description_; } -bool UpdateAcceleratorRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void UpdateAcceleratorRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateAcceleratorRequest::setAutoUseCoupon(bool autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +bool UpdateAcceleratorRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string UpdateAcceleratorRequest::getSpec()const -{ - return spec_; +void UpdateAcceleratorRequest::setAutoUseCoupon(bool autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false"); } -void UpdateAcceleratorRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string UpdateAcceleratorRequest::getSpec() const { + return spec_; } -std::string UpdateAcceleratorRequest::getRegionId()const -{ - return regionId_; +void UpdateAcceleratorRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void UpdateAcceleratorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateAcceleratorRequest::getRegionId() const { + return regionId_; } -std::string UpdateAcceleratorRequest::getName()const -{ - return name_; +void UpdateAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateAcceleratorRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateAcceleratorRequest::getName() const { + return name_; } -std::string UpdateAcceleratorRequest::getAcceleratorId()const -{ - return acceleratorId_; +void UpdateAcceleratorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string UpdateAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } diff --git a/ga/src/model/UpdateAclAttributeRequest.cc b/ga/src/model/UpdateAclAttributeRequest.cc index 63df5da78..5b3759a94 100644 --- a/ga/src/model/UpdateAclAttributeRequest.cc +++ b/ga/src/model/UpdateAclAttributeRequest.cc @@ -1,84 +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::Ga::Model::UpdateAclAttributeRequest; - -UpdateAclAttributeRequest::UpdateAclAttributeRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateAclAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAclAttributeRequest::~UpdateAclAttributeRequest() -{} - -std::string UpdateAclAttributeRequest::getAclId()const -{ - return aclId_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateAclAttributeRequest; + +UpdateAclAttributeRequest::UpdateAclAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAclAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateAclAttributeRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +UpdateAclAttributeRequest::~UpdateAclAttributeRequest() {} + +std::string UpdateAclAttributeRequest::getAclId() const { + return aclId_; } -bool UpdateAclAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateAclAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void UpdateAclAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateAclAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateAclAttributeRequest::getAclName()const -{ - return aclName_; +void UpdateAclAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateAclAttributeRequest::setAclName(const std::string& aclName) -{ - aclName_ = aclName; - setParameter("AclName", aclName); +std::string UpdateAclAttributeRequest::getAclName() const { + return aclName_; } -std::string UpdateAclAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateAclAttributeRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); } -void UpdateAclAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateAclAttributeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateAclAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateAclAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateAclAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateAclAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateAclAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/UpdateAdditionalCertificateWithListenerRequest.cc b/ga/src/model/UpdateAdditionalCertificateWithListenerRequest.cc new file mode 100644 index 000000000..b33e06ca5 --- /dev/null +++ b/ga/src/model/UpdateAdditionalCertificateWithListenerRequest.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 + +using AlibabaCloud::Ga::Model::UpdateAdditionalCertificateWithListenerRequest; + +UpdateAdditionalCertificateWithListenerRequest::UpdateAdditionalCertificateWithListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateAdditionalCertificateWithListener") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAdditionalCertificateWithListenerRequest::~UpdateAdditionalCertificateWithListenerRequest() {} + +bool UpdateAdditionalCertificateWithListenerRequest::getDryRun() const { + return dryRun_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getCertificateId() const { + return certificateId_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getListenerId() const { + return listenerId_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getRegionId() const { + return regionId_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getDomain() const { + return domain_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + +std::string UpdateAdditionalCertificateWithListenerRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateAdditionalCertificateWithListenerRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/UpdateAdditionalCertificateWithListenerResult.cc b/ga/src/model/UpdateAdditionalCertificateWithListenerResult.cc new file mode 100644 index 000000000..712e9b894 --- /dev/null +++ b/ga/src/model/UpdateAdditionalCertificateWithListenerResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateAdditionalCertificateWithListenerResult::UpdateAdditionalCertificateWithListenerResult() : + ServiceResult() +{} + +UpdateAdditionalCertificateWithListenerResult::UpdateAdditionalCertificateWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAdditionalCertificateWithListenerResult::~UpdateAdditionalCertificateWithListenerResult() +{} + +void UpdateAdditionalCertificateWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::string UpdateAdditionalCertificateWithListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/UpdateApplicationMonitorRequest.cc b/ga/src/model/UpdateApplicationMonitorRequest.cc new file mode 100644 index 000000000..6f55b4c03 --- /dev/null +++ b/ga/src/model/UpdateApplicationMonitorRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateApplicationMonitorRequest; + +UpdateApplicationMonitorRequest::UpdateApplicationMonitorRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateApplicationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +UpdateApplicationMonitorRequest::~UpdateApplicationMonitorRequest() {} + +bool UpdateApplicationMonitorRequest::getDetectEnable() const { + return detectEnable_; +} + +void UpdateApplicationMonitorRequest::setDetectEnable(bool detectEnable) { + detectEnable_ = detectEnable; + setParameter(std::string("DetectEnable"), detectEnable ? "true" : "false"); +} + +std::string UpdateApplicationMonitorRequest::getClientToken() const { + return clientToken_; +} + +void UpdateApplicationMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateApplicationMonitorRequest::getTaskName() const { + return taskName_; +} + +void UpdateApplicationMonitorRequest::setTaskName(const std::string &taskName) { + taskName_ = taskName; + setParameter(std::string("TaskName"), taskName); +} + +std::string UpdateApplicationMonitorRequest::getListenerId() const { + return listenerId_; +} + +void UpdateApplicationMonitorRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string UpdateApplicationMonitorRequest::getRegionId() const { + return regionId_; +} + +void UpdateApplicationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int UpdateApplicationMonitorRequest::getSilenceTime() const { + return silenceTime_; +} + +void UpdateApplicationMonitorRequest::setSilenceTime(int silenceTime) { + silenceTime_ = silenceTime; + setParameter(std::string("SilenceTime"), std::to_string(silenceTime)); +} + +std::string UpdateApplicationMonitorRequest::getTaskId() const { + return taskId_; +} + +void UpdateApplicationMonitorRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string UpdateApplicationMonitorRequest::getAddress() const { + return address_; +} + +void UpdateApplicationMonitorRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +int UpdateApplicationMonitorRequest::getDetectThreshold() const { + return detectThreshold_; +} + +void UpdateApplicationMonitorRequest::setDetectThreshold(int detectThreshold) { + detectThreshold_ = detectThreshold; + setParameter(std::string("DetectThreshold"), std::to_string(detectThreshold)); +} + +std::string UpdateApplicationMonitorRequest::getOptionsJson() const { + return optionsJson_; +} + +void UpdateApplicationMonitorRequest::setOptionsJson(const std::string &optionsJson) { + optionsJson_ = optionsJson; + setParameter(std::string("OptionsJson"), optionsJson); +} + +int UpdateApplicationMonitorRequest::getDetectTimes() const { + return detectTimes_; +} + +void UpdateApplicationMonitorRequest::setDetectTimes(int detectTimes) { + detectTimes_ = detectTimes; + setParameter(std::string("DetectTimes"), std::to_string(detectTimes)); +} + diff --git a/ga/src/model/UpdateApplicationMonitorResult.cc b/ga/src/model/UpdateApplicationMonitorResult.cc new file mode 100644 index 000000000..25f17ac51 --- /dev/null +++ b/ga/src/model/UpdateApplicationMonitorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateApplicationMonitorResult::UpdateApplicationMonitorResult() : + ServiceResult() +{} + +UpdateApplicationMonitorResult::UpdateApplicationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApplicationMonitorResult::~UpdateApplicationMonitorResult() +{} + +void UpdateApplicationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.cc b/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..cced315e1 --- /dev/null +++ b/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeRequest.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 + +using AlibabaCloud::Ga::Model::UpdateBandwidthPackagaAutoRenewAttributeRequest; + +UpdateBandwidthPackagaAutoRenewAttributeRequest::UpdateBandwidthPackagaAutoRenewAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBandwidthPackagaAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBandwidthPackagaAutoRenewAttributeRequest::~UpdateBandwidthPackagaAutoRenewAttributeRequest() {} + +std::string UpdateBandwidthPackagaAutoRenewAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int UpdateBandwidthPackagaAutoRenewAttributeRequest::getAutoRenewDuration() const { + return autoRenewDuration_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setAutoRenewDuration(int autoRenewDuration) { + autoRenewDuration_ = autoRenewDuration; + setParameter(std::string("AutoRenewDuration"), std::to_string(autoRenewDuration)); +} + +std::string UpdateBandwidthPackagaAutoRenewAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +bool UpdateBandwidthPackagaAutoRenewAttributeRequest::getAutoRenew() const { + return autoRenew_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string UpdateBandwidthPackagaAutoRenewAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateBandwidthPackagaAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); +} + +std::string UpdateBandwidthPackagaAutoRenewAttributeRequest::getName() const { + return name_; +} + +void UpdateBandwidthPackagaAutoRenewAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeResult.cc b/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeResult.cc new file mode 100644 index 000000000..ac2629a3e --- /dev/null +++ b/ga/src/model/UpdateBandwidthPackagaAutoRenewAttributeResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateBandwidthPackagaAutoRenewAttributeResult::UpdateBandwidthPackagaAutoRenewAttributeResult() : + ServiceResult() +{} + +UpdateBandwidthPackagaAutoRenewAttributeResult::UpdateBandwidthPackagaAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBandwidthPackagaAutoRenewAttributeResult::~UpdateBandwidthPackagaAutoRenewAttributeResult() +{} + +void UpdateBandwidthPackagaAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string UpdateBandwidthPackagaAutoRenewAttributeResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/ga/src/model/UpdateBandwidthPackageRequest.cc b/ga/src/model/UpdateBandwidthPackageRequest.cc index ab1c2803e..77c5d82a7 100644 --- a/ga/src/model/UpdateBandwidthPackageRequest.cc +++ b/ga/src/model/UpdateBandwidthPackageRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::UpdateBandwidthPackageRequest; - -UpdateBandwidthPackageRequest::UpdateBandwidthPackageRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateBandwidthPackageRequest::~UpdateBandwidthPackageRequest() -{} - -std::string UpdateBandwidthPackageRequest::getBandwidthType()const -{ - return bandwidthType_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateBandwidthPackageRequest; + +UpdateBandwidthPackageRequest::UpdateBandwidthPackageRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void UpdateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType) -{ - bandwidthType_ = bandwidthType; - setParameter("BandwidthType", bandwidthType); +UpdateBandwidthPackageRequest::~UpdateBandwidthPackageRequest() {} + +std::string UpdateBandwidthPackageRequest::getBandwidthType() const { + return bandwidthType_; } -std::string UpdateBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void UpdateBandwidthPackageRequest::setBandwidthType(const std::string &bandwidthType) { + bandwidthType_ = bandwidthType; + setParameter(std::string("BandwidthType"), bandwidthType); } -void UpdateBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string UpdateBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -bool UpdateBandwidthPackageRequest::getAutoPay()const -{ - return autoPay_; +void UpdateBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void UpdateBandwidthPackageRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool UpdateBandwidthPackageRequest::getAutoPay() const { + return autoPay_; } -std::string UpdateBandwidthPackageRequest::getPromotionOptionNo()const -{ - return promotionOptionNo_; +void UpdateBandwidthPackageRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void UpdateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo) -{ - promotionOptionNo_ = promotionOptionNo; - setParameter("PromotionOptionNo", promotionOptionNo); +std::string UpdateBandwidthPackageRequest::getPromotionOptionNo() const { + return promotionOptionNo_; } -int UpdateBandwidthPackageRequest::getBandwidth()const -{ - return bandwidth_; +void UpdateBandwidthPackageRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); } -void UpdateBandwidthPackageRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int UpdateBandwidthPackageRequest::getBandwidth() const { + return bandwidth_; } -std::string UpdateBandwidthPackageRequest::getDescription()const -{ - return description_; +void UpdateBandwidthPackageRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void UpdateBandwidthPackageRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateBandwidthPackageRequest::getDescription() const { + return description_; } -bool UpdateBandwidthPackageRequest::getAutoUseCoupon()const -{ - return autoUseCoupon_; +void UpdateBandwidthPackageRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateBandwidthPackageRequest::setAutoUseCoupon(bool autoUseCoupon) -{ - autoUseCoupon_ = autoUseCoupon; - setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +bool UpdateBandwidthPackageRequest::getAutoUseCoupon() const { + return autoUseCoupon_; } -std::string UpdateBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void UpdateBandwidthPackageRequest::setAutoUseCoupon(bool autoUseCoupon) { + autoUseCoupon_ = autoUseCoupon; + setParameter(std::string("AutoUseCoupon"), autoUseCoupon ? "true" : "false"); } -void UpdateBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string UpdateBandwidthPackageRequest::getName()const -{ - return name_; +void UpdateBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateBandwidthPackageRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateBandwidthPackageRequest::getName() const { + return name_; +} + +void UpdateBandwidthPackageRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ga/src/model/UpdateBasicAcceleratorRequest.cc b/ga/src/model/UpdateBasicAcceleratorRequest.cc new file mode 100644 index 000000000..eea527a44 --- /dev/null +++ b/ga/src/model/UpdateBasicAcceleratorRequest.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::Ga::Model::UpdateBasicAcceleratorRequest; + +UpdateBasicAcceleratorRequest::UpdateBasicAcceleratorRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBasicAccelerator") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBasicAcceleratorRequest::~UpdateBasicAcceleratorRequest() {} + +std::string UpdateBasicAcceleratorRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBasicAcceleratorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateBasicAcceleratorRequest::getDescription() const { + return description_; +} + +void UpdateBasicAcceleratorRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateBasicAcceleratorRequest::getRegionId() const { + return regionId_; +} + +void UpdateBasicAcceleratorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateBasicAcceleratorRequest::getName() const { + return name_; +} + +void UpdateBasicAcceleratorRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateBasicAcceleratorRequest::getAcceleratorId() const { + return acceleratorId_; +} + +void UpdateBasicAcceleratorRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); +} + diff --git a/ga/src/model/UpdateBasicAcceleratorResult.cc b/ga/src/model/UpdateBasicAcceleratorResult.cc new file mode 100644 index 000000000..0ea1b46c5 --- /dev/null +++ b/ga/src/model/UpdateBasicAcceleratorResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateBasicAcceleratorResult::UpdateBasicAcceleratorResult() : + ServiceResult() +{} + +UpdateBasicAcceleratorResult::UpdateBasicAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBasicAcceleratorResult::~UpdateBasicAcceleratorResult() +{} + +void UpdateBasicAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateBasicEndpointGroupRequest.cc b/ga/src/model/UpdateBasicEndpointGroupRequest.cc new file mode 100644 index 000000000..ac36aa61a --- /dev/null +++ b/ga/src/model/UpdateBasicEndpointGroupRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::UpdateBasicEndpointGroupRequest; + +UpdateBasicEndpointGroupRequest::UpdateBasicEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBasicEndpointGroup") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBasicEndpointGroupRequest::~UpdateBasicEndpointGroupRequest() {} + +std::string UpdateBasicEndpointGroupRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBasicEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateBasicEndpointGroupRequest::getDescription() const { + return description_; +} + +void UpdateBasicEndpointGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateBasicEndpointGroupRequest::getEndpointAddress() const { + return endpointAddress_; +} + +void UpdateBasicEndpointGroupRequest::setEndpointAddress(const std::string &endpointAddress) { + endpointAddress_ = endpointAddress; + setParameter(std::string("EndpointAddress"), endpointAddress); +} + +std::string UpdateBasicEndpointGroupRequest::getRegionId() const { + return regionId_; +} + +void UpdateBasicEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateBasicEndpointGroupRequest::getEndpointType() const { + return endpointType_; +} + +void UpdateBasicEndpointGroupRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); +} + +std::string UpdateBasicEndpointGroupRequest::getName() const { + return name_; +} + +void UpdateBasicEndpointGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateBasicEndpointGroupRequest::getEndpointSubAddress() const { + return endpointSubAddress_; +} + +void UpdateBasicEndpointGroupRequest::setEndpointSubAddress(const std::string &endpointSubAddress) { + endpointSubAddress_ = endpointSubAddress; + setParameter(std::string("EndpointSubAddress"), endpointSubAddress); +} + +std::string UpdateBasicEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateBasicEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/UpdateBasicEndpointGroupResult.cc b/ga/src/model/UpdateBasicEndpointGroupResult.cc new file mode 100644 index 000000000..7051f2ddb --- /dev/null +++ b/ga/src/model/UpdateBasicEndpointGroupResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateBasicEndpointGroupResult::UpdateBasicEndpointGroupResult() : + ServiceResult() +{} + +UpdateBasicEndpointGroupResult::UpdateBasicEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBasicEndpointGroupResult::~UpdateBasicEndpointGroupResult() +{} + +void UpdateBasicEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateBasicEndpointRequest.cc b/ga/src/model/UpdateBasicEndpointRequest.cc new file mode 100644 index 000000000..f4e0d05bd --- /dev/null +++ b/ga/src/model/UpdateBasicEndpointRequest.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::Ga::Model::UpdateBasicEndpointRequest; + +UpdateBasicEndpointRequest::UpdateBasicEndpointRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBasicEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBasicEndpointRequest::~UpdateBasicEndpointRequest() {} + +std::string UpdateBasicEndpointRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBasicEndpointRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateBasicEndpointRequest::getEndpointId() const { + return endpointId_; +} + +void UpdateBasicEndpointRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string UpdateBasicEndpointRequest::getRegionId() const { + return regionId_; +} + +void UpdateBasicEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateBasicEndpointRequest::getName() const { + return name_; +} + +void UpdateBasicEndpointRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateBasicEndpointRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateBasicEndpointRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/UpdateBasicEndpointResult.cc b/ga/src/model/UpdateBasicEndpointResult.cc new file mode 100644 index 000000000..39eb734e1 --- /dev/null +++ b/ga/src/model/UpdateBasicEndpointResult.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 +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateBasicEndpointResult::UpdateBasicEndpointResult() : + ServiceResult() +{} + +UpdateBasicEndpointResult::UpdateBasicEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBasicEndpointResult::~UpdateBasicEndpointResult() +{} + +void UpdateBasicEndpointResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EndpointGroupId"].isNull()) + endpointGroupId_ = value["EndpointGroupId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + +} + +std::string UpdateBasicEndpointResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +std::string UpdateBasicEndpointResult::getEndpointId()const +{ + return endpointId_; +} + +std::string UpdateBasicEndpointResult::getName()const +{ + return name_; +} + diff --git a/ga/src/model/UpdateBasicIpSetRequest.cc b/ga/src/model/UpdateBasicIpSetRequest.cc new file mode 100644 index 000000000..d3c7a9834 --- /dev/null +++ b/ga/src/model/UpdateBasicIpSetRequest.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::Ga::Model::UpdateBasicIpSetRequest; + +UpdateBasicIpSetRequest::UpdateBasicIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateBasicIpSet") { + setMethod(HttpRequest::Method::Post); +} + +UpdateBasicIpSetRequest::~UpdateBasicIpSetRequest() {} + +std::string UpdateBasicIpSetRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBasicIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +int UpdateBasicIpSetRequest::getBandwidth() const { + return bandwidth_; +} + +void UpdateBasicIpSetRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string UpdateBasicIpSetRequest::getIpSetId() const { + return ipSetId_; +} + +void UpdateBasicIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); +} + +std::string UpdateBasicIpSetRequest::getRegionId() const { + return regionId_; +} + +void UpdateBasicIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/UpdateBasicIpSetResult.cc b/ga/src/model/UpdateBasicIpSetResult.cc new file mode 100644 index 000000000..c9e5a12a2 --- /dev/null +++ b/ga/src/model/UpdateBasicIpSetResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateBasicIpSetResult::UpdateBasicIpSetResult() : + ServiceResult() +{} + +UpdateBasicIpSetResult::UpdateBasicIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBasicIpSetResult::~UpdateBasicIpSetResult() +{} + +void UpdateBasicIpSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeRequest.cc b/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeRequest.cc new file mode 100644 index 000000000..a7df56d36 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeRequest.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::Ga::Model::UpdateCustomRoutingEndpointGroupAttributeRequest; + +UpdateCustomRoutingEndpointGroupAttributeRequest::UpdateCustomRoutingEndpointGroupAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateCustomRoutingEndpointGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomRoutingEndpointGroupAttributeRequest::~UpdateCustomRoutingEndpointGroupAttributeRequest() {} + +std::string UpdateCustomRoutingEndpointGroupAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCustomRoutingEndpointGroupAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateCustomRoutingEndpointGroupAttributeRequest::getDescription() const { + return description_; +} + +void UpdateCustomRoutingEndpointGroupAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateCustomRoutingEndpointGroupAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateCustomRoutingEndpointGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateCustomRoutingEndpointGroupAttributeRequest::getName() const { + return name_; +} + +void UpdateCustomRoutingEndpointGroupAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateCustomRoutingEndpointGroupAttributeRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateCustomRoutingEndpointGroupAttributeRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeResult.cc b/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeResult.cc new file mode 100644 index 000000000..4879a0df3 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointGroupAttributeResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateCustomRoutingEndpointGroupAttributeResult::UpdateCustomRoutingEndpointGroupAttributeResult() : + ServiceResult() +{} + +UpdateCustomRoutingEndpointGroupAttributeResult::UpdateCustomRoutingEndpointGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomRoutingEndpointGroupAttributeResult::~UpdateCustomRoutingEndpointGroupAttributeResult() +{} + +void UpdateCustomRoutingEndpointGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.cc b/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.cc new file mode 100644 index 000000000..ae8c8375a --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsRequest.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateCustomRoutingEndpointGroupDestinationsRequest; + +UpdateCustomRoutingEndpointGroupDestinationsRequest::UpdateCustomRoutingEndpointGroupDestinationsRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateCustomRoutingEndpointGroupDestinations") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomRoutingEndpointGroupDestinationsRequest::~UpdateCustomRoutingEndpointGroupDestinationsRequest() {} + +bool UpdateCustomRoutingEndpointGroupDestinationsRequest::getDryRun() const { + return dryRun_; +} + +void UpdateCustomRoutingEndpointGroupDestinationsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateCustomRoutingEndpointGroupDestinationsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCustomRoutingEndpointGroupDestinationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateCustomRoutingEndpointGroupDestinationsRequest::getDestinationConfigurations() const { + return destinationConfigurations_; +} + +void UpdateCustomRoutingEndpointGroupDestinationsRequest::setDestinationConfigurations(const std::vector &destinationConfigurations) { + destinationConfigurations_ = destinationConfigurations; + for(int dep1 = 0; dep1 != destinationConfigurations.size(); dep1++) { + auto destinationConfigurationsObj = destinationConfigurations.at(dep1); + std::string destinationConfigurationsObjStr = std::string("DestinationConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(destinationConfigurationsObjStr + ".FromPort", std::to_string(destinationConfigurationsObj.fromPort)); + setParameter(destinationConfigurationsObjStr + ".ToPort", std::to_string(destinationConfigurationsObj.toPort)); + setParameter(destinationConfigurationsObjStr + ".DestinationId", destinationConfigurationsObj.destinationId); + } +} + +std::string UpdateCustomRoutingEndpointGroupDestinationsRequest::getRegionId() const { + return regionId_; +} + +void UpdateCustomRoutingEndpointGroupDestinationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateCustomRoutingEndpointGroupDestinationsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateCustomRoutingEndpointGroupDestinationsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsResult.cc b/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsResult.cc new file mode 100644 index 000000000..fc808a7c3 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointGroupDestinationsResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateCustomRoutingEndpointGroupDestinationsResult::UpdateCustomRoutingEndpointGroupDestinationsResult() : + ServiceResult() +{} + +UpdateCustomRoutingEndpointGroupDestinationsResult::UpdateCustomRoutingEndpointGroupDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomRoutingEndpointGroupDestinationsResult::~UpdateCustomRoutingEndpointGroupDestinationsResult() +{} + +void UpdateCustomRoutingEndpointGroupDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.cc b/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.cc new file mode 100644 index 000000000..35457158d --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesRequest.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::Ga::Model::UpdateCustomRoutingEndpointTrafficPoliciesRequest; + +UpdateCustomRoutingEndpointTrafficPoliciesRequest::UpdateCustomRoutingEndpointTrafficPoliciesRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateCustomRoutingEndpointTrafficPolicies") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomRoutingEndpointTrafficPoliciesRequest::~UpdateCustomRoutingEndpointTrafficPoliciesRequest() {} + +std::string UpdateCustomRoutingEndpointTrafficPoliciesRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCustomRoutingEndpointTrafficPoliciesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateCustomRoutingEndpointTrafficPoliciesRequest::getEndpointId() const { + return endpointId_; +} + +void UpdateCustomRoutingEndpointTrafficPoliciesRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::vector UpdateCustomRoutingEndpointTrafficPoliciesRequest::getPolicyConfigurations() const { + return policyConfigurations_; +} + +void UpdateCustomRoutingEndpointTrafficPoliciesRequest::setPolicyConfigurations(const std::vector &policyConfigurations) { + policyConfigurations_ = policyConfigurations; + for(int dep1 = 0; dep1 != policyConfigurations.size(); dep1++) { + auto policyConfigurationsObj = policyConfigurations.at(dep1); + std::string policyConfigurationsObjStr = std::string("PolicyConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(policyConfigurationsObjStr + ".PolicyId", policyConfigurationsObj.policyId); + setParameter(policyConfigurationsObjStr + ".Address", policyConfigurationsObj.address); + for(int dep2 = 0; dep2 != policyConfigurationsObj.portRanges.size(); dep2++) { + auto portRangesObj = policyConfigurationsObj.portRanges.at(dep2); + std::string portRangesObjStr = policyConfigurationsObjStr + ".PortRanges" + "." + std::to_string(dep2 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } + } +} + +std::string UpdateCustomRoutingEndpointTrafficPoliciesRequest::getRegionId() const { + return regionId_; +} + +void UpdateCustomRoutingEndpointTrafficPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.cc b/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.cc new file mode 100644 index 000000000..76bf07261 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointTrafficPoliciesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateCustomRoutingEndpointTrafficPoliciesResult::UpdateCustomRoutingEndpointTrafficPoliciesResult() : + ServiceResult() +{} + +UpdateCustomRoutingEndpointTrafficPoliciesResult::UpdateCustomRoutingEndpointTrafficPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomRoutingEndpointTrafficPoliciesResult::~UpdateCustomRoutingEndpointTrafficPoliciesResult() +{} + +void UpdateCustomRoutingEndpointTrafficPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPolicyIds = value["PolicyIds"]["policyIds"]; + for (const auto &item : allPolicyIds) + policyIds_.push_back(item.asString()); + +} + +std::vector UpdateCustomRoutingEndpointTrafficPoliciesResult::getPolicyIds()const +{ + return policyIds_; +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointsRequest.cc b/ga/src/model/UpdateCustomRoutingEndpointsRequest.cc new file mode 100644 index 000000000..380eec063 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointsRequest.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::UpdateCustomRoutingEndpointsRequest; + +UpdateCustomRoutingEndpointsRequest::UpdateCustomRoutingEndpointsRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateCustomRoutingEndpoints") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCustomRoutingEndpointsRequest::~UpdateCustomRoutingEndpointsRequest() {} + +std::string UpdateCustomRoutingEndpointsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCustomRoutingEndpointsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateCustomRoutingEndpointsRequest::getEndpointConfigurations() const { + return endpointConfigurations_; +} + +void UpdateCustomRoutingEndpointsRequest::setEndpointConfigurations(const std::vector &endpointConfigurations) { + endpointConfigurations_ = endpointConfigurations; + for(int dep1 = 0; dep1 != endpointConfigurations.size(); dep1++) { + auto endpointConfigurationsObj = endpointConfigurations.at(dep1); + std::string endpointConfigurationsObjStr = std::string("EndpointConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointConfigurationsObjStr + ".TrafficToEndpointPolicy", endpointConfigurationsObj.trafficToEndpointPolicy); + setParameter(endpointConfigurationsObjStr + ".EndpointId", endpointConfigurationsObj.endpointId); + for(int dep2 = 0; dep2 != endpointConfigurationsObj.policyConfigurations.size(); dep2++) { + auto policyConfigurationsObj = endpointConfigurationsObj.policyConfigurations.at(dep2); + std::string policyConfigurationsObjStr = endpointConfigurationsObjStr + ".PolicyConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(policyConfigurationsObjStr + ".Address", policyConfigurationsObj.address); + for(int dep3 = 0; dep3 != policyConfigurationsObj.portRanges.size(); dep3++) { + auto portRangesObj = policyConfigurationsObj.portRanges.at(dep3); + std::string portRangesObjStr = policyConfigurationsObjStr + ".PortRanges" + "." + std::to_string(dep3 + 1); + setParameter(portRangesObjStr + ".FromPort", portRangesObj.fromPort); + setParameter(portRangesObjStr + ".ToPort", portRangesObj.toPort); + } + } + } +} + +std::string UpdateCustomRoutingEndpointsRequest::getRegionId() const { + return regionId_; +} + +void UpdateCustomRoutingEndpointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateCustomRoutingEndpointsRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateCustomRoutingEndpointsRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); +} + diff --git a/ga/src/model/UpdateCustomRoutingEndpointsResult.cc b/ga/src/model/UpdateCustomRoutingEndpointsResult.cc new file mode 100644 index 000000000..8210eef16 --- /dev/null +++ b/ga/src/model/UpdateCustomRoutingEndpointsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateCustomRoutingEndpointsResult::UpdateCustomRoutingEndpointsResult() : + ServiceResult() +{} + +UpdateCustomRoutingEndpointsResult::UpdateCustomRoutingEndpointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCustomRoutingEndpointsResult::~UpdateCustomRoutingEndpointsResult() +{} + +void UpdateCustomRoutingEndpointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointIds = value["EndpointIds"]["endpointIds"]; + for (const auto &item : allEndpointIds) + endpointIds_.push_back(item.asString()); + +} + +std::vector UpdateCustomRoutingEndpointsResult::getEndpointIds()const +{ + return endpointIds_; +} + diff --git a/ga/src/model/UpdateDomainRequest.cc b/ga/src/model/UpdateDomainRequest.cc new file mode 100644 index 000000000..c4ef5f60f --- /dev/null +++ b/ga/src/model/UpdateDomainRequest.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::Ga::Model::UpdateDomainRequest; + +UpdateDomainRequest::UpdateDomainRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateDomain") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDomainRequest::~UpdateDomainRequest() {} + +std::string UpdateDomainRequest::getTargetDomain() const { + return targetDomain_; +} + +void UpdateDomainRequest::setTargetDomain(const std::string &targetDomain) { + targetDomain_ = targetDomain; + setParameter(std::string("TargetDomain"), targetDomain); +} + +std::string UpdateDomainRequest::getRegionId() const { + return regionId_; +} + +void UpdateDomainRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateDomainRequest::getDomain() const { + return domain_; +} + +void UpdateDomainRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/ga/src/model/UpdateDomainResult.cc b/ga/src/model/UpdateDomainResult.cc new file mode 100644 index 000000000..fe25cf9e5 --- /dev/null +++ b/ga/src/model/UpdateDomainResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateDomainResult::UpdateDomainResult() : + ServiceResult() +{} + +UpdateDomainResult::UpdateDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDomainResult::~UpdateDomainResult() +{} + +void UpdateDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/UpdateDomainStateRequest.cc b/ga/src/model/UpdateDomainStateRequest.cc new file mode 100644 index 000000000..d5ce95558 --- /dev/null +++ b/ga/src/model/UpdateDomainStateRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateDomainStateRequest; + +UpdateDomainStateRequest::UpdateDomainStateRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateDomainState") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDomainStateRequest::~UpdateDomainStateRequest() {} + +std::string UpdateDomainStateRequest::getRegionId() const { + return regionId_; +} + +void UpdateDomainStateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateDomainStateRequest::getDomain() const { + return domain_; +} + +void UpdateDomainStateRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/ga/src/model/UpdateDomainStateResult.cc b/ga/src/model/UpdateDomainStateResult.cc new file mode 100644 index 000000000..297efe4e4 --- /dev/null +++ b/ga/src/model/UpdateDomainStateResult.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::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateDomainStateResult::UpdateDomainStateResult() : + ServiceResult() +{} + +UpdateDomainStateResult::UpdateDomainStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDomainStateResult::~UpdateDomainStateResult() +{} + +void UpdateDomainStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string UpdateDomainStateResult::getState()const +{ + return state_; +} + +std::string UpdateDomainStateResult::getDomain()const +{ + return domain_; +} + diff --git a/ga/src/model/UpdateEndpointGroupAttributeRequest.cc b/ga/src/model/UpdateEndpointGroupAttributeRequest.cc index 514ee22f3..41f3b26ab 100644 --- a/ga/src/model/UpdateEndpointGroupAttributeRequest.cc +++ b/ga/src/model/UpdateEndpointGroupAttributeRequest.cc @@ -1,84 +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::Ga::Model::UpdateEndpointGroupAttributeRequest; - -UpdateEndpointGroupAttributeRequest::UpdateEndpointGroupAttributeRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroupAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateEndpointGroupAttributeRequest::~UpdateEndpointGroupAttributeRequest() -{} - -std::string UpdateEndpointGroupAttributeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateEndpointGroupAttributeRequest; + +UpdateEndpointGroupAttributeRequest::UpdateEndpointGroupAttributeRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroupAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateEndpointGroupAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateEndpointGroupAttributeRequest::~UpdateEndpointGroupAttributeRequest() {} + +std::string UpdateEndpointGroupAttributeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateEndpointGroupAttributeRequest::getDescription()const -{ - return description_; +void UpdateEndpointGroupAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateEndpointGroupAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateEndpointGroupAttributeRequest::getDescription() const { + return description_; } -std::string UpdateEndpointGroupAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateEndpointGroupAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateEndpointGroupAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateEndpointGroupAttributeRequest::getRegionId() const { + return regionId_; } -std::string UpdateEndpointGroupAttributeRequest::getName()const -{ - return name_; +void UpdateEndpointGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateEndpointGroupAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateEndpointGroupAttributeRequest::getName() const { + return name_; } -std::string UpdateEndpointGroupAttributeRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void UpdateEndpointGroupAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateEndpointGroupAttributeRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::string UpdateEndpointGroupAttributeRequest::getEndpointGroupId() const { + return endpointGroupId_; +} + +void UpdateEndpointGroupAttributeRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } diff --git a/ga/src/model/UpdateEndpointGroupRequest.cc b/ga/src/model/UpdateEndpointGroupRequest.cc index 16d2dcdfc..05168e1db 100644 --- a/ga/src/model/UpdateEndpointGroupRequest.cc +++ b/ga/src/model/UpdateEndpointGroupRequest.cc @@ -1,207 +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::Ga::Model::UpdateEndpointGroupRequest; - -UpdateEndpointGroupRequest::UpdateEndpointGroupRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateEndpointGroupRequest::~UpdateEndpointGroupRequest() -{} - -std::vector UpdateEndpointGroupRequest::getPortOverrides()const -{ - return portOverrides_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateEndpointGroupRequest; + +UpdateEndpointGroupRequest::UpdateEndpointGroupRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroup") { + setMethod(HttpRequest::Method::Post); } -void UpdateEndpointGroupRequest::setPortOverrides(const std::vector& portOverrides) -{ - portOverrides_ = portOverrides; - for(int dep1 = 0; dep1!= portOverrides.size(); dep1++) { - auto portOverridesObj = portOverrides.at(dep1); - std::string portOverridesObjStr = "PortOverrides." + std::to_string(dep1 + 1); - setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); - setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); - } +UpdateEndpointGroupRequest::~UpdateEndpointGroupRequest() {} + +std::vector UpdateEndpointGroupRequest::getPortOverrides() const { + return portOverrides_; } -std::string UpdateEndpointGroupRequest::getClientToken()const -{ - return clientToken_; +void UpdateEndpointGroupRequest::setPortOverrides(const std::vector &portOverrides) { + portOverrides_ = portOverrides; + for(int dep1 = 0; dep1 != portOverrides.size(); dep1++) { + auto portOverridesObj = portOverrides.at(dep1); + std::string portOverridesObjStr = std::string("PortOverrides") + "." + std::to_string(dep1 + 1); + setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); + setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); + } } -void UpdateEndpointGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +bool UpdateEndpointGroupRequest::getHealthCheckEnabled() const { + return healthCheckEnabled_; } -int UpdateEndpointGroupRequest::getHealthCheckIntervalSeconds()const -{ - return healthCheckIntervalSeconds_; +void UpdateEndpointGroupRequest::setHealthCheckEnabled(bool healthCheckEnabled) { + healthCheckEnabled_ = healthCheckEnabled; + setParameter(std::string("HealthCheckEnabled"), healthCheckEnabled ? "true" : "false"); } -void UpdateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) -{ - healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; - setParameter("HealthCheckIntervalSeconds", std::to_string(healthCheckIntervalSeconds)); +std::string UpdateEndpointGroupRequest::getClientToken() const { + return clientToken_; } -std::string UpdateEndpointGroupRequest::getDescription()const -{ - return description_; +void UpdateEndpointGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateEndpointGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +int UpdateEndpointGroupRequest::getHealthCheckIntervalSeconds() const { + return healthCheckIntervalSeconds_; } -std::string UpdateEndpointGroupRequest::getHealthCheckProtocol()const -{ - return healthCheckProtocol_; +void UpdateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) { + healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; + setParameter(std::string("HealthCheckIntervalSeconds"), std::to_string(healthCheckIntervalSeconds)); } -void UpdateEndpointGroupRequest::setHealthCheckProtocol(const std::string& healthCheckProtocol) -{ - healthCheckProtocol_ = healthCheckProtocol; - setParameter("HealthCheckProtocol", healthCheckProtocol); +std::string UpdateEndpointGroupRequest::getDescription() const { + return description_; } -std::string UpdateEndpointGroupRequest::getEndpointRequestProtocol()const -{ - return endpointRequestProtocol_; +void UpdateEndpointGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateEndpointGroupRequest::setEndpointRequestProtocol(const std::string& endpointRequestProtocol) -{ - endpointRequestProtocol_ = endpointRequestProtocol; - setParameter("EndpointRequestProtocol", endpointRequestProtocol); +std::string UpdateEndpointGroupRequest::getHealthCheckProtocol() const { + return healthCheckProtocol_; } -std::string UpdateEndpointGroupRequest::getHealthCheckPath()const -{ - return healthCheckPath_; +void UpdateEndpointGroupRequest::setHealthCheckProtocol(const std::string &healthCheckProtocol) { + healthCheckProtocol_ = healthCheckProtocol; + setParameter(std::string("HealthCheckProtocol"), healthCheckProtocol); } -void UpdateEndpointGroupRequest::setHealthCheckPath(const std::string& healthCheckPath) -{ - healthCheckPath_ = healthCheckPath; - setParameter("HealthCheckPath", healthCheckPath); +std::string UpdateEndpointGroupRequest::getEndpointRequestProtocol() const { + return endpointRequestProtocol_; } -std::vector UpdateEndpointGroupRequest::getEndpointConfigurations()const -{ - return endpointConfigurations_; +void UpdateEndpointGroupRequest::setEndpointRequestProtocol(const std::string &endpointRequestProtocol) { + endpointRequestProtocol_ = endpointRequestProtocol; + setParameter(std::string("EndpointRequestProtocol"), endpointRequestProtocol); } -void UpdateEndpointGroupRequest::setEndpointConfigurations(const std::vector& endpointConfigurations) -{ - endpointConfigurations_ = endpointConfigurations; - for(int dep1 = 0; dep1!= endpointConfigurations.size(); dep1++) { - auto endpointConfigurationsObj = endpointConfigurations.at(dep1); - std::string endpointConfigurationsObjStr = "EndpointConfigurations." + std::to_string(dep1 + 1); - setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); - setParameter(endpointConfigurationsObjStr + ".EnableClientIPPreservation", endpointConfigurationsObj.enableClientIPPreservation ? "true" : "false"); - setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); - setParameter(endpointConfigurationsObjStr + ".EnableProxyProtocol", endpointConfigurationsObj.enableProxyProtocol ? "true" : "false"); - setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); - } +std::string UpdateEndpointGroupRequest::getHealthCheckPath() const { + return healthCheckPath_; } -std::string UpdateEndpointGroupRequest::getRegionId()const -{ - return regionId_; +void UpdateEndpointGroupRequest::setHealthCheckPath(const std::string &healthCheckPath) { + healthCheckPath_ = healthCheckPath; + setParameter(std::string("HealthCheckPath"), healthCheckPath); } -void UpdateEndpointGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::vector UpdateEndpointGroupRequest::getEndpointConfigurations() const { + return endpointConfigurations_; } -std::string UpdateEndpointGroupRequest::getEndpointGroupId()const -{ - return endpointGroupId_; +void UpdateEndpointGroupRequest::setEndpointConfigurations(const std::vector &endpointConfigurations) { + endpointConfigurations_ = endpointConfigurations; + for(int dep1 = 0; dep1 != endpointConfigurations.size(); dep1++) { + auto endpointConfigurationsObj = endpointConfigurations.at(dep1); + std::string endpointConfigurationsObjStr = std::string("EndpointConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".EnableClientIPPreservation", endpointConfigurationsObj.enableClientIPPreservation ? "true" : "false"); + setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); + setParameter(endpointConfigurationsObjStr + ".EnableProxyProtocol", endpointConfigurationsObj.enableProxyProtocol ? "true" : "false"); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + } } -void UpdateEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) -{ - endpointGroupId_ = endpointGroupId; - setParameter("EndpointGroupId", endpointGroupId); +std::string UpdateEndpointGroupRequest::getRegionId() const { + return regionId_; } -int UpdateEndpointGroupRequest::getTrafficPercentage()const -{ - return trafficPercentage_; +void UpdateEndpointGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) -{ - trafficPercentage_ = trafficPercentage; - setParameter("TrafficPercentage", std::to_string(trafficPercentage)); +std::string UpdateEndpointGroupRequest::getEndpointGroupId() const { + return endpointGroupId_; } -int UpdateEndpointGroupRequest::getHealthCheckPort()const -{ - return healthCheckPort_; +void UpdateEndpointGroupRequest::setEndpointGroupId(const std::string &endpointGroupId) { + endpointGroupId_ = endpointGroupId; + setParameter(std::string("EndpointGroupId"), endpointGroupId); } -void UpdateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) -{ - healthCheckPort_ = healthCheckPort; - setParameter("HealthCheckPort", std::to_string(healthCheckPort)); +int UpdateEndpointGroupRequest::getTrafficPercentage() const { + return trafficPercentage_; } -int UpdateEndpointGroupRequest::getThresholdCount()const -{ - return thresholdCount_; +void UpdateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) { + trafficPercentage_ = trafficPercentage; + setParameter(std::string("TrafficPercentage"), std::to_string(trafficPercentage)); } -void UpdateEndpointGroupRequest::setThresholdCount(int thresholdCount) -{ - thresholdCount_ = thresholdCount; - setParameter("ThresholdCount", std::to_string(thresholdCount)); +int UpdateEndpointGroupRequest::getHealthCheckPort() const { + return healthCheckPort_; } -std::string UpdateEndpointGroupRequest::getEndpointGroupRegion()const -{ - return endpointGroupRegion_; +void UpdateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) { + healthCheckPort_ = healthCheckPort; + setParameter(std::string("HealthCheckPort"), std::to_string(healthCheckPort)); } -void UpdateEndpointGroupRequest::setEndpointGroupRegion(const std::string& endpointGroupRegion) -{ - endpointGroupRegion_ = endpointGroupRegion; - setParameter("EndpointGroupRegion", endpointGroupRegion); +int UpdateEndpointGroupRequest::getThresholdCount() const { + return thresholdCount_; } -std::string UpdateEndpointGroupRequest::getName()const -{ - return name_; +void UpdateEndpointGroupRequest::setThresholdCount(int thresholdCount) { + thresholdCount_ = thresholdCount; + setParameter(std::string("ThresholdCount"), std::to_string(thresholdCount)); } -void UpdateEndpointGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateEndpointGroupRequest::getEndpointGroupRegion() const { + return endpointGroupRegion_; +} + +void UpdateEndpointGroupRequest::setEndpointGroupRegion(const std::string &endpointGroupRegion) { + endpointGroupRegion_ = endpointGroupRegion; + setParameter(std::string("EndpointGroupRegion"), endpointGroupRegion); +} + +std::string UpdateEndpointGroupRequest::getName() const { + return name_; +} + +void UpdateEndpointGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ga/src/model/UpdateEndpointGroupsRequest.cc b/ga/src/model/UpdateEndpointGroupsRequest.cc new file mode 100644 index 000000000..5668fc1c3 --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupsRequest.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Ga::Model::UpdateEndpointGroupsRequest; + +UpdateEndpointGroupsRequest::UpdateEndpointGroupsRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroups") { + setMethod(HttpRequest::Method::Post); +} + +UpdateEndpointGroupsRequest::~UpdateEndpointGroupsRequest() {} + +bool UpdateEndpointGroupsRequest::getDryRun() const { + return dryRun_; +} + +void UpdateEndpointGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateEndpointGroupsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateEndpointGroupsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector UpdateEndpointGroupsRequest::getEndpointGroupConfigurations() const { + return endpointGroupConfigurations_; +} + +void UpdateEndpointGroupsRequest::setEndpointGroupConfigurations(const std::vector &endpointGroupConfigurations) { + endpointGroupConfigurations_ = endpointGroupConfigurations; + for(int dep1 = 0; dep1 != endpointGroupConfigurations.size(); dep1++) { + auto endpointGroupConfigurationsObj = endpointGroupConfigurations.at(dep1); + std::string endpointGroupConfigurationsObjStr = std::string("EndpointGroupConfigurations") + "." + std::to_string(dep1 + 1); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupName", endpointGroupConfigurationsObj.endpointGroupName); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupDescription", endpointGroupConfigurationsObj.endpointGroupDescription); + setParameter(endpointGroupConfigurationsObjStr + ".TrafficPercentage", std::to_string(endpointGroupConfigurationsObj.trafficPercentage)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckEnabled", endpointGroupConfigurationsObj.healthCheckEnabled ? "true" : "false"); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckIntervalSeconds", std::to_string(endpointGroupConfigurationsObj.healthCheckIntervalSeconds)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckPath", endpointGroupConfigurationsObj.healthCheckPath); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckPort", std::to_string(endpointGroupConfigurationsObj.healthCheckPort)); + setParameter(endpointGroupConfigurationsObjStr + ".HealthCheckProtocol", endpointGroupConfigurationsObj.healthCheckProtocol); + setParameter(endpointGroupConfigurationsObjStr + ".ThresholdCount", std::to_string(endpointGroupConfigurationsObj.thresholdCount)); + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.endpointConfigurations.size(); dep2++) { + auto endpointConfigurationsObj = endpointGroupConfigurationsObj.endpointConfigurations.at(dep2); + std::string endpointConfigurationsObjStr = endpointGroupConfigurationsObjStr + ".EndpointConfigurations" + "." + std::to_string(dep2 + 1); + setParameter(endpointConfigurationsObjStr + ".Type", endpointConfigurationsObj.type); + setParameter(endpointConfigurationsObjStr + ".Weight", std::to_string(endpointConfigurationsObj.weight)); + setParameter(endpointConfigurationsObjStr + ".Endpoint", endpointConfigurationsObj.endpoint); + } + setParameter(endpointGroupConfigurationsObjStr + ".EndpointRequestProtocol", endpointGroupConfigurationsObj.endpointRequestProtocol); + for(int dep2 = 0; dep2 != endpointGroupConfigurationsObj.portOverrides.size(); dep2++) { + auto portOverridesObj = endpointGroupConfigurationsObj.portOverrides.at(dep2); + std::string portOverridesObjStr = endpointGroupConfigurationsObjStr + ".PortOverrides" + "." + std::to_string(dep2 + 1); + setParameter(portOverridesObjStr + ".ListenerPort", std::to_string(portOverridesObj.listenerPort)); + setParameter(portOverridesObjStr + ".EndpointPort", std::to_string(portOverridesObj.endpointPort)); + } + setParameter(endpointGroupConfigurationsObjStr + ".EnableClientIPPreservationToa", endpointGroupConfigurationsObj.enableClientIPPreservationToa ? "true" : "false"); + setParameter(endpointGroupConfigurationsObjStr + ".EnableClientIPPreservationProxyProtocol", endpointGroupConfigurationsObj.enableClientIPPreservationProxyProtocol ? "true" : "false"); + setParameter(endpointGroupConfigurationsObjStr + ".EndpointGroupId", endpointGroupConfigurationsObj.endpointGroupId); + } +} + +std::string UpdateEndpointGroupsRequest::getListenerId() const { + return listenerId_; +} + +void UpdateEndpointGroupsRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string UpdateEndpointGroupsRequest::getRegionId() const { + return regionId_; +} + +void UpdateEndpointGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ga/src/model/UpdateEndpointGroupsResult.cc b/ga/src/model/UpdateEndpointGroupsResult.cc new file mode 100644 index 000000000..f91940e41 --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateEndpointGroupsResult::UpdateEndpointGroupsResult() : + ServiceResult() +{} + +UpdateEndpointGroupsResult::UpdateEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEndpointGroupsResult::~UpdateEndpointGroupsResult() +{} + +void UpdateEndpointGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEndpointGroupIds = value["EndpointGroupIds"]["endpointGroupIds"]; + for (const auto &item : allEndpointGroupIds) + endpointGroupIds_.push_back(item.asString()); + +} + +std::vector UpdateEndpointGroupsResult::getEndpointGroupIds()const +{ + return endpointGroupIds_; +} + diff --git a/ga/src/model/UpdateForwardingRulesRequest.cc b/ga/src/model/UpdateForwardingRulesRequest.cc index e1897e451..2082745a2 100644 --- a/ga/src/model/UpdateForwardingRulesRequest.cc +++ b/ga/src/model/UpdateForwardingRulesRequest.cc @@ -1,84 +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::Ga::Model::UpdateForwardingRulesRequest; - -UpdateForwardingRulesRequest::UpdateForwardingRulesRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateForwardingRules") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateForwardingRulesRequest::~UpdateForwardingRulesRequest() -{} - -std::string UpdateForwardingRulesRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateForwardingRulesRequest; + +UpdateForwardingRulesRequest::UpdateForwardingRulesRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateForwardingRules") { + setMethod(HttpRequest::Method::Post); } -void UpdateForwardingRulesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateForwardingRulesRequest::~UpdateForwardingRulesRequest() {} + +std::string UpdateForwardingRulesRequest::getClientToken() const { + return clientToken_; } -std::string UpdateForwardingRulesRequest::getListenerId()const -{ - return listenerId_; +void UpdateForwardingRulesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateForwardingRulesRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string UpdateForwardingRulesRequest::getListenerId() const { + return listenerId_; } -std::string UpdateForwardingRulesRequest::getRegionId()const -{ - return regionId_; +void UpdateForwardingRulesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void UpdateForwardingRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateForwardingRulesRequest::getRegionId() const { + return regionId_; } -std::string UpdateForwardingRulesRequest::getAcceleratorId()const -{ - return acceleratorId_; +void UpdateForwardingRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) -{ - acceleratorId_ = acceleratorId; - setParameter("AcceleratorId", acceleratorId); +std::string UpdateForwardingRulesRequest::getAcceleratorId() const { + return acceleratorId_; } -Array UpdateForwardingRulesRequest::getForwardingRules()const -{ - return forwardingRules_; +void UpdateForwardingRulesRequest::setAcceleratorId(const std::string &acceleratorId) { + acceleratorId_ = acceleratorId; + setParameter(std::string("AcceleratorId"), acceleratorId); } -void UpdateForwardingRulesRequest::setForwardingRules(const Array& forwardingRules) -{ - forwardingRules_ = forwardingRules; - setParameter("ForwardingRules", std::to_string(forwardingRules)); +std::vector UpdateForwardingRulesRequest::getForwardingRules() const { + return forwardingRules_; +} + +void UpdateForwardingRulesRequest::setForwardingRules(const std::vector &forwardingRules) { + forwardingRules_ = forwardingRules; + for(int dep1 = 0; dep1 != forwardingRules.size(); dep1++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(forwardingRules[dep1].priority)); + for(int dep2 = 0; dep2 != forwardingRules[dep1].ruleConditions.size(); dep2++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".RuleConditionType", forwardingRules[dep1].ruleConditions[dep2].ruleConditionType); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".RuleConditionValue", forwardingRules[dep1].ruleConditions[dep2].ruleConditionValue); + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleConditions[dep2].pathConfig.values.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".PathConfig.Values." + std::to_string(dep3 + 1), forwardingRules[dep1].ruleConditions[dep2].pathConfig.values[dep3]); + } + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleConditions[dep2].hostConfig.values.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleConditions." + std::to_string(dep2 + 1) + ".HostConfig.Values." + std::to_string(dep3 + 1), forwardingRules[dep1].ruleConditions[dep2].hostConfig.values[dep3]); + } + } + for(int dep2 = 0; dep2 != forwardingRules[dep1].ruleActions.size(); dep2++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".Order", std::to_string(forwardingRules[dep1].ruleActions[dep2].order)); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RuleActionType", forwardingRules[dep1].ruleActions[dep2].ruleActionType); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".RuleActionValue", forwardingRules[dep1].ruleActions[dep2].ruleActionValue); + for(int dep3 = 0; dep3 != forwardingRules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples.size(); dep3++) { + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleActions." + std::to_string(dep2 + 1) + ".ForwardGroupConfig.ServerGroupTuples." + std::to_string(dep3 + 1) + ".EndpointGroupId", forwardingRules[dep1].ruleActions[dep2].forwardGroupConfig.serverGroupTuples[dep3].endpointGroupId); + } + } + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".ForwardingRuleId", forwardingRules[dep1].forwardingRuleId); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".ForwardingRuleName", forwardingRules[dep1].forwardingRuleName); + setParameter(std::string("ForwardingRules") + "." + std::to_string(dep1 + 1) + ".RuleDirection", forwardingRules[dep1].ruleDirection); + } } diff --git a/ga/src/model/UpdateIpSetRequest.cc b/ga/src/model/UpdateIpSetRequest.cc index 6d263b0c8..c8a470c3a 100644 --- a/ga/src/model/UpdateIpSetRequest.cc +++ b/ga/src/model/UpdateIpSetRequest.cc @@ -1,73 +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::Ga::Model::UpdateIpSetRequest; - -UpdateIpSetRequest::UpdateIpSetRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateIpSet") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateIpSetRequest::~UpdateIpSetRequest() -{} - -std::string UpdateIpSetRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateIpSetRequest; + +UpdateIpSetRequest::UpdateIpSetRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateIpSet") { + setMethod(HttpRequest::Method::Post); } -void UpdateIpSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateIpSetRequest::~UpdateIpSetRequest() {} + +std::string UpdateIpSetRequest::getClientToken() const { + return clientToken_; } -int UpdateIpSetRequest::getBandwidth()const -{ - return bandwidth_; +void UpdateIpSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateIpSetRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int UpdateIpSetRequest::getBandwidth() const { + return bandwidth_; } -std::string UpdateIpSetRequest::getIpSetId()const -{ - return ipSetId_; +void UpdateIpSetRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void UpdateIpSetRequest::setIpSetId(const std::string& ipSetId) -{ - ipSetId_ = ipSetId; - setParameter("IpSetId", ipSetId); +std::string UpdateIpSetRequest::getIpSetId() const { + return ipSetId_; } -std::string UpdateIpSetRequest::getRegionId()const -{ - return regionId_; +void UpdateIpSetRequest::setIpSetId(const std::string &ipSetId) { + ipSetId_ = ipSetId; + setParameter(std::string("IpSetId"), ipSetId); } -void UpdateIpSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateIpSetRequest::getRegionId() const { + return regionId_; +} + +void UpdateIpSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/UpdateIpSetsRequest.cc b/ga/src/model/UpdateIpSetsRequest.cc index a20231594..92a47b790 100644 --- a/ga/src/model/UpdateIpSetsRequest.cc +++ b/ga/src/model/UpdateIpSetsRequest.cc @@ -1,56 +1,50 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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::Ga::Model::UpdateIpSetsRequest; - -UpdateIpSetsRequest::UpdateIpSetsRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateIpSets") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateIpSetsRequest::~UpdateIpSetsRequest() -{} - -std::vector UpdateIpSetsRequest::getIpSets()const -{ - return ipSets_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateIpSetsRequest; + +UpdateIpSetsRequest::UpdateIpSetsRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateIpSets") { + setMethod(HttpRequest::Method::Post); } -void UpdateIpSetsRequest::setIpSets(const std::vector& ipSets) -{ - ipSets_ = ipSets; - for(int dep1 = 0; dep1!= ipSets.size(); dep1++) { - auto ipSetsObj = ipSets.at(dep1); - std::string ipSetsObjStr = "IpSets." + std::to_string(dep1 + 1); - setParameter(ipSetsObjStr + ".Bandwidth", std::to_string(ipSetsObj.bandwidth)); - setParameter(ipSetsObjStr + ".IpSetId", ipSetsObj.ipSetId); - } +UpdateIpSetsRequest::~UpdateIpSetsRequest() {} + +std::vector UpdateIpSetsRequest::getIpSets() const { + return ipSets_; } -std::string UpdateIpSetsRequest::getRegionId()const -{ - return regionId_; +void UpdateIpSetsRequest::setIpSets(const std::vector &ipSets) { + ipSets_ = ipSets; + for(int dep1 = 0; dep1 != ipSets.size(); dep1++) { + auto ipSetsObj = ipSets.at(dep1); + std::string ipSetsObjStr = std::string("IpSets") + "." + std::to_string(dep1 + 1); + setParameter(ipSetsObjStr + ".Bandwidth", std::to_string(ipSetsObj.bandwidth)); + setParameter(ipSetsObjStr + ".IpSetId", ipSetsObj.ipSetId); + } } -void UpdateIpSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateIpSetsRequest::getRegionId() const { + return regionId_; +} + +void UpdateIpSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ga/src/model/UpdateListenerRequest.cc b/ga/src/model/UpdateListenerRequest.cc index dc11df565..8410aa29a 100644 --- a/ga/src/model/UpdateListenerRequest.cc +++ b/ga/src/model/UpdateListenerRequest.cc @@ -1,164 +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::Ga::Model::UpdateListenerRequest; - -UpdateListenerRequest::UpdateListenerRequest() : - RpcServiceRequest("ga", "2019-11-20", "UpdateListener") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateListenerRequest::~UpdateListenerRequest() -{} - -std::string UpdateListenerRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateListenerRequest; + +UpdateListenerRequest::UpdateListenerRequest() + : RpcServiceRequest("ga", "2019-11-20", "UpdateListener") { + setMethod(HttpRequest::Method::Post); } -void UpdateListenerRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateListenerRequest::~UpdateListenerRequest() {} + +std::string UpdateListenerRequest::getClientToken() const { + return clientToken_; } -std::string UpdateListenerRequest::getDescription()const -{ - return description_; +void UpdateListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateListenerRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateListenerRequest::getDescription() const { + return description_; } -std::vector UpdateListenerRequest::getBackendPorts()const -{ - return backendPorts_; +void UpdateListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateListenerRequest::setBackendPorts(const std::vector& backendPorts) -{ - backendPorts_ = backendPorts; - for(int dep1 = 0; dep1!= backendPorts.size(); dep1++) { - auto backendPortsObj = backendPorts.at(dep1); - std::string backendPortsObjStr = "BackendPorts." + std::to_string(dep1 + 1); - setParameter(backendPortsObjStr + ".FromPort", std::to_string(backendPortsObj.fromPort)); - setParameter(backendPortsObjStr + ".ToPort", std::to_string(backendPortsObj.toPort)); - } +std::vector UpdateListenerRequest::getBackendPorts() const { + return backendPorts_; } -std::string UpdateListenerRequest::getListenerId()const -{ - return listenerId_; +void UpdateListenerRequest::setBackendPorts(const std::vector &backendPorts) { + backendPorts_ = backendPorts; + for(int dep1 = 0; dep1 != backendPorts.size(); dep1++) { + auto backendPortsObj = backendPorts.at(dep1); + std::string backendPortsObjStr = std::string("BackendPorts") + "." + std::to_string(dep1 + 1); + setParameter(backendPortsObjStr + ".FromPort", std::to_string(backendPortsObj.fromPort)); + setParameter(backendPortsObjStr + ".ToPort", std::to_string(backendPortsObj.toPort)); + } } -void UpdateListenerRequest::setListenerId(const std::string& listenerId) -{ - listenerId_ = listenerId; - setParameter("ListenerId", listenerId); +std::string UpdateListenerRequest::getListenerId() const { + return listenerId_; } -std::string UpdateListenerRequest::getProtocol()const -{ - return protocol_; +void UpdateListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); } -void UpdateListenerRequest::setProtocol(const std::string& protocol) -{ - protocol_ = protocol; - setParameter("Protocol", protocol); +std::string UpdateListenerRequest::getProtocol() const { + return protocol_; } -std::string UpdateListenerRequest::getRegionId()const -{ - return regionId_; +void UpdateListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); } -void UpdateListenerRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateListenerRequest::getRegionId() const { + return regionId_; } -std::string UpdateListenerRequest::getProxyProtocol()const -{ - return proxyProtocol_; +void UpdateListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateListenerRequest::setProxyProtocol(const std::string& proxyProtocol) -{ - proxyProtocol_ = proxyProtocol; - setParameter("ProxyProtocol", proxyProtocol); +UpdateListenerRequest::XForwardedForConfig UpdateListenerRequest::getXForwardedForConfig() const { + return xForwardedForConfig_; } -std::vector UpdateListenerRequest::getPortRanges()const -{ - return portRanges_; +void UpdateListenerRequest::setXForwardedForConfig(const UpdateListenerRequest::XForwardedForConfig &xForwardedForConfig) { + xForwardedForConfig_ = xForwardedForConfig; + setParameter(std::string("XForwardedForConfig") + ".XForwardedForGaIdEnabled", xForwardedForConfig.xForwardedForGaIdEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForProtoEnabled", xForwardedForConfig.xForwardedForProtoEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForPortEnabled", xForwardedForConfig.xForwardedForPortEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XRealIpEnabled", xForwardedForConfig.xRealIpEnabled ? "true" : "false"); + setParameter(std::string("XForwardedForConfig") + ".XForwardedForGaApEnabled", xForwardedForConfig.xForwardedForGaApEnabled ? "true" : "false"); } -void UpdateListenerRequest::setPortRanges(const std::vector& portRanges) -{ - portRanges_ = portRanges; - for(int dep1 = 0; dep1!= portRanges.size(); dep1++) { - auto portRangesObj = portRanges.at(dep1); - std::string portRangesObjStr = "PortRanges." + std::to_string(dep1 + 1); - setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); - setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); - } +std::string UpdateListenerRequest::getSecurityPolicyId() const { + return securityPolicyId_; } -std::vector UpdateListenerRequest::getCertificates()const -{ - return certificates_; +void UpdateListenerRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setParameter(std::string("SecurityPolicyId"), securityPolicyId); } -void UpdateListenerRequest::setCertificates(const std::vector& certificates) -{ - certificates_ = certificates; - for(int dep1 = 0; dep1!= certificates.size(); dep1++) { - auto certificatesObj = certificates.at(dep1); - std::string certificatesObjStr = "Certificates." + std::to_string(dep1 + 1); - setParameter(certificatesObjStr + ".Id", certificatesObj.id); - } +std::string UpdateListenerRequest::getProxyProtocol() const { + return proxyProtocol_; } -std::string UpdateListenerRequest::getName()const -{ - return name_; +void UpdateListenerRequest::setProxyProtocol(const std::string &proxyProtocol) { + proxyProtocol_ = proxyProtocol; + setParameter(std::string("ProxyProtocol"), proxyProtocol); } -void UpdateListenerRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::vector UpdateListenerRequest::getPortRanges() const { + return portRanges_; } -std::string UpdateListenerRequest::getClientAffinity()const -{ - return clientAffinity_; +void UpdateListenerRequest::setPortRanges(const std::vector &portRanges) { + portRanges_ = portRanges; + for(int dep1 = 0; dep1 != portRanges.size(); dep1++) { + auto portRangesObj = portRanges.at(dep1); + std::string portRangesObjStr = std::string("PortRanges") + "." + std::to_string(dep1 + 1); + setParameter(portRangesObjStr + ".FromPort", std::to_string(portRangesObj.fromPort)); + setParameter(portRangesObjStr + ".ToPort", std::to_string(portRangesObj.toPort)); + } } -void UpdateListenerRequest::setClientAffinity(const std::string& clientAffinity) -{ - clientAffinity_ = clientAffinity; - setParameter("ClientAffinity", clientAffinity); +std::vector UpdateListenerRequest::getCertificates() const { + return certificates_; +} + +void UpdateListenerRequest::setCertificates(const std::vector &certificates) { + certificates_ = certificates; + for(int dep1 = 0; dep1 != certificates.size(); dep1++) { + auto certificatesObj = certificates.at(dep1); + std::string certificatesObjStr = std::string("Certificates") + "." + std::to_string(dep1 + 1); + setParameter(certificatesObjStr + ".Id", certificatesObj.id); + } +} + +std::string UpdateListenerRequest::getName() const { + return name_; +} + +void UpdateListenerRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string UpdateListenerRequest::getClientAffinity() const { + return clientAffinity_; +} + +void UpdateListenerRequest::setClientAffinity(const std::string &clientAffinity) { + clientAffinity_ = clientAffinity; + setParameter(std::string("ClientAffinity"), clientAffinity); }