From cab6049e8f2eaf3fb16b1b72a79d253eed1d36d4 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 17 Jun 2021 02:41:03 +0000 Subject: [PATCH] Generated 2019-11-20 for Ga. --- CHANGELOG | 3 + VERSION | 2 +- ga/CMakeLists.txt | 302 +++ ga/include/alibabacloud/ga/GaClient.h | 486 ++++ ga/include/alibabacloud/ga/GaExport.h | 32 + .../ga/model/AddEntriesToAclRequest.h | 66 + .../ga/model/AddEntriesToAclResult.h | 51 + .../model/AssociateAclsWithListenerRequest.h | 63 + .../model/AssociateAclsWithListenerResult.h | 53 + .../ga/model/AttachDdosToAcceleratorRequest.h | 57 + .../ga/model/AttachDdosToAcceleratorResult.h | 53 + .../AttachLogStoreToEndpointGroupRequest.h | 69 + .../AttachLogStoreToEndpointGroupResult.h | 49 + .../BandwidthPackageAddAcceleratorRequest.h | 54 + .../BandwidthPackageAddAcceleratorResult.h | 53 + ...BandwidthPackageRemoveAcceleratorRequest.h | 54 + .../BandwidthPackageRemoveAcceleratorResult.h | 53 + .../ga/model/ConfigEndpointProbeRequest.h | 69 + .../ga/model/ConfigEndpointProbeResult.h | 49 + .../ga/model/CreateAcceleratorRequest.h | 72 + .../ga/model/CreateAcceleratorResult.h | 53 + .../alibabacloud/ga/model/CreateAclRequest.h | 69 + .../alibabacloud/ga/model/CreateAclResult.h | 51 + .../ga/model/CreateBandwidthPackageRequest.h | 90 + .../ga/model/CreateBandwidthPackageResult.h | 53 + .../ga/model/CreateEndpointGroupRequest.h | 110 + .../ga/model/CreateEndpointGroupResult.h | 51 + .../ga/model/CreateForwardingRulesRequest.h | 60 + .../ga/model/CreateForwardingRulesResult.h | 55 + .../ga/model/CreateIpSetsRequest.h | 64 + .../ga/model/CreateIpSetsResult.h | 60 + .../ga/model/CreateListenerRequest.h | 93 + .../ga/model/CreateListenerResult.h | 51 + .../ga/model/DeleteAcceleratorRequest.h | 51 + .../ga/model/DeleteAcceleratorResult.h | 51 + .../alibabacloud/ga/model/DeleteAclRequest.h | 57 + .../alibabacloud/ga/model/DeleteAclResult.h | 51 + .../ga/model/DeleteBandwidthPackageRequest.h | 54 + .../ga/model/DeleteBandwidthPackageResult.h | 51 + .../ga/model/DeleteEndpointGroupRequest.h | 57 + .../ga/model/DeleteEndpointGroupResult.h | 49 + .../ga/model/DeleteForwardingRulesRequest.h | 60 + .../ga/model/DeleteForwardingRulesResult.h | 55 + .../ga/model/DeleteIpSetRequest.h | 57 + .../alibabacloud/ga/model/DeleteIpSetResult.h | 49 + .../ga/model/DeleteIpSetsRequest.h | 51 + .../ga/model/DeleteIpSetsResult.h | 49 + .../ga/model/DeleteListenerRequest.h | 57 + .../ga/model/DeleteListenerResult.h | 49 + .../ga/model/DescribeAcceleratorRequest.h | 51 + .../ga/model/DescribeAcceleratorResult.h | 90 + .../model/DescribeBandwidthPackageRequest.h | 51 + .../ga/model/DescribeBandwidthPackageResult.h | 81 + .../ga/model/DescribeEndpointGroupRequest.h | 51 + .../ga/model/DescribeEndpointGroupResult.h | 112 + .../ga/model/DescribeIpSetRequest.h | 51 + .../ga/model/DescribeIpSetResult.h | 63 + .../ga/model/DescribeListenerRequest.h | 51 + .../ga/model/DescribeListenerResult.h | 97 + .../ga/model/DescribeRegionsRequest.h | 48 + .../ga/model/DescribeRegionsResult.h | 56 + .../model/DetachDdosFromAcceleratorRequest.h | 51 + .../model/DetachDdosFromAcceleratorResult.h | 51 + .../DetachLogStoreFromEndpointGroupRequest.h | 60 + .../DetachLogStoreFromEndpointGroupResult.h | 49 + .../model/DissociateAclsFromListenerRequest.h | 60 + .../model/DissociateAclsFromListenerResult.h | 53 + .../alibabacloud/ga/model/GetAclRequest.h | 51 + .../alibabacloud/ga/model/GetAclResult.h | 72 + .../ga/model/ListAccelerateAreasRequest.h | 48 + .../ga/model/ListAccelerateAreasResult.h | 62 + .../ga/model/ListAcceleratorsRequest.h | 57 + .../ga/model/ListAcceleratorsResult.h | 88 + .../alibabacloud/ga/model/ListAclsRequest.h | 63 + .../alibabacloud/ga/model/ListAclsResult.h | 64 + .../ListAvailableAccelerateAreasRequest.h | 51 + .../ListAvailableAccelerateAreasResult.h | 62 + .../model/ListAvailableBusiRegionsRequest.h | 51 + .../ga/model/ListAvailableBusiRegionsResult.h | 56 + .../ga/model/ListBandwidthPackagesRequest.h | 63 + .../ga/model/ListBandwidthPackagesResult.h | 76 + .../ga/model/ListBandwidthackagesRequest.h | 54 + .../ga/model/ListBandwidthackagesResult.h | 70 + .../ga/model/ListBusiRegionsRequest.h | 48 + .../ga/model/ListBusiRegionsResult.h | 56 + .../ga/model/ListEndpointGroupsRequest.h | 69 + .../ga/model/ListEndpointGroupsResult.h | 94 + .../ga/model/ListForwardingRulesRequest.h | 66 + .../ga/model/ListForwardingRulesResult.h | 95 + .../alibabacloud/ga/model/ListIpSetsRequest.h | 57 + .../alibabacloud/ga/model/ListIpSetsResult.h | 66 + .../ga/model/ListListenersRequest.h | 57 + .../ga/model/ListListenersResult.h | 87 + .../ga/model/RemoveEntriesFromAclRequest.h | 65 + .../ga/model/RemoveEntriesFromAclResult.h | 51 + .../ga/model/ReplaceBandwidthPackageRequest.h | 54 + .../ga/model/ReplaceBandwidthPackageResult.h | 49 + .../ga/model/UpdateAcceleratorRequest.h | 72 + .../ga/model/UpdateAcceleratorResult.h | 49 + .../ga/model/UpdateAclAttributeRequest.h | 60 + .../ga/model/UpdateAclAttributeResult.h | 51 + .../ga/model/UpdateBandwidthPackageRequest.h | 72 + .../ga/model/UpdateBandwidthPackageResult.h | 55 + .../UpdateEndpointGroupAttributeRequest.h | 60 + .../UpdateEndpointGroupAttributeResult.h | 49 + .../ga/model/UpdateEndpointGroupRequest.h | 104 + .../ga/model/UpdateEndpointGroupResult.h | 49 + .../ga/model/UpdateForwardingRulesRequest.h | 60 + .../ga/model/UpdateForwardingRulesResult.h | 55 + .../ga/model/UpdateIpSetRequest.h | 57 + .../alibabacloud/ga/model/UpdateIpSetResult.h | 49 + .../ga/model/UpdateIpSetsRequest.h | 57 + .../ga/model/UpdateIpSetsResult.h | 49 + .../ga/model/UpdateListenerRequest.h | 93 + .../ga/model/UpdateListenerResult.h | 49 + ga/src/GaClient.cc | 2033 +++++++++++++++++ ga/src/model/AddEntriesToAclRequest.cc | 89 + ga/src/model/AddEntriesToAclResult.cc | 51 + .../model/AssociateAclsWithListenerRequest.cc | 97 + .../model/AssociateAclsWithListenerResult.cc | 59 + .../model/AttachDdosToAcceleratorRequest.cc | 73 + ga/src/model/AttachDdosToAcceleratorResult.cc | 58 + .../AttachLogStoreToEndpointGroupRequest.cc | 119 + .../AttachLogStoreToEndpointGroupResult.cc | 44 + .../BandwidthPackageAddAcceleratorRequest.cc | 62 + .../BandwidthPackageAddAcceleratorResult.cc | 59 + ...andwidthPackageRemoveAcceleratorRequest.cc | 62 + ...BandwidthPackageRemoveAcceleratorResult.cc | 59 + ga/src/model/ConfigEndpointProbeRequest.cc | 117 + ga/src/model/ConfigEndpointProbeResult.cc | 44 + ga/src/model/CreateAcceleratorRequest.cc | 128 ++ ga/src/model/CreateAcceleratorResult.cc | 58 + ga/src/model/CreateAclRequest.cc | 100 + ga/src/model/CreateAclResult.cc | 51 + ga/src/model/CreateBandwidthPackageRequest.cc | 194 ++ ga/src/model/CreateBandwidthPackageResult.cc | 58 + ga/src/model/CreateEndpointGroupRequest.cc | 229 ++ ga/src/model/CreateEndpointGroupResult.cc | 51 + ga/src/model/CreateForwardingRulesRequest.cc | 84 + ga/src/model/CreateForwardingRulesResult.cc | 57 + ga/src/model/CreateIpSetsRequest.cc | 79 + ga/src/model/CreateIpSetsResult.cc | 71 + ga/src/model/CreateListenerRequest.cc | 164 ++ ga/src/model/CreateListenerResult.cc | 51 + ga/src/model/DeleteAcceleratorRequest.cc | 51 + ga/src/model/DeleteAcceleratorResult.cc | 51 + ga/src/model/DeleteAclRequest.cc | 73 + ga/src/model/DeleteAclResult.cc | 51 + ga/src/model/DeleteBandwidthPackageRequest.cc | 62 + ga/src/model/DeleteBandwidthPackageResult.cc | 51 + ga/src/model/DeleteEndpointGroupRequest.cc | 73 + ga/src/model/DeleteEndpointGroupResult.cc | 44 + ga/src/model/DeleteForwardingRulesRequest.cc | 84 + ga/src/model/DeleteForwardingRulesResult.cc | 57 + ga/src/model/DeleteIpSetRequest.cc | 73 + ga/src/model/DeleteIpSetResult.cc | 44 + ga/src/model/DeleteIpSetsRequest.cc | 53 + ga/src/model/DeleteIpSetsResult.cc | 44 + ga/src/model/DeleteListenerRequest.cc | 73 + ga/src/model/DeleteListenerResult.cc | 44 + ga/src/model/DescribeAcceleratorRequest.cc | 51 + ga/src/model/DescribeAcceleratorResult.cc | 157 ++ .../model/DescribeBandwidthPackageRequest.cc | 51 + .../model/DescribeBandwidthPackageResult.cc | 157 ++ ga/src/model/DescribeEndpointGroupRequest.cc | 51 + ga/src/model/DescribeEndpointGroupResult.cc | 239 ++ ga/src/model/DescribeIpSetRequest.cc | 51 + ga/src/model/DescribeIpSetResult.cc | 94 + ga/src/model/DescribeListenerRequest.cc | 51 + ga/src/model/DescribeListenerResult.cc | 174 ++ ga/src/model/DescribeRegionsRequest.cc | 40 + ga/src/model/DescribeRegionsResult.cc | 59 + .../model/DetachDdosFromAcceleratorRequest.cc | 51 + .../model/DetachDdosFromAcceleratorResult.cc | 51 + .../DetachLogStoreFromEndpointGroupRequest.cc | 86 + .../DetachLogStoreFromEndpointGroupResult.cc | 44 + .../DissociateAclsFromListenerRequest.cc | 86 + .../model/DissociateAclsFromListenerResult.cc | 59 + ga/src/model/GetAclRequest.cc | 51 + ga/src/model/GetAclResult.cc | 104 + ga/src/model/ListAccelerateAreasRequest.cc | 40 + ga/src/model/ListAccelerateAreasResult.cc | 69 + ga/src/model/ListAcceleratorsRequest.cc | 73 + ga/src/model/ListAcceleratorsResult.cc | 118 + ga/src/model/ListAclsRequest.cc | 95 + ga/src/model/ListAclsResult.cc | 84 + .../ListAvailableAccelerateAreasRequest.cc | 51 + .../ListAvailableAccelerateAreasResult.cc | 69 + .../model/ListAvailableBusiRegionsRequest.cc | 51 + .../model/ListAvailableBusiRegionsResult.cc | 59 + ga/src/model/ListBandwidthPackagesRequest.cc | 95 + ga/src/model/ListBandwidthPackagesResult.cc | 109 + ga/src/model/ListBandwidthackagesRequest.cc | 62 + ga/src/model/ListBandwidthackagesResult.cc | 97 + ga/src/model/ListBusiRegionsRequest.cc | 40 + ga/src/model/ListBusiRegionsResult.cc | 59 + ga/src/model/ListEndpointGroupsRequest.cc | 117 + ga/src/model/ListEndpointGroupsResult.cc | 142 ++ ga/src/model/ListForwardingRulesRequest.cc | 106 + ga/src/model/ListForwardingRulesResult.cc | 121 + ga/src/model/ListIpSetsRequest.cc | 73 + ga/src/model/ListIpSetsResult.cc | 89 + ga/src/model/ListListenersRequest.cc | 73 + ga/src/model/ListListenersResult.cc | 124 + ga/src/model/RemoveEntriesFromAclRequest.cc | 88 + ga/src/model/RemoveEntriesFromAclResult.cc | 51 + .../model/ReplaceBandwidthPackageRequest.cc | 62 + ga/src/model/ReplaceBandwidthPackageResult.cc | 44 + ga/src/model/UpdateAcceleratorRequest.cc | 128 ++ ga/src/model/UpdateAcceleratorResult.cc | 44 + ga/src/model/UpdateAclAttributeRequest.cc | 84 + ga/src/model/UpdateAclAttributeResult.cc | 51 + ga/src/model/UpdateBandwidthPackageRequest.cc | 128 ++ ga/src/model/UpdateBandwidthPackageResult.cc | 65 + .../UpdateEndpointGroupAttributeRequest.cc | 84 + .../UpdateEndpointGroupAttributeResult.cc | 44 + ga/src/model/UpdateEndpointGroupRequest.cc | 207 ++ ga/src/model/UpdateEndpointGroupResult.cc | 44 + ga/src/model/UpdateForwardingRulesRequest.cc | 84 + ga/src/model/UpdateForwardingRulesResult.cc | 57 + ga/src/model/UpdateIpSetRequest.cc | 73 + ga/src/model/UpdateIpSetResult.cc | 44 + ga/src/model/UpdateIpSetsRequest.cc | 56 + ga/src/model/UpdateIpSetsResult.cc | 44 + ga/src/model/UpdateListenerRequest.cc | 164 ++ ga/src/model/UpdateListenerResult.cc | 44 + 226 files changed, 18257 insertions(+), 1 deletion(-) create mode 100644 ga/CMakeLists.txt create mode 100644 ga/include/alibabacloud/ga/GaClient.h create mode 100644 ga/include/alibabacloud/ga/GaExport.h create mode 100644 ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h create mode 100644 ga/include/alibabacloud/ga/model/AddEntriesToAclResult.h create mode 100644 ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/AssociateAclsWithListenerResult.h create mode 100644 ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ConfigEndpointProbeResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateAclRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateAclResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateBandwidthPackageResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateForwardingRulesResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateIpSetsResult.h create mode 100644 ga/include/alibabacloud/ga/model/CreateListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/CreateListenerResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteAclRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteAclResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteBandwidthPackageResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteForwardingRulesResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteIpSetResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteIpSetsResult.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DeleteListenerResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeIpSetResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeListenerResult.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DescribeRegionsResult.h create mode 100644 ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/DissociateAclsFromListenerResult.h create mode 100644 ga/include/alibabacloud/ga/model/GetAclRequest.h create mode 100644 ga/include/alibabacloud/ga/model/GetAclResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListAccelerateAreasResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListAclsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListAclsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListBusiRegionsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListIpSetsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListIpSetsResult.h create mode 100644 ga/include/alibabacloud/ga/model/ListListenersRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ListListenersResult.h create mode 100644 ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.h create mode 100644 ga/include/alibabacloud/ga/model/RemoveEntriesFromAclResult.h create mode 100644 ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h create mode 100644 ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateAcceleratorResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateAclAttributeResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateBandwidthPackageResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateEndpointGroupResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateForwardingRulesResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateIpSetResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateIpSetsResult.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateListenerRequest.h create mode 100644 ga/include/alibabacloud/ga/model/UpdateListenerResult.h create mode 100644 ga/src/GaClient.cc create mode 100644 ga/src/model/AddEntriesToAclRequest.cc create mode 100644 ga/src/model/AddEntriesToAclResult.cc create mode 100644 ga/src/model/AssociateAclsWithListenerRequest.cc create mode 100644 ga/src/model/AssociateAclsWithListenerResult.cc create mode 100644 ga/src/model/AttachDdosToAcceleratorRequest.cc create mode 100644 ga/src/model/AttachDdosToAcceleratorResult.cc create mode 100644 ga/src/model/AttachLogStoreToEndpointGroupRequest.cc create mode 100644 ga/src/model/AttachLogStoreToEndpointGroupResult.cc create mode 100644 ga/src/model/BandwidthPackageAddAcceleratorRequest.cc create mode 100644 ga/src/model/BandwidthPackageAddAcceleratorResult.cc create mode 100644 ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc create mode 100644 ga/src/model/BandwidthPackageRemoveAcceleratorResult.cc create mode 100644 ga/src/model/ConfigEndpointProbeRequest.cc create mode 100644 ga/src/model/ConfigEndpointProbeResult.cc create mode 100644 ga/src/model/CreateAcceleratorRequest.cc create mode 100644 ga/src/model/CreateAcceleratorResult.cc create mode 100644 ga/src/model/CreateAclRequest.cc create mode 100644 ga/src/model/CreateAclResult.cc create mode 100644 ga/src/model/CreateBandwidthPackageRequest.cc create mode 100644 ga/src/model/CreateBandwidthPackageResult.cc create mode 100644 ga/src/model/CreateEndpointGroupRequest.cc create mode 100644 ga/src/model/CreateEndpointGroupResult.cc create mode 100644 ga/src/model/CreateForwardingRulesRequest.cc create mode 100644 ga/src/model/CreateForwardingRulesResult.cc create mode 100644 ga/src/model/CreateIpSetsRequest.cc create mode 100644 ga/src/model/CreateIpSetsResult.cc create mode 100644 ga/src/model/CreateListenerRequest.cc create mode 100644 ga/src/model/CreateListenerResult.cc create mode 100644 ga/src/model/DeleteAcceleratorRequest.cc create mode 100644 ga/src/model/DeleteAcceleratorResult.cc create mode 100644 ga/src/model/DeleteAclRequest.cc create mode 100644 ga/src/model/DeleteAclResult.cc create mode 100644 ga/src/model/DeleteBandwidthPackageRequest.cc create mode 100644 ga/src/model/DeleteBandwidthPackageResult.cc create mode 100644 ga/src/model/DeleteEndpointGroupRequest.cc create mode 100644 ga/src/model/DeleteEndpointGroupResult.cc create mode 100644 ga/src/model/DeleteForwardingRulesRequest.cc create mode 100644 ga/src/model/DeleteForwardingRulesResult.cc create mode 100644 ga/src/model/DeleteIpSetRequest.cc create mode 100644 ga/src/model/DeleteIpSetResult.cc create mode 100644 ga/src/model/DeleteIpSetsRequest.cc create mode 100644 ga/src/model/DeleteIpSetsResult.cc create mode 100644 ga/src/model/DeleteListenerRequest.cc create mode 100644 ga/src/model/DeleteListenerResult.cc create mode 100644 ga/src/model/DescribeAcceleratorRequest.cc create mode 100644 ga/src/model/DescribeAcceleratorResult.cc create mode 100644 ga/src/model/DescribeBandwidthPackageRequest.cc create mode 100644 ga/src/model/DescribeBandwidthPackageResult.cc create mode 100644 ga/src/model/DescribeEndpointGroupRequest.cc create mode 100644 ga/src/model/DescribeEndpointGroupResult.cc create mode 100644 ga/src/model/DescribeIpSetRequest.cc create mode 100644 ga/src/model/DescribeIpSetResult.cc create mode 100644 ga/src/model/DescribeListenerRequest.cc create mode 100644 ga/src/model/DescribeListenerResult.cc create mode 100644 ga/src/model/DescribeRegionsRequest.cc create mode 100644 ga/src/model/DescribeRegionsResult.cc create mode 100644 ga/src/model/DetachDdosFromAcceleratorRequest.cc create mode 100644 ga/src/model/DetachDdosFromAcceleratorResult.cc create mode 100644 ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc create mode 100644 ga/src/model/DetachLogStoreFromEndpointGroupResult.cc create mode 100644 ga/src/model/DissociateAclsFromListenerRequest.cc create mode 100644 ga/src/model/DissociateAclsFromListenerResult.cc create mode 100644 ga/src/model/GetAclRequest.cc create mode 100644 ga/src/model/GetAclResult.cc create mode 100644 ga/src/model/ListAccelerateAreasRequest.cc create mode 100644 ga/src/model/ListAccelerateAreasResult.cc create mode 100644 ga/src/model/ListAcceleratorsRequest.cc create mode 100644 ga/src/model/ListAcceleratorsResult.cc create mode 100644 ga/src/model/ListAclsRequest.cc create mode 100644 ga/src/model/ListAclsResult.cc create mode 100644 ga/src/model/ListAvailableAccelerateAreasRequest.cc create mode 100644 ga/src/model/ListAvailableAccelerateAreasResult.cc create mode 100644 ga/src/model/ListAvailableBusiRegionsRequest.cc create mode 100644 ga/src/model/ListAvailableBusiRegionsResult.cc create mode 100644 ga/src/model/ListBandwidthPackagesRequest.cc create mode 100644 ga/src/model/ListBandwidthPackagesResult.cc create mode 100644 ga/src/model/ListBandwidthackagesRequest.cc create mode 100644 ga/src/model/ListBandwidthackagesResult.cc create mode 100644 ga/src/model/ListBusiRegionsRequest.cc create mode 100644 ga/src/model/ListBusiRegionsResult.cc create mode 100644 ga/src/model/ListEndpointGroupsRequest.cc create mode 100644 ga/src/model/ListEndpointGroupsResult.cc create mode 100644 ga/src/model/ListForwardingRulesRequest.cc create mode 100644 ga/src/model/ListForwardingRulesResult.cc create mode 100644 ga/src/model/ListIpSetsRequest.cc create mode 100644 ga/src/model/ListIpSetsResult.cc create mode 100644 ga/src/model/ListListenersRequest.cc create mode 100644 ga/src/model/ListListenersResult.cc create mode 100644 ga/src/model/RemoveEntriesFromAclRequest.cc create mode 100644 ga/src/model/RemoveEntriesFromAclResult.cc create mode 100644 ga/src/model/ReplaceBandwidthPackageRequest.cc create mode 100644 ga/src/model/ReplaceBandwidthPackageResult.cc create mode 100644 ga/src/model/UpdateAcceleratorRequest.cc create mode 100644 ga/src/model/UpdateAcceleratorResult.cc create mode 100644 ga/src/model/UpdateAclAttributeRequest.cc create mode 100644 ga/src/model/UpdateAclAttributeResult.cc create mode 100644 ga/src/model/UpdateBandwidthPackageRequest.cc create mode 100644 ga/src/model/UpdateBandwidthPackageResult.cc create mode 100644 ga/src/model/UpdateEndpointGroupAttributeRequest.cc create mode 100644 ga/src/model/UpdateEndpointGroupAttributeResult.cc create mode 100644 ga/src/model/UpdateEndpointGroupRequest.cc create mode 100644 ga/src/model/UpdateEndpointGroupResult.cc create mode 100644 ga/src/model/UpdateForwardingRulesRequest.cc create mode 100644 ga/src/model/UpdateForwardingRulesResult.cc create mode 100644 ga/src/model/UpdateIpSetRequest.cc create mode 100644 ga/src/model/UpdateIpSetResult.cc create mode 100644 ga/src/model/UpdateIpSetsRequest.cc create mode 100644 ga/src/model/UpdateIpSetsResult.cc create mode 100644 ga/src/model/UpdateListenerRequest.cc create mode 100644 ga/src/model/UpdateListenerResult.cc diff --git a/CHANGELOG b/CHANGELOG index 7ac99bb3e..3290a78e4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-17 Version: 1.36.789 +- Generated 2019-11-20 for `Ga`. + 2021-06-16 Version: 1.36.788 - Update imageaudit. diff --git a/VERSION b/VERSION index 53b560fb6..17e6e5ee0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.788 \ No newline at end of file +1.36.789 \ No newline at end of file diff --git a/ga/CMakeLists.txt b/ga/CMakeLists.txt new file mode 100644 index 000000000..616a66d0a --- /dev/null +++ b/ga/CMakeLists.txt @@ -0,0 +1,302 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(ga_public_header + include/alibabacloud/ga/GaClient.h + include/alibabacloud/ga/GaExport.h ) + +set(ga_public_header_model + include/alibabacloud/ga/model/AddEntriesToAclRequest.h + include/alibabacloud/ga/model/AddEntriesToAclResult.h + include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h + include/alibabacloud/ga/model/AssociateAclsWithListenerResult.h + include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.h + include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.h + include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h + include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.h + include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h + include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h + include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h + include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.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/CreateBandwidthPackageRequest.h + include/alibabacloud/ga/model/CreateBandwidthPackageResult.h + include/alibabacloud/ga/model/CreateEndpointGroupRequest.h + include/alibabacloud/ga/model/CreateEndpointGroupResult.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/DeleteAcceleratorRequest.h + include/alibabacloud/ga/model/DeleteAcceleratorResult.h + include/alibabacloud/ga/model/DeleteAclRequest.h + include/alibabacloud/ga/model/DeleteAclResult.h + include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.h + include/alibabacloud/ga/model/DeleteBandwidthPackageResult.h + include/alibabacloud/ga/model/DeleteEndpointGroupRequest.h + include/alibabacloud/ga/model/DeleteEndpointGroupResult.h + include/alibabacloud/ga/model/DeleteForwardingRulesRequest.h + include/alibabacloud/ga/model/DeleteForwardingRulesResult.h + include/alibabacloud/ga/model/DeleteIpSetRequest.h + include/alibabacloud/ga/model/DeleteIpSetResult.h + include/alibabacloud/ga/model/DeleteIpSetsRequest.h + include/alibabacloud/ga/model/DeleteIpSetsResult.h + include/alibabacloud/ga/model/DeleteListenerRequest.h + include/alibabacloud/ga/model/DeleteListenerResult.h + include/alibabacloud/ga/model/DescribeAcceleratorRequest.h + include/alibabacloud/ga/model/DescribeAcceleratorResult.h + include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.h + include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h + include/alibabacloud/ga/model/DescribeEndpointGroupRequest.h + include/alibabacloud/ga/model/DescribeEndpointGroupResult.h + include/alibabacloud/ga/model/DescribeIpSetRequest.h + include/alibabacloud/ga/model/DescribeIpSetResult.h + include/alibabacloud/ga/model/DescribeListenerRequest.h + include/alibabacloud/ga/model/DescribeListenerResult.h + include/alibabacloud/ga/model/DescribeRegionsRequest.h + include/alibabacloud/ga/model/DescribeRegionsResult.h + include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h + include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.h + include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h + include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h + include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.h + include/alibabacloud/ga/model/DissociateAclsFromListenerResult.h + include/alibabacloud/ga/model/GetAclRequest.h + include/alibabacloud/ga/model/GetAclResult.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/ListAvailableAccelerateAreasRequest.h + include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h + include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h + include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h + include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h + include/alibabacloud/ga/model/ListBandwidthPackagesResult.h + include/alibabacloud/ga/model/ListBandwidthackagesRequest.h + include/alibabacloud/ga/model/ListBandwidthackagesResult.h + include/alibabacloud/ga/model/ListBusiRegionsRequest.h + include/alibabacloud/ga/model/ListBusiRegionsResult.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/ListListenersRequest.h + include/alibabacloud/ga/model/ListListenersResult.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/UpdateAcceleratorRequest.h + include/alibabacloud/ga/model/UpdateAcceleratorResult.h + include/alibabacloud/ga/model/UpdateAclAttributeRequest.h + include/alibabacloud/ga/model/UpdateAclAttributeResult.h + include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.h + include/alibabacloud/ga/model/UpdateBandwidthPackageResult.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/UpdateForwardingRulesRequest.h + include/alibabacloud/ga/model/UpdateForwardingRulesResult.h + include/alibabacloud/ga/model/UpdateIpSetRequest.h + include/alibabacloud/ga/model/UpdateIpSetResult.h + include/alibabacloud/ga/model/UpdateIpSetsRequest.h + include/alibabacloud/ga/model/UpdateIpSetsResult.h + include/alibabacloud/ga/model/UpdateListenerRequest.h + include/alibabacloud/ga/model/UpdateListenerResult.h ) + +set(ga_src + src/GaClient.cc + src/model/AddEntriesToAclRequest.cc + src/model/AddEntriesToAclResult.cc + src/model/AssociateAclsWithListenerRequest.cc + src/model/AssociateAclsWithListenerResult.cc + src/model/AttachDdosToAcceleratorRequest.cc + src/model/AttachDdosToAcceleratorResult.cc + src/model/AttachLogStoreToEndpointGroupRequest.cc + src/model/AttachLogStoreToEndpointGroupResult.cc + src/model/BandwidthPackageAddAcceleratorRequest.cc + src/model/BandwidthPackageAddAcceleratorResult.cc + src/model/BandwidthPackageRemoveAcceleratorRequest.cc + src/model/BandwidthPackageRemoveAcceleratorResult.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/CreateBandwidthPackageRequest.cc + src/model/CreateBandwidthPackageResult.cc + src/model/CreateEndpointGroupRequest.cc + src/model/CreateEndpointGroupResult.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/DeleteAcceleratorRequest.cc + src/model/DeleteAcceleratorResult.cc + src/model/DeleteAclRequest.cc + src/model/DeleteAclResult.cc + src/model/DeleteBandwidthPackageRequest.cc + src/model/DeleteBandwidthPackageResult.cc + src/model/DeleteEndpointGroupRequest.cc + src/model/DeleteEndpointGroupResult.cc + src/model/DeleteForwardingRulesRequest.cc + src/model/DeleteForwardingRulesResult.cc + src/model/DeleteIpSetRequest.cc + src/model/DeleteIpSetResult.cc + src/model/DeleteIpSetsRequest.cc + src/model/DeleteIpSetsResult.cc + src/model/DeleteListenerRequest.cc + src/model/DeleteListenerResult.cc + src/model/DescribeAcceleratorRequest.cc + src/model/DescribeAcceleratorResult.cc + src/model/DescribeBandwidthPackageRequest.cc + src/model/DescribeBandwidthPackageResult.cc + src/model/DescribeEndpointGroupRequest.cc + src/model/DescribeEndpointGroupResult.cc + src/model/DescribeIpSetRequest.cc + src/model/DescribeIpSetResult.cc + src/model/DescribeListenerRequest.cc + src/model/DescribeListenerResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DetachDdosFromAcceleratorRequest.cc + src/model/DetachDdosFromAcceleratorResult.cc + src/model/DetachLogStoreFromEndpointGroupRequest.cc + src/model/DetachLogStoreFromEndpointGroupResult.cc + src/model/DissociateAclsFromListenerRequest.cc + src/model/DissociateAclsFromListenerResult.cc + src/model/GetAclRequest.cc + src/model/GetAclResult.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/ListAvailableAccelerateAreasRequest.cc + src/model/ListAvailableAccelerateAreasResult.cc + src/model/ListAvailableBusiRegionsRequest.cc + src/model/ListAvailableBusiRegionsResult.cc + src/model/ListBandwidthPackagesRequest.cc + src/model/ListBandwidthPackagesResult.cc + src/model/ListBandwidthackagesRequest.cc + src/model/ListBandwidthackagesResult.cc + src/model/ListBusiRegionsRequest.cc + src/model/ListBusiRegionsResult.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/ListListenersRequest.cc + src/model/ListListenersResult.cc + src/model/RemoveEntriesFromAclRequest.cc + src/model/RemoveEntriesFromAclResult.cc + src/model/ReplaceBandwidthPackageRequest.cc + src/model/ReplaceBandwidthPackageResult.cc + src/model/UpdateAcceleratorRequest.cc + src/model/UpdateAcceleratorResult.cc + src/model/UpdateAclAttributeRequest.cc + src/model/UpdateAclAttributeResult.cc + src/model/UpdateBandwidthPackageRequest.cc + src/model/UpdateBandwidthPackageResult.cc + src/model/UpdateEndpointGroupRequest.cc + src/model/UpdateEndpointGroupResult.cc + src/model/UpdateEndpointGroupAttributeRequest.cc + src/model/UpdateEndpointGroupAttributeResult.cc + src/model/UpdateForwardingRulesRequest.cc + src/model/UpdateForwardingRulesResult.cc + src/model/UpdateIpSetRequest.cc + src/model/UpdateIpSetResult.cc + src/model/UpdateIpSetsRequest.cc + src/model/UpdateIpSetsResult.cc + src/model/UpdateListenerRequest.cc + src/model/UpdateListenerResult.cc ) + +add_library(ga ${LIB_TYPE} + ${ga_public_header} + ${ga_public_header_model} + ${ga_src}) + +set_target_properties(ga + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ga + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ga + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_GA_LIBRARY) +endif() + +target_include_directories(ga + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ga + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ga + jsoncpp) + target_include_directories(ga + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ga + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ga + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ga + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ga + jsoncpp) +endif() + +install(FILES ${ga_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ga) +install(FILES ${ga_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ga/model) +install(TARGETS ga + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/GaClient.h b/ga/include/alibabacloud/ga/GaClient.h new file mode 100644 index 000000000..028022440 --- /dev/null +++ b/ga/include/alibabacloud/ga/GaClient.h @@ -0,0 +1,486 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_GACLIENT_H_ +#define ALIBABACLOUD_GA_GACLIENT_H_ + +#include +#include +#include +#include +#include "GaExport.h" +#include "model/AddEntriesToAclRequest.h" +#include "model/AddEntriesToAclResult.h" +#include "model/AssociateAclsWithListenerRequest.h" +#include "model/AssociateAclsWithListenerResult.h" +#include "model/AttachDdosToAcceleratorRequest.h" +#include "model/AttachDdosToAcceleratorResult.h" +#include "model/AttachLogStoreToEndpointGroupRequest.h" +#include "model/AttachLogStoreToEndpointGroupResult.h" +#include "model/BandwidthPackageAddAcceleratorRequest.h" +#include "model/BandwidthPackageAddAcceleratorResult.h" +#include "model/BandwidthPackageRemoveAcceleratorRequest.h" +#include "model/BandwidthPackageRemoveAcceleratorResult.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/CreateBandwidthPackageRequest.h" +#include "model/CreateBandwidthPackageResult.h" +#include "model/CreateEndpointGroupRequest.h" +#include "model/CreateEndpointGroupResult.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/DeleteAcceleratorRequest.h" +#include "model/DeleteAcceleratorResult.h" +#include "model/DeleteAclRequest.h" +#include "model/DeleteAclResult.h" +#include "model/DeleteBandwidthPackageRequest.h" +#include "model/DeleteBandwidthPackageResult.h" +#include "model/DeleteEndpointGroupRequest.h" +#include "model/DeleteEndpointGroupResult.h" +#include "model/DeleteForwardingRulesRequest.h" +#include "model/DeleteForwardingRulesResult.h" +#include "model/DeleteIpSetRequest.h" +#include "model/DeleteIpSetResult.h" +#include "model/DeleteIpSetsRequest.h" +#include "model/DeleteIpSetsResult.h" +#include "model/DeleteListenerRequest.h" +#include "model/DeleteListenerResult.h" +#include "model/DescribeAcceleratorRequest.h" +#include "model/DescribeAcceleratorResult.h" +#include "model/DescribeBandwidthPackageRequest.h" +#include "model/DescribeBandwidthPackageResult.h" +#include "model/DescribeEndpointGroupRequest.h" +#include "model/DescribeEndpointGroupResult.h" +#include "model/DescribeIpSetRequest.h" +#include "model/DescribeIpSetResult.h" +#include "model/DescribeListenerRequest.h" +#include "model/DescribeListenerResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DetachDdosFromAcceleratorRequest.h" +#include "model/DetachDdosFromAcceleratorResult.h" +#include "model/DetachLogStoreFromEndpointGroupRequest.h" +#include "model/DetachLogStoreFromEndpointGroupResult.h" +#include "model/DissociateAclsFromListenerRequest.h" +#include "model/DissociateAclsFromListenerResult.h" +#include "model/GetAclRequest.h" +#include "model/GetAclResult.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/ListAvailableAccelerateAreasRequest.h" +#include "model/ListAvailableAccelerateAreasResult.h" +#include "model/ListAvailableBusiRegionsRequest.h" +#include "model/ListAvailableBusiRegionsResult.h" +#include "model/ListBandwidthPackagesRequest.h" +#include "model/ListBandwidthPackagesResult.h" +#include "model/ListBandwidthackagesRequest.h" +#include "model/ListBandwidthackagesResult.h" +#include "model/ListBusiRegionsRequest.h" +#include "model/ListBusiRegionsResult.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/ListListenersRequest.h" +#include "model/ListListenersResult.h" +#include "model/RemoveEntriesFromAclRequest.h" +#include "model/RemoveEntriesFromAclResult.h" +#include "model/ReplaceBandwidthPackageRequest.h" +#include "model/ReplaceBandwidthPackageResult.h" +#include "model/UpdateAcceleratorRequest.h" +#include "model/UpdateAcceleratorResult.h" +#include "model/UpdateAclAttributeRequest.h" +#include "model/UpdateAclAttributeResult.h" +#include "model/UpdateBandwidthPackageRequest.h" +#include "model/UpdateBandwidthPackageResult.h" +#include "model/UpdateEndpointGroupRequest.h" +#include "model/UpdateEndpointGroupResult.h" +#include "model/UpdateEndpointGroupAttributeRequest.h" +#include "model/UpdateEndpointGroupAttributeResult.h" +#include "model/UpdateForwardingRulesRequest.h" +#include "model/UpdateForwardingRulesResult.h" +#include "model/UpdateIpSetRequest.h" +#include "model/UpdateIpSetResult.h" +#include "model/UpdateIpSetsRequest.h" +#include "model/UpdateIpSetsResult.h" +#include "model/UpdateListenerRequest.h" +#include "model/UpdateListenerResult.h" + + +namespace AlibabaCloud +{ + namespace Ga + { + class ALIBABACLOUD_GA_EXPORT GaClient : public RpcServiceClient + { + public: + typedef Outcome AddEntriesToAclOutcome; + typedef std::future AddEntriesToAclOutcomeCallable; + typedef std::function&)> AddEntriesToAclAsyncHandler; + typedef Outcome AssociateAclsWithListenerOutcome; + typedef std::future AssociateAclsWithListenerOutcomeCallable; + typedef std::function&)> AssociateAclsWithListenerAsyncHandler; + typedef Outcome AttachDdosToAcceleratorOutcome; + typedef std::future AttachDdosToAcceleratorOutcomeCallable; + typedef std::function&)> AttachDdosToAcceleratorAsyncHandler; + typedef Outcome AttachLogStoreToEndpointGroupOutcome; + typedef std::future AttachLogStoreToEndpointGroupOutcomeCallable; + typedef std::function&)> AttachLogStoreToEndpointGroupAsyncHandler; + typedef Outcome BandwidthPackageAddAcceleratorOutcome; + typedef std::future BandwidthPackageAddAcceleratorOutcomeCallable; + typedef std::function&)> BandwidthPackageAddAcceleratorAsyncHandler; + typedef Outcome BandwidthPackageRemoveAcceleratorOutcome; + typedef std::future BandwidthPackageRemoveAcceleratorOutcomeCallable; + typedef std::function&)> BandwidthPackageRemoveAcceleratorAsyncHandler; + typedef Outcome ConfigEndpointProbeOutcome; + typedef std::future ConfigEndpointProbeOutcomeCallable; + typedef std::function&)> ConfigEndpointProbeAsyncHandler; + typedef Outcome CreateAcceleratorOutcome; + typedef std::future CreateAcceleratorOutcomeCallable; + typedef std::function&)> CreateAcceleratorAsyncHandler; + typedef Outcome CreateAclOutcome; + typedef std::future CreateAclOutcomeCallable; + typedef std::function&)> CreateAclAsyncHandler; + typedef Outcome CreateBandwidthPackageOutcome; + typedef std::future CreateBandwidthPackageOutcomeCallable; + typedef std::function&)> CreateBandwidthPackageAsyncHandler; + typedef Outcome CreateEndpointGroupOutcome; + typedef std::future CreateEndpointGroupOutcomeCallable; + typedef std::function&)> CreateEndpointGroupAsyncHandler; + typedef Outcome CreateForwardingRulesOutcome; + typedef std::future CreateForwardingRulesOutcomeCallable; + typedef std::function&)> CreateForwardingRulesAsyncHandler; + typedef Outcome CreateIpSetsOutcome; + typedef std::future CreateIpSetsOutcomeCallable; + typedef std::function&)> CreateIpSetsAsyncHandler; + typedef Outcome CreateListenerOutcome; + typedef std::future CreateListenerOutcomeCallable; + typedef std::function&)> CreateListenerAsyncHandler; + typedef Outcome DeleteAcceleratorOutcome; + typedef std::future DeleteAcceleratorOutcomeCallable; + typedef std::function&)> DeleteAcceleratorAsyncHandler; + typedef Outcome DeleteAclOutcome; + typedef std::future DeleteAclOutcomeCallable; + typedef std::function&)> DeleteAclAsyncHandler; + typedef Outcome DeleteBandwidthPackageOutcome; + typedef std::future DeleteBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DeleteEndpointGroupOutcome; + typedef std::future DeleteEndpointGroupOutcomeCallable; + typedef std::function&)> DeleteEndpointGroupAsyncHandler; + typedef Outcome DeleteForwardingRulesOutcome; + typedef std::future DeleteForwardingRulesOutcomeCallable; + typedef std::function&)> DeleteForwardingRulesAsyncHandler; + typedef Outcome DeleteIpSetOutcome; + typedef std::future DeleteIpSetOutcomeCallable; + typedef std::function&)> DeleteIpSetAsyncHandler; + typedef Outcome DeleteIpSetsOutcome; + typedef std::future DeleteIpSetsOutcomeCallable; + typedef std::function&)> DeleteIpSetsAsyncHandler; + typedef Outcome DeleteListenerOutcome; + typedef std::future DeleteListenerOutcomeCallable; + typedef std::function&)> DeleteListenerAsyncHandler; + typedef Outcome DescribeAcceleratorOutcome; + typedef std::future DescribeAcceleratorOutcomeCallable; + typedef std::function&)> DescribeAcceleratorAsyncHandler; + typedef Outcome DescribeBandwidthPackageOutcome; + typedef std::future DescribeBandwidthPackageOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackageAsyncHandler; + typedef Outcome DescribeEndpointGroupOutcome; + typedef std::future DescribeEndpointGroupOutcomeCallable; + typedef std::function&)> DescribeEndpointGroupAsyncHandler; + typedef Outcome DescribeIpSetOutcome; + typedef std::future DescribeIpSetOutcomeCallable; + typedef std::function&)> DescribeIpSetAsyncHandler; + typedef Outcome DescribeListenerOutcome; + typedef std::future DescribeListenerOutcomeCallable; + typedef std::function&)> DescribeListenerAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DetachDdosFromAcceleratorOutcome; + typedef std::future DetachDdosFromAcceleratorOutcomeCallable; + typedef std::function&)> DetachDdosFromAcceleratorAsyncHandler; + typedef Outcome DetachLogStoreFromEndpointGroupOutcome; + typedef std::future DetachLogStoreFromEndpointGroupOutcomeCallable; + typedef std::function&)> DetachLogStoreFromEndpointGroupAsyncHandler; + typedef Outcome DissociateAclsFromListenerOutcome; + typedef std::future DissociateAclsFromListenerOutcomeCallable; + typedef std::function&)> DissociateAclsFromListenerAsyncHandler; + typedef Outcome GetAclOutcome; + typedef std::future GetAclOutcomeCallable; + typedef std::function&)> GetAclAsyncHandler; + typedef Outcome ListAccelerateAreasOutcome; + typedef std::future ListAccelerateAreasOutcomeCallable; + typedef std::function&)> ListAccelerateAreasAsyncHandler; + typedef Outcome ListAcceleratorsOutcome; + typedef std::future ListAcceleratorsOutcomeCallable; + typedef std::function&)> ListAcceleratorsAsyncHandler; + typedef Outcome ListAclsOutcome; + typedef std::future ListAclsOutcomeCallable; + typedef std::function&)> ListAclsAsyncHandler; + typedef Outcome ListAvailableAccelerateAreasOutcome; + typedef std::future ListAvailableAccelerateAreasOutcomeCallable; + typedef std::function&)> ListAvailableAccelerateAreasAsyncHandler; + typedef Outcome ListAvailableBusiRegionsOutcome; + typedef std::future ListAvailableBusiRegionsOutcomeCallable; + typedef std::function&)> ListAvailableBusiRegionsAsyncHandler; + typedef Outcome ListBandwidthPackagesOutcome; + typedef std::future ListBandwidthPackagesOutcomeCallable; + typedef std::function&)> ListBandwidthPackagesAsyncHandler; + typedef Outcome ListBandwidthackagesOutcome; + typedef std::future ListBandwidthackagesOutcomeCallable; + typedef std::function&)> ListBandwidthackagesAsyncHandler; + typedef Outcome ListBusiRegionsOutcome; + typedef std::future ListBusiRegionsOutcomeCallable; + typedef std::function&)> ListBusiRegionsAsyncHandler; + typedef Outcome ListEndpointGroupsOutcome; + typedef std::future ListEndpointGroupsOutcomeCallable; + typedef std::function&)> ListEndpointGroupsAsyncHandler; + typedef Outcome ListForwardingRulesOutcome; + typedef std::future ListForwardingRulesOutcomeCallable; + typedef std::function&)> ListForwardingRulesAsyncHandler; + typedef Outcome ListIpSetsOutcome; + typedef std::future ListIpSetsOutcomeCallable; + typedef std::function&)> ListIpSetsAsyncHandler; + typedef Outcome ListListenersOutcome; + typedef std::future ListListenersOutcomeCallable; + typedef std::function&)> ListListenersAsyncHandler; + typedef Outcome RemoveEntriesFromAclOutcome; + typedef std::future RemoveEntriesFromAclOutcomeCallable; + typedef std::function&)> RemoveEntriesFromAclAsyncHandler; + typedef Outcome ReplaceBandwidthPackageOutcome; + typedef std::future ReplaceBandwidthPackageOutcomeCallable; + typedef std::function&)> ReplaceBandwidthPackageAsyncHandler; + typedef Outcome UpdateAcceleratorOutcome; + typedef std::future UpdateAcceleratorOutcomeCallable; + typedef std::function&)> UpdateAcceleratorAsyncHandler; + typedef Outcome UpdateAclAttributeOutcome; + typedef std::future UpdateAclAttributeOutcomeCallable; + typedef std::function&)> UpdateAclAttributeAsyncHandler; + typedef Outcome UpdateBandwidthPackageOutcome; + typedef std::future UpdateBandwidthPackageOutcomeCallable; + typedef std::function&)> UpdateBandwidthPackageAsyncHandler; + typedef Outcome UpdateEndpointGroupOutcome; + typedef std::future UpdateEndpointGroupOutcomeCallable; + typedef std::function&)> UpdateEndpointGroupAsyncHandler; + typedef Outcome UpdateEndpointGroupAttributeOutcome; + typedef std::future UpdateEndpointGroupAttributeOutcomeCallable; + typedef std::function&)> UpdateEndpointGroupAttributeAsyncHandler; + typedef Outcome UpdateForwardingRulesOutcome; + typedef std::future UpdateForwardingRulesOutcomeCallable; + typedef std::function&)> UpdateForwardingRulesAsyncHandler; + typedef Outcome UpdateIpSetOutcome; + typedef std::future UpdateIpSetOutcomeCallable; + typedef std::function&)> UpdateIpSetAsyncHandler; + typedef Outcome UpdateIpSetsOutcome; + typedef std::future UpdateIpSetsOutcomeCallable; + typedef std::function&)> UpdateIpSetsAsyncHandler; + typedef Outcome UpdateListenerOutcome; + typedef std::future UpdateListenerOutcomeCallable; + typedef std::function&)> UpdateListenerAsyncHandler; + + GaClient(const Credentials &credentials, const ClientConfiguration &configuration); + GaClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + GaClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~GaClient(); + AddEntriesToAclOutcome addEntriesToAcl(const Model::AddEntriesToAclRequest &request)const; + void addEntriesToAclAsync(const Model::AddEntriesToAclRequest& request, const AddEntriesToAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEntriesToAclOutcomeCallable addEntriesToAclCallable(const Model::AddEntriesToAclRequest& request) const; + 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; + 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; + AttachLogStoreToEndpointGroupOutcome attachLogStoreToEndpointGroup(const Model::AttachLogStoreToEndpointGroupRequest &request)const; + void attachLogStoreToEndpointGroupAsync(const Model::AttachLogStoreToEndpointGroupRequest& request, const AttachLogStoreToEndpointGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachLogStoreToEndpointGroupOutcomeCallable attachLogStoreToEndpointGroupCallable(const Model::AttachLogStoreToEndpointGroupRequest& request) const; + BandwidthPackageAddAcceleratorOutcome bandwidthPackageAddAccelerator(const Model::BandwidthPackageAddAcceleratorRequest &request)const; + void bandwidthPackageAddAcceleratorAsync(const Model::BandwidthPackageAddAcceleratorRequest& request, const BandwidthPackageAddAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BandwidthPackageAddAcceleratorOutcomeCallable bandwidthPackageAddAcceleratorCallable(const Model::BandwidthPackageAddAcceleratorRequest& request) const; + 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; + 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; + CreateAcceleratorOutcome createAccelerator(const Model::CreateAcceleratorRequest &request)const; + void createAcceleratorAsync(const Model::CreateAcceleratorRequest& request, const CreateAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAcceleratorOutcomeCallable createAcceleratorCallable(const Model::CreateAcceleratorRequest& request) const; + CreateAclOutcome createAcl(const Model::CreateAclRequest &request)const; + void createAclAsync(const Model::CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAclOutcomeCallable createAclCallable(const Model::CreateAclRequest& request) const; + 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; + 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; + 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; + CreateIpSetsOutcome createIpSets(const Model::CreateIpSetsRequest &request)const; + void createIpSetsAsync(const Model::CreateIpSetsRequest& request, const CreateIpSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateIpSetsOutcomeCallable createIpSetsCallable(const Model::CreateIpSetsRequest& request) const; + CreateListenerOutcome createListener(const Model::CreateListenerRequest &request)const; + void createListenerAsync(const Model::CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateListenerOutcomeCallable createListenerCallable(const Model::CreateListenerRequest& request) const; + 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; + 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; + 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; + 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; + DeleteIpSetOutcome deleteIpSet(const Model::DeleteIpSetRequest &request)const; + void deleteIpSetAsync(const Model::DeleteIpSetRequest& request, const DeleteIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpSetOutcomeCallable deleteIpSetCallable(const Model::DeleteIpSetRequest& request) const; + DeleteIpSetsOutcome deleteIpSets(const Model::DeleteIpSetsRequest &request)const; + void deleteIpSetsAsync(const Model::DeleteIpSetsRequest& request, const DeleteIpSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteIpSetsOutcomeCallable deleteIpSetsCallable(const Model::DeleteIpSetsRequest& request) const; + DeleteListenerOutcome deleteListener(const Model::DeleteListenerRequest &request)const; + void deleteListenerAsync(const Model::DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteListenerOutcomeCallable deleteListenerCallable(const Model::DeleteListenerRequest& request) const; + 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; + 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; + 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; + DescribeIpSetOutcome describeIpSet(const Model::DescribeIpSetRequest &request)const; + void describeIpSetAsync(const Model::DescribeIpSetRequest& request, const DescribeIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpSetOutcomeCallable describeIpSetCallable(const Model::DescribeIpSetRequest& request) const; + DescribeListenerOutcome describeListener(const Model::DescribeListenerRequest &request)const; + void describeListenerAsync(const Model::DescribeListenerRequest& request, const DescribeListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeListenerOutcomeCallable describeListenerCallable(const Model::DescribeListenerRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DetachDdosFromAcceleratorOutcome detachDdosFromAccelerator(const Model::DetachDdosFromAcceleratorRequest &request)const; + void detachDdosFromAcceleratorAsync(const Model::DetachDdosFromAcceleratorRequest& request, const DetachDdosFromAcceleratorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachDdosFromAcceleratorOutcomeCallable detachDdosFromAcceleratorCallable(const Model::DetachDdosFromAcceleratorRequest& request) const; + 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; + 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; + 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; + 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; + ListAcceleratorsOutcome listAccelerators(const Model::ListAcceleratorsRequest &request)const; + void listAcceleratorsAsync(const Model::ListAcceleratorsRequest& request, const ListAcceleratorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAcceleratorsOutcomeCallable listAcceleratorsCallable(const Model::ListAcceleratorsRequest& request) const; + ListAclsOutcome listAcls(const Model::ListAclsRequest &request)const; + void listAclsAsync(const Model::ListAclsRequest& request, const ListAclsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAclsOutcomeCallable listAclsCallable(const Model::ListAclsRequest& request) const; + 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; + ListAvailableBusiRegionsOutcome listAvailableBusiRegions(const Model::ListAvailableBusiRegionsRequest &request)const; + void listAvailableBusiRegionsAsync(const Model::ListAvailableBusiRegionsRequest& request, const ListAvailableBusiRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAvailableBusiRegionsOutcomeCallable listAvailableBusiRegionsCallable(const Model::ListAvailableBusiRegionsRequest& request) const; + ListBandwidthPackagesOutcome listBandwidthPackages(const Model::ListBandwidthPackagesRequest &request)const; + void listBandwidthPackagesAsync(const Model::ListBandwidthPackagesRequest& request, const ListBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListBandwidthPackagesOutcomeCallable listBandwidthPackagesCallable(const Model::ListBandwidthPackagesRequest& request) const; + 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; + 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; + 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; + ListForwardingRulesOutcome listForwardingRules(const Model::ListForwardingRulesRequest &request)const; + void listForwardingRulesAsync(const Model::ListForwardingRulesRequest& request, const ListForwardingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListForwardingRulesOutcomeCallable listForwardingRulesCallable(const Model::ListForwardingRulesRequest& request) const; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + 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; + UpdateIpSetOutcome updateIpSet(const Model::UpdateIpSetRequest &request)const; + void updateIpSetAsync(const Model::UpdateIpSetRequest& request, const UpdateIpSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIpSetOutcomeCallable updateIpSetCallable(const Model::UpdateIpSetRequest& request) const; + UpdateIpSetsOutcome updateIpSets(const Model::UpdateIpSetsRequest &request)const; + void updateIpSetsAsync(const Model::UpdateIpSetsRequest& request, const UpdateIpSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateIpSetsOutcomeCallable updateIpSetsCallable(const Model::UpdateIpSetsRequest& request) const; + UpdateListenerOutcome updateListener(const Model::UpdateListenerRequest &request)const; + void updateListenerAsync(const Model::UpdateListenerRequest& request, const UpdateListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateListenerOutcomeCallable updateListenerCallable(const Model::UpdateListenerRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_GA_GACLIENT_H_ diff --git a/ga/include/alibabacloud/ga/GaExport.h b/ga/include/alibabacloud/ga/GaExport.h new file mode 100644 index 000000000..7a577cffc --- /dev/null +++ b/ga/include/alibabacloud/ga/GaExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_GAEXPORT_H_ +#define ALIBABACLOUD_GA_GAEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_GA_LIBRARY) +# define ALIBABACLOUD_GA_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_GA_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_GA_EXPORT +#endif + +#endif // !ALIBABACLOUD_GA_GAEXPORT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h b/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.h new file mode 100644 index 000000000..2e6271559 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AddEntriesToAclRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/AddEntriesToAclResult.h b/ga/include/alibabacloud/ga/model/AddEntriesToAclResult.h new file mode 100644 index 000000000..5f17a2d15 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AddEntriesToAclResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT AddEntriesToAclResult : public ServiceResult + { + public: + + + AddEntriesToAclResult(); + explicit AddEntriesToAclResult(const std::string &payload); + ~AddEntriesToAclResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ADDENTRIESTOACLRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.h new file mode 100644 index 000000000..6eb7d5f87 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerResult.h b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerResult.h new file mode 100644 index 000000000..c211b5075 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AssociateAclsWithListenerResult.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_ASSOCIATEACLSWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT AssociateAclsWithListenerResult : public ServiceResult + { + public: + + + AssociateAclsWithListenerResult(); + explicit AssociateAclsWithListenerResult(const std::string &payload); + ~AssociateAclsWithListenerResult(); + std::vector getAclIds()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclIds_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ASSOCIATEACLSWITHLISTENERRESULT_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 new file mode 100644 index 000000000..91d3c6a42 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.h b/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.h new file mode 100644 index 000000000..dd2e3d275 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AttachDdosToAcceleratorResult.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_ATTACHDDOSTOACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT AttachDdosToAcceleratorResult : public ServiceResult + { + public: + + + AttachDdosToAcceleratorResult(); + explicit AttachDdosToAcceleratorResult(const std::string &payload); + ~AttachDdosToAcceleratorResult(); + std::string getDdosId()const; + std::string getGaId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ddosId_; + std::string gaId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ATTACHDDOSTOACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.h new file mode 100644 index 000000000..7b7d0835b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.h new file mode 100644 index 000000000..d21ff31e9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/AttachLogStoreToEndpointGroupResult.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_ATTACHLOGSTORETOENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT AttachLogStoreToEndpointGroupResult : public ServiceResult + { + public: + + + AttachLogStoreToEndpointGroupResult(); + explicit AttachLogStoreToEndpointGroupResult(const std::string &payload); + ~AttachLogStoreToEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_ATTACHLOGSTORETOENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.h new file mode 100644 index 000000000..a8dac55e0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.h new file mode 100644 index 000000000..174a53b34 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageAddAcceleratorResult.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_BANDWIDTHPACKAGEADDACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT BandwidthPackageAddAcceleratorResult : public ServiceResult + { + public: + + + BandwidthPackageAddAcceleratorResult(); + explicit BandwidthPackageAddAcceleratorResult(const std::string &payload); + ~BandwidthPackageAddAcceleratorResult(); + std::vector getAccelerators()const; + std::string getBandwidthPackageId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accelerators_; + std::string bandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEADDACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.h new file mode 100644 index 000000000..a6e19f4c2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.h b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.h new file mode 100644 index 000000000..3f099ddd5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/BandwidthPackageRemoveAcceleratorResult.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_BANDWIDTHPACKAGEREMOVEACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT BandwidthPackageRemoveAcceleratorResult : public ServiceResult + { + public: + + + BandwidthPackageRemoveAcceleratorResult(); + explicit BandwidthPackageRemoveAcceleratorResult(const std::string &payload); + ~BandwidthPackageRemoveAcceleratorResult(); + std::vector getAccelerators()const; + std::string getBandwidthPackageId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accelerators_; + std::string bandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_BANDWIDTHPACKAGEREMOVEACCELERATORRESULT_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 new file mode 100644 index 000000000..ef54f08f3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ConfigEndpointProbeRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ConfigEndpointProbeResult.h b/ga/include/alibabacloud/ga/model/ConfigEndpointProbeResult.h new file mode 100644 index 000000000..198aa78f2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ConfigEndpointProbeResult.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_CONFIGENDPOINTPROBERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ConfigEndpointProbeResult : public ServiceResult + { + public: + + + ConfigEndpointProbeResult(); + explicit ConfigEndpointProbeResult(const std::string &payload); + ~ConfigEndpointProbeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CONFIGENDPOINTPROBERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.h new file mode 100644 index 000000000..73aefca5d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/CreateAcceleratorResult.h b/ga/include/alibabacloud/ga/model/CreateAcceleratorResult.h new file mode 100644 index 000000000..b80e984cb --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateAcceleratorResult.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_CREATEACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateAcceleratorResult : public ServiceResult + { + public: + + + CreateAcceleratorResult(); + explicit CreateAcceleratorResult(const std::string &payload); + ~CreateAcceleratorResult(); + 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_CREATEACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateAclRequest.h b/ga/include/alibabacloud/ga/model/CreateAclRequest.h new file mode 100644 index 000000000..c319f68e6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateAclRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/CreateAclResult.h b/ga/include/alibabacloud/ga/model/CreateAclResult.h new file mode 100644 index 000000000..8740e36a9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateAclResult.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_CREATEACLRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateAclResult : public ServiceResult + { + public: + + + CreateAclResult(); + explicit CreateAclResult(const std::string &payload); + ~CreateAclResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEACLRESULT_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 new file mode 100644 index 000000000..f0c6e3c3a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBandwidthPackageRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 diff --git a/ga/include/alibabacloud/ga/model/CreateBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/CreateBandwidthPackageResult.h new file mode 100644 index 000000000..3ef1aa609 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateBandwidthPackageResult.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_CREATEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateBandwidthPackageResult : public ServiceResult + { + public: + + + CreateBandwidthPackageResult(); + explicit CreateBandwidthPackageResult(const std::string &payload); + ~CreateBandwidthPackageResult(); + std::string getBandwidthPackageId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthPackageId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEBANDWIDTHPACKAGERESULT_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 new file mode 100644 index 000000000..567b2df12 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateEndpointGroupRequest.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 diff --git a/ga/include/alibabacloud/ga/model/CreateEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/CreateEndpointGroupResult.h new file mode 100644 index 000000000..e6b84b08f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateEndpointGroupResult.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_CREATEENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateEndpointGroupResult : public ServiceResult + { + public: + + + CreateEndpointGroupResult(); + explicit CreateEndpointGroupResult(const std::string &payload); + ~CreateEndpointGroupResult(); + std::string getEndpointGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEENDPOINTGROUPRESULT_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 new file mode 100644 index 000000000..e0333fbd6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateForwardingRulesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/CreateForwardingRulesResult.h b/ga/include/alibabacloud/ga/model/CreateForwardingRulesResult.h new file mode 100644 index 000000000..3c927882e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateForwardingRulesResult.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_CREATEFORWARDINGRULESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateForwardingRulesResult : public ServiceResult + { + public: + struct ForwardingRulesItem + { + std::string forwardingRuleId; + }; + + + CreateForwardingRulesResult(); + explicit CreateForwardingRulesResult(const std::string &payload); + ~CreateForwardingRulesResult(); + std::vector getForwardingRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector forwardingRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEFORWARDINGRULESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h b/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.h new file mode 100644 index 000000000..99aa1140b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateIpSetsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h b/ga/include/alibabacloud/ga/model/CreateIpSetsResult.h new file mode 100644 index 000000000..086366bb0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateIpSetsResult.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_CREATEIPSETSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATEIPSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateIpSetsResult : public ServiceResult + { + public: + struct GaIpSet + { + std::string ipSetId; + std::vector ipList; + int bandwidth; + std::string accelerateRegionId; + }; + + + CreateIpSetsResult(); + explicit CreateIpSetsResult(const std::string &payload); + ~CreateIpSetsResult(); + std::vector getIpSets()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ipSets_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATEIPSETSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/CreateListenerRequest.h b/ga/include/alibabacloud/ga/model/CreateListenerRequest.h new file mode 100644 index 000000000..c9af626a6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateListenerRequest.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_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 + { + 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 diff --git a/ga/include/alibabacloud/ga/model/CreateListenerResult.h b/ga/include/alibabacloud/ga/model/CreateListenerResult.h new file mode 100644 index 000000000..1977053bf --- /dev/null +++ b/ga/include/alibabacloud/ga/model/CreateListenerResult.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_CREATELISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_CREATELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT CreateListenerResult : public ServiceResult + { + public: + + + CreateListenerResult(); + explicit CreateListenerResult(const std::string &payload); + ~CreateListenerResult(); + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_CREATELISTENERRESULT_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 new file mode 100644 index 000000000..ee173c7fc --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteAcceleratorResult.h b/ga/include/alibabacloud/ga/model/DeleteAcceleratorResult.h new file mode 100644 index 000000000..337d79709 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteAcceleratorResult.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_DELETEACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteAcceleratorResult : public ServiceResult + { + public: + + + DeleteAcceleratorResult(); + explicit DeleteAcceleratorResult(const std::string &payload); + ~DeleteAcceleratorResult(); + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteAclRequest.h b/ga/include/alibabacloud/ga/model/DeleteAclRequest.h new file mode 100644 index 000000000..072075ab3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteAclRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteAclResult.h b/ga/include/alibabacloud/ga/model/DeleteAclResult.h new file mode 100644 index 000000000..47150d4b2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteAclResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DELETEACLRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteAclResult : public ServiceResult + { + public: + + + DeleteAclResult(); + explicit DeleteAclResult(const std::string &payload); + ~DeleteAclResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEACLRESULT_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 new file mode 100644 index 000000000..741406d53 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageResult.h new file mode 100644 index 000000000..1771e94f1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteBandwidthPackageResult.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_DELETEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteBandwidthPackageResult(); + explicit DeleteBandwidthPackageResult(const std::string &payload); + ~DeleteBandwidthPackageResult(); + std::string getBandwidthPackageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthPackageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEBANDWIDTHPACKAGERESULT_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 new file mode 100644 index 000000000..df6fe878e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupResult.h new file mode 100644 index 000000000..6dacca723 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteEndpointGroupResult.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_DELETEENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteEndpointGroupResult : public ServiceResult + { + public: + + + DeleteEndpointGroupResult(); + explicit DeleteEndpointGroupResult(const std::string &payload); + ~DeleteEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEENDPOINTGROUPRESULT_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 new file mode 100644 index 000000000..675be59e7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteForwardingRulesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteForwardingRulesResult.h b/ga/include/alibabacloud/ga/model/DeleteForwardingRulesResult.h new file mode 100644 index 000000000..9d4401e89 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteForwardingRulesResult.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_DELETEFORWARDINGRULESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteForwardingRulesResult : public ServiceResult + { + public: + struct ForwardingRulesItem + { + std::string forwardingRuleId; + }; + + + DeleteForwardingRulesResult(); + explicit DeleteForwardingRulesResult(const std::string &payload); + ~DeleteForwardingRulesResult(); + std::vector getForwardingRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector forwardingRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEFORWARDINGRULESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h b/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.h new file mode 100644 index 000000000..a1c5a973e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetResult.h b/ga/include/alibabacloud/ga/model/DeleteIpSetResult.h new file mode 100644 index 000000000..940cb1e13 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetResult.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_DELETEIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteIpSetResult : public ServiceResult + { + public: + + + DeleteIpSetResult(); + explicit DeleteIpSetResult(const std::string &payload); + ~DeleteIpSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h b/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.h new file mode 100644 index 000000000..27066825b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteIpSetsResult.h b/ga/include/alibabacloud/ga/model/DeleteIpSetsResult.h new file mode 100644 index 000000000..fa5961467 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteIpSetsResult.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_DELETEIPSETSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETEIPSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteIpSetsResult : public ServiceResult + { + public: + + + DeleteIpSetsResult(); + explicit DeleteIpSetsResult(const std::string &payload); + ~DeleteIpSetsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETEIPSETSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h b/ga/include/alibabacloud/ga/model/DeleteListenerRequest.h new file mode 100644 index 000000000..b47445419 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteListenerRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DeleteListenerResult.h b/ga/include/alibabacloud/ga/model/DeleteListenerResult.h new file mode 100644 index 000000000..6de83149b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DeleteListenerResult.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_DELETELISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DELETELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DeleteListenerResult : public ServiceResult + { + public: + + + DeleteListenerResult(); + explicit DeleteListenerResult(const std::string &payload); + ~DeleteListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DELETELISTENERRESULT_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 new file mode 100644 index 000000000..ba02796cd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h b/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h new file mode 100644 index 000000000..28e0e4f35 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeAcceleratorResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeAcceleratorResult : public ServiceResult + { + public: + struct BasicBandwidthPackage + { + std::string bandwidthType; + std::string instanceId; + int bandwidth; + }; + struct CrossDomainBandwidthPackage + { + std::string instanceId; + int bandwidth; + }; + + + DescribeAcceleratorResult(); + explicit DescribeAcceleratorResult(const std::string &payload); + ~DescribeAcceleratorResult(); + std::string getDdosId()const; + std::string getDnsName()const; + std::string getDescription()const; + std::string getInstanceChargeType()const; + long getCreateTime()const; + CrossDomainBandwidthPackage getCrossDomainBandwidthPackage()const; + std::string getSecondDnsName()const; + std::string getName()const; + BasicBandwidthPackage getBasicBandwidthPackage()const; + std::string getState()const; + long getExpiredTime()const; + std::string getCenId()const; + std::string getRegionId()const; + std::string getSpec()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ddosId_; + std::string dnsName_; + std::string description_; + std::string instanceChargeType_; + long createTime_; + CrossDomainBandwidthPackage crossDomainBandwidthPackage_; + std::string secondDnsName_; + std::string name_; + BasicBandwidthPackage basicBandwidthPackage_; + std::string state_; + long expiredTime_; + std::string cenId_; + std::string regionId_; + std::string spec_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEACCELERATORRESULT_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 new file mode 100644 index 000000000..d6cbdeee0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h new file mode 100644 index 000000000..5cc5b6234 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeBandwidthPackageResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeBandwidthPackageResult : public ServiceResult + { + public: + + + DescribeBandwidthPackageResult(); + explicit DescribeBandwidthPackageResult(const std::string &payload); + ~DescribeBandwidthPackageResult(); + std::string getCbnGeographicRegionIdB()const; + std::string getDescription()const; + std::string getCbnGeographicRegionIdA()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; + int getBandwidth()const; + std::string getBandwidthPackageId()const; + int getRatio()const; + std::string getRegionId()const; + std::string getBillingType()const; + + protected: + void parse(const std::string &payload); + private: + std::string cbnGeographicRegionIdB_; + std::string description_; + std::string cbnGeographicRegionIdA_; + std::string createTime_; + std::string name_; + std::string bandwidthType_; + std::string type_; + std::vector accelerators_; + std::string chargeType_; + std::string state_; + std::string expiredTime_; + int bandwidth_; + std::string bandwidthPackageId_; + int ratio_; + std::string regionId_; + std::string billingType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEBANDWIDTHPACKAGERESULT_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 new file mode 100644 index 000000000..e6ba4a78d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h new file mode 100644 index 000000000..92645721b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeEndpointGroupResult.h @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeEndpointGroupResult : public ServiceResult + { + public: + struct PortOverridesItem + { + int listenerPort; + int endpointPort; + }; + struct EndpointConfigurationsItem + { + bool enableProxyProtocol; + std::string probeProtocol; + std::string type; + std::string endpoint; + bool enableClientIPPreservation; + int probePort; + int weight; + }; + + + 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 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::vector getEndpointConfigurations()const; + std::string getAcceleratorId()const; + std::string getEndpointGroupType()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 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::vector endpointConfigurations_; + std::string acceleratorId_; + std::string endpointGroupType_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEENDPOINTGROUPRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h b/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.h new file mode 100644 index 000000000..9763d4227 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeIpSetRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h b/ga/include/alibabacloud/ga/model/DescribeIpSetResult.h new file mode 100644 index 000000000..ed02023ea --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeIpSetResult.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_DESCRIBEIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeIpSetResult : public ServiceResult + { + public: + + + DescribeIpSetResult(); + explicit DescribeIpSetResult(const std::string &payload); + ~DescribeIpSetResult(); + std::string getIpSetId()const; + std::string getIpVersion()const; + std::string getState()const; + int getBandwidth()const; + std::vector getIpAddressList()const; + std::string getAccelerateRegionId()const; + std::string getAcceleratorId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ipSetId_; + std::string ipVersion_; + std::string state_; + int bandwidth_; + std::vector ipAddressList_; + std::string accelerateRegionId_; + std::string acceleratorId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h b/ga/include/alibabacloud/ga/model/DescribeListenerRequest.h new file mode 100644 index 000000000..9986293e2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeListenerRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeListenerResult.h b/ga/include/alibabacloud/ga/model/DescribeListenerResult.h new file mode 100644 index 000000000..f18d3effa --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeListenerResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeListenerResult : public ServiceResult + { + public: + struct BackendPort + { + std::string fromPort; + std::string toPort; + }; + struct PortRangesItem + { + int fromPort; + int toPort; + }; + struct Certificate + { + std::string type; + std::string id; + }; + struct RelatedAclsItem + { + std::string status; + std::string aclId; + }; + + + DescribeListenerResult(); + explicit DescribeListenerResult(const std::string &payload); + ~DescribeListenerResult(); + std::string getDescription()const; + std::vector getBackendPorts()const; + std::vector getPortRanges()const; + bool getProxyProtocol()const; + std::string getCreateTime()const; + std::vector getCertificates()const; + std::vector getRelatedAcls()const; + std::string getName()const; + std::string getState()const; + std::string getAclType()const; + std::string getProtocol()const; + std::string getAcceleratorId()const; + std::string getClientAffinity()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::vector backendPorts_; + std::vector portRanges_; + bool proxyProtocol_; + std::string createTime_; + std::vector certificates_; + std::vector relatedAcls_; + std::string name_; + std::string state_; + std::string aclType_; + std::string protocol_; + std::string acceleratorId_; + std::string clientAffinity_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBELISTENERRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h b/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..bee78c8c2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeRegionsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DescribeRegionsResult.h b/ga/include/alibabacloud/ga/model/DescribeRegionsResult.h new file mode 100644 index 000000000..57b2574e1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DescribeRegionsResult.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_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct RegionsItem + { + std::string regionId; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.h new file mode 100644 index 000000000..9368efec9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.h b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.h new file mode 100644 index 000000000..8a55993c1 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetachDdosFromAcceleratorResult.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_DETACHDDOSFROMACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DetachDdosFromAcceleratorResult : public ServiceResult + { + public: + + + DetachDdosFromAcceleratorResult(); + explicit DetachDdosFromAcceleratorResult(const std::string &payload); + ~DetachDdosFromAcceleratorResult(); + std::string getDdosId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ddosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DETACHDDOSFROMACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.h new file mode 100644 index 000000000..690e9481c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.h new file mode 100644 index 000000000..16444351e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DetachLogStoreFromEndpointGroupResult.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_DETACHLOGSTOREFROMENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DetachLogStoreFromEndpointGroupResult : public ServiceResult + { + public: + + + DetachLogStoreFromEndpointGroupResult(); + explicit DetachLogStoreFromEndpointGroupResult(const std::string &payload); + ~DetachLogStoreFromEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DETACHLOGSTOREFROMENDPOINTGROUPRESULT_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 new file mode 100644 index 000000000..439bb06fd --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerResult.h b/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerResult.h new file mode 100644 index 000000000..b70317519 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/DissociateAclsFromListenerResult.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_DISSOCIATEACLSFROMLISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT DissociateAclsFromListenerResult : public ServiceResult + { + public: + + + DissociateAclsFromListenerResult(); + explicit DissociateAclsFromListenerResult(const std::string &payload); + ~DissociateAclsFromListenerResult(); + std::vector getAclIds()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclIds_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_DISSOCIATEACLSFROMLISTENERRESULT_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 new file mode 100644 index 000000000..1b4381a57 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetAclRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/GetAclResult.h b/ga/include/alibabacloud/ga/model/GetAclResult.h new file mode 100644 index 000000000..eb43db8c7 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/GetAclResult.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_GETACLRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_GETACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT GetAclResult : public ServiceResult + { + public: + struct AclEntriesItem + { + std::string entry; + std::string entryDescription; + }; + struct RelatedListenersItem + { + std::string aclType; + std::string acceleratorId; + std::string listenerId; + }; + + + GetAclResult(); + explicit GetAclResult(const std::string &payload); + ~GetAclResult(); + std::vector getAclEntries()const; + std::string getAclStatus()const; + std::string getAddressIPVersion()const; + std::string getAclId()const; + std::vector getRelatedListeners()const; + std::string getAclName()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclEntries_; + std::string aclStatus_; + std::string addressIPVersion_; + std::string aclId_; + std::vector relatedListeners_; + std::string aclName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_GETACLRESULT_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 new file mode 100644 index 000000000..b622e8a7e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAccelerateAreasRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListAccelerateAreasResult.h b/ga/include/alibabacloud/ga/model/ListAccelerateAreasResult.h new file mode 100644 index 000000000..b22a621a5 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAccelerateAreasResult.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_LISTACCELERATEAREASRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListAccelerateAreasResult : public ServiceResult + { + public: + struct AreasItem + { + struct RegionListItem + { + std::string regionId; + std::string localName; + }; + std::string areaId; + std::vector regionList; + std::string localName; + }; + + + ListAccelerateAreasResult(); + explicit ListAccelerateAreasResult(const std::string &payload); + ~ListAccelerateAreasResult(); + std::vector getAreas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector areas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTACCELERATEAREASRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h b/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.h new file mode 100644 index 000000000..b6d421e35 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAcceleratorsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h b/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h new file mode 100644 index 000000000..02c46c88b --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAcceleratorsResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTACCELERATORSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACCELERATORSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListAcceleratorsResult : public ServiceResult + { + public: + struct AcceleratorsItem + { + struct BasicBandwidthPackage + { + std::string bandwidthType; + std::string instanceId; + int bandwidth; + }; + struct CrossDomainBandwidthPackage + { + std::string instanceId; + int bandwidth; + }; + std::string ddosId; + std::string dnsName; + std::string description; + std::string instanceChargeType; + long createTime; + CrossDomainBandwidthPackage crossDomainBandwidthPackage; + std::string secondDnsName; + std::string name; + std::string type; + BasicBandwidthPackage basicBandwidthPackage; + std::string state; + long expiredTime; + int bandwidth; + std::string cenId; + std::string regionId; + std::string spec; + std::string acceleratorId; + }; + + + ListAcceleratorsResult(); + explicit ListAcceleratorsResult(const std::string &payload); + ~ListAcceleratorsResult(); + 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_LISTACCELERATORSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListAclsRequest.h b/ga/include/alibabacloud/ga/model/ListAclsRequest.h new file mode 100644 index 000000000..ee87938f0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAclsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListAclsResult.h b/ga/include/alibabacloud/ga/model/ListAclsResult.h new file mode 100644 index 000000000..3d2df03da --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAclsResult.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_LISTACLSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTACLSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListAclsResult : public ServiceResult + { + public: + struct GaAcls + { + std::string aclStatus; + std::string addressIPVersion; + std::string aclId; + std::string aclName; + }; + + + ListAclsResult(); + explicit ListAclsResult(const std::string &payload); + ~ListAclsResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getAcls()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector acls_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTACLSRESULT_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 new file mode 100644 index 000000000..9efdc5ebe --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h b/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.h new file mode 100644 index 000000000..f80b4b692 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAvailableAccelerateAreasResult.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_LISTAVAILABLEACCELERATEAREASRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListAvailableAccelerateAreasResult : public ServiceResult + { + public: + struct AreasItem + { + struct RegionListItem + { + std::string regionId; + std::string localName; + }; + std::string areaId; + std::vector regionList; + std::string localName; + }; + + + ListAvailableAccelerateAreasResult(); + explicit ListAvailableAccelerateAreasResult(const std::string &payload); + ~ListAvailableAccelerateAreasResult(); + std::vector getAreas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector areas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEACCELERATEAREASRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.h new file mode 100644 index 000000000..28b7f012a --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.h new file mode 100644 index 000000000..53a65155e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListAvailableBusiRegionsResult.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_LISTAVAILABLEBUSIREGIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListAvailableBusiRegionsResult : public ServiceResult + { + public: + struct RegionsItem + { + std::string regionId; + std::string localName; + }; + + + ListAvailableBusiRegionsResult(); + explicit ListAvailableBusiRegionsResult(const std::string &payload); + ~ListAvailableBusiRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTAVAILABLEBUSIREGIONSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.h new file mode 100644 index 000000000..d5ac094a8 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h new file mode 100644 index 000000000..bc96439ca --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBandwidthPackagesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBandwidthPackagesResult : public ServiceResult + { + public: + struct BandwidthPackage + { + std::string cbnGeographicRegionIdB; + std::string description; + std::string cbnGeographicRegionIdA; + std::string createTime; + std::string name; + std::string bandwidthType; + std::string type; + std::vector accelerators; + std::string chargeType; + std::string state; + std::string expiredTime; + int bandwidth; + std::string bandwidthPackageId; + int ratio; + std::string regionId; + std::string billingType; + }; + + + ListBandwidthPackagesResult(); + explicit ListBandwidthPackagesResult(const std::string &payload); + ~ListBandwidthPackagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getBandwidthPackages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector bandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h b/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.h new file mode 100644 index 000000000..cf65ef799 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBandwidthackagesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h b/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.h new file mode 100644 index 000000000..69c8f439d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBandwidthackagesResult.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_LISTBANDWIDTHACKAGESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBandwidthackagesResult : public ServiceResult + { + public: + struct BandwidthPackage + { + std::string description; + std::vector accelerators; + std::string chargeType; + std::string state; + std::string createTime; + std::string expiredTime; + int bandwidth; + std::string bandwidthPackageId; + std::string regionId; + std::string name; + }; + + + ListBandwidthackagesResult(); + explicit ListBandwidthackagesResult(const std::string &payload); + ~ListBandwidthackagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getBandwidthPackages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector bandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBANDWIDTHACKAGESRESULT_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 new file mode 100644 index 000000000..94608a09e --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBusiRegionsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListBusiRegionsResult.h b/ga/include/alibabacloud/ga/model/ListBusiRegionsResult.h new file mode 100644 index 000000000..bf84c0b71 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListBusiRegionsResult.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_LISTBUSIREGIONSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListBusiRegionsResult : public ServiceResult + { + public: + struct RegionsItem + { + std::string regionId; + std::string localName; + }; + + + ListBusiRegionsResult(); + explicit ListBusiRegionsResult(const std::string &payload); + ~ListBusiRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTBUSIREGIONSRESULT_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 new file mode 100644 index 000000000..95b45a6df --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListEndpointGroupsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h b/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h new file mode 100644 index 000000000..617472f63 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListEndpointGroupsResult.h @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTENDPOINTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListEndpointGroupsResult : public ServiceResult + { + public: + struct EndpointGroupsItem + { + struct PortOverridesItem + { + int listenerPort; + int endpointPort; + }; + struct EndpointConfigurationsItem + { + bool enableProxyProtocol; + std::string probeProtocol; + std::string type; + std::string endpoint; + bool enableClientIPPreservation; + int probePort; + int weight; + }; + int healthCheckIntervalSeconds; + int trafficPercentage; + std::vector forwardingRuleIds; + std::string description; + std::string endpointGroupId; + std::string healthCheckPath; + int thresholdCount; + std::string endpointRequestProtocol; + std::string name; + std::vector portOverrides; + std::vector endpointGroupIpList; + std::string endpointGroupRegion; + std::string state; + std::string healthCheckProtocol; + int healthCheckPort; + std::vector endpointConfigurations; + std::string acceleratorId; + std::string endpointGroupType; + std::string listenerId; + }; + + + ListEndpointGroupsResult(); + explicit ListEndpointGroupsResult(const std::string &payload); + ~ListEndpointGroupsResult(); + 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_LISTENDPOINTGROUPSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h b/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.h new file mode 100644 index 000000000..fe82f34a0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListForwardingRulesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h b/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h new file mode 100644 index 000000000..90b44eda9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListForwardingRulesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListForwardingRulesResult : public ServiceResult + { + 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 + { + std::vector values; + }; + struct HostConfig + { + std::vector values1; + }; + PathConfig pathConfig; + HostConfig hostConfig; + std::string ruleConditionType; + }; + std::vector ruleActions; + std::string forwardingRuleName; + int priority; + std::vector ruleConditions; + std::string forwardingRuleId; + std::string forwardingRuleStatus; + std::string listenerId; + }; + + + ListForwardingRulesResult(); + explicit ListForwardingRulesResult(const std::string &payload); + ~ListForwardingRulesResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getForwardingRules()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector forwardingRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTFORWARDINGRULESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h b/ga/include/alibabacloud/ga/model/ListIpSetsRequest.h new file mode 100644 index 000000000..0aef1834d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListIpSetsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ListIpSetsResult.h b/ga/include/alibabacloud/ga/model/ListIpSetsResult.h new file mode 100644 index 000000000..696f5bcc0 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListIpSetsResult.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_LISTIPSETSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTIPSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListIpSetsResult : public ServiceResult + { + public: + struct IpSetsItem + { + std::string ipSetId; + std::string ipVersion; + std::string state; + int bandwidth; + std::vector ipAddressList; + std::string accelerateRegionId; + }; + + + ListIpSetsResult(); + explicit ListIpSetsResult(const std::string &payload); + ~ListIpSetsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getIpSets()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector ipSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTIPSETSRESULT_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 new file mode 100644 index 000000000..91bd4de00 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListListenersRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 diff --git a/ga/include/alibabacloud/ga/model/ListListenersResult.h b/ga/include/alibabacloud/ga/model/ListListenersResult.h new file mode 100644 index 000000000..43397be2f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ListListenersResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_LISTLISTENERSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_LISTLISTENERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ListListenersResult : public ServiceResult + { + public: + struct ListenersItem + { + struct PortRangesItem + { + int fromPort; + int toPort; + }; + struct BackendPort + { + std::string fromPort; + std::string toPort; + }; + struct Certificate + { + std::string type; + std::string id; + }; + std::string description; + std::string state; + std::vector portRanges; + std::vector backendPorts; + bool proxyProtocol; + long createTime; + std::vector certificates; + std::string protocol; + std::string acceleratorId; + std::string name; + std::string clientAffinity; + std::string listenerId; + }; + + + ListListenersResult(); + explicit ListListenersResult(const std::string &payload); + ~ListListenersResult(); + std::vector getListeners()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector listeners_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_LISTLISTENERSRESULT_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 new file mode 100644 index 000000000..e0b74c274 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclResult.h b/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclResult.h new file mode 100644 index 000000000..18aa6c651 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/RemoveEntriesFromAclResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT RemoveEntriesFromAclResult : public ServiceResult + { + public: + + + RemoveEntriesFromAclResult(); + explicit RemoveEntriesFromAclResult(const std::string &payload); + ~RemoveEntriesFromAclResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_REMOVEENTRIESFROMACLRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.h new file mode 100644 index 000000000..36edd19c3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageResult.h new file mode 100644 index 000000000..57929b30c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/ReplaceBandwidthPackageResult.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_REPLACEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT ReplaceBandwidthPackageResult : public ServiceResult + { + public: + + + ReplaceBandwidthPackageResult(); + explicit ReplaceBandwidthPackageResult(const std::string &payload); + ~ReplaceBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_REPLACEBANDWIDTHPACKAGERESULT_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 new file mode 100644 index 000000000..35c1c39fa --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateAcceleratorResult.h b/ga/include/alibabacloud/ga/model/UpdateAcceleratorResult.h new file mode 100644 index 000000000..2d156bcb3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAcceleratorResult.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_UPDATEACCELERATORRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAcceleratorResult : public ServiceResult + { + public: + + + UpdateAcceleratorResult(); + explicit UpdateAcceleratorResult(const std::string &payload); + ~UpdateAcceleratorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACCELERATORRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h b/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.h new file mode 100644 index 000000000..cdb14116d --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAclAttributeRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateAclAttributeResult.h b/ga/include/alibabacloud/ga/model/UpdateAclAttributeResult.h new file mode 100644 index 000000000..259b612d6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateAclAttributeResult.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_UPDATEACLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateAclAttributeResult : public ServiceResult + { + public: + + + UpdateAclAttributeResult(); + explicit UpdateAclAttributeResult(const std::string &payload); + ~UpdateAclAttributeResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEACLATTRIBUTERESULT_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 new file mode 100644 index 000000000..af528eb77 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageResult.h b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageResult.h new file mode 100644 index 000000000..aabf6df78 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateBandwidthPackageResult.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_UPDATEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateBandwidthPackageResult : public ServiceResult + { + public: + + + UpdateBandwidthPackageResult(); + explicit UpdateBandwidthPackageResult(const std::string &payload); + ~UpdateBandwidthPackageResult(); + std::string getBandwidthPackage()const; + std::string getDescription()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string bandwidthPackage_; + std::string description_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEBANDWIDTHPACKAGERESULT_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 new file mode 100644 index 000000000..fce5e374c --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeResult.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeResult.h new file mode 100644 index 000000000..5b45ef1c4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupAttributeResult.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_UPDATEENDPOINTGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupAttributeResult : public ServiceResult + { + public: + + + UpdateEndpointGroupAttributeResult(); + explicit UpdateEndpointGroupAttributeResult(const std::string &payload); + ~UpdateEndpointGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.h new file mode 100644 index 000000000..b029a4db6 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateEndpointGroupResult.h b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupResult.h new file mode 100644 index 000000000..d5174ee12 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateEndpointGroupResult.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_UPDATEENDPOINTGROUPRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateEndpointGroupResult : public ServiceResult + { + public: + + + UpdateEndpointGroupResult(); + explicit UpdateEndpointGroupResult(const std::string &payload); + ~UpdateEndpointGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEENDPOINTGROUPRESULT_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 new file mode 100644 index 000000000..94d1877b3 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateForwardingRulesRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateForwardingRulesResult.h b/ga/include/alibabacloud/ga/model/UpdateForwardingRulesResult.h new file mode 100644 index 000000000..2275aadef --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateForwardingRulesResult.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_UPDATEFORWARDINGRULESRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateForwardingRulesResult : public ServiceResult + { + public: + struct ForwardingRulesItem + { + std::string forwardingRuleId; + }; + + + UpdateForwardingRulesResult(); + explicit UpdateForwardingRulesResult(const std::string &payload); + ~UpdateForwardingRulesResult(); + std::vector getForwardingRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector forwardingRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEFORWARDINGRULESRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h b/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.h new file mode 100644 index 000000000..6dc966f0f --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetResult.h b/ga/include/alibabacloud/ga/model/UpdateIpSetResult.h new file mode 100644 index 000000000..0b467ee18 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetResult.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_UPDATEIPSETRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateIpSetResult : public ServiceResult + { + public: + + + UpdateIpSetResult(); + explicit UpdateIpSetResult(const std::string &payload); + ~UpdateIpSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h b/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.h new file mode 100644 index 000000000..99c0768a9 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetsRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateIpSetsResult.h b/ga/include/alibabacloud/ga/model/UpdateIpSetsResult.h new file mode 100644 index 000000000..043f0d4c2 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateIpSetsResult.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_UPDATEIPSETSRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATEIPSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateIpSetsResult : public ServiceResult + { + public: + + + UpdateIpSetsResult(); + explicit UpdateIpSetsResult(const std::string &payload); + ~UpdateIpSetsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATEIPSETSRESULT_H_ \ No newline at end of file diff --git a/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h b/ga/include/alibabacloud/ga/model/UpdateListenerRequest.h new file mode 100644 index 000000000..dd72c4488 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateListenerRequest.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_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 diff --git a/ga/include/alibabacloud/ga/model/UpdateListenerResult.h b/ga/include/alibabacloud/ga/model/UpdateListenerResult.h new file mode 100644 index 000000000..203124fd4 --- /dev/null +++ b/ga/include/alibabacloud/ga/model/UpdateListenerResult.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_UPDATELISTENERRESULT_H_ +#define ALIBABACLOUD_GA_MODEL_UPDATELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ga + { + namespace Model + { + class ALIBABACLOUD_GA_EXPORT UpdateListenerResult : public ServiceResult + { + public: + + + UpdateListenerResult(); + explicit UpdateListenerResult(const std::string &payload); + ~UpdateListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GA_MODEL_UPDATELISTENERRESULT_H_ \ No newline at end of file diff --git a/ga/src/GaClient.cc b/ga/src/GaClient.cc new file mode 100644 index 000000000..ca8fb0e14 --- /dev/null +++ b/ga/src/GaClient.cc @@ -0,0 +1,2033 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +namespace +{ + const std::string SERVICE_NAME = "Ga"; +} + +GaClient::GaClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ga"); +} + +GaClient::GaClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ga"); +} + +GaClient::GaClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ga"); +} + +GaClient::~GaClient() +{} + +GaClient::AddEntriesToAclOutcome GaClient::addEntriesToAcl(const AddEntriesToAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEntriesToAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEntriesToAclOutcome(AddEntriesToAclResult(outcome.result())); + else + return AddEntriesToAclOutcome(outcome.error()); +} + +void GaClient::addEntriesToAclAsync(const AddEntriesToAclRequest& request, const AddEntriesToAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEntriesToAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::AddEntriesToAclOutcomeCallable GaClient::addEntriesToAclCallable(const AddEntriesToAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEntriesToAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::AssociateAclsWithListenerOutcome GaClient::associateAclsWithListener(const AssociateAclsWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateAclsWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateAclsWithListenerOutcome(AssociateAclsWithListenerResult(outcome.result())); + else + return AssociateAclsWithListenerOutcome(outcome.error()); +} + +void GaClient::associateAclsWithListenerAsync(const AssociateAclsWithListenerRequest& request, const AssociateAclsWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateAclsWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::AssociateAclsWithListenerOutcomeCallable GaClient::associateAclsWithListenerCallable(const AssociateAclsWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateAclsWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::AttachDdosToAcceleratorOutcome GaClient::attachDdosToAccelerator(const AttachDdosToAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDdosToAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDdosToAcceleratorOutcome(AttachDdosToAcceleratorResult(outcome.result())); + else + return AttachDdosToAcceleratorOutcome(outcome.error()); +} + +void GaClient::attachDdosToAcceleratorAsync(const AttachDdosToAcceleratorRequest& request, const AttachDdosToAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDdosToAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::AttachDdosToAcceleratorOutcomeCallable GaClient::attachDdosToAcceleratorCallable(const AttachDdosToAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDdosToAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::AttachLogStoreToEndpointGroupOutcome GaClient::attachLogStoreToEndpointGroup(const AttachLogStoreToEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachLogStoreToEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachLogStoreToEndpointGroupOutcome(AttachLogStoreToEndpointGroupResult(outcome.result())); + else + return AttachLogStoreToEndpointGroupOutcome(outcome.error()); +} + +void GaClient::attachLogStoreToEndpointGroupAsync(const AttachLogStoreToEndpointGroupRequest& request, const AttachLogStoreToEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachLogStoreToEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::AttachLogStoreToEndpointGroupOutcomeCallable GaClient::attachLogStoreToEndpointGroupCallable(const AttachLogStoreToEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachLogStoreToEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::BandwidthPackageAddAcceleratorOutcome GaClient::bandwidthPackageAddAccelerator(const BandwidthPackageAddAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandwidthPackageAddAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandwidthPackageAddAcceleratorOutcome(BandwidthPackageAddAcceleratorResult(outcome.result())); + else + return BandwidthPackageAddAcceleratorOutcome(outcome.error()); +} + +void GaClient::bandwidthPackageAddAcceleratorAsync(const BandwidthPackageAddAcceleratorRequest& request, const BandwidthPackageAddAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandwidthPackageAddAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::BandwidthPackageAddAcceleratorOutcomeCallable GaClient::bandwidthPackageAddAcceleratorCallable(const BandwidthPackageAddAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandwidthPackageAddAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::BandwidthPackageRemoveAcceleratorOutcome GaClient::bandwidthPackageRemoveAccelerator(const BandwidthPackageRemoveAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BandwidthPackageRemoveAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BandwidthPackageRemoveAcceleratorOutcome(BandwidthPackageRemoveAcceleratorResult(outcome.result())); + else + return BandwidthPackageRemoveAcceleratorOutcome(outcome.error()); +} + +void GaClient::bandwidthPackageRemoveAcceleratorAsync(const BandwidthPackageRemoveAcceleratorRequest& request, const BandwidthPackageRemoveAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bandwidthPackageRemoveAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::BandwidthPackageRemoveAcceleratorOutcomeCallable GaClient::bandwidthPackageRemoveAcceleratorCallable(const BandwidthPackageRemoveAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bandwidthPackageRemoveAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ConfigEndpointProbeOutcome GaClient::configEndpointProbe(const ConfigEndpointProbeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfigEndpointProbeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfigEndpointProbeOutcome(ConfigEndpointProbeResult(outcome.result())); + else + return ConfigEndpointProbeOutcome(outcome.error()); +} + +void GaClient::configEndpointProbeAsync(const ConfigEndpointProbeRequest& request, const ConfigEndpointProbeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, configEndpointProbe(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ConfigEndpointProbeOutcomeCallable GaClient::configEndpointProbeCallable(const ConfigEndpointProbeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->configEndpointProbe(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateAcceleratorOutcome GaClient::createAccelerator(const CreateAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAcceleratorOutcome(CreateAcceleratorResult(outcome.result())); + else + return CreateAcceleratorOutcome(outcome.error()); +} + +void GaClient::createAcceleratorAsync(const CreateAcceleratorRequest& request, const CreateAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateAcceleratorOutcomeCallable GaClient::createAcceleratorCallable(const CreateAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateAclOutcome GaClient::createAcl(const CreateAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAclOutcome(CreateAclResult(outcome.result())); + else + return CreateAclOutcome(outcome.error()); +} + +void GaClient::createAclAsync(const CreateAclRequest& request, const CreateAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateAclOutcomeCallable GaClient::createAclCallable(const CreateAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateBandwidthPackageOutcome GaClient::createBandwidthPackage(const CreateBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBandwidthPackageOutcome(CreateBandwidthPackageResult(outcome.result())); + else + return CreateBandwidthPackageOutcome(outcome.error()); +} + +void GaClient::createBandwidthPackageAsync(const CreateBandwidthPackageRequest& request, const CreateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateBandwidthPackageOutcomeCallable GaClient::createBandwidthPackageCallable(const CreateBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateEndpointGroupOutcome GaClient::createEndpointGroup(const CreateEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEndpointGroupOutcome(CreateEndpointGroupResult(outcome.result())); + else + return CreateEndpointGroupOutcome(outcome.error()); +} + +void GaClient::createEndpointGroupAsync(const CreateEndpointGroupRequest& request, const CreateEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateEndpointGroupOutcomeCallable GaClient::createEndpointGroupCallable(const CreateEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateForwardingRulesOutcome GaClient::createForwardingRules(const CreateForwardingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateForwardingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateForwardingRulesOutcome(CreateForwardingRulesResult(outcome.result())); + else + return CreateForwardingRulesOutcome(outcome.error()); +} + +void GaClient::createForwardingRulesAsync(const CreateForwardingRulesRequest& request, const CreateForwardingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createForwardingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateForwardingRulesOutcomeCallable GaClient::createForwardingRulesCallable(const CreateForwardingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createForwardingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateIpSetsOutcome GaClient::createIpSets(const CreateIpSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateIpSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateIpSetsOutcome(CreateIpSetsResult(outcome.result())); + else + return CreateIpSetsOutcome(outcome.error()); +} + +void GaClient::createIpSetsAsync(const CreateIpSetsRequest& request, const CreateIpSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createIpSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateIpSetsOutcomeCallable GaClient::createIpSetsCallable(const CreateIpSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createIpSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::CreateListenerOutcome GaClient::createListener(const CreateListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateListenerOutcome(CreateListenerResult(outcome.result())); + else + return CreateListenerOutcome(outcome.error()); +} + +void GaClient::createListenerAsync(const CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::CreateListenerOutcomeCallable GaClient::createListenerCallable(const CreateListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteAcceleratorOutcome GaClient::deleteAccelerator(const DeleteAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAcceleratorOutcome(DeleteAcceleratorResult(outcome.result())); + else + return DeleteAcceleratorOutcome(outcome.error()); +} + +void GaClient::deleteAcceleratorAsync(const DeleteAcceleratorRequest& request, const DeleteAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteAcceleratorOutcomeCallable GaClient::deleteAcceleratorCallable(const DeleteAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteAclOutcome GaClient::deleteAcl(const DeleteAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAclOutcome(DeleteAclResult(outcome.result())); + else + return DeleteAclOutcome(outcome.error()); +} + +void GaClient::deleteAclAsync(const DeleteAclRequest& request, const DeleteAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteAclOutcomeCallable GaClient::deleteAclCallable(const DeleteAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteBandwidthPackageOutcome GaClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBandwidthPackageOutcome(DeleteBandwidthPackageResult(outcome.result())); + else + return DeleteBandwidthPackageOutcome(outcome.error()); +} + +void GaClient::deleteBandwidthPackageAsync(const DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteBandwidthPackageOutcomeCallable GaClient::deleteBandwidthPackageCallable(const DeleteBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteEndpointGroupOutcome GaClient::deleteEndpointGroup(const DeleteEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEndpointGroupOutcome(DeleteEndpointGroupResult(outcome.result())); + else + return DeleteEndpointGroupOutcome(outcome.error()); +} + +void GaClient::deleteEndpointGroupAsync(const DeleteEndpointGroupRequest& request, const DeleteEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteEndpointGroupOutcomeCallable GaClient::deleteEndpointGroupCallable(const DeleteEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteForwardingRulesOutcome GaClient::deleteForwardingRules(const DeleteForwardingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteForwardingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteForwardingRulesOutcome(DeleteForwardingRulesResult(outcome.result())); + else + return DeleteForwardingRulesOutcome(outcome.error()); +} + +void GaClient::deleteForwardingRulesAsync(const DeleteForwardingRulesRequest& request, const DeleteForwardingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteForwardingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteForwardingRulesOutcomeCallable GaClient::deleteForwardingRulesCallable(const DeleteForwardingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteForwardingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteIpSetOutcome GaClient::deleteIpSet(const DeleteIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpSetOutcome(DeleteIpSetResult(outcome.result())); + else + return DeleteIpSetOutcome(outcome.error()); +} + +void GaClient::deleteIpSetAsync(const DeleteIpSetRequest& request, const DeleteIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteIpSetOutcomeCallable GaClient::deleteIpSetCallable(const DeleteIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteIpSetsOutcome GaClient::deleteIpSets(const DeleteIpSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteIpSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteIpSetsOutcome(DeleteIpSetsResult(outcome.result())); + else + return DeleteIpSetsOutcome(outcome.error()); +} + +void GaClient::deleteIpSetsAsync(const DeleteIpSetsRequest& request, const DeleteIpSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteIpSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteIpSetsOutcomeCallable GaClient::deleteIpSetsCallable(const DeleteIpSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteIpSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DeleteListenerOutcome GaClient::deleteListener(const DeleteListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteListenerOutcome(DeleteListenerResult(outcome.result())); + else + return DeleteListenerOutcome(outcome.error()); +} + +void GaClient::deleteListenerAsync(const DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DeleteListenerOutcomeCallable GaClient::deleteListenerCallable(const DeleteListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeAcceleratorOutcome GaClient::describeAccelerator(const DescribeAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAcceleratorOutcome(DescribeAcceleratorResult(outcome.result())); + else + return DescribeAcceleratorOutcome(outcome.error()); +} + +void GaClient::describeAcceleratorAsync(const DescribeAcceleratorRequest& request, const DescribeAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeAcceleratorOutcomeCallable GaClient::describeAcceleratorCallable(const DescribeAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeBandwidthPackageOutcome GaClient::describeBandwidthPackage(const DescribeBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwidthPackageOutcome(DescribeBandwidthPackageResult(outcome.result())); + else + return DescribeBandwidthPackageOutcome(outcome.error()); +} + +void GaClient::describeBandwidthPackageAsync(const DescribeBandwidthPackageRequest& request, const DescribeBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeBandwidthPackageOutcomeCallable GaClient::describeBandwidthPackageCallable(const DescribeBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeEndpointGroupOutcome GaClient::describeEndpointGroup(const DescribeEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEndpointGroupOutcome(DescribeEndpointGroupResult(outcome.result())); + else + return DescribeEndpointGroupOutcome(outcome.error()); +} + +void GaClient::describeEndpointGroupAsync(const DescribeEndpointGroupRequest& request, const DescribeEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeEndpointGroupOutcomeCallable GaClient::describeEndpointGroupCallable(const DescribeEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeIpSetOutcome GaClient::describeIpSet(const DescribeIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpSetOutcome(DescribeIpSetResult(outcome.result())); + else + return DescribeIpSetOutcome(outcome.error()); +} + +void GaClient::describeIpSetAsync(const DescribeIpSetRequest& request, const DescribeIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeIpSetOutcomeCallable GaClient::describeIpSetCallable(const DescribeIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeListenerOutcome GaClient::describeListener(const DescribeListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeListenerOutcome(DescribeListenerResult(outcome.result())); + else + return DescribeListenerOutcome(outcome.error()); +} + +void GaClient::describeListenerAsync(const DescribeListenerRequest& request, const DescribeListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeListenerOutcomeCallable GaClient::describeListenerCallable(const DescribeListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DescribeRegionsOutcome GaClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void GaClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DescribeRegionsOutcomeCallable GaClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DetachDdosFromAcceleratorOutcome GaClient::detachDdosFromAccelerator(const DetachDdosFromAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachDdosFromAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachDdosFromAcceleratorOutcome(DetachDdosFromAcceleratorResult(outcome.result())); + else + return DetachDdosFromAcceleratorOutcome(outcome.error()); +} + +void GaClient::detachDdosFromAcceleratorAsync(const DetachDdosFromAcceleratorRequest& request, const DetachDdosFromAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachDdosFromAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DetachDdosFromAcceleratorOutcomeCallable GaClient::detachDdosFromAcceleratorCallable(const DetachDdosFromAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachDdosFromAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DetachLogStoreFromEndpointGroupOutcome GaClient::detachLogStoreFromEndpointGroup(const DetachLogStoreFromEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachLogStoreFromEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachLogStoreFromEndpointGroupOutcome(DetachLogStoreFromEndpointGroupResult(outcome.result())); + else + return DetachLogStoreFromEndpointGroupOutcome(outcome.error()); +} + +void GaClient::detachLogStoreFromEndpointGroupAsync(const DetachLogStoreFromEndpointGroupRequest& request, const DetachLogStoreFromEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachLogStoreFromEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DetachLogStoreFromEndpointGroupOutcomeCallable GaClient::detachLogStoreFromEndpointGroupCallable(const DetachLogStoreFromEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachLogStoreFromEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::DissociateAclsFromListenerOutcome GaClient::dissociateAclsFromListener(const DissociateAclsFromListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DissociateAclsFromListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DissociateAclsFromListenerOutcome(DissociateAclsFromListenerResult(outcome.result())); + else + return DissociateAclsFromListenerOutcome(outcome.error()); +} + +void GaClient::dissociateAclsFromListenerAsync(const DissociateAclsFromListenerRequest& request, const DissociateAclsFromListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, dissociateAclsFromListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::DissociateAclsFromListenerOutcomeCallable GaClient::dissociateAclsFromListenerCallable(const DissociateAclsFromListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->dissociateAclsFromListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::GetAclOutcome GaClient::getAcl(const GetAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAclOutcome(GetAclResult(outcome.result())); + else + return GetAclOutcome(outcome.error()); +} + +void GaClient::getAclAsync(const GetAclRequest& request, const GetAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::GetAclOutcomeCallable GaClient::getAclCallable(const GetAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListAccelerateAreasOutcome GaClient::listAccelerateAreas(const ListAccelerateAreasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAccelerateAreasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAccelerateAreasOutcome(ListAccelerateAreasResult(outcome.result())); + else + return ListAccelerateAreasOutcome(outcome.error()); +} + +void GaClient::listAccelerateAreasAsync(const ListAccelerateAreasRequest& request, const ListAccelerateAreasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccelerateAreas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListAccelerateAreasOutcomeCallable GaClient::listAccelerateAreasCallable(const ListAccelerateAreasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccelerateAreas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListAcceleratorsOutcome GaClient::listAccelerators(const ListAcceleratorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAcceleratorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAcceleratorsOutcome(ListAcceleratorsResult(outcome.result())); + else + return ListAcceleratorsOutcome(outcome.error()); +} + +void GaClient::listAcceleratorsAsync(const ListAcceleratorsRequest& request, const ListAcceleratorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAccelerators(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListAcceleratorsOutcomeCallable GaClient::listAcceleratorsCallable(const ListAcceleratorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAccelerators(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListAclsOutcome GaClient::listAcls(const ListAclsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAclsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAclsOutcome(ListAclsResult(outcome.result())); + else + return ListAclsOutcome(outcome.error()); +} + +void GaClient::listAclsAsync(const ListAclsRequest& request, const ListAclsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAcls(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListAclsOutcomeCallable GaClient::listAclsCallable(const ListAclsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAcls(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListAvailableAccelerateAreasOutcome GaClient::listAvailableAccelerateAreas(const ListAvailableAccelerateAreasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableAccelerateAreasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableAccelerateAreasOutcome(ListAvailableAccelerateAreasResult(outcome.result())); + else + return ListAvailableAccelerateAreasOutcome(outcome.error()); +} + +void GaClient::listAvailableAccelerateAreasAsync(const ListAvailableAccelerateAreasRequest& request, const ListAvailableAccelerateAreasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableAccelerateAreas(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListAvailableAccelerateAreasOutcomeCallable GaClient::listAvailableAccelerateAreasCallable(const ListAvailableAccelerateAreasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableAccelerateAreas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListAvailableBusiRegionsOutcome GaClient::listAvailableBusiRegions(const ListAvailableBusiRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableBusiRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableBusiRegionsOutcome(ListAvailableBusiRegionsResult(outcome.result())); + else + return ListAvailableBusiRegionsOutcome(outcome.error()); +} + +void GaClient::listAvailableBusiRegionsAsync(const ListAvailableBusiRegionsRequest& request, const ListAvailableBusiRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableBusiRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListAvailableBusiRegionsOutcomeCallable GaClient::listAvailableBusiRegionsCallable(const ListAvailableBusiRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableBusiRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBandwidthPackagesOutcome GaClient::listBandwidthPackages(const ListBandwidthPackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBandwidthPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBandwidthPackagesOutcome(ListBandwidthPackagesResult(outcome.result())); + else + return ListBandwidthPackagesOutcome(outcome.error()); +} + +void GaClient::listBandwidthPackagesAsync(const ListBandwidthPackagesRequest& request, const ListBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBandwidthPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBandwidthPackagesOutcomeCallable GaClient::listBandwidthPackagesCallable(const ListBandwidthPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBandwidthPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBandwidthackagesOutcome GaClient::listBandwidthackages(const ListBandwidthackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBandwidthackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBandwidthackagesOutcome(ListBandwidthackagesResult(outcome.result())); + else + return ListBandwidthackagesOutcome(outcome.error()); +} + +void GaClient::listBandwidthackagesAsync(const ListBandwidthackagesRequest& request, const ListBandwidthackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBandwidthackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBandwidthackagesOutcomeCallable GaClient::listBandwidthackagesCallable(const ListBandwidthackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBandwidthackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListBusiRegionsOutcome GaClient::listBusiRegions(const ListBusiRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListBusiRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListBusiRegionsOutcome(ListBusiRegionsResult(outcome.result())); + else + return ListBusiRegionsOutcome(outcome.error()); +} + +void GaClient::listBusiRegionsAsync(const ListBusiRegionsRequest& request, const ListBusiRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listBusiRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListBusiRegionsOutcomeCallable GaClient::listBusiRegionsCallable(const ListBusiRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listBusiRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListEndpointGroupsOutcome GaClient::listEndpointGroups(const ListEndpointGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEndpointGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEndpointGroupsOutcome(ListEndpointGroupsResult(outcome.result())); + else + return ListEndpointGroupsOutcome(outcome.error()); +} + +void GaClient::listEndpointGroupsAsync(const ListEndpointGroupsRequest& request, const ListEndpointGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEndpointGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListEndpointGroupsOutcomeCallable GaClient::listEndpointGroupsCallable(const ListEndpointGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEndpointGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListForwardingRulesOutcome GaClient::listForwardingRules(const ListForwardingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListForwardingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListForwardingRulesOutcome(ListForwardingRulesResult(outcome.result())); + else + return ListForwardingRulesOutcome(outcome.error()); +} + +void GaClient::listForwardingRulesAsync(const ListForwardingRulesRequest& request, const ListForwardingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listForwardingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListForwardingRulesOutcomeCallable GaClient::listForwardingRulesCallable(const ListForwardingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listForwardingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListIpSetsOutcome GaClient::listIpSets(const ListIpSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListIpSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListIpSetsOutcome(ListIpSetsResult(outcome.result())); + else + return ListIpSetsOutcome(outcome.error()); +} + +void GaClient::listIpSetsAsync(const ListIpSetsRequest& request, const ListIpSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listIpSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListIpSetsOutcomeCallable GaClient::listIpSetsCallable(const ListIpSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listIpSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ListListenersOutcome GaClient::listListeners(const ListListenersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenersOutcome(ListListenersResult(outcome.result())); + else + return ListListenersOutcome(outcome.error()); +} + +void GaClient::listListenersAsync(const ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListeners(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ListListenersOutcomeCallable GaClient::listListenersCallable(const ListListenersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListeners(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::RemoveEntriesFromAclOutcome GaClient::removeEntriesFromAcl(const RemoveEntriesFromAclRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveEntriesFromAclOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveEntriesFromAclOutcome(RemoveEntriesFromAclResult(outcome.result())); + else + return RemoveEntriesFromAclOutcome(outcome.error()); +} + +void GaClient::removeEntriesFromAclAsync(const RemoveEntriesFromAclRequest& request, const RemoveEntriesFromAclAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeEntriesFromAcl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::RemoveEntriesFromAclOutcomeCallable GaClient::removeEntriesFromAclCallable(const RemoveEntriesFromAclRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeEntriesFromAcl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::ReplaceBandwidthPackageOutcome GaClient::replaceBandwidthPackage(const ReplaceBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceBandwidthPackageOutcome(ReplaceBandwidthPackageResult(outcome.result())); + else + return ReplaceBandwidthPackageOutcome(outcome.error()); +} + +void GaClient::replaceBandwidthPackageAsync(const ReplaceBandwidthPackageRequest& request, const ReplaceBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::ReplaceBandwidthPackageOutcomeCallable GaClient::replaceBandwidthPackageCallable(const ReplaceBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateAcceleratorOutcome GaClient::updateAccelerator(const UpdateAcceleratorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAcceleratorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAcceleratorOutcome(UpdateAcceleratorResult(outcome.result())); + else + return UpdateAcceleratorOutcome(outcome.error()); +} + +void GaClient::updateAcceleratorAsync(const UpdateAcceleratorRequest& request, const UpdateAcceleratorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAccelerator(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAcceleratorOutcomeCallable GaClient::updateAcceleratorCallable(const UpdateAcceleratorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAccelerator(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateAclAttributeOutcome GaClient::updateAclAttribute(const UpdateAclAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAclAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAclAttributeOutcome(UpdateAclAttributeResult(outcome.result())); + else + return UpdateAclAttributeOutcome(outcome.error()); +} + +void GaClient::updateAclAttributeAsync(const UpdateAclAttributeRequest& request, const UpdateAclAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAclAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateAclAttributeOutcomeCallable GaClient::updateAclAttributeCallable(const UpdateAclAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAclAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateBandwidthPackageOutcome GaClient::updateBandwidthPackage(const UpdateBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateBandwidthPackageOutcome(UpdateBandwidthPackageResult(outcome.result())); + else + return UpdateBandwidthPackageOutcome(outcome.error()); +} + +void GaClient::updateBandwidthPackageAsync(const UpdateBandwidthPackageRequest& request, const UpdateBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateBandwidthPackageOutcomeCallable GaClient::updateBandwidthPackageCallable(const UpdateBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateEndpointGroupOutcome GaClient::updateEndpointGroup(const UpdateEndpointGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEndpointGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEndpointGroupOutcome(UpdateEndpointGroupResult(outcome.result())); + else + return UpdateEndpointGroupOutcome(outcome.error()); +} + +void GaClient::updateEndpointGroupAsync(const UpdateEndpointGroupRequest& request, const UpdateEndpointGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEndpointGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateEndpointGroupOutcomeCallable GaClient::updateEndpointGroupCallable(const UpdateEndpointGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEndpointGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateEndpointGroupAttributeOutcome GaClient::updateEndpointGroupAttribute(const UpdateEndpointGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEndpointGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEndpointGroupAttributeOutcome(UpdateEndpointGroupAttributeResult(outcome.result())); + else + return UpdateEndpointGroupAttributeOutcome(outcome.error()); +} + +void GaClient::updateEndpointGroupAttributeAsync(const UpdateEndpointGroupAttributeRequest& request, const UpdateEndpointGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEndpointGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateEndpointGroupAttributeOutcomeCallable GaClient::updateEndpointGroupAttributeCallable(const UpdateEndpointGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEndpointGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateForwardingRulesOutcome GaClient::updateForwardingRules(const UpdateForwardingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateForwardingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateForwardingRulesOutcome(UpdateForwardingRulesResult(outcome.result())); + else + return UpdateForwardingRulesOutcome(outcome.error()); +} + +void GaClient::updateForwardingRulesAsync(const UpdateForwardingRulesRequest& request, const UpdateForwardingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateForwardingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateForwardingRulesOutcomeCallable GaClient::updateForwardingRulesCallable(const UpdateForwardingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateForwardingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateIpSetOutcome GaClient::updateIpSet(const UpdateIpSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIpSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIpSetOutcome(UpdateIpSetResult(outcome.result())); + else + return UpdateIpSetOutcome(outcome.error()); +} + +void GaClient::updateIpSetAsync(const UpdateIpSetRequest& request, const UpdateIpSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIpSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateIpSetOutcomeCallable GaClient::updateIpSetCallable(const UpdateIpSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIpSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateIpSetsOutcome GaClient::updateIpSets(const UpdateIpSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateIpSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateIpSetsOutcome(UpdateIpSetsResult(outcome.result())); + else + return UpdateIpSetsOutcome(outcome.error()); +} + +void GaClient::updateIpSetsAsync(const UpdateIpSetsRequest& request, const UpdateIpSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateIpSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateIpSetsOutcomeCallable GaClient::updateIpSetsCallable(const UpdateIpSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateIpSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GaClient::UpdateListenerOutcome GaClient::updateListener(const UpdateListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateListenerOutcome(UpdateListenerResult(outcome.result())); + else + return UpdateListenerOutcome(outcome.error()); +} + +void GaClient::updateListenerAsync(const UpdateListenerRequest& request, const UpdateListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GaClient::UpdateListenerOutcomeCallable GaClient::updateListenerCallable(const UpdateListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ga/src/model/AddEntriesToAclRequest.cc b/ga/src/model/AddEntriesToAclRequest.cc new file mode 100644 index 000000000..dce47a697 --- /dev/null +++ b/ga/src/model/AddEntriesToAclRequest.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void AddEntriesToAclRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +bool AddEntriesToAclRequest::getDryRun()const +{ + return dryRun_; +} + +void AddEntriesToAclRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string AddEntriesToAclRequest::getClientToken()const +{ + return clientToken_; +} + +void AddEntriesToAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector AddEntriesToAclRequest::getAclEntries()const +{ + return aclEntries_; +} + +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::string AddEntriesToAclRequest::getRegionId()const +{ + return regionId_; +} + +void AddEntriesToAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/AddEntriesToAclResult.cc b/ga/src/model/AddEntriesToAclResult.cc new file mode 100644 index 000000000..75c19caa2 --- /dev/null +++ b/ga/src/model/AddEntriesToAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +AddEntriesToAclResult::AddEntriesToAclResult() : + ServiceResult() +{} + +AddEntriesToAclResult::AddEntriesToAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddEntriesToAclResult::~AddEntriesToAclResult() +{} + +void AddEntriesToAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string AddEntriesToAclResult::getAclId()const +{ + return aclId_; +} + diff --git a/ga/src/model/AssociateAclsWithListenerRequest.cc b/ga/src/model/AssociateAclsWithListenerRequest.cc new file mode 100644 index 000000000..81a6fa4cb --- /dev/null +++ b/ga/src/model/AssociateAclsWithListenerRequest.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 + +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_; +} + +void AssociateAclsWithListenerRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string AssociateAclsWithListenerRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociateAclsWithListenerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector AssociateAclsWithListenerRequest::getAclIds()const +{ + return aclIds_; +} + +void AssociateAclsWithListenerRequest::setAclIds(const std::vector& aclIds) +{ + aclIds_ = aclIds; + for(int dep1 = 0; dep1!= aclIds.size(); dep1++) { + setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1)); + } +} + +std::string AssociateAclsWithListenerRequest::getAclType()const +{ + return aclType_; +} + +void AssociateAclsWithListenerRequest::setAclType(const std::string& aclType) +{ + aclType_ = aclType; + setParameter("AclType", aclType); +} + +std::string AssociateAclsWithListenerRequest::getListenerId()const +{ + return listenerId_; +} + +void AssociateAclsWithListenerRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string AssociateAclsWithListenerRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateAclsWithListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/AssociateAclsWithListenerResult.cc b/ga/src/model/AssociateAclsWithListenerResult.cc new file mode 100644 index 000000000..2b71bbce5 --- /dev/null +++ b/ga/src/model/AssociateAclsWithListenerResult.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; + +AssociateAclsWithListenerResult::AssociateAclsWithListenerResult() : + ServiceResult() +{} + +AssociateAclsWithListenerResult::AssociateAclsWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateAclsWithListenerResult::~AssociateAclsWithListenerResult() +{} + +void AssociateAclsWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclIds = value["AclIds"]["aclIds"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::vector AssociateAclsWithListenerResult::getAclIds()const +{ + return aclIds_; +} + +std::string AssociateAclsWithListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/AttachDdosToAcceleratorRequest.cc b/ga/src/model/AttachDdosToAcceleratorRequest.cc new file mode 100644 index 000000000..004fdefaf --- /dev/null +++ b/ga/src/model/AttachDdosToAcceleratorRequest.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::AttachDdosToAcceleratorRequest; + +AttachDdosToAcceleratorRequest::AttachDdosToAcceleratorRequest() : + RpcServiceRequest("ga", "2019-11-20", "AttachDdosToAccelerator") +{ + setMethod(HttpRequest::Method::Post); +} + +AttachDdosToAcceleratorRequest::~AttachDdosToAcceleratorRequest() +{} + +std::string AttachDdosToAcceleratorRequest::getDdosId()const +{ + return ddosId_; +} + +void AttachDdosToAcceleratorRequest::setDdosId(const std::string& ddosId) +{ + ddosId_ = ddosId; + setParameter("DdosId", ddosId); +} + +std::string AttachDdosToAcceleratorRequest::getRegionId()const +{ + return regionId_; +} + +void AttachDdosToAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AttachDdosToAcceleratorRequest::getDdosRegionId()const +{ + return ddosRegionId_; +} + +void AttachDdosToAcceleratorRequest::setDdosRegionId(const std::string& ddosRegionId) +{ + ddosRegionId_ = ddosRegionId; + setParameter("DdosRegionId", ddosRegionId); +} + +std::string AttachDdosToAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void AttachDdosToAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/AttachDdosToAcceleratorResult.cc b/ga/src/model/AttachDdosToAcceleratorResult.cc new file mode 100644 index 000000000..40a57d3db --- /dev/null +++ b/ga/src/model/AttachDdosToAcceleratorResult.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; + +AttachDdosToAcceleratorResult::AttachDdosToAcceleratorResult() : + ServiceResult() +{} + +AttachDdosToAcceleratorResult::AttachDdosToAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachDdosToAcceleratorResult::~AttachDdosToAcceleratorResult() +{} + +void AttachDdosToAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DdosId"].isNull()) + ddosId_ = value["DdosId"].asString(); + if(!value["GaId"].isNull()) + gaId_ = value["GaId"].asString(); + +} + +std::string AttachDdosToAcceleratorResult::getDdosId()const +{ + return ddosId_; +} + +std::string AttachDdosToAcceleratorResult::getGaId()const +{ + return gaId_; +} + diff --git a/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc b/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc new file mode 100644 index 000000000..71ee3dd82 --- /dev/null +++ b/ga/src/model/AttachLogStoreToEndpointGroupRequest.cc @@ -0,0 +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. + */ + +#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_; +} + +void AttachLogStoreToEndpointGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AttachLogStoreToEndpointGroupRequest::getSlsLogStoreName()const +{ + return slsLogStoreName_; +} + +void AttachLogStoreToEndpointGroupRequest::setSlsLogStoreName(const std::string& slsLogStoreName) +{ + slsLogStoreName_ = slsLogStoreName; + setParameter("SlsLogStoreName", slsLogStoreName); +} + +std::string AttachLogStoreToEndpointGroupRequest::getListenerId()const +{ + return listenerId_; +} + +void AttachLogStoreToEndpointGroupRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::vector AttachLogStoreToEndpointGroupRequest::getEndpointGroupIds()const +{ + return endpointGroupIds_; +} + +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::string AttachLogStoreToEndpointGroupRequest::getRegionId()const +{ + return regionId_; +} + +void AttachLogStoreToEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AttachLogStoreToEndpointGroupRequest::getSlsProjectName()const +{ + return slsProjectName_; +} + +void AttachLogStoreToEndpointGroupRequest::setSlsProjectName(const std::string& slsProjectName) +{ + slsProjectName_ = slsProjectName; + setParameter("SlsProjectName", slsProjectName); +} + +std::string AttachLogStoreToEndpointGroupRequest::getSlsRegionId()const +{ + return slsRegionId_; +} + +void AttachLogStoreToEndpointGroupRequest::setSlsRegionId(const std::string& slsRegionId) +{ + slsRegionId_ = slsRegionId; + setParameter("SlsRegionId", slsRegionId); +} + +std::string AttachLogStoreToEndpointGroupRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void AttachLogStoreToEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/AttachLogStoreToEndpointGroupResult.cc b/ga/src/model/AttachLogStoreToEndpointGroupResult.cc new file mode 100644 index 000000000..aec53f384 --- /dev/null +++ b/ga/src/model/AttachLogStoreToEndpointGroupResult.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; + +AttachLogStoreToEndpointGroupResult::AttachLogStoreToEndpointGroupResult() : + ServiceResult() +{} + +AttachLogStoreToEndpointGroupResult::AttachLogStoreToEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachLogStoreToEndpointGroupResult::~AttachLogStoreToEndpointGroupResult() +{} + +void AttachLogStoreToEndpointGroupResult::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/BandwidthPackageAddAcceleratorRequest.cc b/ga/src/model/BandwidthPackageAddAcceleratorRequest.cc new file mode 100644 index 000000000..f9f055caa --- /dev/null +++ b/ga/src/model/BandwidthPackageAddAcceleratorRequest.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::BandwidthPackageAddAcceleratorRequest; + +BandwidthPackageAddAcceleratorRequest::BandwidthPackageAddAcceleratorRequest() : + RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageAddAccelerator") +{ + setMethod(HttpRequest::Method::Post); +} + +BandwidthPackageAddAcceleratorRequest::~BandwidthPackageAddAcceleratorRequest() +{} + +std::string BandwidthPackageAddAcceleratorRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void BandwidthPackageAddAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string BandwidthPackageAddAcceleratorRequest::getRegionId()const +{ + return regionId_; +} + +void BandwidthPackageAddAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string BandwidthPackageAddAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void BandwidthPackageAddAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/BandwidthPackageAddAcceleratorResult.cc b/ga/src/model/BandwidthPackageAddAcceleratorResult.cc new file mode 100644 index 000000000..fa23096b0 --- /dev/null +++ b/ga/src/model/BandwidthPackageAddAcceleratorResult.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; + +BandwidthPackageAddAcceleratorResult::BandwidthPackageAddAcceleratorResult() : + ServiceResult() +{} + +BandwidthPackageAddAcceleratorResult::BandwidthPackageAddAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandwidthPackageAddAcceleratorResult::~BandwidthPackageAddAcceleratorResult() +{} + +void BandwidthPackageAddAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccelerators = value["Accelerators"]["Accelerator"]; + for (const auto &item : allAccelerators) + accelerators_.push_back(item.asString()); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + +} + +std::vector BandwidthPackageAddAcceleratorResult::getAccelerators()const +{ + return accelerators_; +} + +std::string BandwidthPackageAddAcceleratorResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + diff --git a/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc b/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.cc new file mode 100644 index 000000000..eec24c8c4 --- /dev/null +++ b/ga/src/model/BandwidthPackageRemoveAcceleratorRequest.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::BandwidthPackageRemoveAcceleratorRequest; + +BandwidthPackageRemoveAcceleratorRequest::BandwidthPackageRemoveAcceleratorRequest() : + RpcServiceRequest("ga", "2019-11-20", "BandwidthPackageRemoveAccelerator") +{ + setMethod(HttpRequest::Method::Post); +} + +BandwidthPackageRemoveAcceleratorRequest::~BandwidthPackageRemoveAcceleratorRequest() +{} + +std::string BandwidthPackageRemoveAcceleratorRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void BandwidthPackageRemoveAcceleratorRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string BandwidthPackageRemoveAcceleratorRequest::getRegionId()const +{ + return regionId_; +} + +void BandwidthPackageRemoveAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string BandwidthPackageRemoveAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void BandwidthPackageRemoveAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/BandwidthPackageRemoveAcceleratorResult.cc b/ga/src/model/BandwidthPackageRemoveAcceleratorResult.cc new file mode 100644 index 000000000..cdd0d66ba --- /dev/null +++ b/ga/src/model/BandwidthPackageRemoveAcceleratorResult.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; + +BandwidthPackageRemoveAcceleratorResult::BandwidthPackageRemoveAcceleratorResult() : + ServiceResult() +{} + +BandwidthPackageRemoveAcceleratorResult::BandwidthPackageRemoveAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BandwidthPackageRemoveAcceleratorResult::~BandwidthPackageRemoveAcceleratorResult() +{} + +void BandwidthPackageRemoveAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccelerators = value["Accelerators"]["Accelerator"]; + for (const auto &item : allAccelerators) + accelerators_.push_back(item.asString()); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + +} + +std::vector BandwidthPackageRemoveAcceleratorResult::getAccelerators()const +{ + return accelerators_; +} + +std::string BandwidthPackageRemoveAcceleratorResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + diff --git a/ga/src/model/ConfigEndpointProbeRequest.cc b/ga/src/model/ConfigEndpointProbeRequest.cc new file mode 100644 index 000000000..c27363ee7 --- /dev/null +++ b/ga/src/model/ConfigEndpointProbeRequest.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::ConfigEndpointProbeRequest; + +ConfigEndpointProbeRequest::ConfigEndpointProbeRequest() : + RpcServiceRequest("ga", "2019-11-20", "ConfigEndpointProbe") +{ + setMethod(HttpRequest::Method::Post); +} + +ConfigEndpointProbeRequest::~ConfigEndpointProbeRequest() +{} + +std::string ConfigEndpointProbeRequest::getClientToken()const +{ + return clientToken_; +} + +void ConfigEndpointProbeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ConfigEndpointProbeRequest::getEndpoint()const +{ + return endpoint_; +} + +void ConfigEndpointProbeRequest::setEndpoint(const std::string& endpoint) +{ + endpoint_ = endpoint; + setParameter("Endpoint", endpoint); +} + +std::string ConfigEndpointProbeRequest::getRegionId()const +{ + return regionId_; +} + +void ConfigEndpointProbeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ConfigEndpointProbeRequest::getEndpointType()const +{ + return endpointType_; +} + +void ConfigEndpointProbeRequest::setEndpointType(const std::string& endpointType) +{ + endpointType_ = endpointType; + setParameter("EndpointType", endpointType); +} + +std::string ConfigEndpointProbeRequest::getEnable()const +{ + return enable_; +} + +void ConfigEndpointProbeRequest::setEnable(const std::string& enable) +{ + enable_ = enable; + setParameter("Enable", enable); +} + +std::string ConfigEndpointProbeRequest::getProbeProtocol()const +{ + return probeProtocol_; +} + +void ConfigEndpointProbeRequest::setProbeProtocol(const std::string& probeProtocol) +{ + probeProtocol_ = probeProtocol; + setParameter("ProbeProtocol", probeProtocol); +} + +std::string ConfigEndpointProbeRequest::getProbePort()const +{ + return probePort_; +} + +void ConfigEndpointProbeRequest::setProbePort(const std::string& probePort) +{ + probePort_ = probePort; + setParameter("ProbePort", probePort); +} + +std::string ConfigEndpointProbeRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void ConfigEndpointProbeRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + diff --git a/ga/src/model/ConfigEndpointProbeResult.cc b/ga/src/model/ConfigEndpointProbeResult.cc new file mode 100644 index 000000000..3ea6c39f2 --- /dev/null +++ b/ga/src/model/ConfigEndpointProbeResult.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; + +ConfigEndpointProbeResult::ConfigEndpointProbeResult() : + ServiceResult() +{} + +ConfigEndpointProbeResult::ConfigEndpointProbeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfigEndpointProbeResult::~ConfigEndpointProbeResult() +{} + +void ConfigEndpointProbeResult::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/CreateAcceleratorRequest.cc b/ga/src/model/CreateAcceleratorRequest.cc new file mode 100644 index 000000000..bdeea9404 --- /dev/null +++ b/ga/src/model/CreateAcceleratorRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void CreateAcceleratorRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreateAcceleratorRequest::getPromotionOptionNo()const +{ + return promotionOptionNo_; +} + +void CreateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo) +{ + promotionOptionNo_ = promotionOptionNo; + setParameter("PromotionOptionNo", promotionOptionNo); +} + +std::string CreateAcceleratorRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateAcceleratorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateAcceleratorRequest::getAutoUseCoupon()const +{ + return autoUseCoupon_; +} + +void CreateAcceleratorRequest::setAutoUseCoupon(const std::string& autoUseCoupon) +{ + autoUseCoupon_ = autoUseCoupon; + setParameter("AutoUseCoupon", autoUseCoupon); +} + +std::string CreateAcceleratorRequest::getSpec()const +{ + return spec_; +} + +void CreateAcceleratorRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + +int CreateAcceleratorRequest::getDuration()const +{ + return duration_; +} + +void CreateAcceleratorRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string CreateAcceleratorRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateAcceleratorRequest::getName()const +{ + return name_; +} + +void CreateAcceleratorRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateAcceleratorRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateAcceleratorRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/ga/src/model/CreateAcceleratorResult.cc b/ga/src/model/CreateAcceleratorResult.cc new file mode 100644 index 000000000..812e94ed3 --- /dev/null +++ b/ga/src/model/CreateAcceleratorResult.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; + +CreateAcceleratorResult::CreateAcceleratorResult() : + ServiceResult() +{} + +CreateAcceleratorResult::CreateAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAcceleratorResult::~CreateAcceleratorResult() +{} + +void CreateAcceleratorResult::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 CreateAcceleratorResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateAclRequest.cc b/ga/src/model/CreateAclRequest.cc new file mode 100644 index 000000000..230b49063 --- /dev/null +++ b/ga/src/model/CreateAclRequest.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 + +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_; +} + +void CreateAclRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string CreateAclRequest::getAclName()const +{ + return aclName_; +} + +void CreateAclRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string CreateAclRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector CreateAclRequest::getAclEntries()const +{ + return aclEntries_; +} + +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::string CreateAclRequest::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +void CreateAclRequest::setAddressIPVersion(const std::string& addressIPVersion) +{ + addressIPVersion_ = addressIPVersion; + setParameter("AddressIPVersion", addressIPVersion); +} + +std::string CreateAclRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/CreateAclResult.cc b/ga/src/model/CreateAclResult.cc new file mode 100644 index 000000000..548e90832 --- /dev/null +++ b/ga/src/model/CreateAclResult.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; + +CreateAclResult::CreateAclResult() : + ServiceResult() +{} + +CreateAclResult::CreateAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAclResult::~CreateAclResult() +{} + +void CreateAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string CreateAclResult::getAclId()const +{ + return aclId_; +} + diff --git a/ga/src/model/CreateBandwidthPackageRequest.cc b/ga/src/model/CreateBandwidthPackageRequest.cc new file mode 100644 index 000000000..02bb04eff --- /dev/null +++ b/ga/src/model/CreateBandwidthPackageRequest.cc @@ -0,0 +1,194 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void CreateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType) +{ + bandwidthType_ = bandwidthType; + setParameter("BandwidthType", bandwidthType); +} + +std::string CreateBandwidthPackageRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateBandwidthPackageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateBandwidthPackageRequest::getAutoUseCoupon()const +{ + return autoUseCoupon_; +} + +void CreateBandwidthPackageRequest::setAutoUseCoupon(const std::string& autoUseCoupon) +{ + autoUseCoupon_ = autoUseCoupon; + setParameter("AutoUseCoupon", autoUseCoupon); +} + +std::string CreateBandwidthPackageRequest::getType()const +{ + return type_; +} + +void CreateBandwidthPackageRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string CreateBandwidthPackageRequest::getDuration()const +{ + return duration_; +} + +void CreateBandwidthPackageRequest::setDuration(const std::string& duration) +{ + duration_ = duration; + setParameter("Duration", duration); +} + +std::string CreateBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void CreateBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CreateBandwidthPackageRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreateBandwidthPackageRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string CreateBandwidthPackageRequest::getPromotionOptionNo()const +{ + return promotionOptionNo_; +} + +void CreateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo) +{ + promotionOptionNo_ = promotionOptionNo; + setParameter("PromotionOptionNo", promotionOptionNo); +} + +int CreateBandwidthPackageRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateBandwidthPackageRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdB()const +{ + return cbnGeographicRegionIdB_; +} + +void CreateBandwidthPackageRequest::setCbnGeographicRegionIdB(const std::string& cbnGeographicRegionIdB) +{ + cbnGeographicRegionIdB_ = cbnGeographicRegionIdB; + setParameter("CbnGeographicRegionIdB", cbnGeographicRegionIdB); +} + +std::string CreateBandwidthPackageRequest::getCbnGeographicRegionIdA()const +{ + return cbnGeographicRegionIdA_; +} + +void CreateBandwidthPackageRequest::setCbnGeographicRegionIdA(const std::string& cbnGeographicRegionIdA) +{ + cbnGeographicRegionIdA_ = cbnGeographicRegionIdA; + setParameter("CbnGeographicRegionIdA", cbnGeographicRegionIdA); +} + +std::string CreateBandwidthPackageRequest::getBillingType()const +{ + return billingType_; +} + +void CreateBandwidthPackageRequest::setBillingType(const std::string& billingType) +{ + billingType_ = billingType; + setParameter("BillingType", billingType); +} + +std::string CreateBandwidthPackageRequest::getChargeType()const +{ + return chargeType_; +} + +void CreateBandwidthPackageRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setParameter("ChargeType", chargeType); +} + +std::string CreateBandwidthPackageRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + +int CreateBandwidthPackageRequest::getRatio()const +{ + return ratio_; +} + +void CreateBandwidthPackageRequest::setRatio(int ratio) +{ + ratio_ = ratio; + setParameter("Ratio", std::to_string(ratio)); +} + diff --git a/ga/src/model/CreateBandwidthPackageResult.cc b/ga/src/model/CreateBandwidthPackageResult.cc new file mode 100644 index 000000000..99d4a55e4 --- /dev/null +++ b/ga/src/model/CreateBandwidthPackageResult.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; + +CreateBandwidthPackageResult::CreateBandwidthPackageResult() : + ServiceResult() +{} + +CreateBandwidthPackageResult::CreateBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBandwidthPackageResult::~CreateBandwidthPackageResult() +{} + +void CreateBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateBandwidthPackageResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +std::string CreateBandwidthPackageResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ga/src/model/CreateEndpointGroupRequest.cc b/ga/src/model/CreateEndpointGroupRequest.cc new file mode 100644 index 000000000..2b01cf87b --- /dev/null +++ b/ga/src/model/CreateEndpointGroupRequest.cc @@ -0,0 +1,229 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +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)); + } +} + +std::string CreateEndpointGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateEndpointGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int CreateEndpointGroupRequest::getHealthCheckIntervalSeconds()const +{ + return healthCheckIntervalSeconds_; +} + +void CreateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) +{ + healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; + setParameter("HealthCheckIntervalSeconds", std::to_string(healthCheckIntervalSeconds)); +} + +std::string CreateEndpointGroupRequest::getDescription()const +{ + return description_; +} + +void CreateEndpointGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateEndpointGroupRequest::getHealthCheckProtocol()const +{ + return healthCheckProtocol_; +} + +void CreateEndpointGroupRequest::setHealthCheckProtocol(const std::string& healthCheckProtocol) +{ + healthCheckProtocol_ = healthCheckProtocol; + setParameter("HealthCheckProtocol", healthCheckProtocol); +} + +std::string CreateEndpointGroupRequest::getEndpointRequestProtocol()const +{ + return endpointRequestProtocol_; +} + +void CreateEndpointGroupRequest::setEndpointRequestProtocol(const std::string& endpointRequestProtocol) +{ + endpointRequestProtocol_ = endpointRequestProtocol; + setParameter("EndpointRequestProtocol", endpointRequestProtocol); +} + +std::string CreateEndpointGroupRequest::getListenerId()const +{ + return listenerId_; +} + +void CreateEndpointGroupRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string CreateEndpointGroupRequest::getHealthCheckPath()const +{ + return healthCheckPath_; +} + +void CreateEndpointGroupRequest::setHealthCheckPath(const std::string& healthCheckPath) +{ + healthCheckPath_ = healthCheckPath; + setParameter("HealthCheckPath", healthCheckPath); +} + +std::vector CreateEndpointGroupRequest::getEndpointConfigurations()const +{ + return endpointConfigurations_; +} + +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::getRegionId()const +{ + return regionId_; +} + +void CreateEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateEndpointGroupRequest::getEndpointGroupType()const +{ + return endpointGroupType_; +} + +void CreateEndpointGroupRequest::setEndpointGroupType(const std::string& endpointGroupType) +{ + endpointGroupType_ = endpointGroupType; + setParameter("EndpointGroupType", endpointGroupType); +} + +std::string CreateEndpointGroupRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void CreateEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +int CreateEndpointGroupRequest::getTrafficPercentage()const +{ + return trafficPercentage_; +} + +void CreateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) +{ + trafficPercentage_ = trafficPercentage; + setParameter("TrafficPercentage", std::to_string(trafficPercentage)); +} + +int CreateEndpointGroupRequest::getHealthCheckPort()const +{ + return healthCheckPort_; +} + +void CreateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) +{ + healthCheckPort_ = healthCheckPort; + setParameter("HealthCheckPort", std::to_string(healthCheckPort)); +} + +int CreateEndpointGroupRequest::getThresholdCount()const +{ + return thresholdCount_; +} + +void CreateEndpointGroupRequest::setThresholdCount(int thresholdCount) +{ + thresholdCount_ = thresholdCount; + setParameter("ThresholdCount", std::to_string(thresholdCount)); +} + +std::string CreateEndpointGroupRequest::getEndpointGroupRegion()const +{ + return endpointGroupRegion_; +} + +void CreateEndpointGroupRequest::setEndpointGroupRegion(const std::string& endpointGroupRegion) +{ + endpointGroupRegion_ = endpointGroupRegion; + setParameter("EndpointGroupRegion", endpointGroupRegion); +} + +std::string CreateEndpointGroupRequest::getName()const +{ + return name_; +} + +void CreateEndpointGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ga/src/model/CreateEndpointGroupResult.cc b/ga/src/model/CreateEndpointGroupResult.cc new file mode 100644 index 000000000..ea9e203fe --- /dev/null +++ b/ga/src/model/CreateEndpointGroupResult.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; + +CreateEndpointGroupResult::CreateEndpointGroupResult() : + ServiceResult() +{} + +CreateEndpointGroupResult::CreateEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEndpointGroupResult::~CreateEndpointGroupResult() +{} + +void CreateEndpointGroupResult::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 CreateEndpointGroupResult::getEndpointGroupId()const +{ + return endpointGroupId_; +} + diff --git a/ga/src/model/CreateForwardingRulesRequest.cc b/ga/src/model/CreateForwardingRulesRequest.cc new file mode 100644 index 000000000..2bbc8cbe9 --- /dev/null +++ b/ga/src/model/CreateForwardingRulesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::CreateForwardingRulesRequest; + +CreateForwardingRulesRequest::CreateForwardingRulesRequest() : + RpcServiceRequest("ga", "2019-11-20", "CreateForwardingRules") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateForwardingRulesRequest::~CreateForwardingRulesRequest() +{} + +std::string CreateForwardingRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateForwardingRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateForwardingRulesRequest::getListenerId()const +{ + return listenerId_; +} + +void CreateForwardingRulesRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string CreateForwardingRulesRequest::getRegionId()const +{ + return regionId_; +} + +void CreateForwardingRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateForwardingRulesRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void CreateForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +Array CreateForwardingRulesRequest::getForwardingRules()const +{ + return forwardingRules_; +} + +void CreateForwardingRulesRequest::setForwardingRules(const Array& forwardingRules) +{ + forwardingRules_ = forwardingRules; + setParameter("ForwardingRules", std::to_string(forwardingRules)); +} + diff --git a/ga/src/model/CreateForwardingRulesResult.cc b/ga/src/model/CreateForwardingRulesResult.cc new file mode 100644 index 000000000..11e05bc77 --- /dev/null +++ b/ga/src/model/CreateForwardingRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateForwardingRulesResult::CreateForwardingRulesResult() : + ServiceResult() +{} + +CreateForwardingRulesResult::CreateForwardingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateForwardingRulesResult::~CreateForwardingRulesResult() +{} + +void CreateForwardingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"]; + for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode) + { + ForwardingRulesItem forwardingRulesObject; + if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull()) + forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString(); + forwardingRules_.push_back(forwardingRulesObject); + } + +} + +std::vector CreateForwardingRulesResult::getForwardingRules()const +{ + return forwardingRules_; +} + diff --git a/ga/src/model/CreateIpSetsRequest.cc b/ga/src/model/CreateIpSetsRequest.cc new file mode 100644 index 000000000..23412f64e --- /dev/null +++ b/ga/src/model/CreateIpSetsRequest.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::CreateIpSetsRequest; + +CreateIpSetsRequest::CreateIpSetsRequest() : + RpcServiceRequest("ga", "2019-11-20", "CreateIpSets") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateIpSetsRequest::~CreateIpSetsRequest() +{} + +std::string CreateIpSetsRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateIpSetsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateIpSetsRequest::getRegionId()const +{ + return regionId_; +} + +void CreateIpSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateIpSetsRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void CreateIpSetsRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +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 = "AccelerateRegion." + std::to_string(dep1 + 1); + setParameter(accelerateRegionObjStr + ".AccelerateRegionId", accelerateRegionObj.accelerateRegionId); + setParameter(accelerateRegionObjStr + ".IpVersion", accelerateRegionObj.ipVersion); + setParameter(accelerateRegionObjStr + ".Bandwidth", std::to_string(accelerateRegionObj.bandwidth)); + } +} + diff --git a/ga/src/model/CreateIpSetsResult.cc b/ga/src/model/CreateIpSetsResult.cc new file mode 100644 index 000000000..66066fb16 --- /dev/null +++ b/ga/src/model/CreateIpSetsResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +CreateIpSetsResult::CreateIpSetsResult() : + ServiceResult() +{} + +CreateIpSetsResult::CreateIpSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateIpSetsResult::~CreateIpSetsResult() +{} + +void CreateIpSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpSetsNode = value["IpSets"]["GaIpSet"]; + 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(); + auto allIpList = value["IpList"]["IpList"]; + for (auto value : allIpList) + ipSetsObject.ipList.push_back(value.asString()); + ipSets_.push_back(ipSetsObject); + } + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::vector CreateIpSetsResult::getIpSets()const +{ + return ipSets_; +} + +std::string CreateIpSetsResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/CreateListenerRequest.cc b/ga/src/model/CreateListenerRequest.cc new file mode 100644 index 000000000..f6d14ddc8 --- /dev/null +++ b/ga/src/model/CreateListenerRequest.cc @@ -0,0 +1,164 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void CreateListenerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateListenerRequest::getDescription()const +{ + return description_; +} + +void CreateListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::vector CreateListenerRequest::getBackendPorts()const +{ + return backendPorts_; +} + +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::string CreateListenerRequest::getProtocol()const +{ + return protocol_; +} + +void CreateListenerRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setParameter("Protocol", protocol); +} + +std::string CreateListenerRequest::getRegionId()const +{ + return regionId_; +} + +void CreateListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateListenerRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void CreateListenerRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +bool CreateListenerRequest::getProxyProtocol()const +{ + return proxyProtocol_; +} + +void CreateListenerRequest::setProxyProtocol(bool proxyProtocol) +{ + proxyProtocol_ = proxyProtocol; + setParameter("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 = "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 = "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("Name", name); +} + +std::string CreateListenerRequest::getClientAffinity()const +{ + return clientAffinity_; +} + +void CreateListenerRequest::setClientAffinity(const std::string& clientAffinity) +{ + clientAffinity_ = clientAffinity; + setParameter("ClientAffinity", clientAffinity); +} + diff --git a/ga/src/model/CreateListenerResult.cc b/ga/src/model/CreateListenerResult.cc new file mode 100644 index 000000000..e5158545c --- /dev/null +++ b/ga/src/model/CreateListenerResult.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; + +CreateListenerResult::CreateListenerResult() : + ServiceResult() +{} + +CreateListenerResult::CreateListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateListenerResult::~CreateListenerResult() +{} + +void CreateListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::string CreateListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DeleteAcceleratorRequest.cc b/ga/src/model/DeleteAcceleratorRequest.cc new file mode 100644 index 000000000..67838105e --- /dev/null +++ b/ga/src/model/DeleteAcceleratorRequest.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 + +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_; +} + +void DeleteAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DeleteAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DeleteAcceleratorResult.cc b/ga/src/model/DeleteAcceleratorResult.cc new file mode 100644 index 000000000..1ccb77485 --- /dev/null +++ b/ga/src/model/DeleteAcceleratorResult.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; + +DeleteAcceleratorResult::DeleteAcceleratorResult() : + ServiceResult() +{} + +DeleteAcceleratorResult::DeleteAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAcceleratorResult::~DeleteAcceleratorResult() +{} + +void DeleteAcceleratorResult::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 DeleteAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/DeleteAclRequest.cc b/ga/src/model/DeleteAclRequest.cc new file mode 100644 index 000000000..59694ceaa --- /dev/null +++ b/ga/src/model/DeleteAclRequest.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::DeleteAclRequest; + +DeleteAclRequest::DeleteAclRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteAcl") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteAclRequest::~DeleteAclRequest() +{} + +std::string DeleteAclRequest::getAclId()const +{ + return aclId_; +} + +void DeleteAclRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +bool DeleteAclRequest::getDryRun()const +{ + return dryRun_; +} + +void DeleteAclRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DeleteAclRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteAclRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DeleteAclResult.cc b/ga/src/model/DeleteAclResult.cc new file mode 100644 index 000000000..b15e3ee79 --- /dev/null +++ b/ga/src/model/DeleteAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteAclResult::DeleteAclResult() : + ServiceResult() +{} + +DeleteAclResult::DeleteAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAclResult::~DeleteAclResult() +{} + +void DeleteAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string DeleteAclResult::getAclId()const +{ + return aclId_; +} + diff --git a/ga/src/model/DeleteBandwidthPackageRequest.cc b/ga/src/model/DeleteBandwidthPackageRequest.cc new file mode 100644 index 000000000..d8a248cbb --- /dev/null +++ b/ga/src/model/DeleteBandwidthPackageRequest.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::DeleteBandwidthPackageRequest; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteBandwidthPackage") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() +{} + +std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DeleteBandwidthPackageRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteBandwidthPackageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DeleteBandwidthPackageResult.cc b/ga/src/model/DeleteBandwidthPackageResult.cc new file mode 100644 index 000000000..06b741f65 --- /dev/null +++ b/ga/src/model/DeleteBandwidthPackageResult.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; + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : + ServiceResult() +{} + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() +{} + +void DeleteBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + +} + +std::string DeleteBandwidthPackageResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + diff --git a/ga/src/model/DeleteEndpointGroupRequest.cc b/ga/src/model/DeleteEndpointGroupRequest.cc new file mode 100644 index 000000000..584967be7 --- /dev/null +++ b/ga/src/model/DeleteEndpointGroupRequest.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::DeleteEndpointGroupRequest; + +DeleteEndpointGroupRequest::DeleteEndpointGroupRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteEndpointGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteEndpointGroupRequest::~DeleteEndpointGroupRequest() +{} + +std::string DeleteEndpointGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteEndpointGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteEndpointGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteEndpointGroupRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DeleteEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +std::string DeleteEndpointGroupRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void DeleteEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + diff --git a/ga/src/model/DeleteEndpointGroupResult.cc b/ga/src/model/DeleteEndpointGroupResult.cc new file mode 100644 index 000000000..e46fde18c --- /dev/null +++ b/ga/src/model/DeleteEndpointGroupResult.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; + +DeleteEndpointGroupResult::DeleteEndpointGroupResult() : + ServiceResult() +{} + +DeleteEndpointGroupResult::DeleteEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEndpointGroupResult::~DeleteEndpointGroupResult() +{} + +void DeleteEndpointGroupResult::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 new file mode 100644 index 000000000..f1b7739e2 --- /dev/null +++ b/ga/src/model/DeleteForwardingRulesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::DeleteForwardingRulesRequest; + +DeleteForwardingRulesRequest::DeleteForwardingRulesRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteForwardingRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteForwardingRulesRequest::~DeleteForwardingRulesRequest() +{} + +std::string DeleteForwardingRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteForwardingRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteForwardingRulesRequest::getListenerId()const +{ + return listenerId_; +} + +void DeleteForwardingRulesRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string DeleteForwardingRulesRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteForwardingRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteForwardingRulesRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DeleteForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +Array DeleteForwardingRulesRequest::getForwardingRuleIds()const +{ + return forwardingRuleIds_; +} + +void DeleteForwardingRulesRequest::setForwardingRuleIds(const Array& forwardingRuleIds) +{ + forwardingRuleIds_ = forwardingRuleIds; + setParameter("ForwardingRuleIds", std::to_string(forwardingRuleIds)); +} + diff --git a/ga/src/model/DeleteForwardingRulesResult.cc b/ga/src/model/DeleteForwardingRulesResult.cc new file mode 100644 index 000000000..b1a6a32b8 --- /dev/null +++ b/ga/src/model/DeleteForwardingRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DeleteForwardingRulesResult::DeleteForwardingRulesResult() : + ServiceResult() +{} + +DeleteForwardingRulesResult::DeleteForwardingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteForwardingRulesResult::~DeleteForwardingRulesResult() +{} + +void DeleteForwardingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"]; + for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode) + { + ForwardingRulesItem forwardingRulesObject; + if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull()) + forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString(); + forwardingRules_.push_back(forwardingRulesObject); + } + +} + +std::vector DeleteForwardingRulesResult::getForwardingRules()const +{ + return forwardingRules_; +} + diff --git a/ga/src/model/DeleteIpSetRequest.cc b/ga/src/model/DeleteIpSetRequest.cc new file mode 100644 index 000000000..e14e8b331 --- /dev/null +++ b/ga/src/model/DeleteIpSetRequest.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::DeleteIpSetRequest; + +DeleteIpSetRequest::DeleteIpSetRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteIpSet") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteIpSetRequest::~DeleteIpSetRequest() +{} + +std::string DeleteIpSetRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteIpSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteIpSetRequest::getIpSetId()const +{ + return ipSetId_; +} + +void DeleteIpSetRequest::setIpSetId(const std::string& ipSetId) +{ + ipSetId_ = ipSetId; + setParameter("IpSetId", ipSetId); +} + +std::string DeleteIpSetRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteIpSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteIpSetRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DeleteIpSetRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DeleteIpSetResult.cc b/ga/src/model/DeleteIpSetResult.cc new file mode 100644 index 000000000..2da9fbf5a --- /dev/null +++ b/ga/src/model/DeleteIpSetResult.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; + +DeleteIpSetResult::DeleteIpSetResult() : + ServiceResult() +{} + +DeleteIpSetResult::DeleteIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIpSetResult::~DeleteIpSetResult() +{} + +void DeleteIpSetResult::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/DeleteIpSetsRequest.cc b/ga/src/model/DeleteIpSetsRequest.cc new file mode 100644 index 000000000..5306a14dd --- /dev/null +++ b/ga/src/model/DeleteIpSetsRequest.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::DeleteIpSetsRequest; + +DeleteIpSetsRequest::DeleteIpSetsRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteIpSets") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteIpSetsRequest::~DeleteIpSetsRequest() +{} + +std::vector DeleteIpSetsRequest::getIpSetIds()const +{ + return ipSetIds_; +} + +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)); + } +} + +std::string DeleteIpSetsRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteIpSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DeleteIpSetsResult.cc b/ga/src/model/DeleteIpSetsResult.cc new file mode 100644 index 000000000..bdcf49674 --- /dev/null +++ b/ga/src/model/DeleteIpSetsResult.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; + +DeleteIpSetsResult::DeleteIpSetsResult() : + ServiceResult() +{} + +DeleteIpSetsResult::DeleteIpSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteIpSetsResult::~DeleteIpSetsResult() +{} + +void DeleteIpSetsResult::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/DeleteListenerRequest.cc b/ga/src/model/DeleteListenerRequest.cc new file mode 100644 index 000000000..17599d8ad --- /dev/null +++ b/ga/src/model/DeleteListenerRequest.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::DeleteListenerRequest; + +DeleteListenerRequest::DeleteListenerRequest() : + RpcServiceRequest("ga", "2019-11-20", "DeleteListener") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteListenerRequest::~DeleteListenerRequest() +{} + +std::string DeleteListenerRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteListenerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteListenerRequest::getListenerId()const +{ + return listenerId_; +} + +void DeleteListenerRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string DeleteListenerRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteListenerRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DeleteListenerRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DeleteListenerResult.cc b/ga/src/model/DeleteListenerResult.cc new file mode 100644 index 000000000..98334f175 --- /dev/null +++ b/ga/src/model/DeleteListenerResult.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; + +DeleteListenerResult::DeleteListenerResult() : + ServiceResult() +{} + +DeleteListenerResult::DeleteListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteListenerResult::~DeleteListenerResult() +{} + +void DeleteListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ga/src/model/DescribeAcceleratorRequest.cc b/ga/src/model/DescribeAcceleratorRequest.cc new file mode 100644 index 000000000..07e1902f9 --- /dev/null +++ b/ga/src/model/DescribeAcceleratorRequest.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 + +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_; +} + +void DescribeAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DescribeAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DescribeAcceleratorResult.cc b/ga/src/model/DescribeAcceleratorResult.cc new file mode 100644 index 000000000..f8bbd7fd1 --- /dev/null +++ b/ga/src/model/DescribeAcceleratorResult.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribeAcceleratorResult::DescribeAcceleratorResult() : + ServiceResult() +{} + +DescribeAcceleratorResult::DescribeAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAcceleratorResult::~DescribeAcceleratorResult() +{} + +void DescribeAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + 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()); + if(!value["DdosId"].isNull()) + ddosId_ = value["DdosId"].asString(); + if(!value["DnsName"].isNull()) + dnsName_ = value["DnsName"].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["SecondDnsName"].isNull()) + secondDnsName_ = value["SecondDnsName"].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["Spec"].isNull()) + spec_ = value["Spec"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string DescribeAcceleratorResult::getDdosId()const +{ + return ddosId_; +} + +std::string DescribeAcceleratorResult::getDnsName()const +{ + return dnsName_; +} + +std::string DescribeAcceleratorResult::getDescription()const +{ + return description_; +} + +std::string DescribeAcceleratorResult::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +long DescribeAcceleratorResult::getCreateTime()const +{ + return createTime_; +} + +DescribeAcceleratorResult::CrossDomainBandwidthPackage DescribeAcceleratorResult::getCrossDomainBandwidthPackage()const +{ + return crossDomainBandwidthPackage_; +} + +std::string DescribeAcceleratorResult::getSecondDnsName()const +{ + return secondDnsName_; +} + +std::string DescribeAcceleratorResult::getName()const +{ + return name_; +} + +DescribeAcceleratorResult::BasicBandwidthPackage DescribeAcceleratorResult::getBasicBandwidthPackage()const +{ + return basicBandwidthPackage_; +} + +std::string DescribeAcceleratorResult::getState()const +{ + return state_; +} + +long DescribeAcceleratorResult::getExpiredTime()const +{ + return expiredTime_; +} + +std::string DescribeAcceleratorResult::getCenId()const +{ + return cenId_; +} + +std::string DescribeAcceleratorResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeAcceleratorResult::getSpec()const +{ + return spec_; +} + +std::string DescribeAcceleratorResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/DescribeBandwidthPackageRequest.cc b/ga/src/model/DescribeBandwidthPackageRequest.cc new file mode 100644 index 000000000..6ff103db8 --- /dev/null +++ b/ga/src/model/DescribeBandwidthPackageRequest.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 + +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_; +} + +void DescribeBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DescribeBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DescribeBandwidthPackageResult.cc b/ga/src/model/DescribeBandwidthPackageResult.cc new file mode 100644 index 000000000..ed2b6adf8 --- /dev/null +++ b/ga/src/model/DescribeBandwidthPackageResult.cc @@ -0,0 +1,157 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribeBandwidthPackageResult::DescribeBandwidthPackageResult() : + ServiceResult() +{} + +DescribeBandwidthPackageResult::DescribeBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackageResult::~DescribeBandwidthPackageResult() +{} + +void DescribeBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + 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["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["BandwidthType"].isNull()) + 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["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].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(); + +} + +std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdB()const +{ + return cbnGeographicRegionIdB_; +} + +std::string DescribeBandwidthPackageResult::getDescription()const +{ + return description_; +} + +std::string DescribeBandwidthPackageResult::getCbnGeographicRegionIdA()const +{ + return cbnGeographicRegionIdA_; +} + +std::string DescribeBandwidthPackageResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeBandwidthPackageResult::getName()const +{ + return name_; +} + +std::string DescribeBandwidthPackageResult::getBandwidthType()const +{ + return bandwidthType_; +} + +std::string DescribeBandwidthPackageResult::getType()const +{ + return type_; +} + +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 +{ + return expiredTime_; +} + +int DescribeBandwidthPackageResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeBandwidthPackageResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +int DescribeBandwidthPackageResult::getRatio()const +{ + return ratio_; +} + +std::string DescribeBandwidthPackageResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeBandwidthPackageResult::getBillingType()const +{ + return billingType_; +} + diff --git a/ga/src/model/DescribeEndpointGroupRequest.cc b/ga/src/model/DescribeEndpointGroupRequest.cc new file mode 100644 index 000000000..35e2e8555 --- /dev/null +++ b/ga/src/model/DescribeEndpointGroupRequest.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 + +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_; +} + +void DescribeEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeEndpointGroupRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void DescribeEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + diff --git a/ga/src/model/DescribeEndpointGroupResult.cc b/ga/src/model/DescribeEndpointGroupResult.cc new file mode 100644 index 000000000..450066ba4 --- /dev/null +++ b/ga/src/model/DescribeEndpointGroupResult.cc @@ -0,0 +1,239 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribeEndpointGroupResult::DescribeEndpointGroupResult() : + ServiceResult() +{} + +DescribeEndpointGroupResult::DescribeEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEndpointGroupResult::~DescribeEndpointGroupResult() +{} + +void DescribeEndpointGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPortOverridesNode = value["PortOverrides"]["PortOverridesItem"]; + for (auto valuePortOverridesPortOverridesItem : allPortOverridesNode) + { + PortOverridesItem portOverridesObject; + if(!valuePortOverridesPortOverridesItem["ListenerPort"].isNull()) + portOverridesObject.listenerPort = std::stoi(valuePortOverridesPortOverridesItem["ListenerPort"].asString()); + if(!valuePortOverridesPortOverridesItem["EndpointPort"].isNull()) + portOverridesObject.endpointPort = std::stoi(valuePortOverridesPortOverridesItem["EndpointPort"].asString()); + portOverrides_.push_back(portOverridesObject); + } + auto allEndpointConfigurationsNode = value["EndpointConfigurations"]["EndpointConfigurationsItem"]; + for (auto valueEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + { + 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); + } + auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"]; + for (const auto &item : allForwardingRuleIds) + forwardingRuleIds_.push_back(item.asString()); + if(!value["HealthCheckIntervalSeconds"].isNull()) + 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["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["EndpointGroupType"].isNull()) + endpointGroupType_ = value["EndpointGroupType"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +int DescribeEndpointGroupResult::getHealthCheckIntervalSeconds()const +{ + return healthCheckIntervalSeconds_; +} + +std::vector DescribeEndpointGroupResult::getForwardingRuleIds()const +{ + return forwardingRuleIds_; +} + +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 +{ + return slsRegion_; +} + +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_; +} + +std::string DescribeEndpointGroupResult::getName()const +{ + return name_; +} + +std::vector DescribeEndpointGroupResult::getPortOverrides()const +{ + return portOverrides_; +} + +bool DescribeEndpointGroupResult::getEnableAccessLog()const +{ + return enableAccessLog_; +} + +int DescribeEndpointGroupResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeEndpointGroupResult::getEndpointGroupRegion()const +{ + return endpointGroupRegion_; +} + +std::string DescribeEndpointGroupResult::getSlsProjectName()const +{ + return slsProjectName_; +} + +std::string DescribeEndpointGroupResult::getState()const +{ + return state_; +} + +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 +{ + return acceleratorId_; +} + +std::string DescribeEndpointGroupResult::getEndpointGroupType()const +{ + return endpointGroupType_; +} + +std::string DescribeEndpointGroupResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeIpSetRequest.cc b/ga/src/model/DescribeIpSetRequest.cc new file mode 100644 index 000000000..0606defbd --- /dev/null +++ b/ga/src/model/DescribeIpSetRequest.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 + +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_; +} + +void DescribeIpSetRequest::setIpSetId(const std::string& ipSetId) +{ + ipSetId_ = ipSetId; + setParameter("IpSetId", ipSetId); +} + +std::string DescribeIpSetRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeIpSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DescribeIpSetResult.cc b/ga/src/model/DescribeIpSetResult.cc new file mode 100644 index 000000000..61c03e69f --- /dev/null +++ b/ga/src/model/DescribeIpSetResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +DescribeIpSetResult::DescribeIpSetResult() : + ServiceResult() +{} + +DescribeIpSetResult::DescribeIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpSetResult::~DescribeIpSetResult() +{} + +void DescribeIpSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpAddressList = value["IpAddressList"]["IpAddressList"]; + for (const auto &item : allIpAddressList) + ipAddressList_.push_back(item.asString()); + if(!value["IpSetId"].isNull()) + ipSetId_ = value["IpSetId"].asString(); + if(!value["IpVersion"].isNull()) + ipVersion_ = value["IpVersion"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["AccelerateRegionId"].isNull()) + accelerateRegionId_ = value["AccelerateRegionId"].asString(); + if(!value["AcceleratorId"].isNull()) + acceleratorId_ = value["AcceleratorId"].asString(); + +} + +std::string DescribeIpSetResult::getIpSetId()const +{ + return ipSetId_; +} + +std::string DescribeIpSetResult::getIpVersion()const +{ + return ipVersion_; +} + +std::string DescribeIpSetResult::getState()const +{ + return state_; +} + +int DescribeIpSetResult::getBandwidth()const +{ + return bandwidth_; +} + +std::vector DescribeIpSetResult::getIpAddressList()const +{ + return ipAddressList_; +} + +std::string DescribeIpSetResult::getAccelerateRegionId()const +{ + return accelerateRegionId_; +} + +std::string DescribeIpSetResult::getAcceleratorId()const +{ + return acceleratorId_; +} + diff --git a/ga/src/model/DescribeListenerRequest.cc b/ga/src/model/DescribeListenerRequest.cc new file mode 100644 index 000000000..c1fdd3aca --- /dev/null +++ b/ga/src/model/DescribeListenerRequest.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 + +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_; +} + +void DescribeListenerRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string DescribeListenerRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DescribeListenerResult.cc b/ga/src/model/DescribeListenerResult.cc new file mode 100644 index 000000000..7a0c9f241 --- /dev/null +++ b/ga/src/model/DescribeListenerResult.cc @@ -0,0 +1,174 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +DescribeListenerResult::DescribeListenerResult() : + ServiceResult() +{} + +DescribeListenerResult::DescribeListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeListenerResult::~DescribeListenerResult() +{} + +void DescribeListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + 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) + { + 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); + } + auto allCertificatesNode = value["Certificates"]["Certificate"]; + for (auto valueCertificatesCertificate : allCertificatesNode) + { + Certificate certificatesObject; + if(!valueCertificatesCertificate["Type"].isNull()) + certificatesObject.type = valueCertificatesCertificate["Type"].asString(); + if(!valueCertificatesCertificate["Id"].isNull()) + certificatesObject.id = valueCertificatesCertificate["Id"].asString(); + certificates_.push_back(certificatesObject); + } + auto allRelatedAclsNode = value["RelatedAcls"]["relatedAclsItem"]; + for (auto valueRelatedAclsrelatedAclsItem : allRelatedAclsNode) + { + RelatedAclsItem relatedAclsObject; + if(!valueRelatedAclsrelatedAclsItem["Status"].isNull()) + relatedAclsObject.status = valueRelatedAclsrelatedAclsItem["Status"].asString(); + if(!valueRelatedAclsrelatedAclsItem["AclId"].isNull()) + relatedAclsObject.aclId = valueRelatedAclsrelatedAclsItem["AclId"].asString(); + relatedAcls_.push_back(relatedAclsObject); + } + 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(); + +} + +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 +{ + return proxyProtocol_; +} + +std::string DescribeListenerResult::getCreateTime()const +{ + return createTime_; +} + +std::vector DescribeListenerResult::getCertificates()const +{ + return certificates_; +} + +std::vector DescribeListenerResult::getRelatedAcls()const +{ + return relatedAcls_; +} + +std::string DescribeListenerResult::getName()const +{ + return name_; +} + +std::string DescribeListenerResult::getState()const +{ + return state_; +} + +std::string DescribeListenerResult::getAclType()const +{ + return aclType_; +} + +std::string DescribeListenerResult::getProtocol()const +{ + return protocol_; +} + +std::string DescribeListenerResult::getAcceleratorId()const +{ + return acceleratorId_; +} + +std::string DescribeListenerResult::getClientAffinity()const +{ + return clientAffinity_; +} + +std::string DescribeListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/DescribeRegionsRequest.cc b/ga/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..f84cca22e --- /dev/null +++ b/ga/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void DescribeRegionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DescribeRegionsResult.cc b/ga/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..dd82075fe --- /dev/null +++ b/ga/src/model/DescribeRegionsResult.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; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["RegionsItem"]; + for (auto valueRegionsRegionsItem : allRegionsNode) + { + RegionsItem regionsObject; + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); + if(!valueRegionsRegionsItem["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/ga/src/model/DetachDdosFromAcceleratorRequest.cc b/ga/src/model/DetachDdosFromAcceleratorRequest.cc new file mode 100644 index 000000000..893cecca1 --- /dev/null +++ b/ga/src/model/DetachDdosFromAcceleratorRequest.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 + +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_; +} + +void DetachDdosFromAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DetachDdosFromAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DetachDdosFromAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DetachDdosFromAcceleratorResult.cc b/ga/src/model/DetachDdosFromAcceleratorResult.cc new file mode 100644 index 000000000..05b4d43e3 --- /dev/null +++ b/ga/src/model/DetachDdosFromAcceleratorResult.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; + +DetachDdosFromAcceleratorResult::DetachDdosFromAcceleratorResult() : + ServiceResult() +{} + +DetachDdosFromAcceleratorResult::DetachDdosFromAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachDdosFromAcceleratorResult::~DetachDdosFromAcceleratorResult() +{} + +void DetachDdosFromAcceleratorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DdosId"].isNull()) + ddosId_ = value["DdosId"].asString(); + +} + +std::string DetachDdosFromAcceleratorResult::getDdosId()const +{ + return ddosId_; +} + diff --git a/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc b/ga/src/model/DetachLogStoreFromEndpointGroupRequest.cc new file mode 100644 index 000000000..5134f959d --- /dev/null +++ b/ga/src/model/DetachLogStoreFromEndpointGroupRequest.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 + +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_; +} + +void DetachLogStoreFromEndpointGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DetachLogStoreFromEndpointGroupRequest::getListenerId()const +{ + return listenerId_; +} + +void DetachLogStoreFromEndpointGroupRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::vector DetachLogStoreFromEndpointGroupRequest::getEndpointGroupIds()const +{ + return endpointGroupIds_; +} + +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::string DetachLogStoreFromEndpointGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DetachLogStoreFromEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DetachLogStoreFromEndpointGroupRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void DetachLogStoreFromEndpointGroupRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/DetachLogStoreFromEndpointGroupResult.cc b/ga/src/model/DetachLogStoreFromEndpointGroupResult.cc new file mode 100644 index 000000000..c52c80599 --- /dev/null +++ b/ga/src/model/DetachLogStoreFromEndpointGroupResult.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; + +DetachLogStoreFromEndpointGroupResult::DetachLogStoreFromEndpointGroupResult() : + ServiceResult() +{} + +DetachLogStoreFromEndpointGroupResult::DetachLogStoreFromEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachLogStoreFromEndpointGroupResult::~DetachLogStoreFromEndpointGroupResult() +{} + +void DetachLogStoreFromEndpointGroupResult::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 new file mode 100644 index 000000000..a30e0c0e5 --- /dev/null +++ b/ga/src/model/DissociateAclsFromListenerRequest.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 + +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_; +} + +void DissociateAclsFromListenerRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string DissociateAclsFromListenerRequest::getClientToken()const +{ + return clientToken_; +} + +void DissociateAclsFromListenerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector DissociateAclsFromListenerRequest::getAclIds()const +{ + return aclIds_; +} + +void DissociateAclsFromListenerRequest::setAclIds(const std::vector& aclIds) +{ + aclIds_ = aclIds; + for(int dep1 = 0; dep1!= aclIds.size(); dep1++) { + setParameter("AclIds."+ std::to_string(dep1), aclIds.at(dep1)); + } +} + +std::string DissociateAclsFromListenerRequest::getListenerId()const +{ + return listenerId_; +} + +void DissociateAclsFromListenerRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string DissociateAclsFromListenerRequest::getRegionId()const +{ + return regionId_; +} + +void DissociateAclsFromListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/DissociateAclsFromListenerResult.cc b/ga/src/model/DissociateAclsFromListenerResult.cc new file mode 100644 index 000000000..1961b4c59 --- /dev/null +++ b/ga/src/model/DissociateAclsFromListenerResult.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; + +DissociateAclsFromListenerResult::DissociateAclsFromListenerResult() : + ServiceResult() +{} + +DissociateAclsFromListenerResult::DissociateAclsFromListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DissociateAclsFromListenerResult::~DissociateAclsFromListenerResult() +{} + +void DissociateAclsFromListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclIds = value["AclIds"]["aclIds"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + +} + +std::vector DissociateAclsFromListenerResult::getAclIds()const +{ + return aclIds_; +} + +std::string DissociateAclsFromListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/ga/src/model/GetAclRequest.cc b/ga/src/model/GetAclRequest.cc new file mode 100644 index 000000000..2c79cb535 --- /dev/null +++ b/ga/src/model/GetAclRequest.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 + +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_; +} + +void GetAclRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +std::string GetAclRequest::getRegionId()const +{ + return regionId_; +} + +void GetAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/GetAclResult.cc b/ga/src/model/GetAclResult.cc new file mode 100644 index 000000000..9352c38b3 --- /dev/null +++ b/ga/src/model/GetAclResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +GetAclResult::GetAclResult() : + ServiceResult() +{} + +GetAclResult::GetAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAclResult::~GetAclResult() +{} + +void GetAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclEntriesNode = value["AclEntries"]["AclEntriesItem"]; + for (auto valueAclEntriesAclEntriesItem : allAclEntriesNode) + { + AclEntriesItem aclEntriesObject; + if(!valueAclEntriesAclEntriesItem["Entry"].isNull()) + aclEntriesObject.entry = valueAclEntriesAclEntriesItem["Entry"].asString(); + if(!valueAclEntriesAclEntriesItem["EntryDescription"].isNull()) + aclEntriesObject.entryDescription = valueAclEntriesAclEntriesItem["EntryDescription"].asString(); + aclEntries_.push_back(aclEntriesObject); + } + auto allRelatedListenersNode = value["RelatedListeners"]["RelatedListenersItem"]; + for (auto valueRelatedListenersRelatedListenersItem : allRelatedListenersNode) + { + RelatedListenersItem relatedListenersObject; + 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(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AclName"].isNull()) + aclName_ = value["AclName"].asString(); + +} + +std::vector GetAclResult::getAclEntries()const +{ + return aclEntries_; +} + +std::string GetAclResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string GetAclResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::string GetAclResult::getAclId()const +{ + return aclId_; +} + +std::vector GetAclResult::getRelatedListeners()const +{ + return relatedListeners_; +} + +std::string GetAclResult::getAclName()const +{ + return aclName_; +} + diff --git a/ga/src/model/ListAccelerateAreasRequest.cc b/ga/src/model/ListAccelerateAreasRequest.cc new file mode 100644 index 000000000..74abb016e --- /dev/null +++ b/ga/src/model/ListAccelerateAreasRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void ListAccelerateAreasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/ListAccelerateAreasResult.cc b/ga/src/model/ListAccelerateAreasResult.cc new file mode 100644 index 000000000..765839270 --- /dev/null +++ b/ga/src/model/ListAccelerateAreasResult.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; + +ListAccelerateAreasResult::ListAccelerateAreasResult() : + ServiceResult() +{} + +ListAccelerateAreasResult::ListAccelerateAreasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAccelerateAreasResult::~ListAccelerateAreasResult() +{} + +void ListAccelerateAreasResult::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["AreaId"].isNull()) + areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); + if(!valueAreasAreasItem["LocalName"].isNull()) + areasObject.localName = valueAreasAreasItem["LocalName"].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(); + areasObject.regionList.push_back(regionListObject); + } + areas_.push_back(areasObject); + } + +} + +std::vector ListAccelerateAreasResult::getAreas()const +{ + return areas_; +} + diff --git a/ga/src/model/ListAcceleratorsRequest.cc b/ga/src/model/ListAcceleratorsRequest.cc new file mode 100644 index 000000000..ef8af1bd0 --- /dev/null +++ b/ga/src/model/ListAcceleratorsRequest.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::ListAcceleratorsRequest; + +ListAcceleratorsRequest::ListAcceleratorsRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListAccelerators") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAcceleratorsRequest::~ListAcceleratorsRequest() +{} + +int ListAcceleratorsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListAcceleratorsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListAcceleratorsRequest::getRegionId()const +{ + return regionId_; +} + +void ListAcceleratorsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListAcceleratorsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListAcceleratorsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListAcceleratorsRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListAcceleratorsRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListAcceleratorsResult.cc b/ga/src/model/ListAcceleratorsResult.cc new file mode 100644 index 000000000..17052899c --- /dev/null +++ b/ga/src/model/ListAcceleratorsResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListAcceleratorsResult::ListAcceleratorsResult() : + ServiceResult() +{} + +ListAcceleratorsResult::ListAcceleratorsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAcceleratorsResult::~ListAcceleratorsResult() +{} + +void ListAcceleratorsResult::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["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["Spec"].isNull()) + acceleratorsObject.spec = valueAcceleratorsAcceleratorsItem["Spec"].asString(); + if(!valueAcceleratorsAcceleratorsItem["AcceleratorId"].isNull()) + acceleratorsObject.acceleratorId = valueAcceleratorsAcceleratorsItem["AcceleratorId"].asString(); + auto basicBandwidthPackageNode = value["BasicBandwidthPackage"]; + 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()); + 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 ListAcceleratorsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListAcceleratorsResult::getAccelerators()const +{ + return accelerators_; +} + +int ListAcceleratorsResult::getPageSize()const +{ + return pageSize_; +} + +int ListAcceleratorsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/ListAclsRequest.cc b/ga/src/model/ListAclsRequest.cc new file mode 100644 index 000000000..e56c9bdd5 --- /dev/null +++ b/ga/src/model/ListAclsRequest.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::ListAclsRequest; + +ListAclsRequest::ListAclsRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListAcls") +{ + setMethod(HttpRequest::Method::Post); +} + +ListAclsRequest::~ListAclsRequest() +{} + +std::string ListAclsRequest::getAclName()const +{ + return aclName_; +} + +void ListAclsRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string ListAclsRequest::getClientToken()const +{ + return clientToken_; +} + +void ListAclsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +Array ListAclsRequest::getAclIds()const +{ + return aclIds_; +} + +void ListAclsRequest::setAclIds(const Array& aclIds) +{ + aclIds_ = aclIds; + setParameter("AclIds", std::to_string(aclIds)); +} + +std::string ListAclsRequest::getRegionId()const +{ + return regionId_; +} + +void ListAclsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListAclsRequest::getNextToken()const +{ + return nextToken_; +} + +void ListAclsRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int ListAclsRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListAclsRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + diff --git a/ga/src/model/ListAclsResult.cc b/ga/src/model/ListAclsResult.cc new file mode 100644 index 000000000..0ab7712d9 --- /dev/null +++ b/ga/src/model/ListAclsResult.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; + +ListAclsResult::ListAclsResult() : + ServiceResult() +{} + +ListAclsResult::ListAclsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAclsResult::~ListAclsResult() +{} + +void ListAclsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclsNode = value["Acls"]["GaAcls"]; + 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(); + acls_.push_back(aclsObject); + } + 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 ListAclsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListAclsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListAclsResult::getAcls()const +{ + return acls_; +} + +int ListAclsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/ga/src/model/ListAvailableAccelerateAreasRequest.cc b/ga/src/model/ListAvailableAccelerateAreasRequest.cc new file mode 100644 index 000000000..d4088399c --- /dev/null +++ b/ga/src/model/ListAvailableAccelerateAreasRequest.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 + +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_; +} + +void ListAvailableAccelerateAreasRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListAvailableAccelerateAreasRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListAvailableAccelerateAreasRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListAvailableAccelerateAreasResult.cc b/ga/src/model/ListAvailableAccelerateAreasResult.cc new file mode 100644 index 000000000..56de0daff --- /dev/null +++ b/ga/src/model/ListAvailableAccelerateAreasResult.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; + +ListAvailableAccelerateAreasResult::ListAvailableAccelerateAreasResult() : + ServiceResult() +{} + +ListAvailableAccelerateAreasResult::ListAvailableAccelerateAreasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAvailableAccelerateAreasResult::~ListAvailableAccelerateAreasResult() +{} + +void ListAvailableAccelerateAreasResult::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["AreaId"].isNull()) + areasObject.areaId = valueAreasAreasItem["AreaId"].asString(); + if(!valueAreasAreasItem["LocalName"].isNull()) + areasObject.localName = valueAreasAreasItem["LocalName"].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(); + areasObject.regionList.push_back(regionListObject); + } + areas_.push_back(areasObject); + } + +} + +std::vector ListAvailableAccelerateAreasResult::getAreas()const +{ + return areas_; +} + diff --git a/ga/src/model/ListAvailableBusiRegionsRequest.cc b/ga/src/model/ListAvailableBusiRegionsRequest.cc new file mode 100644 index 000000000..ca1afd071 --- /dev/null +++ b/ga/src/model/ListAvailableBusiRegionsRequest.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 + +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_; +} + +void ListAvailableBusiRegionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListAvailableBusiRegionsRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListAvailableBusiRegionsRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListAvailableBusiRegionsResult.cc b/ga/src/model/ListAvailableBusiRegionsResult.cc new file mode 100644 index 000000000..c36aaa6ed --- /dev/null +++ b/ga/src/model/ListAvailableBusiRegionsResult.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; + +ListAvailableBusiRegionsResult::ListAvailableBusiRegionsResult() : + ServiceResult() +{} + +ListAvailableBusiRegionsResult::ListAvailableBusiRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAvailableBusiRegionsResult::~ListAvailableBusiRegionsResult() +{} + +void ListAvailableBusiRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["RegionsItem"]; + for (auto valueRegionsRegionsItem : allRegionsNode) + { + RegionsItem regionsObject; + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); + if(!valueRegionsRegionsItem["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector ListAvailableBusiRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/ga/src/model/ListBandwidthPackagesRequest.cc b/ga/src/model/ListBandwidthPackagesRequest.cc new file mode 100644 index 000000000..0381ffc3a --- /dev/null +++ b/ga/src/model/ListBandwidthPackagesRequest.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::ListBandwidthPackagesRequest; + +ListBandwidthPackagesRequest::ListBandwidthPackagesRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListBandwidthPackages") +{ + setMethod(HttpRequest::Method::Post); +} + +ListBandwidthPackagesRequest::~ListBandwidthPackagesRequest() +{} + +std::string ListBandwidthPackagesRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ListBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ListBandwidthPackagesRequest::getType()const +{ + return type_; +} + +void ListBandwidthPackagesRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int ListBandwidthPackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBandwidthPackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListBandwidthPackagesRequest::getRegionId()const +{ + return regionId_; +} + +void ListBandwidthPackagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListBandwidthPackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBandwidthPackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListBandwidthPackagesRequest::getState()const +{ + return state_; +} + +void ListBandwidthPackagesRequest::setState(const std::string& state) +{ + state_ = state; + setParameter("State", state); +} + diff --git a/ga/src/model/ListBandwidthPackagesResult.cc b/ga/src/model/ListBandwidthPackagesResult.cc new file mode 100644 index 000000000..53cf8ceb2 --- /dev/null +++ b/ga/src/model/ListBandwidthPackagesResult.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListBandwidthPackagesResult::ListBandwidthPackagesResult() : + ServiceResult() +{} + +ListBandwidthPackagesResult::ListBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBandwidthPackagesResult::~ListBandwidthPackagesResult() +{} + +void ListBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"]; + 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["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["RegionId"].isNull()) + bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["BillingType"].isNull()) + bandwidthPackagesObject.billingType = valueBandwidthPackagesBandwidthPackage["BillingType"].asString(); + auto allAccelerators = value["Accelerators"]["Accelerator"]; + for (auto value : allAccelerators) + bandwidthPackagesObject.accelerators.push_back(value.asString()); + bandwidthPackages_.push_back(bandwidthPackagesObject); + } + 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 ListBandwidthPackagesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListBandwidthPackagesResult::getPageSize()const +{ + return pageSize_; +} + +int ListBandwidthPackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListBandwidthPackagesResult::getBandwidthPackages()const +{ + return bandwidthPackages_; +} + diff --git a/ga/src/model/ListBandwidthackagesRequest.cc b/ga/src/model/ListBandwidthackagesRequest.cc new file mode 100644 index 000000000..8e64cd1a4 --- /dev/null +++ b/ga/src/model/ListBandwidthackagesRequest.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::ListBandwidthackagesRequest; + +ListBandwidthackagesRequest::ListBandwidthackagesRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListBandwidthackages") +{ + setMethod(HttpRequest::Method::Post); +} + +ListBandwidthackagesRequest::~ListBandwidthackagesRequest() +{} + +int ListBandwidthackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListBandwidthackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListBandwidthackagesRequest::getRegionId()const +{ + return regionId_; +} + +void ListBandwidthackagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListBandwidthackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void ListBandwidthackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/ga/src/model/ListBandwidthackagesResult.cc b/ga/src/model/ListBandwidthackagesResult.cc new file mode 100644 index 000000000..00cfb501d --- /dev/null +++ b/ga/src/model/ListBandwidthackagesResult.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; + +ListBandwidthackagesResult::ListBandwidthackagesResult() : + ServiceResult() +{} + +ListBandwidthackagesResult::ListBandwidthackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBandwidthackagesResult::~ListBandwidthackagesResult() +{} + +void ListBandwidthackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"]; + for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode) + { + BandwidthPackage bandwidthPackagesObject; + if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) + bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ChargeType"].isNull()) + bandwidthPackagesObject.chargeType = valueBandwidthPackagesBandwidthPackage["ChargeType"].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["Name"].isNull()) + bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); + auto allAccelerators = value["Accelerators"]["Accelerator"]; + for (auto value : allAccelerators) + bandwidthPackagesObject.accelerators.push_back(value.asString()); + bandwidthPackages_.push_back(bandwidthPackagesObject); + } + 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 ListBandwidthackagesResult::getTotalCount()const +{ + return totalCount_; +} + +int ListBandwidthackagesResult::getPageSize()const +{ + return pageSize_; +} + +int ListBandwidthackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListBandwidthackagesResult::getBandwidthPackages()const +{ + return bandwidthPackages_; +} + diff --git a/ga/src/model/ListBusiRegionsRequest.cc b/ga/src/model/ListBusiRegionsRequest.cc new file mode 100644 index 000000000..24c886219 --- /dev/null +++ b/ga/src/model/ListBusiRegionsRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void ListBusiRegionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/ListBusiRegionsResult.cc b/ga/src/model/ListBusiRegionsResult.cc new file mode 100644 index 000000000..7c7ed368f --- /dev/null +++ b/ga/src/model/ListBusiRegionsResult.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; + +ListBusiRegionsResult::ListBusiRegionsResult() : + ServiceResult() +{} + +ListBusiRegionsResult::ListBusiRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBusiRegionsResult::~ListBusiRegionsResult() +{} + +void ListBusiRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["RegionsItem"]; + for (auto valueRegionsRegionsItem : allRegionsNode) + { + RegionsItem regionsObject; + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); + if(!valueRegionsRegionsItem["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector ListBusiRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/ga/src/model/ListEndpointGroupsRequest.cc b/ga/src/model/ListEndpointGroupsRequest.cc new file mode 100644 index 000000000..37f1f4f09 --- /dev/null +++ b/ga/src/model/ListEndpointGroupsRequest.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::ListEndpointGroupsRequest; + +ListEndpointGroupsRequest::ListEndpointGroupsRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListEndpointGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +ListEndpointGroupsRequest::~ListEndpointGroupsRequest() +{} + +int ListEndpointGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListEndpointGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListEndpointGroupsRequest::getListenerId()const +{ + return listenerId_; +} + +void ListEndpointGroupsRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string ListEndpointGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void ListEndpointGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListEndpointGroupsRequest::getEndpointGroupType()const +{ + return endpointGroupType_; +} + +void ListEndpointGroupsRequest::setEndpointGroupType(const std::string& endpointGroupType) +{ + endpointGroupType_ = endpointGroupType; + setParameter("EndpointGroupType", endpointGroupType); +} + +std::string ListEndpointGroupsRequest::getAccessLogSwitch()const +{ + return accessLogSwitch_; +} + +void ListEndpointGroupsRequest::setAccessLogSwitch(const std::string& accessLogSwitch) +{ + accessLogSwitch_ = accessLogSwitch; + setParameter("AccessLogSwitch", accessLogSwitch); +} + +int ListEndpointGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListEndpointGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListEndpointGroupsRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListEndpointGroupsRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +std::string ListEndpointGroupsRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void ListEndpointGroupsRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + diff --git a/ga/src/model/ListEndpointGroupsResult.cc b/ga/src/model/ListEndpointGroupsResult.cc new file mode 100644 index 000000000..5f66d86e5 --- /dev/null +++ b/ga/src/model/ListEndpointGroupsResult.cc @@ -0,0 +1,142 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListEndpointGroupsResult::ListEndpointGroupsResult() : + ServiceResult() +{} + +ListEndpointGroupsResult::ListEndpointGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEndpointGroupsResult::~ListEndpointGroupsResult() +{} + +void ListEndpointGroupsResult::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["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["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(); + auto allPortOverridesNode = valueEndpointGroupsEndpointGroupsItem["PortOverrides"]["PortOverridesItem"]; + for (auto valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem : allPortOverridesNode) + { + EndpointGroupsItem::PortOverridesItem portOverridesObject; + if(!valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["ListenerPort"].isNull()) + portOverridesObject.listenerPort = std::stoi(valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["ListenerPort"].asString()); + if(!valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["EndpointPort"].isNull()) + portOverridesObject.endpointPort = std::stoi(valueEndpointGroupsEndpointGroupsItemPortOverridesPortOverridesItem["EndpointPort"].asString()); + endpointGroupsObject.portOverrides.push_back(portOverridesObject); + } + auto allEndpointConfigurationsNode = valueEndpointGroupsEndpointGroupsItem["EndpointConfigurations"]["EndpointConfigurationsItem"]; + for (auto valueEndpointGroupsEndpointGroupsItemEndpointConfigurationsEndpointConfigurationsItem : allEndpointConfigurationsNode) + { + 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); + } + auto allEndpointGroupIpList = value["EndpointGroupIpList"]["EndpointGroupIpList"]; + for (auto value : allEndpointGroupIpList) + endpointGroupsObject.endpointGroupIpList.push_back(value.asString()); + auto allForwardingRuleIds = value["ForwardingRuleIds"]["ForwardingRuleIds"]; + for (auto value : allForwardingRuleIds) + endpointGroupsObject.forwardingRuleIds.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 ListEndpointGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListEndpointGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int ListEndpointGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListEndpointGroupsResult::getEndpointGroups()const +{ + return endpointGroups_; +} + diff --git a/ga/src/model/ListForwardingRulesRequest.cc b/ga/src/model/ListForwardingRulesRequest.cc new file mode 100644 index 000000000..ac76e7f6f --- /dev/null +++ b/ga/src/model/ListForwardingRulesRequest.cc @@ -0,0 +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::ListForwardingRulesRequest; + +ListForwardingRulesRequest::ListForwardingRulesRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListForwardingRules") +{ + setMethod(HttpRequest::Method::Post); +} + +ListForwardingRulesRequest::~ListForwardingRulesRequest() +{} + +std::string ListForwardingRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void ListForwardingRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ListForwardingRulesRequest::getListenerId()const +{ + return listenerId_; +} + +void ListForwardingRulesRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string ListForwardingRulesRequest::getForwardingRuleId()const +{ + return forwardingRuleId_; +} + +void ListForwardingRulesRequest::setForwardingRuleId(const std::string& forwardingRuleId) +{ + forwardingRuleId_ = forwardingRuleId; + setParameter("ForwardingRuleId", forwardingRuleId); +} + +std::string ListForwardingRulesRequest::getRegionId()const +{ + return regionId_; +} + +void ListForwardingRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListForwardingRulesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListForwardingRulesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +int ListForwardingRulesRequest::getMaxResults()const +{ + return maxResults_; +} + +void ListForwardingRulesRequest::setMaxResults(int maxResults) +{ + maxResults_ = maxResults; + setParameter("MaxResults", std::to_string(maxResults)); +} + +std::string ListForwardingRulesRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListForwardingRulesResult.cc b/ga/src/model/ListForwardingRulesResult.cc new file mode 100644 index 000000000..08ebe69f5 --- /dev/null +++ b/ga/src/model/ListForwardingRulesResult.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; + +ListForwardingRulesResult::ListForwardingRulesResult() : + ServiceResult() +{} + +ListForwardingRulesResult::ListForwardingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListForwardingRulesResult::~ListForwardingRulesResult() +{} + +void ListForwardingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"]; + 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["ForwardingRuleStatus"].isNull()) + forwardingRulesObject.forwardingRuleStatus = valueForwardingRulesForwardingRulesItem["ForwardingRuleStatus"].asString(); + if(!valueForwardingRulesForwardingRulesItem["ListenerId"].isNull()) + forwardingRulesObject.listenerId = valueForwardingRulesForwardingRulesItem["ListenerId"].asString(); + 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()); + auto forwardGroupConfigNode = value["ForwardGroupConfig"]; + auto allServerGroupTuplesNode = forwardGroupConfigNode["ServerGroupTuples"]["ServerGroupTuplesItem"]; + for (auto forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem : allServerGroupTuplesNode) + { + ForwardingRulesItem::RuleActionsItem::ForwardGroupConfig::ServerGroupTuplesItem serverGroupTuplesItemObject; + if(!forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem["EndpointGroupId"].isNull()) + serverGroupTuplesItemObject.endpointGroupId = forwardGroupConfigNodeServerGroupTuplesServerGroupTuplesItem["EndpointGroupId"].asString(); + ruleActionsObject.forwardGroupConfig.serverGroupTuples.push_back(serverGroupTuplesItemObject); + } + 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()) + 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 ListForwardingRulesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListForwardingRulesResult::getNextToken()const +{ + return nextToken_; +} + +int ListForwardingRulesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListForwardingRulesResult::getForwardingRules()const +{ + return forwardingRules_; +} + diff --git a/ga/src/model/ListIpSetsRequest.cc b/ga/src/model/ListIpSetsRequest.cc new file mode 100644 index 000000000..019c65eda --- /dev/null +++ b/ga/src/model/ListIpSetsRequest.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::ListIpSetsRequest; + +ListIpSetsRequest::ListIpSetsRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListIpSets") +{ + setMethod(HttpRequest::Method::Post); +} + +ListIpSetsRequest::~ListIpSetsRequest() +{} + +int ListIpSetsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListIpSetsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListIpSetsRequest::getRegionId()const +{ + return regionId_; +} + +void ListIpSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListIpSetsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListIpSetsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListIpSetsRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListIpSetsRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListIpSetsResult.cc b/ga/src/model/ListIpSetsResult.cc new file mode 100644 index 000000000..388ddb18b --- /dev/null +++ b/ga/src/model/ListIpSetsResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +ListIpSetsResult::ListIpSetsResult() : + ServiceResult() +{} + +ListIpSetsResult::ListIpSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListIpSetsResult::~ListIpSetsResult() +{} + +void ListIpSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIpSetsNode = value["IpSets"]["IpSetsItem"]; + 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(); + auto allIpAddressList = value["IpAddressList"]["IpAddressList"]; + for (auto value : allIpAddressList) + ipSetsObject.ipAddressList.push_back(value.asString()); + ipSets_.push_back(ipSetsObject); + } + 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 ListIpSetsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListIpSetsResult::getPageSize()const +{ + return pageSize_; +} + +int ListIpSetsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListIpSetsResult::getIpSets()const +{ + return ipSets_; +} + diff --git a/ga/src/model/ListListenersRequest.cc b/ga/src/model/ListListenersRequest.cc new file mode 100644 index 000000000..6bd786b8b --- /dev/null +++ b/ga/src/model/ListListenersRequest.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::ListListenersRequest; + +ListListenersRequest::ListListenersRequest() : + RpcServiceRequest("ga", "2019-11-20", "ListListeners") +{ + setMethod(HttpRequest::Method::Post); +} + +ListListenersRequest::~ListListenersRequest() +{} + +int ListListenersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListListenersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ListListenersRequest::getRegionId()const +{ + return regionId_; +} + +void ListListenersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int ListListenersRequest::getPageSize()const +{ + return pageSize_; +} + +void ListListenersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ListListenersRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void ListListenersRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/ListListenersResult.cc b/ga/src/model/ListListenersResult.cc new file mode 100644 index 000000000..462344d05 --- /dev/null +++ b/ga/src/model/ListListenersResult.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +ListListenersResult::ListListenersResult() : + ServiceResult() +{} + +ListListenersResult::ListListenersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenersResult::~ListListenersResult() +{} + +void ListListenersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["ListenersItem"]; + for (auto valueListenersListenersItem : allListenersNode) + { + ListenersItem listenersObject; + 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) + { + 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 allBackendPortsNode = valueListenersListenersItem["BackendPorts"]["BackendPort"]; + for (auto valueListenersListenersItemBackendPortsBackendPort : allBackendPortsNode) + { + ListenersItem::BackendPort backendPortsObject; + if(!valueListenersListenersItemBackendPortsBackendPort["FromPort"].isNull()) + backendPortsObject.fromPort = valueListenersListenersItemBackendPortsBackendPort["FromPort"].asString(); + if(!valueListenersListenersItemBackendPortsBackendPort["ToPort"].isNull()) + backendPortsObject.toPort = valueListenersListenersItemBackendPortsBackendPort["ToPort"].asString(); + listenersObject.backendPorts.push_back(backendPortsObject); + } + auto allCertificatesNode = valueListenersListenersItem["Certificates"]["Certificate"]; + for (auto valueListenersListenersItemCertificatesCertificate : allCertificatesNode) + { + 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); + } + listeners_.push_back(listenersObject); + } + 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 ListListenersResult::getListeners()const +{ + return listeners_; +} + +int ListListenersResult::getTotalCount()const +{ + return totalCount_; +} + +int ListListenersResult::getPageSize()const +{ + return pageSize_; +} + +int ListListenersResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ga/src/model/RemoveEntriesFromAclRequest.cc b/ga/src/model/RemoveEntriesFromAclRequest.cc new file mode 100644 index 000000000..6343014b8 --- /dev/null +++ b/ga/src/model/RemoveEntriesFromAclRequest.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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_; +} + +void RemoveEntriesFromAclRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +bool RemoveEntriesFromAclRequest::getDryRun()const +{ + return dryRun_; +} + +void RemoveEntriesFromAclRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string RemoveEntriesFromAclRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveEntriesFromAclRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::vector RemoveEntriesFromAclRequest::getAclEntries()const +{ + return aclEntries_; +} + +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::string RemoveEntriesFromAclRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveEntriesFromAclRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/RemoveEntriesFromAclResult.cc b/ga/src/model/RemoveEntriesFromAclResult.cc new file mode 100644 index 000000000..525c4c056 --- /dev/null +++ b/ga/src/model/RemoveEntriesFromAclResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +RemoveEntriesFromAclResult::RemoveEntriesFromAclResult() : + ServiceResult() +{} + +RemoveEntriesFromAclResult::RemoveEntriesFromAclResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveEntriesFromAclResult::~RemoveEntriesFromAclResult() +{} + +void RemoveEntriesFromAclResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string RemoveEntriesFromAclResult::getAclId()const +{ + return aclId_; +} + diff --git a/ga/src/model/ReplaceBandwidthPackageRequest.cc b/ga/src/model/ReplaceBandwidthPackageRequest.cc new file mode 100644 index 000000000..73881d5d1 --- /dev/null +++ b/ga/src/model/ReplaceBandwidthPackageRequest.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::ReplaceBandwidthPackageRequest; + +ReplaceBandwidthPackageRequest::ReplaceBandwidthPackageRequest() : + RpcServiceRequest("ga", "2019-11-20", "ReplaceBandwidthPackage") +{ + setMethod(HttpRequest::Method::Post); +} + +ReplaceBandwidthPackageRequest::~ReplaceBandwidthPackageRequest() +{} + +std::string ReplaceBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ReplaceBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ReplaceBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void ReplaceBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ReplaceBandwidthPackageRequest::getTargetBandwidthPackageId()const +{ + return targetBandwidthPackageId_; +} + +void ReplaceBandwidthPackageRequest::setTargetBandwidthPackageId(const std::string& targetBandwidthPackageId) +{ + targetBandwidthPackageId_ = targetBandwidthPackageId; + setParameter("TargetBandwidthPackageId", targetBandwidthPackageId); +} + diff --git a/ga/src/model/ReplaceBandwidthPackageResult.cc b/ga/src/model/ReplaceBandwidthPackageResult.cc new file mode 100644 index 000000000..d3b6dacf0 --- /dev/null +++ b/ga/src/model/ReplaceBandwidthPackageResult.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; + +ReplaceBandwidthPackageResult::ReplaceBandwidthPackageResult() : + ServiceResult() +{} + +ReplaceBandwidthPackageResult::ReplaceBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceBandwidthPackageResult::~ReplaceBandwidthPackageResult() +{} + +void ReplaceBandwidthPackageResult::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 new file mode 100644 index 000000000..9b70fb189 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void UpdateAcceleratorRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string UpdateAcceleratorRequest::getPromotionOptionNo()const +{ + return promotionOptionNo_; +} + +void UpdateAcceleratorRequest::setPromotionOptionNo(const std::string& promotionOptionNo) +{ + promotionOptionNo_ = promotionOptionNo; + setParameter("PromotionOptionNo", promotionOptionNo); +} + +std::string UpdateAcceleratorRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateAcceleratorRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateAcceleratorRequest::getDescription()const +{ + return description_; +} + +void UpdateAcceleratorRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +bool UpdateAcceleratorRequest::getAutoUseCoupon()const +{ + return autoUseCoupon_; +} + +void UpdateAcceleratorRequest::setAutoUseCoupon(bool autoUseCoupon) +{ + autoUseCoupon_ = autoUseCoupon; + setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +} + +std::string UpdateAcceleratorRequest::getSpec()const +{ + return spec_; +} + +void UpdateAcceleratorRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + +std::string UpdateAcceleratorRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateAcceleratorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateAcceleratorRequest::getName()const +{ + return name_; +} + +void UpdateAcceleratorRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateAcceleratorRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void UpdateAcceleratorRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + diff --git a/ga/src/model/UpdateAcceleratorResult.cc b/ga/src/model/UpdateAcceleratorResult.cc new file mode 100644 index 000000000..293473ea1 --- /dev/null +++ b/ga/src/model/UpdateAcceleratorResult.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; + +UpdateAcceleratorResult::UpdateAcceleratorResult() : + ServiceResult() +{} + +UpdateAcceleratorResult::UpdateAcceleratorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAcceleratorResult::~UpdateAcceleratorResult() +{} + +void UpdateAcceleratorResult::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/UpdateAclAttributeRequest.cc b/ga/src/model/UpdateAclAttributeRequest.cc new file mode 100644 index 000000000..63df5da78 --- /dev/null +++ b/ga/src/model/UpdateAclAttributeRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateAclAttributeRequest; + +UpdateAclAttributeRequest::UpdateAclAttributeRequest() : + RpcServiceRequest("ga", "2019-11-20", "UpdateAclAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateAclAttributeRequest::~UpdateAclAttributeRequest() +{} + +std::string UpdateAclAttributeRequest::getAclId()const +{ + return aclId_; +} + +void UpdateAclAttributeRequest::setAclId(const std::string& aclId) +{ + aclId_ = aclId; + setParameter("AclId", aclId); +} + +bool UpdateAclAttributeRequest::getDryRun()const +{ + return dryRun_; +} + +void UpdateAclAttributeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", dryRun ? "true" : "false"); +} + +std::string UpdateAclAttributeRequest::getAclName()const +{ + return aclName_; +} + +void UpdateAclAttributeRequest::setAclName(const std::string& aclName) +{ + aclName_ = aclName; + setParameter("AclName", aclName); +} + +std::string UpdateAclAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateAclAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateAclAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateAclAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/UpdateAclAttributeResult.cc b/ga/src/model/UpdateAclAttributeResult.cc new file mode 100644 index 000000000..2923e1dc2 --- /dev/null +++ b/ga/src/model/UpdateAclAttributeResult.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; + +UpdateAclAttributeResult::UpdateAclAttributeResult() : + ServiceResult() +{} + +UpdateAclAttributeResult::UpdateAclAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAclAttributeResult::~UpdateAclAttributeResult() +{} + +void UpdateAclAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string UpdateAclAttributeResult::getAclId()const +{ + return aclId_; +} + diff --git a/ga/src/model/UpdateBandwidthPackageRequest.cc b/ga/src/model/UpdateBandwidthPackageRequest.cc new file mode 100644 index 000000000..ab1c2803e --- /dev/null +++ b/ga/src/model/UpdateBandwidthPackageRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void UpdateBandwidthPackageRequest::setBandwidthType(const std::string& bandwidthType) +{ + bandwidthType_ = bandwidthType; + setParameter("BandwidthType", bandwidthType); +} + +std::string UpdateBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void UpdateBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +bool UpdateBandwidthPackageRequest::getAutoPay()const +{ + return autoPay_; +} + +void UpdateBandwidthPackageRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", autoPay ? "true" : "false"); +} + +std::string UpdateBandwidthPackageRequest::getPromotionOptionNo()const +{ + return promotionOptionNo_; +} + +void UpdateBandwidthPackageRequest::setPromotionOptionNo(const std::string& promotionOptionNo) +{ + promotionOptionNo_ = promotionOptionNo; + setParameter("PromotionOptionNo", promotionOptionNo); +} + +int UpdateBandwidthPackageRequest::getBandwidth()const +{ + return bandwidth_; +} + +void UpdateBandwidthPackageRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string UpdateBandwidthPackageRequest::getDescription()const +{ + return description_; +} + +void UpdateBandwidthPackageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +bool UpdateBandwidthPackageRequest::getAutoUseCoupon()const +{ + return autoUseCoupon_; +} + +void UpdateBandwidthPackageRequest::setAutoUseCoupon(bool autoUseCoupon) +{ + autoUseCoupon_ = autoUseCoupon; + setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false"); +} + +std::string UpdateBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateBandwidthPackageRequest::getName()const +{ + return name_; +} + +void UpdateBandwidthPackageRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ga/src/model/UpdateBandwidthPackageResult.cc b/ga/src/model/UpdateBandwidthPackageResult.cc new file mode 100644 index 000000000..eb580c80f --- /dev/null +++ b/ga/src/model/UpdateBandwidthPackageResult.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; + +UpdateBandwidthPackageResult::UpdateBandwidthPackageResult() : + ServiceResult() +{} + +UpdateBandwidthPackageResult::UpdateBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateBandwidthPackageResult::~UpdateBandwidthPackageResult() +{} + +void UpdateBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthPackage"].isNull()) + bandwidthPackage_ = value["BandwidthPackage"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + +} + +std::string UpdateBandwidthPackageResult::getBandwidthPackage()const +{ + return bandwidthPackage_; +} + +std::string UpdateBandwidthPackageResult::getDescription()const +{ + return description_; +} + +std::string UpdateBandwidthPackageResult::getName()const +{ + return name_; +} + diff --git a/ga/src/model/UpdateEndpointGroupAttributeRequest.cc b/ga/src/model/UpdateEndpointGroupAttributeRequest.cc new file mode 100644 index 000000000..514ee22f3 --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupAttributeRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateEndpointGroupAttributeRequest; + +UpdateEndpointGroupAttributeRequest::UpdateEndpointGroupAttributeRequest() : + RpcServiceRequest("ga", "2019-11-20", "UpdateEndpointGroupAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateEndpointGroupAttributeRequest::~UpdateEndpointGroupAttributeRequest() +{} + +std::string UpdateEndpointGroupAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateEndpointGroupAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateEndpointGroupAttributeRequest::getDescription()const +{ + return description_; +} + +void UpdateEndpointGroupAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateEndpointGroupAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateEndpointGroupAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateEndpointGroupAttributeRequest::getName()const +{ + return name_; +} + +void UpdateEndpointGroupAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateEndpointGroupAttributeRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void UpdateEndpointGroupAttributeRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + diff --git a/ga/src/model/UpdateEndpointGroupAttributeResult.cc b/ga/src/model/UpdateEndpointGroupAttributeResult.cc new file mode 100644 index 000000000..beaa26e05 --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupAttributeResult.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; + +UpdateEndpointGroupAttributeResult::UpdateEndpointGroupAttributeResult() : + ServiceResult() +{} + +UpdateEndpointGroupAttributeResult::UpdateEndpointGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEndpointGroupAttributeResult::~UpdateEndpointGroupAttributeResult() +{} + +void UpdateEndpointGroupAttributeResult::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/UpdateEndpointGroupRequest.cc b/ga/src/model/UpdateEndpointGroupRequest.cc new file mode 100644 index 000000000..16d2dcdfc --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupRequest.cc @@ -0,0 +1,207 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +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)); + } +} + +std::string UpdateEndpointGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateEndpointGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int UpdateEndpointGroupRequest::getHealthCheckIntervalSeconds()const +{ + return healthCheckIntervalSeconds_; +} + +void UpdateEndpointGroupRequest::setHealthCheckIntervalSeconds(int healthCheckIntervalSeconds) +{ + healthCheckIntervalSeconds_ = healthCheckIntervalSeconds; + setParameter("HealthCheckIntervalSeconds", std::to_string(healthCheckIntervalSeconds)); +} + +std::string UpdateEndpointGroupRequest::getDescription()const +{ + return description_; +} + +void UpdateEndpointGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string UpdateEndpointGroupRequest::getHealthCheckProtocol()const +{ + return healthCheckProtocol_; +} + +void UpdateEndpointGroupRequest::setHealthCheckProtocol(const std::string& healthCheckProtocol) +{ + healthCheckProtocol_ = healthCheckProtocol; + setParameter("HealthCheckProtocol", healthCheckProtocol); +} + +std::string UpdateEndpointGroupRequest::getEndpointRequestProtocol()const +{ + return endpointRequestProtocol_; +} + +void UpdateEndpointGroupRequest::setEndpointRequestProtocol(const std::string& endpointRequestProtocol) +{ + endpointRequestProtocol_ = endpointRequestProtocol; + setParameter("EndpointRequestProtocol", endpointRequestProtocol); +} + +std::string UpdateEndpointGroupRequest::getHealthCheckPath()const +{ + return healthCheckPath_; +} + +void UpdateEndpointGroupRequest::setHealthCheckPath(const std::string& healthCheckPath) +{ + healthCheckPath_ = healthCheckPath; + setParameter("HealthCheckPath", healthCheckPath); +} + +std::vector UpdateEndpointGroupRequest::getEndpointConfigurations()const +{ + return endpointConfigurations_; +} + +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::getRegionId()const +{ + return regionId_; +} + +void UpdateEndpointGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateEndpointGroupRequest::getEndpointGroupId()const +{ + return endpointGroupId_; +} + +void UpdateEndpointGroupRequest::setEndpointGroupId(const std::string& endpointGroupId) +{ + endpointGroupId_ = endpointGroupId; + setParameter("EndpointGroupId", endpointGroupId); +} + +int UpdateEndpointGroupRequest::getTrafficPercentage()const +{ + return trafficPercentage_; +} + +void UpdateEndpointGroupRequest::setTrafficPercentage(int trafficPercentage) +{ + trafficPercentage_ = trafficPercentage; + setParameter("TrafficPercentage", std::to_string(trafficPercentage)); +} + +int UpdateEndpointGroupRequest::getHealthCheckPort()const +{ + return healthCheckPort_; +} + +void UpdateEndpointGroupRequest::setHealthCheckPort(int healthCheckPort) +{ + healthCheckPort_ = healthCheckPort; + setParameter("HealthCheckPort", std::to_string(healthCheckPort)); +} + +int UpdateEndpointGroupRequest::getThresholdCount()const +{ + return thresholdCount_; +} + +void UpdateEndpointGroupRequest::setThresholdCount(int thresholdCount) +{ + thresholdCount_ = thresholdCount; + setParameter("ThresholdCount", std::to_string(thresholdCount)); +} + +std::string UpdateEndpointGroupRequest::getEndpointGroupRegion()const +{ + return endpointGroupRegion_; +} + +void UpdateEndpointGroupRequest::setEndpointGroupRegion(const std::string& endpointGroupRegion) +{ + endpointGroupRegion_ = endpointGroupRegion; + setParameter("EndpointGroupRegion", endpointGroupRegion); +} + +std::string UpdateEndpointGroupRequest::getName()const +{ + return name_; +} + +void UpdateEndpointGroupRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ga/src/model/UpdateEndpointGroupResult.cc b/ga/src/model/UpdateEndpointGroupResult.cc new file mode 100644 index 000000000..2a218dcee --- /dev/null +++ b/ga/src/model/UpdateEndpointGroupResult.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; + +UpdateEndpointGroupResult::UpdateEndpointGroupResult() : + ServiceResult() +{} + +UpdateEndpointGroupResult::UpdateEndpointGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEndpointGroupResult::~UpdateEndpointGroupResult() +{} + +void UpdateEndpointGroupResult::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/UpdateForwardingRulesRequest.cc b/ga/src/model/UpdateForwardingRulesRequest.cc new file mode 100644 index 000000000..e1897e451 --- /dev/null +++ b/ga/src/model/UpdateForwardingRulesRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateForwardingRulesRequest; + +UpdateForwardingRulesRequest::UpdateForwardingRulesRequest() : + RpcServiceRequest("ga", "2019-11-20", "UpdateForwardingRules") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateForwardingRulesRequest::~UpdateForwardingRulesRequest() +{} + +std::string UpdateForwardingRulesRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateForwardingRulesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateForwardingRulesRequest::getListenerId()const +{ + return listenerId_; +} + +void UpdateForwardingRulesRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string UpdateForwardingRulesRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateForwardingRulesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateForwardingRulesRequest::getAcceleratorId()const +{ + return acceleratorId_; +} + +void UpdateForwardingRulesRequest::setAcceleratorId(const std::string& acceleratorId) +{ + acceleratorId_ = acceleratorId; + setParameter("AcceleratorId", acceleratorId); +} + +Array UpdateForwardingRulesRequest::getForwardingRules()const +{ + return forwardingRules_; +} + +void UpdateForwardingRulesRequest::setForwardingRules(const Array& forwardingRules) +{ + forwardingRules_ = forwardingRules; + setParameter("ForwardingRules", std::to_string(forwardingRules)); +} + diff --git a/ga/src/model/UpdateForwardingRulesResult.cc b/ga/src/model/UpdateForwardingRulesResult.cc new file mode 100644 index 000000000..9f1fe4c6b --- /dev/null +++ b/ga/src/model/UpdateForwardingRulesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ga; +using namespace AlibabaCloud::Ga::Model; + +UpdateForwardingRulesResult::UpdateForwardingRulesResult() : + ServiceResult() +{} + +UpdateForwardingRulesResult::UpdateForwardingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateForwardingRulesResult::~UpdateForwardingRulesResult() +{} + +void UpdateForwardingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allForwardingRulesNode = value["ForwardingRules"]["ForwardingRulesItem"]; + for (auto valueForwardingRulesForwardingRulesItem : allForwardingRulesNode) + { + ForwardingRulesItem forwardingRulesObject; + if(!valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].isNull()) + forwardingRulesObject.forwardingRuleId = valueForwardingRulesForwardingRulesItem["ForwardingRuleId"].asString(); + forwardingRules_.push_back(forwardingRulesObject); + } + +} + +std::vector UpdateForwardingRulesResult::getForwardingRules()const +{ + return forwardingRules_; +} + diff --git a/ga/src/model/UpdateIpSetRequest.cc b/ga/src/model/UpdateIpSetRequest.cc new file mode 100644 index 000000000..6d263b0c8 --- /dev/null +++ b/ga/src/model/UpdateIpSetRequest.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::UpdateIpSetRequest; + +UpdateIpSetRequest::UpdateIpSetRequest() : + RpcServiceRequest("ga", "2019-11-20", "UpdateIpSet") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateIpSetRequest::~UpdateIpSetRequest() +{} + +std::string UpdateIpSetRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateIpSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int UpdateIpSetRequest::getBandwidth()const +{ + return bandwidth_; +} + +void UpdateIpSetRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string UpdateIpSetRequest::getIpSetId()const +{ + return ipSetId_; +} + +void UpdateIpSetRequest::setIpSetId(const std::string& ipSetId) +{ + ipSetId_ = ipSetId; + setParameter("IpSetId", ipSetId); +} + +std::string UpdateIpSetRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateIpSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/UpdateIpSetResult.cc b/ga/src/model/UpdateIpSetResult.cc new file mode 100644 index 000000000..9790b0cad --- /dev/null +++ b/ga/src/model/UpdateIpSetResult.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; + +UpdateIpSetResult::UpdateIpSetResult() : + ServiceResult() +{} + +UpdateIpSetResult::UpdateIpSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIpSetResult::~UpdateIpSetResult() +{} + +void UpdateIpSetResult::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/UpdateIpSetsRequest.cc b/ga/src/model/UpdateIpSetsRequest.cc new file mode 100644 index 000000000..a20231594 --- /dev/null +++ b/ga/src/model/UpdateIpSetsRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ga::Model::UpdateIpSetsRequest; + +UpdateIpSetsRequest::UpdateIpSetsRequest() : + RpcServiceRequest("ga", "2019-11-20", "UpdateIpSets") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateIpSetsRequest::~UpdateIpSetsRequest() +{} + +std::vector UpdateIpSetsRequest::getIpSets()const +{ + return ipSets_; +} + +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); + } +} + +std::string UpdateIpSetsRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateIpSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ga/src/model/UpdateIpSetsResult.cc b/ga/src/model/UpdateIpSetsResult.cc new file mode 100644 index 000000000..6e2526fd1 --- /dev/null +++ b/ga/src/model/UpdateIpSetsResult.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; + +UpdateIpSetsResult::UpdateIpSetsResult() : + ServiceResult() +{} + +UpdateIpSetsResult::UpdateIpSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateIpSetsResult::~UpdateIpSetsResult() +{} + +void UpdateIpSetsResult::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/UpdateListenerRequest.cc b/ga/src/model/UpdateListenerRequest.cc new file mode 100644 index 000000000..dc11df565 --- /dev/null +++ b/ga/src/model/UpdateListenerRequest.cc @@ -0,0 +1,164 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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_; +} + +void UpdateListenerRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UpdateListenerRequest::getDescription()const +{ + return description_; +} + +void UpdateListenerRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::vector UpdateListenerRequest::getBackendPorts()const +{ + return backendPorts_; +} + +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::string UpdateListenerRequest::getListenerId()const +{ + return listenerId_; +} + +void UpdateListenerRequest::setListenerId(const std::string& listenerId) +{ + listenerId_ = listenerId; + setParameter("ListenerId", listenerId); +} + +std::string UpdateListenerRequest::getProtocol()const +{ + return protocol_; +} + +void UpdateListenerRequest::setProtocol(const std::string& protocol) +{ + protocol_ = protocol; + setParameter("Protocol", protocol); +} + +std::string UpdateListenerRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateListenerRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateListenerRequest::getProxyProtocol()const +{ + return proxyProtocol_; +} + +void UpdateListenerRequest::setProxyProtocol(const std::string& proxyProtocol) +{ + proxyProtocol_ = proxyProtocol; + setParameter("ProxyProtocol", proxyProtocol); +} + +std::vector UpdateListenerRequest::getPortRanges()const +{ + return portRanges_; +} + +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::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 = "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("Name", name); +} + +std::string UpdateListenerRequest::getClientAffinity()const +{ + return clientAffinity_; +} + +void UpdateListenerRequest::setClientAffinity(const std::string& clientAffinity) +{ + clientAffinity_ = clientAffinity; + setParameter("ClientAffinity", clientAffinity); +} + diff --git a/ga/src/model/UpdateListenerResult.cc b/ga/src/model/UpdateListenerResult.cc new file mode 100644 index 000000000..6279e93aa --- /dev/null +++ b/ga/src/model/UpdateListenerResult.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; + +UpdateListenerResult::UpdateListenerResult() : + ServiceResult() +{} + +UpdateListenerResult::UpdateListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateListenerResult::~UpdateListenerResult() +{} + +void UpdateListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +